/* ==========================================================================
   WILLY'S MOUSTACHE — styles.css
   Direction: Warm Retro Editorial (premium, restrained, party-forward)

   SIGNATURE VISUAL IDEA — "THE BEAM + THE DIE-CUT SEAL"
   1. Every major image sits under a hard-edged amber light-beam (clip-path)
      that reads like a spotlight cutting across a dark club floor.
   2. Dates and ordinals are set as oversized Fraunces numerals with a hard
      offset "die-cut" duplicate behind them (no blur, pure offset colour),
      so numbers feel stamped rather than printed.
   Tokens for both live in :root (--beam-clip, --elev-accent, --duo-*).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* --- Base palette: 3 tones + ONE accent -------------------------------- */
  --ink:          #14110F;
  --ink-soft:     #2A2521;
  --ink-veil:     #1B1714;
  --cream:        #F7F1E8;
  --oat:          #E8DED2;

  --border:       #D8CBBE;
  --border-ink:   #3B342E;
  --muted:        #6B625A;
  --muted-light:  #A79C90;

  /* --- The single accent -------------------------------------------------- */
  --amber:        #C8753B;
  --amber-hover:  #A85A2B;
  --amber-soft:   #F0D8C7;
  --amber-deep:   #8A4520;

  /* --- Support (used only as tints inside image treatments) --------------- */
  --plum:         #330968;
  --cyan:         #31CDCF;
  --mint:         #00D084;

  /* --- Semantic ----------------------------------------------------------- */
  --bg:                 var(--cream);
  --bg-alt:             var(--oat);
  --bg-dark:            var(--ink);
  --text:               var(--ink);
  --text-muted:         var(--muted);
  --text-inverse:       var(--cream);
  --text-inverse-muted: #B9AEA2;
  --link:               var(--amber);

  /* --- Type scale (rem, modular) ----------------------------------------- */
  --text-overline: 0.75rem;    /* 12px */
  --text-nav:      0.8125rem;  /* 13px */
  --text-sm:       0.875rem;   /* 14px */
  --text-base:     1rem;       /* 16px */
  --text-md:       1.125rem;   /* 18px */
  --text-lg:       1.5rem;     /* 24px */
  --text-xl:       2rem;       /* 32px */
  --text-2xl:      clamp(2.25rem, 4.5vw, 4.5rem);
  --text-3xl:      clamp(2.75rem, 5.5vw, 5rem);
  --text-hero:     clamp(3.25rem, 8vw, 7.5rem);
  --text-numeral:  clamp(3.5rem, 9vw, 8rem);

  /* --- Families ----------------------------------------------------------- */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wonk: "SOFT" 50, "WONK" 1;

  /* --- 8pt spacing scale -------------------------------------------------- */
  --s-1:  0.5rem;   /*  8 */
  --s-2:  1rem;     /* 16 */
  --s-3:  1.5rem;   /* 24 */
  --s-4:  2rem;     /* 32 */
  --s-5:  2.5rem;   /* 40 */
  --s-6:  3rem;     /* 48 */
  --s-8:  4rem;     /* 64 */
  --s-10: 5rem;     /* 80 */
  --s-12: 6rem;     /* 96 */
  --s-16: 8rem;     /* 128 */
  --s-20: 10rem;    /* 160 */

  /* --- Shell -------------------------------------------------------------- */
  --container: 1280px;
  --gutter: 1.5rem;
  --header-h: 76px;

  /* --- Radii -------------------------------------------------------------- */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius:    8px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* --- Elevation system (tight, editorial — never soft/blurry) ------------ */
  --elev-0:     none;
  --elev-1:     0 1px 0 0 var(--border);
  --elev-2:     0 1px 0 0 var(--border), 0 14px 34px -28px rgba(20, 17, 15, 0.55);
  --elev-3:     0 1px 0 0 var(--border), 0 28px 64px -42px rgba(20, 17, 15, 0.72);
  --elev-accent: 5px 5px 0 0 var(--amber-soft);   /* signature hard shadow */
  --elev-inset: inset 0 1px 0 0 rgba(247, 241, 232, 0.08);

  /* --- Signature: the beam ------------------------------------------------ */
  --beam-clip: polygon(0 0, 66% 0, 34% 100%, 0 100%);
  --beam-clip-alt: polygon(52% 0, 100% 0, 100% 100%, 84% 100%);
  --beam-gradient: linear-gradient(
      102deg,
      rgba(200, 117, 59, 0.42) 0%,
      rgba(200, 117, 59, 0.12) 44%,
      rgba(20, 17, 15, 0) 72%
  );

  /* --- Signature: die-cut numerals ---------------------------------------- */
  --diecut-x: 5px;
  --diecut-y: 5px;

  /* --- Image treatments --------------------------------------------------- */
  --duo-ink:   rgba(20, 17, 15, 0.46);
  --duo-amber: rgba(200, 117, 59, 0.30);
  --scrim-b:   linear-gradient(180deg, rgba(20,17,15,0) 34%, rgba(20,17,15,0.86) 100%);
  --scrim-r:   linear-gradient(90deg, rgba(20,17,15,0.72) 0%, rgba(20,17,15,0.12) 58%, rgba(20,17,15,0) 100%);

  /* --- Grain -------------------------------------------------------------- */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");

  /* --- Motion ------------------------------------------------------------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 620ms;

  --focus-ring: 0 0 0 2px var(--cream), 0 0 0 4px var(--amber);
}

@media (min-width: 48rem) {
  :root {
    --gutter: 2rem;
    --header-h: 88px;
  }
}

@media (min-width: 64rem) {
  :root {
    --gutter: 3rem;
  }
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s-3));
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
}

img { height: auto; }

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p { margin: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: var(--wonk);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

::selection {
  background: var(--amber);
  color: var(--ink);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-xs);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* --------------------------------------------------------------------------
   3. SHELL
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--s-12);
  background-color: var(--bg);
  isolation: isolate;
}

.section--dark,
.section.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-inverse);
}

@media (min-width: 64rem) {
  .section { padding-block: var(--s-16); }
}

/* Shared grain utility applied to dark bands via existing section classes */
.section-events::after,
.section-newsletter::after,
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.05;
  mix-blend-mode: overlay;
}

.section-events > *,
.section-newsletter > *,
.site-footer > * {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   4. SKIP LINK
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 999;
  transform: translate(-50%, -140%);
  padding: var(--s-2) var(--s-3);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: var(--text-nav);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: transform var(--dur) var(--ease-out);
}

.skip-link:focus {
  transform: translate(-50%, 0);
  outline: none;
}

/* --------------------------------------------------------------------------
   5. HEADER / NAV
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(20, 17, 15, 0.82);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgba(216, 203, 190, 0.14);
  color: var(--cream);
  transition: background-color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.04;
  mix-blend-mode: overlay;
}

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: var(--header-h);
  padding-block: var(--s-1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  flex: 0 0 auto;
  transition: opacity var(--dur) var(--ease-out);
}

.brand:hover { opacity: 0.86; }

.brand-logo {
  width: auto;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.35));
}

@media (min-width: 48rem) {
  .brand-logo { height: 54px; }
}

/* --- Toggle (mobile) ----------------------------------------------------- */
.nav-toggle {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  border: 1px solid rgba(216, 203, 190, 0.28);
  border-radius: var(--radius-pill);
  color: inherit;
  transition: border-color var(--dur) var(--ease-out),
              background-color var(--dur) var(--ease-out);
}

.nav-toggle:hover {
  border-color: var(--amber);
  background-color: rgba(200, 117, 59, 0.12);
}

.nav-toggle::before,
.nav-toggle::after,
.nav-toggle span {
  content: "";
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform var(--dur) var(--ease-out),
              opacity var(--dur-fast) linear;
}

.nav-toggle[aria-expanded="true"]::before { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after  { transform: translateY(-6.5px) rotate(-45deg); }
.nav-toggle[aria-expanded="true"] span    { opacity: 0; }

/* --- Primary nav --------------------------------------------------------- */
.primary-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  padding: var(--s-4) var(--gutter) var(--s-6);
  background-color: var(--ink);
  border-bottom: 1px solid rgba(216, 203, 190, 0.16);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.9);
}

.primary-nav.is-open,
.nav-toggle[aria-expanded="true"] ~ .primary-nav {
  display: block;
  animation: nav-drop var(--dur) var(--ease-out) both;
}

@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}

.nav-list > li > a {
  display: block;
  padding: var(--s-2) 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  font-variation-settings: var(--wonk);
  letter-spacing: -0.02em;
  color: var(--cream);
  border-bottom: 1px solid rgba(216, 203, 190, 0.12);
  transition: color var(--dur-fast) var(--ease-out),
              padding-left var(--dur) var(--ease-out);
}

.nav-list > li > a:hover {
  color: var(--amber);
  padding-left: var(--s-2);
}

@media (min-width: 64rem) {
  .nav-toggle { display: none; }

  .primary-nav {
    position: static;
    display: block;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: var(--s-4);
  }

  .nav-list > li > a {
    padding: 0;
    font-family: var(--font-sans);
    font-size: var(--text-nav);
    font-weight: 600;
    font-variation-settings: normal;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cream);
    border-bottom: 0;
  }

  .nav-list > li > a:hover {
    color: var(--amber);
    padding-left: 0;
  }

  /* Underline micro-interaction */
  .nav-list > li > a {
    position: relative;
  }

  .nav-list > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 100%;
    height: 1.5px;
    background-color: var(--amber);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur) var(--ease-out);
  }

  .nav-list > li > a:hover::after,
  .nav-list > li > a:focus-visible::after {
    transform: scaleX(1);
  }
}

/* --------------------------------------------------------------------------
   6. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--text-nav);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background-color: var(--amber);
  color: var(--ink);
  box-shadow: var(--elev-accent);
}

.btn-primary:hover {
  background-color: var(--amber-hover);
  color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 0 var(--amber-soft);
}

.btn-secondary {
  background-color: transparent;
  color: currentColor;
  border-color: currentColor;
  box-shadow: none;
}

.btn-secondary:hover {
  background-color: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
  transform: translateY(-1px);
}

.section-dark .btn-secondary:hover,
.section-events .btn-secondary:hover,
.section-newsletter .btn-secondary:hover {
  background-color: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

.btn-small {
  padding: 9px 16px;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
}

/* --------------------------------------------------------------------------
   7. TYPOGRAPHY PRIMITIVES
   -------------------------------------------------------------------------- */
.overline {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0 0 var(--s-3);
  font-family: var(--font-sans);
  font-size: var(--text-overline);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--amber);
}

.overline::before {
  content: "";
  width: 34px;
  height: 1px;
  background-color: currentColor;
  opacity: 0.75;
}

.display-1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 600;
  font-variation-settings: var(--wonk);
  line-height: 0.94;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.display-2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  font-variation-settings: var(--wonk);
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.display-3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  font-variation-settings: var(--wonk);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0;
  max-width: 46ch;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: 400;
  line-height: 1.62;
  color: var(--muted);
  text-wrap: pretty;
}

.section-dark .lead,
.section-events .lead,
.section-newsletter .lead,
.hero .lead {
  color: var(--text-inverse-muted);
}

.body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--muted);
}

.section-dark .body { color: var(--text-inverse-muted); }

/* --------------------------------------------------------------------------
   8. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(620px, 92svh, 980px);
  padding-block: var(--s-16) var(--s-12);
  background-color: var(--ink);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}

/* --- hero-media: full-bleed video / poster ------------------------------- */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.06);
  animation: hero-drift 22s var(--ease-in-out) infinite alternate;
}

@keyframes hero-drift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(0, -1.6%, 0); }
}

/* duotone pass over the hero image */
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: var(--duo-ink);
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* grain pass */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: var(--grain);
  opacity: 0.16;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* --- scrim --------------------------------------------------------------- */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(20, 17, 15, 0.86) 0%, rgba(20, 17, 15, 0.18) 32%, rgba(20, 17, 15, 0.82) 100%),
    var(--scrim-r);
  pointer-events: none;
}

/* --- SIGNATURE: the beam ------------------------------------------------- */
.hero::after {
  content: "";
  position: absolute;
  inset: -10% -5%;
  z-index: 2;
  background: var(--beam-gradient);
  clip-path: var(--beam-clip);
  mix-blend-mode: screen;
  opacity: 0.9;
  pointer-events: none;
  animation: beam-breathe 9s var(--ease-in-out) infinite alternate;
}

@keyframes beam-breathe {
  from { opacity: 0.68; transform: translate3d(0, 0, 0) rotate(-0.4deg); }
  to   { opacity: 1;    transform: translate3d(1.2%, 0, 0) rotate(0.4deg); }
}

/* --- hero content -------------------------------------------------------- */
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  gap: var(--s-4);
  justify-items: start;
  animation: hero-in 900ms var(--ease-out) both;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content .display-1 {
  max-width: 15ch;
  text-shadow: 0 2px 30px rgba(20, 17, 15, 0.5);
}

.hero-content .lead {
  max-width: 40ch;
  color: rgba(247, 241, 232, 0.82);
  font-size: var(--text-md);
}

.hero-content .overline {
  color: var(--amber-soft);
}

.hero-content .button-row {
  margin-top: var(--s-2);
}

@media (min-width: 64rem) {
  .hero { min-height: clamp(700px, 96svh, 1080px); }

  .hero-content {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-5);
  }

  .hero-content .lead { font-size: var(--text-lg); line-height: 1.5; }
}

/* --------------------------------------------------------------------------
   9. SECTION HEADER
   -------------------------------------------------------------------------- */
.section-header {
  display: grid;
  gap: var(--s-3);
  margin-bottom: var(--s-8);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--border);
}

.section-dark .section-header,
.section-events .section-header {
  border-bottom-color: rgba(216, 203, 190, 0.2);
}

.section-header .lead { max-width: 52ch; }

@media (min-width: 64rem) {
  .section-header {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: end;
    gap: var(--s-8);
    margin-bottom: var(--s-10);
  }

  .section-header .lead { justify-self: end; }
}

/* --------------------------------------------------------------------------
   10. EVENTS
   -------------------------------------------------------------------------- */
.section-events {
  position: relative;
  background-color: var(--ink);
  color: var(--text-inverse);
  overflow: hidden;
}

/* second beam, mirrored, low opacity — section rhythm */
.section-events::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(270deg, rgba(200, 117, 59, 0.22) 0%, rgba(20, 17, 15, 0) 58%);
  clip-path: var(--beam-clip-alt);
  pointer-events: none;
}

/* --- Featured event ------------------------------------------------------ */
.featured-event {
  position: relative;
  display: grid;
  gap: 0;
  margin-bottom: var(--s-8);
  background-color: var(--ink-veil);
  border: 1px solid rgba(216, 203, 190, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}

.featured-event:hover {
  border-color: var(--amber);
  transform: translateY(-3px);
  box-shadow: 0 40px 80px -60px rgba(0, 0, 0, 0.95);
}

.featured-event-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--ink-soft);
}

.featured-event-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.22) contrast(1.06) saturate(0.92);
  transition: transform var(--dur-slow) var(--ease-out),
              filter var(--dur) var(--ease-out);
}

.featured-event-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--scrim-b);
  pointer-events: none;
}

.featured-event:hover .featured-event-media img {
  transform: scale(1.04);
  filter: grayscale(0) contrast(1.08) saturate(1.02);
}

.featured-event-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-2);
  padding: var(--s-5) var(--s-4) var(--s-6);
}

.featured-event-body .display-3 {
  font-size: var(--text-xl);
  color: var(--cream);
  max-width: 18ch;
}

@media (min-width: 64rem) {
  .featured-event {
    grid-template-columns: 7fr 5fr;
    align-items: stretch;
  }

  .featured-event-media {
    aspect-ratio: auto;
    min-height: 420px;
  }

  .featured-event-body {
    justify-content: center;
    padding: var(--s-8) var(--s-6);
  }

  .featured-event-body .display-3 { font-size: var(--text-2xl); }
}

/* --- Labels & dates ------------------------------------------------------ */
.event-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 5px 11px;
  background-color: var(--amber-soft);
  color: var(--amber-deep);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1;
  white-space: nowrap;
}

.event-label::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--amber);
}

.section-events .event-label {
  background-color: rgba(200, 117, 59, 0.16);
  color: var(--amber-soft);
}

/* SIGNATURE: die-cut oversized date numeral */
.event-date {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-numeral);
  font-weight: 700;
  font-variation-settings: var(--wonk);
  line-height: 0.84;
  letter-spacing: -0.05em;
  color: var(--amber);
  font-feature-settings: "tnum" 1;
}

.event-date::before {
  content: attr(data-date);
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translate(var(--diecut-x), var(--diecut-y));
  color: var(--amber-soft);
  opacity: 0.34;
  pointer-events: none;
}

.section-events .event-date::before {
  color: var(--ink);
  opacity: 0.55;
}

/* --- Ledger -------------------------------------------------------------- */
.event-ledger {
  display: grid;
  border-top: 1px solid rgba(216, 203, 190, 0.2);
}

.event-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-3) var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid rgba(216, 203, 190, 0.2);
  transition: padding-inline var(--dur) var(--ease-out),
              background-color var(--dur) var(--ease-out);
}

.event-row::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--amber);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--dur) var(--ease-out);
}

.event-row:hover {
  background-color: rgba(200, 117, 59, 0.06);
  padding-inline: var(--s-3);
}

.event-row:hover::before { transform: scaleY(1); }

.event-row-date {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  font-variation-settings: var(--wonk);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--amber-soft);
  white-space: nowrap;
  font-feature-settings: "tnum" 1;
}

.event-row-main {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.event-row-main .display-3 {
  font-size: var(--text-lg);
  color: var(--cream);
}

.event-row-main .body {
  font-size: var(--text-sm);
  color: var(--text-inverse-muted);
}

.event-row .event-label { justify-self: start; }

.event-row .link-arrow { justify-self: end; }

@media (min-width: 64rem) {
  .event-row {
    grid-template-columns: 9rem minmax(0, 1fr) auto auto;
    gap: var(--s-5);
    padding-block: var(--s-5);
  }

  .event-row-main .display-3 { font-size: var(--text-xl); }
}

/* --- Link with arrow ----------------------------------------------------- */
.link-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-sans);
  font-size: var(--text-nav);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: currentColor;
  line-height: 1.2;
  transition: color var(--dur) var(--ease-out);
}

.link-arrow::after {
  content: "\2192";
  font-size: 1.05em;
  line-height: 1;
  transition: transform var(--dur) var(--ease-out);
}

.link-arrow::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  opacity: 0.35;
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out),
              opacity var(--dur) var(--ease-out),
              background-color var(--dur) var(--ease-out);
}

.link-arrow:hover {
  color: var(--amber);
}

.link-arrow:hover::before {
  background-color: var(--amber);
  opacity: 1;
  transform: scaleX(0.46);
}

.link-arrow:hover::after {
  transform: translateX(5px);
}

/* --- Pagination ---------------------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  margin-top: var(--s-6);
  padding-top: var(--s-4);
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 var(--s-2);
  border: 1px solid rgba(216, 203, 190, 0.28);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--text-nav);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-feature-settings: "tnum" 1;
  color: var(--text-inverse-muted);
  transition: color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              background-color var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}

.page-link:hover {
  color: var(--cream);
  border-color: var(--amber);
  transform: translateY(-2px);
}

.page-link.is-active {
  background-color: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
  box-shadow: var(--elev-accent);
}

.page-link.is-active:hover { transform: translateY(-2px); }

/* --- Section CTA --------------------------------------------------------- */
.section-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid var(--border);
}

.section-dark .section-cta,
.section-events .section-cta {
  border-top-color: rgba(216, 203, 190, 0.2);
}

/* --------------------------------------------------------------------------
   11. FORMULES
   -------------------------------------------------------------------------- */
.section-formules {
  position: relative;
  background-color: var(--bg-alt);
}

.formule-grid {
  display: grid;
  gap: var(--s-5);
}

.formule-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--elev-1);
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}

.formule-panel:hover {
  transform: translateY(-5px);
  border-color: var(--ink);
  box-shadow: var(--elev-3);
}

.formule-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  filter: grayscale(0.3) contrast(1.05);
  transition: transform var(--dur-slow) var(--ease-out),
              filter var(--dur) var(--ease-out);
}

.formule-panel:hover img {
  transform: scale(1.035);
  filter: grayscale(0) contrast(1.06) saturate(1.03);
}

.formule-panel > *:first-child {
  position: relative;
  overflow: hidden;
  background-color: var(--ink-soft);
}

.formule-panel > *:first-child::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 17, 15, 0.05) 0%, rgba(20, 17, 15, 0.42) 100%);
  pointer-events: none;
}

.formule-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-2);
  padding: var(--s-5) var(--s-4) var(--s-6);
  flex: 1 1 auto;
}

.formule-body .display-3 {
  font-size: var(--text-xl);
  color: var(--ink);
}

.formule-body .body {
  font-size: var(--text-sm);
  max-width: 34ch;
}

.formule-body .link-arrow {
  margin-top: auto;
  padding-top: var(--s-2);
  color: var(--ink);
}

@media (min-width: 48rem) {
  .formule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-5);
  }

  .formule-panel:nth-child(3) {
    grid-column: 1 / -1;
    flex-direction: row;
  }

  .formule-panel:nth-child(3) > *:first-child {
    flex: 0 0 46%;
  }

  .formule-panel:nth-child(3) img { aspect-ratio: auto; height: 100%; }
}

@media (min-width: 64rem) {
  .formule-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    gap: var(--s-5);
  }

  /* Asymmetric editorial rhythm — deliberately unequal panels */
  .formule-panel:nth-child(1) { grid-column: 1 / span 5; }
  .formule-panel:nth-child(2) {
    grid-column: 7 / span 6;
    margin-top: var(--s-10);
  }
  .formule-panel:nth-child(3) {
    grid-column: 2 / span 10;
    flex-direction: row;
    margin-top: var(--s-6);
  }

  .formule-panel:nth-child(3) > *:first-child { flex: 0 0 44%; }

  .formule-panel:nth-child(1) img { aspect-ratio: 4 / 5; }
  .formule-panel:nth-child(2) img { aspect-ratio: 16 / 11; }

  .formule-panel:nth-child(3) .formule-body { padding: var(--s-8) var(--s-6); }
}

/* --------------------------------------------------------------------------
   12. GALLERY
   -------------------------------------------------------------------------- */
.section-gallery {
  position: relative;
  background-color: var(--bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-2);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--ink-soft);
  aspect-ratio: 1 / 1;
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.34) contrast(1.05) saturate(0.9);
  transition: transform var(--dur-slow) var(--ease-out),
              filter var(--dur) var(--ease-out);
}

/* duotone amber/ink pass */
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 17, 15, 0) 52%, rgba(20, 17, 15, 0.55) 100%),
    linear-gradient(140deg, rgba(200, 117, 59, 0.22) 0%, rgba(20, 17, 15, 0.3) 100%);
  mix-blend-mode: multiply;
  opacity: 0.85;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease-out);
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--elev-3);
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: grayscale(0) contrast(1.06) saturate(1.05);
}

.gallery-item:hover::after { opacity: 0.35; }

.gallery-item-large {
  grid-column: span 2;
  aspect-ratio: 16 / 11;
}

@media (min-width: 48rem) {
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--s-3);
  }

  .gallery-item-large {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
  }

  .gallery-item:nth-child(3) { aspect-ratio: 3 / 4; grid-row: span 2; }
  .gallery-item:nth-child(6) { aspect-ratio: 4 / 3; grid-column: span 2; }
}

@media (min-width: 64rem) {
  .gallery-grid { gap: var(--s-4); }
}

/* --------------------------------------------------------------------------
   13. LOW REASSURANCE
   -------------------------------------------------------------------------- */
.section-reassurance {
  background-color: var(--bg-alt);
  padding-block: var(--s-10);
}

.reassurance-grid {
  display: grid;
  gap: var(--s-5);
  align-items: center;
}

.reassurance-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  background-color: var(--ink-soft);
}

.reassurance-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3) contrast(1.06);
  transition: transform var(--dur-slow) var(--ease-out);
}

.reassurance-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--beam-gradient);
  clip-path: var(--beam-clip-alt);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.reassurance-media:hover img { transform: scale(1.03); }

.reassurance-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
}

.reassurance-body .display-2 { font-size: var(--text-2xl); }

.fact-list {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-1);
  width: 100%;
}

.fact-list li {
  position: relative;
  padding-left: var(--s-5);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  border-top: 1px solid var(--border);
  padding-top: var(--s-3);
}

.fact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--s-3) + 0.44em);
  width: 18px;
  height: 2px;
  background-color: var(--amber);
}

@media (min-width: 64rem) {
  .reassurance-grid {
    grid-template-columns: 5fr 7fr;
    gap: var(--s-10);
  }

  .reassurance-media { aspect-ratio: 4 / 5; }
}

/* --------------------------------------------------------------------------
   14. NEWSLETTER
   -------------------------------------------------------------------------- */
.section-newsletter {
  position: relative;
  background-color: var(--ink);
  color: var(--text-inverse);
  overflow: hidden;
  padding-block: var(--s-12);
}

.section-newsletter::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(200, 117, 59, 0.26) 0%, rgba(20, 17, 15, 0) 62%);
  clip-path: var(--beam-clip);
  pointer-events: none;
}

.newsletter-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--s-6);
  align-items: center;
}

.newsletter-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
}

.newsletter-body .display-2 {
  max-width: 20ch;
  color: var(--cream);
}

.newsletter-body .lead {
  color: var(--text-inverse-muted);
  max-width: 44ch;
}

.newsletter-body .overline { color: var(--amber-soft); }

@media (min-width: 64rem) {
  .newsletter-inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: var(--s-12);
  }
}

/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  background-color: var(--ink);
  color: var(--text-inverse);
  padding-block: var(--s-12) var(--s-6);
  border-top: 1px solid rgba(216, 203, 190, 0.16);
  overflow: hidden;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--s-8);
  padding-bottom: var(--s-8);
  border-bottom: 1px solid rgba(216, 203, 190, 0.16);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
}

.footer-brand img,
.footer-brand .brand-logo {
  width: auto;
  max-width: 220px;
  height: auto;
  opacity: 0.95;
}

.footer-tagline {
  max-width: 32ch;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--text-inverse-muted);
}

.footer-heading {
  margin: 0 0 var(--s-3);
  font-family: var(--font-sans);
  font-size: var(--text-overline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--amber);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-style: normal;
  line-height: 1.6;
  color: var(--text-inverse-muted);
}

.footer-contact a {
  color: var(--text-inverse-muted);
  text-decoration-color: rgba(216, 203, 190, 0.35);
  text-underline-offset: 4px;
  transition: color var(--dur) var(--ease-out);
}

.footer-contact a:hover {
  color: var(--amber);
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.footer-links a {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--text-inverse-muted);
  transition: color var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}

.footer-links a:hover {
  color: var(--amber);
  transform: translateX(3px);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-4);
  padding-top: var(--s-5);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--text-inverse-muted);
}

.footer-legal a {
  color: var(--text-inverse-muted);
  text-decoration: underline;
  text-decoration-color: rgba(216, 203, 190, 0.3);
  text-underline-offset: 4px;
  transition: color var(--dur) var(--ease-out),
              text-decoration-color var(--dur) var(--ease-out);
}

.footer-legal a:hover {
  color: var(--amber);
  text-decoration-color: var(--amber);
}

.footer-credit {
  margin-top: var(--s-3);
  font-family: var(--font-sans);
  font-size: var(--text-overline);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(167, 156, 144, 0.7);
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-8) var(--s-6);
  }

  .footer-legal { justify-content: space-between; }
}

@media (min-width: 64rem) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr);
    gap: var(--s-8);
  }

  .site-footer { padding-block: var(--s-16) var(--s-6); }
}

/* --------------------------------------------------------------------------
   16. SCROLL REVEAL (progressive enhancement, no JS required)
   -------------------------------------------------------------------------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {

    .section-header,
    .featured-event,
    .event-row,
    .formule-panel,
    .gallery-item,
    .reassurance-media,
    .reassurance-body,
    .newsletter-body {
      animation: reveal-up both;
      animation-timeline: view();
      animation-range: entry 4% cover 30%;
    }

    .gallery-item:nth-child(even) {
      animation-range: entry 4% cover 34%;
    }
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fallback for browsers without scroll-driven animations */
@supports not (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section-header,
    .featured-event,
    .formule-panel,
    .gallery-item,
    .reassurance-media,
    .reassurance-body,
    .newsletter-body {
      animation: reveal-up 700ms var(--ease-out) both;
      animation-delay: 60ms;
    }
  }
}

/* --------------------------------------------------------------------------
   17. UTILITY / MISC
   -------------------------------------------------------------------------- */
.section-dark a:not(.btn),
.section-events a:not(.btn),
.section-newsletter a:not(.btn) {
  color: inherit;
}

@media print {
  .site-header,
  .nav-toggle,
  .skip-link,
  .btn { display: none !important; }
  body { background: #fff; color: #000; }
}