@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap");

/* ==========================================================================
   Discotheek Willy's Moustache — editorial reproduction
   Signature device: THE LEDGER
   hairline rules · tracked small-caps overlines · oversized serif numerals
   · film-grain overlay · accent sweep buttons
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* palette — 2 base tones + one accent */
  --ink: #0D0C0B;
  --ink-soft: #1C1A18;
  --cream: #F5F0E8;
  --cream-deep: #E7DFD2;
  --muted: #8A8177;
  --accent: #B98A4B;
  --white: #FFFFFF;

  /* derived */
  --ink-70: rgba(13, 12, 11, 0.70);
  --ink-55: rgba(13, 12, 11, 0.55);
  --cream-70: rgba(245, 240, 232, 0.70);
  --cream-55: rgba(245, 240, 232, 0.55);
  --cream-45: rgba(245, 240, 232, 0.45);
  --accent-08: rgba(185, 138, 75, 0.08);
  --accent-16: rgba(185, 138, 75, 0.16);
  --accent-50: rgba(185, 138, 75, 0.50);
  --rule: rgba(13, 12, 11, 0.12);
  --rule-inv: rgba(245, 240, 232, 0.14);
  --rule-inv-soft: rgba(245, 240, 232, 0.08);

  /* type */
  --font-display: "Playfair Display", "GT Sectra", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --fs-h1: 2.375rem;      /* 38 */
  --fs-h2: 1.625rem;      /* 26 */
  --fs-h3: 1.25rem;       /* 20 */
  --fs-body: 1rem;        /* 16 */
  --fs-lead: 1.0625rem;   /* 17 */
  --fs-overline: 0.75rem; /* 12 */
  --fs-small: 0.8125rem;  /* 13 */

  --lh-display: 1.08;
  --lh-body: 1.6;
  --track-overline: 0.14em;

  /* 8pt spacing scale */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 6rem;
  --sp-8: 8rem;

  --space-section: 3rem;
  --gap: 1rem;
  --gutter: 1.25rem;

  /* motion */
  --ease: cubic-bezier(0.77, 0, 0.18, 1);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur: 180ms;

  /* elevation */
  --shadow-lift: 0 1px 0 rgba(13, 12, 11, 0.08), 0 24px 48px -32px rgba(13, 12, 11, 0.45);
  --shadow-overlay: 0 32px 80px -40px rgba(13, 12, 11, 0.7);

  --tap: 44px;

  /* grain texture */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E");
  --grain-size: 180px 180px;
}

@media (min-width: 768px) {
  :root {
    --fs-h1: 3.25rem;       /* 52 */
    --fs-h2: 2.125rem;      /* 34 */
    --fs-h3: 1.4375rem;     /* 23 */
    --fs-lead: 1.1875rem;   /* 19 */
    --space-section: 5rem;
    --gap: 1.5rem;
    --gutter: 2rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --fs-h1: 4rem;          /* 64 */
    --fs-h2: 2.75rem;       /* 44 */
    --fs-h3: 1.75rem;       /* 28 */
    --fs-body: 1.0625rem;   /* 17 */
    --fs-lead: 1.25rem;     /* 20 */
    --space-section: 7rem;
    --gap: 2rem;
    --gutter: 3rem;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, blockquote, dl, dd {
  margin: 0;
}

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
}

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

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   3. SKIP LINK
   -------------------------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  transform: translateY(-130%);
  background-color: var(--accent);
  color: var(--ink);
  padding: 0.875rem 1.25rem;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: none;
  box-shadow: var(--shadow-lift);
}

/* --------------------------------------------------------------------------
   4. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 82.5rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--space-section);
}

/* THE LEDGER — accent rule above every section heading */
.section-title {
  position: relative;
  padding-top: 1.25rem;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

.section-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5rem;
  height: 2px;
  background-color: var(--accent);
}

/* --------------------------------------------------------------------------
   5. HEADER / NAV
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(13, 12, 11, 0.88);
  border-bottom: 1px solid var(--rule-inv-soft);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  min-height: 4.5rem;
}

@media (min-width: 768px) {
  .header-inner {
    min-height: 5.5rem;
  }
}

/* brand ------------------------------------------------------------------ */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--cream);
}

.brand-logo {
  width: auto;
  height: 2.5rem;
  object-fit: contain;
  transition: opacity var(--dur) ease, transform 0.4s var(--ease);
}

.brand:hover .brand-logo {
  opacity: 0.82;
  transform: translateY(-1px);
}

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

/* toggle ----------------------------------------------------------------- */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  background-color: transparent;
  border: 1px solid rgba(245, 240, 232, 0.22);
  cursor: pointer;
  transition: border-color var(--dur) ease, background-color var(--dur) ease;
}

.nav-toggle:hover {
  border-color: var(--accent);
  background-color: var(--accent-08);
}

.nav-toggle-bar {
  display: block;
  width: 1.125rem;
  height: 1px;
  background-color: var(--cream);
  transition: transform 0.35s var(--ease), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* panel ------------------------------------------------------------------ */
.primary-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  padding: 6rem var(--gutter) 3rem;
  background-color: var(--ink-soft);
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.55s var(--ease), visibility 0.55s var(--ease);
}

.primary-nav::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: var(--grain-size);
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.primary-nav.is-open,
.nav-toggle[aria-expanded="true"] + .primary-nav,
.header-inner:has(.nav-toggle[aria-expanded="true"]) .primary-nav {
  clip-path: inset(0 0 0 0);
  visibility: visible;
}

.nav-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.nav-list li {
  border-bottom: 1px solid var(--rule-inv-soft);
}

.nav-list a {
  display: block;
  padding: 0.9rem 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--cream);
  transition: color var(--dur) ease, padding-left 0.35s var(--ease);
}

@media (max-width: 1023px) {
  .nav-list a:hover {
    color: var(--accent);
    padding-left: 0.5rem;
  }
}

/* desktop nav ------------------------------------------------------------ */
@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .primary-nav {
    position: static;
    inset: auto;
    z-index: auto;
    padding: 0;
    background-color: transparent;
    clip-path: none;
    visibility: visible;
    overflow: visible;
  }

  .primary-nav::after {
    display: none;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 0.125rem;
  }

  .nav-list li {
    border-bottom: 0;
  }

  .nav-list a {
    position: relative;
    padding: 0.5rem 0.75rem;
    font-family: var(--font-body);
    font-size: var(--fs-small);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.82);
  }

  .nav-list a::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.25rem;
    height: 1px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.18s ease;
  }

  .nav-list a:hover {
    color: var(--cream);
  }

  .nav-list a:hover::after {
    transform: scaleX(1);
  }

  .nav-list li:last-child a {
    color: var(--accent);
  }

  .nav-list li:last-child a::after {
    background-color: var(--accent);
  }
}

/* --------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(30rem, 88svh, 54rem);
  overflow: hidden;
  background-color: var(--ink);
  color: var(--white);
}

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

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background-color: var(--ink);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(180deg, rgba(13, 12, 11, 0.82) 0%, rgba(13, 12, 11, 0.28) 38%, rgba(13, 12, 11, 0.90) 100%),
    linear-gradient(0deg, rgba(185, 138, 75, 0.18), rgba(185, 138, 75, 0.18));
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
  width: 100%;
  padding-block: clamp(3rem, 9vw, 7rem);
}

.hero > .hero-inner {
  max-width: 82.5rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* eyebrow ---------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-overline);
  font-weight: 500;
  letter-spacing: var(--track-overline);
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  display: block;
  flex: none;
  width: 2rem;
  height: 1px;
  background-color: currentColor;
}

/* hero copy -------------------------------------------------------------- */
.hero-title {
  max-width: 20ch;
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: var(--lh-display);
  letter-spacing: -0.02em;
  color: var(--white);
  text-shadow: 0 2px 32px rgba(13, 12, 11, 0.45);
  text-wrap: balance;
}

.hero-lead {
  max-width: 52ch;
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem;
  margin-top: var(--sp-1);
}

/* --------------------------------------------------------------------------
   7. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--tap);
  padding: 1rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: background-size 0.45s var(--ease), color 0.3s ease,
    border-color 0.3s ease, transform 0.3s var(--ease);
}

.btn-primary {
  background-color: var(--accent);
  background-image: linear-gradient(var(--cream), var(--cream));
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 0% 100%;
  border-color: var(--accent);
  color: var(--ink);
}

.btn-primary:hover {
  background-size: 100% 100%;
  color: var(--ink);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background-color: transparent;
  border-color: var(--accent-50);
  color: var(--accent);
}

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

/* --------------------------------------------------------------------------
   8. FACTS
   -------------------------------------------------------------------------- */
.facts {
  background-color: var(--cream-deep);
  border-block: 1px solid var(--rule);
}

.facts-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.fact {
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule);
}

.fact:first-child {
  border-top: 0;
}

.fact-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.fact-label {
  margin-top: 0.5rem;
  font-size: var(--fs-overline);
  font-weight: 500;
  letter-spacing: var(--track-overline);
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 768px) {
  .facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fact {
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
  }

  .fact:nth-child(-n + 2) {
    border-top: 0;
  }

  .fact:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
}

@media (min-width: 1024px) {
  .facts-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .fact {
    padding: 2.5rem 2rem;
    border-top: 0;
    border-left: 1px solid var(--rule);
  }

  .fact:nth-child(odd) {
    border-left: 1px solid var(--rule);
    padding-left: 2rem;
  }

  .fact:first-child {
    border-left: 0;
    padding-left: 0;
  }
}

/* --------------------------------------------------------------------------
   9. EVENTS
   -------------------------------------------------------------------------- */
.events {
  position: relative;
  overflow: hidden;
  background-color: var(--ink);
  color: var(--cream);
}

.events::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: var(--grain-size);
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.events .container {
  position: relative;
  z-index: 1;
}

.events .section-title {
  color: var(--cream);
}

.events-head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-5);
  border-bottom: 1px solid var(--rule-inv);
}

@media (min-width: 768px) {
  .events-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--sp-5);
  }
}

.events-note {
  max-width: 40ch;
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--cream-55);
}

.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}

@media (min-width: 1024px) {
  .events-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 4rem;
    align-items: start;
  }
}

/* media ------------------------------------------------------------------ */
.events-media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 4 / 5;
  background-color: var(--ink-soft);
  border: 1px solid var(--rule-inv);
}

.events-media img,
.events-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.events-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(180deg, rgba(13, 12, 11, 0.10) 0%, rgba(13, 12, 11, 0.55) 100%),
    linear-gradient(0deg, var(--accent-16), var(--accent-16));
  pointer-events: none;
}

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

@media (min-width: 768px) {
  .events-media {
    aspect-ratio: 16 / 9;
  }
}

@media (min-width: 1024px) {
  .events-media {
    position: sticky;
    top: 7rem;
    aspect-ratio: 4 / 5;
  }
}

/* ledger ----------------------------------------------------------------- */
.event-ledger {
  position: relative;
  border-top: 1px solid var(--rule-inv);
}

.event-row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.25rem 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule-inv);
  transition: background-color 0.35s ease, padding-left 0.4s var(--ease);
}

.event-row::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 1px;
  background-color: var(--accent);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.4s var(--ease);
}

.event-row:hover {
  background-color: var(--accent-08);
  padding-left: 0.75rem;
}

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

@media (min-width: 768px) {
  .event-row {
    grid-template-columns: 3.5rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
  }
}

.event-num {
  padding-top: 0.35rem;
  font-family: var(--font-display);
  font-size: var(--fs-small);
  letter-spacing: 0.12em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) {
  .event-num {
    padding-top: 0;
  }
}

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

.event-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.event-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--cream);
}

@media (min-width: 768px) {
  .event-title {
    font-size: 1.375rem;
  }
}

.event-date {
  font-size: var(--fs-small);
  letter-spacing: 0.02em;
  color: var(--cream-45);
  font-variant-numeric: tabular-nums;
}

.event-link {
  position: relative;
  grid-column: 2;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  margin-top: 0.5rem;
  padding-bottom: 0.25rem;
  font-size: var(--fs-overline);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-55);
  transition: color var(--dur) ease;
}

.event-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0.35);
  transform-origin: left center;
  transition: transform 0.35s var(--ease);
}

.event-row:hover .event-link {
  color: var(--accent);
}

.event-row:hover .event-link::after {
  transform: scaleX(1);
}

@media (min-width: 768px) {
  .event-link {
    grid-column: auto;
    justify-self: end;
    margin-top: 0;
  }
}

/* pagination ------------------------------------------------------------- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--sp-5);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--rule-inv);
}

.pagination-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.75rem;
  border: 1px solid var(--rule-inv);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(245, 240, 232, 0.7);
  font-variant-numeric: tabular-nums;
  transition: border-color var(--dur) ease, color var(--dur) ease,
    background-color var(--dur) ease;
}

.pagination-item:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination-item.is-current,
.pagination .is-current {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   10. GALLERY
   -------------------------------------------------------------------------- */
.gallery {
  background-color: var(--cream);
}

.gallery-head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

@media (min-width: 768px) {
  .gallery-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--sp-5);
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.gallery-item {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background-color: var(--ink-soft);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
  transition: transform 0.9s var(--ease-out), filter 0.6s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    180deg,
    rgba(13, 12, 11, 0) 45%,
    rgba(13, 12, 11, 0.62) 100%
  );
  opacity: 0.85;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

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

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

.gallery-item-wide {
  grid-column: span 1;
}

@media (min-width: 768px) {
  .gallery-item-wide {
    grid-column: span 2;
    aspect-ratio: 2 / 1;
  }
}

@media (min-width: 1024px) {
  .gallery-item-wide {
    grid-column: span 2;
    aspect-ratio: 2 / 1;
  }
}

/* --------------------------------------------------------------------------
   11. REASSURANCE / QA
   -------------------------------------------------------------------------- */
.reassurance {
  background-color: var(--cream-deep);
}

.reassurance-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}

@media (min-width: 1024px) {
  .reassurance-inner {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 5rem;
    align-items: start;
  }
}

.reassurance-intro {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

@media (min-width: 1024px) {
  .reassurance-intro {
    position: sticky;
    top: 7rem;
  }
}

.reassurance-lead {
  max-width: 44ch;
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: var(--ink-70);
}

.qa-list {
  border-top: 1px solid var(--rule);
}

.qa {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}

.qa-q {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
}

@media (min-width: 768px) {
  .qa-q {
    font-size: 1.375rem;
  }
}

.qa-a {
  max-width: 62ch;
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(13, 12, 11, 0.68);
}

/* --------------------------------------------------------------------------
   12. INVITATION / FORMULES
   -------------------------------------------------------------------------- */
.invitation {
  position: relative;
  overflow: hidden;
  background-color: var(--ink);
  color: var(--cream);
}

.invitation::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: var(--grain-size);
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.invitation .container {
  position: relative;
  z-index: 1;
}

.invitation .section-title {
  color: var(--cream);
}

.invitation-head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.invitation-lead {
  max-width: 52ch;
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: var(--cream-70);
}

.invitation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
}

@media (min-width: 768px) {
  .invitation-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .invitation-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.formule {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: 1.75rem;
  overflow: hidden;
  background-color: rgba(245, 240, 232, 0.04);
  border: 1px solid var(--rule-inv);
  transition: border-color 0.35s ease, background-color 0.35s ease,
    transform 0.5s var(--ease);
}

.formule::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s var(--ease);
}

.formule:hover {
  border-color: var(--accent-50);
  background-color: rgba(245, 240, 232, 0.07);
  transform: translateY(-4px);
}

.formule:hover::before {
  transform: scaleX(1);
}

.formule-wide {
  grid-column: span 1;
}

@media (min-width: 768px) {
  .formule-wide {
    grid-column: span 2;
  }
}

.formule-body {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.formule-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.formule-text {
  max-width: 46ch;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(245, 240, 232, 0.62);
}

/* invitation cta --------------------------------------------------------- */
.invitation-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
  padding-block: var(--sp-4);
  border-top: 1px solid var(--rule-inv);
  border-bottom: 1px solid var(--rule-inv);
}

@media (min-width: 768px) {
  .invitation-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-5);
  }
}

.invitation-cta-text {
  max-width: 34ch;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--cream);
}

/* --------------------------------------------------------------------------
   13. NEWSLETTER — the accent band
   -------------------------------------------------------------------------- */
.newsletter {
  position: relative;
  overflow: hidden;
  background-color: var(--accent);
  color: var(--ink);
}

.newsletter .container,
.newsletter-inner {
  position: relative;
  z-index: 1;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}

@media (min-width: 1024px) {
  .newsletter-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 5rem;
    align-items: center;
  }
}

.newsletter-copy {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

.newsletter-text {
  max-width: 44ch;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(13, 12, 11, 0.75);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.newsletter-label {
  font-size: var(--fs-overline);
  font-weight: 500;
  letter-spacing: var(--track-overline);
  text-transform: uppercase;
  color: rgba(13, 12, 11, 0.7);
}

.newsletter-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .newsletter-fields {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }
}

.newsletter-input {
  flex: 1 1 16rem;
  min-width: 0;
  min-height: 3rem;
  padding: 0.875rem 1rem;
  background-color: rgba(245, 240, 232, 0.28);
  border: 1px solid rgba(13, 12, 11, 0.35);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color var(--dur) ease, background-color var(--dur) ease;
}

.newsletter-input::placeholder {
  color: rgba(13, 12, 11, 0.45);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--ink);
  background-color: rgba(245, 240, 232, 0.55);
}

/* inverted button on the accent band */
.newsletter .btn-primary {
  background-color: var(--ink);
  background-image: linear-gradient(var(--cream), var(--cream));
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 0% 100%;
  border-color: var(--ink);
  color: var(--cream);
}

.newsletter .btn-primary:hover {
  background-size: 100% 100%;
  color: var(--ink);
}

.newsletter .btn-ghost {
  border-color: rgba(13, 12, 11, 0.5);
  color: var(--ink);
}

.newsletter .btn-ghost:hover {
  background-color: var(--ink);
  border-color: var(--ink);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-block: 4rem 2rem;
  background-color: var(--ink);
  color: var(--cream);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: var(--grain-size);
  opacity: 0.07;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: var(--sp-5);
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo {
  width: auto;
  height: 3.5rem;
  object-fit: contain;
  opacity: 0.95;
}

.footer-address {
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--cream-55);
}

.footer-address a {
  color: rgba(245, 240, 232, 0.85);
  transition: color var(--dur) ease;
}

.footer-address a:hover {
  color: var(--accent);
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

@media (min-width: 480px) {
  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-nav {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

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

.footer-title {
  font-size: var(--fs-overline);
  font-weight: 500;
  letter-spacing: var(--track-overline);
  text-transform: uppercase;
  color: var(--accent);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-list a {
  position: relative;
  display: inline-block;
  font-size: 0.9375rem;
  color: rgba(245, 240, 232, 0.65);
  transition: color var(--dur) ease;
}

.footer-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s var(--ease);
}

.footer-list a:hover {
  color: var(--cream);
}

.footer-list a:hover::after {
  transform: scaleX(1);
}

.footer-base {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: var(--sp-5);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--rule-inv);
  font-size: var(--fs-small);
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.42);
}

@media (min-width: 768px) {
  .footer-base {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
  }
}

.footer-base a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: color var(--dur) ease;
}

.footer-base a:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   15. MOTION — entrance, scroll reveal
   -------------------------------------------------------------------------- */
@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroMediaIn {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

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

@media (prefers-reduced-motion: no-preference) {
  .hero-media {
    animation: heroMediaIn 1.8s var(--ease-out) both;
  }

  .hero-inner > * {
    animation: heroIn 0.9s var(--ease-out) both;
  }

  .hero-inner > *:nth-child(1) {
    animation-delay: 0.05s;
  }

  .hero-inner > *:nth-child(2) {
    animation-delay: 0.14s;
  }

  .hero-inner > *:nth-child(3) {
    animation-delay: 0.23s;
  }

  .hero-inner > *:nth-child(4) {
    animation-delay: 0.32s;
  }

  .hero-inner > *:nth-child(5) {
    animation-delay: 0.4s;
  }
}

/* progressive scroll reveal — no JS required */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .fact,
    .event-row,
    .gallery-item,
    .qa,
    .formule {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 26%;
    }
  }
}

@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;
    scroll-behavior: auto !important;
  }
}