/* ============================================================
   LABEL — Luxembourg Afro-Black Excellence Leaders
   Design system: "Gilded Noir"
   Dark editorial luxury · Fraunces + Hanken Grotesk
   ============================================================ */

/* ------------------------------------------------------------
   Self-hosted fonts (GDPR: no requests to Google servers).
   Variable WOFF2 files in ../fonts/. Neither family carries a
   wdth axis, so font-stretch stays at normal (100%).
   ------------------------------------------------------------ */

/* Fraunces — variable (opsz 9..144, wght 300..600), roman, latin */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/fraunces-roman.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Fraunces — variable, roman, latin-ext */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/fraunces-roman-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Fraunces — variable, italic, latin */
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 300 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Fraunces — variable, italic, latin-ext */
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 300 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/fraunces-italic-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Hanken Grotesk — variable (wght 400..700 covers 400/600/700), latin */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/hanken-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Hanken Grotesk — variable, latin-ext */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/hanken-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --noir: #0E0C09;
  --espresso: #1C1712;
  --surface: #251E16;
  --gold: #C9A227;
  --gold-soft: rgba(201, 162, 39, 0.35);
  --champagne: #E8D5A3;
  --terracotta: #C4502E;
  --forest: #1E3A2F;
  --ivory: #F5EFE4;
  --ash: #9A938A;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Hanken Grotesk", -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --cut: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { height: 100%; scroll-behavior: smooth; }

body {
  background: var(--noir);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1.06rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle grain for printed-matter warmth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--gold); color: var(--noir); }

img { max-width: 100%; display: block; }
a { color: var(--champagne); text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--gold); }

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h1 em, h2 em, h3 em, .display em {
  font-style: italic;
  color: var(--champagne);
}

/* ---------- Utility ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); position: relative; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
  flex: none;
}

.section { padding: clamp(4.5rem, 10vh, 8rem) 0; position: relative; }
.section-num {
  position: absolute;
  top: clamp(2rem, 6vh, 4rem);
  right: clamp(1rem, 4vw, 3rem);
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 162, 39, 0.25);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.section h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); margin-bottom: 1.2rem; max-width: 18ch; }
.lede { color: var(--ash); max-width: 58ch; font-size: 1.12rem; }

.muted { color: var(--ash); }
.gold { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 1.9rem;
  border: 1px solid var(--gold);
  color: var(--champagne);
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  clip-path: var(--cut);
  transition: color 0.35s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform 0.4s var(--ease);
  z-index: -1;
}
.btn:hover { color: var(--noir); }
.btn:hover::after { transform: translateY(0); }
.btn.solid { background: var(--gold); color: var(--noir); }
.btn.solid::after { background: var(--champagne); }
.btn.ghost { border-color: rgba(245, 239, 228, 0.25); }
.btn.terra { border-color: var(--terracotta); }
.btn.terra::after { background: var(--terracotta); }
.btn.terra:hover { color: var(--ivory); }

/* ---------- The Gold Thread ---------- */
#thread {
  position: fixed;
  top: 0;
  left: max(calc((100vw - 1240px) / 2 - 3.5rem), 1.1rem);
  width: 1px;
  height: 0;
  background: linear-gradient(to bottom, transparent, var(--gold) 12%, var(--gold) 88%, var(--champagne));
  z-index: 5;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(201, 162, 39, 0.45);
}
#thread::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.9rem 0;
  padding-top: calc(0.9rem + env(safe-area-inset-top));
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(14, 12, 9, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(201, 162, 39, 0.18);
  padding: 0.55rem 0;
  padding-top: calc(0.55rem + env(safe-area-inset-top));
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.22em;
  color: var(--ivory);
  font-weight: 500;
}
.brand img { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--gold-soft); }
.brand:hover { color: var(--ivory); }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ivory);
  position: relative;
  padding: 0.35rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-links a[aria-current="page"] { color: var(--champagne); }
.nav-cta { margin-left: 0.5rem; }
.nav .btn { padding: 0.7rem 1.4rem; font-size: 0.78rem; }
.lang-toggle {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  border: 1px solid rgba(201, 162, 39, 0.4);
  padding: 0.38rem 0.65rem;
  color: var(--champagne);
  flex: none;
}
.lang-toggle:hover { background: var(--gold); color: var(--noir); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  position: relative;
  isolation: isolate;
  padding-bottom: clamp(3rem, 9vh, 6rem);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(1.05) sepia(0.12) brightness(0.92);
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--noir) 4%, rgba(14, 12, 9, 0.55) 45%, rgba(14, 12, 9, 0.65) 100%);
}
.hero h1 {
  font-size: clamp(2.9rem, 8.5vw, 7.5rem);
  font-weight: 380;
  max-width: 13ch;
  margin: 1.2rem 0 1.6rem;
}
.hero .lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: rgba(245, 239, 228, 0.82); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }

.hero .reveal-line { display: block; overflow: hidden; }
.hero .reveal-line span {
  display: block;
  transform: translateY(110%);
  animation: lineUp 1.1s var(--ease) forwards;
}
.hero .reveal-line:nth-child(2) span { animation-delay: 0.15s; }
.hero .reveal-line:nth-child(3) span { animation-delay: 0.3s; }
@keyframes lineUp { to { transform: translateY(0); } }

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  right: clamp(1.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  color: var(--ash);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-hint::after {
  content: "";
  width: 1px;
  height: 56px;
  background: linear-gradient(var(--gold), transparent);
  animation: hintPulse 2.2s ease-in-out infinite;
}
@keyframes hintPulse { 50% { opacity: 0.3; } }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}
.stat {
  padding: 2.6rem 1.5rem;
  text-align: center;
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  height: 56%;
  width: 1px;
  background: rgba(201, 162, 39, 0.18);
}
.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  font-weight: 350;
  color: var(--champagne);
  line-height: 1;
}
.stat span {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ash);
}

/* ---------- Cards ---------- */
.card {
  background: var(--espresso);
  border: 1px solid rgba(201, 162, 39, 0.18);
  clip-path: var(--cut);
  position: relative;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0 34%, var(--terracotta) 34% 67%, var(--forest) 67% 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--gold-soft); }
.card:hover::before { opacity: 1; }
.card .sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(232, 213, 163, 0.07) 48%, transparent 62%);
  transform: translateX(-110%);
  transition: transform 0.9s var(--ease);
  pointer-events: none;
}
.card:hover .sheen { transform: translateX(110%); }

/* ---------- Bento grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.1rem;
}
.bento > * { min-width: 0; }

/* ---------- Values (LABEL acronym) ---------- */
.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: rgba(201, 162, 39, 0.18); border: 1px solid rgba(201, 162, 39, 0.18); }
.value {
  background: var(--noir);
  padding: 2.4rem 1.6rem 2.8rem;
  transition: background 0.4s var(--ease);
}
.value:hover { background: var(--espresso); }
.value b {
  display: block;
  font-family: var(--serif);
  font-size: 3.4rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1rem;
}
.value h3 { font-size: 1.25rem; margin-bottom: 0.5rem; font-family: var(--sans); font-weight: 600; }
.value p { font-size: 0.92rem; color: var(--ash); line-height: 1.6; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.1rem; }
.gallery figure { position: relative; overflow: hidden; clip-path: var(--cut); border: 1px solid rgba(201, 162, 39, 0.15); margin: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), filter 0.8s var(--ease); filter: sepia(0.18) saturate(1.02); }
.gallery figure:hover img { transform: scale(1.05); filter: sepia(0) saturate(1.1); }
.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.2rem 1.2rem 1rem;
  background: linear-gradient(transparent, rgba(14, 12, 9, 0.88));
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--champagne);
}
.g-lg { grid-column: span 7; aspect-ratio: 16 / 10; }
.g-sm { grid-column: span 5; aspect-ratio: 4 / 3.57; }
.g-third { grid-column: span 4; aspect-ratio: 4 / 3; }

/* ---------- Event tiles ---------- */
.event-hero {
  grid-column: span 8;
  padding: clamp(1.8rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  isolation: isolate;
}
.event-hero .bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.event-hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.38; filter: sepia(0.2); }
.event-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(15deg, rgba(14,12,9,0.92) 30%, rgba(14,12,9,0.25)); }
.event-hero h3 { font-size: clamp(1.9rem, 3.4vw, 3rem); margin: 0.6rem 0 0.8rem; }
.event-meta { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--champagne); margin-bottom: 1.4rem; }
.event-meta span { display: flex; align-items: center; gap: 0.45rem; }
.event-meta svg { width: 15px; height: 15px; stroke: var(--gold); }

.countdown-tile {
  grid-column: span 4;
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background: var(--forest);
  border-color: rgba(232, 213, 163, 0.25);
}
.countdown { display: flex; justify-content: center; gap: 0.4rem; margin: 1.2rem 0 0.4rem; }
.countdown .unit { flex: 1; max-width: 86px; }
.countdown b {
  display: block;
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(2.2rem, 3.4vw, 3.2rem);
  color: var(--champagne);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.countdown i {
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 239, 228, 0.6);
}

.event-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 1.8rem clamp(1rem, 3vw, 2.2rem);
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
  transition: background 0.35s var(--ease);
}
.event-row:first-child { border-top: 1px solid rgba(201, 162, 39, 0.15); }
.event-row:hover { background: var(--espresso); }
.event-date { font-family: var(--serif); color: var(--gold); text-align: center; line-height: 1.1; }
.event-date b { display: block; font-size: 2.4rem; font-weight: 350; }
.event-date span { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; }
.event-row h3 { font-size: 1.45rem; margin-bottom: 0.3rem; }
.event-row p { color: var(--ash); font-size: 0.95rem; }
.event-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--gold-soft);
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.event-tag.terra { border-color: rgba(196, 80, 46, 0.5); color: var(--terracotta); }
.event-tag.past { border-color: rgba(154, 147, 138, 0.4); color: var(--ash); }

/* ---------- Directory ---------- */
.dir-controls { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2.4rem 0; align-items: center; }
.dir-actions { display: flex; gap: 0.7rem; flex: none; }
.dir-act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.6rem 1.15rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--espresso);
  border: 1px solid rgba(201, 162, 39, 0.35);
  clip-path: var(--cut);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.dir-act-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; flex: none; }
.dir-act-btn:hover { border-color: var(--gold); }
.dir-act-btn.active { background: var(--gold); color: var(--noir); border-color: var(--gold); }
.dir-act-btn:focus-visible { outline: 2px solid var(--champagne); outline-offset: 2px; }
.dir-search {
  flex: 1 1 280px;
  background: var(--espresso);
  border: 1px solid rgba(201, 162, 39, 0.25);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.95rem 1.2rem;
  clip-path: var(--cut);
}
.dir-search::placeholder { color: var(--ash); }
.dir-search:focus { outline: none; border-color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  background: transparent;
  border: 1px solid rgba(245, 239, 228, 0.2);
  color: var(--ash);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.chip:hover { border-color: var(--gold); color: var(--champagne); }
.chip.active { background: var(--gold); border-color: var(--gold); color: var(--noir); }

.dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.biz-card { padding: 2rem 1.7rem; display: flex; flex-direction: column; gap: 0.8rem; min-height: 250px; }
.biz-card .cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.biz-card h3 { font-size: 1.6rem; }
.biz-card p { color: var(--ash); font-size: 0.95rem; flex: 1; }
.biz-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.biz-act {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.4rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 162, 39, 0.35);
  clip-path: var(--cut);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.biz-act svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.7; flex: none; }
.biz-act:hover, .biz-act:focus-visible { background: var(--gold); color: var(--noir); }
.biz-act:focus-visible { outline: 2px solid var(--champagne); outline-offset: 2px; }

.biz-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 0.4rem; }
.biz-foot .loc { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ash); display: flex; align-items: center; gap: 0.4rem; }
.fav {
  background: none;
  border: 1px solid rgba(245, 239, 228, 0.2);
  color: var(--ash);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.fav:hover { border-color: var(--gold); color: var(--gold); }
.fav.on { background: var(--gold); border-color: var(--gold); color: var(--noir); }
.biz-card.cta-card {
  border-style: dashed;
  background: transparent;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ---------- Board ---------- */
.board-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.member { text-align: left; }
.member .ph {
  aspect-ratio: 3 / 3.4;
  overflow: hidden;
  clip-path: var(--cut);
  border: 1px solid rgba(201, 162, 39, 0.2);
  margin-bottom: 1rem;
  position: relative;
}
.member img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: grayscale(0.85) sepia(0.25) contrast(1.02); transition: filter 0.7s var(--ease), transform 0.7s var(--ease); }
.member:hover img { filter: grayscale(0) sepia(0); transform: scale(1.04); }
.member h3 { font-size: 1.2rem; font-family: var(--sans); font-weight: 600; }
.member span { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }

/* ---------- Quote band ---------- */
.quote-band { text-align: center; padding: clamp(5rem, 14vh, 9rem) 0; position: relative; }
.quote-band blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  font-weight: 350;
  line-height: 1.3;
  max-width: 26ch;
  margin: 0 auto;
  color: var(--champagne);
}
.quote-band cite { display: block; margin-top: 1.6rem; font-family: var(--sans); font-style: normal; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ash); }

/* ---------- Link symbol (Nkonsonkonson divider) ---------- */
.link-divider { display: flex; justify-content: center; padding: 0.5rem 0 2rem; }
.link-divider svg { width: 56px; height: 24px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 0.5rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--espresso);
  border: 1px solid rgba(201, 162, 39, 0.22);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.9rem 1.1rem;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A227' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.checkline { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.9rem; color: var(--ash); }
.checkline input { width: auto; margin-top: 0.3rem; accent-color: var(--gold); }

/* ---------- Tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: stretch; }
.tier { padding: 2.4rem 1.9rem; display: flex; flex-direction: column; }
.tier.featured { border-color: var(--gold); background: linear-gradient(160deg, var(--espresso), #2A2114); }
.tier .price { font-family: var(--serif); font-size: 2.6rem; color: var(--champagne); margin: 0.8rem 0 0.2rem; font-weight: 350; }
.tier ul { list-style: none; margin: 1.4rem 0 2rem; flex: 1; display: grid; gap: 0.7rem; }
.tier li { padding-left: 1.6rem; position: relative; font-size: 0.95rem; color: var(--ash); }
.tier li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px; border: 1.5px solid var(--gold); border-radius: 50%; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid rgba(201, 162, 39, 0.18); }
.faq-item:first-of-type { border-top: 1px solid rgba(201, 162, 39, 0.18); }
.faq-item summary {
  font-family: var(--serif);
  font-size: 1.3rem;
  padding: 1.5rem 2.6rem 1.5rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.8rem;
  color: var(--gold);
  transition: transform 0.35s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .a { padding: 0 0 1.6rem; color: var(--ash); max-width: 65ch; }

/* ---------- Partners ---------- */
.partners { display: flex; flex-wrap: wrap; gap: 0.8rem 2.8rem; align-items: center; justify-content: center; }
.partners span {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ash);
  transition: color 0.35s var(--ease);
}
.partners span:hover { color: var(--champagne); }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: clamp(5rem, 14vh, 8.5rem) 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 70% 90% at 50% 110%, rgba(201, 162, 39, 0.18), transparent 70%);
}
.cta-band h2 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); max-width: 16ch; margin: 0 auto 1.2rem; }
.cta-band .lede { margin: 0 auto 2.4rem; }

/* ---------- Newsletter ---------- */
.newsletter-box {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem);
}
.newsletter-form { display: flex; gap: 0.7rem; }
.newsletter-form input {
  flex: 1;
  background: var(--noir);
  border: 1px solid rgba(201, 162, 39, 0.3);
  color: var(--ivory);
  padding: 1rem 1.2rem;
  font-family: var(--sans);
  font-size: 1rem;
}
.newsletter-form input:focus { outline: none; border-color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  padding: 4.5rem 0 2.5rem;
  margin-top: 2rem;
  background: linear-gradient(rgba(28, 23, 18, 0.5), var(--noir));
  position: relative;
  z-index: 2;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 2.5rem; margin-bottom: 3.5rem; }
.footer-grid h4 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.footer-grid ul { list-style: none; display: grid; gap: 0.6rem; }
.footer-grid a { color: var(--ash); font-size: 0.95rem; }
.footer-grid a:hover { color: var(--champagne); }
.footer-brand p { color: var(--ash); font-size: 0.95rem; max-width: 36ch; margin-top: 1rem; }
.legal {
  border-top: 1px solid rgba(245, 239, 228, 0.1);
  padding-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--ash);
}
.legal a { color: var(--ash); }
.legal .rcs { letter-spacing: 0.05em; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

/* ---------- Bottom tab bar (mobile app shell) ---------- */
.tabbar { display: none; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(9rem, 22vh, 13rem) 0 clamp(3rem, 7vh, 5rem); }
.page-hero h1 { font-size: clamp(2.6rem, 6.5vw, 5.2rem); max-width: 15ch; margin-bottom: 1.4rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 5.5rem;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--gold);
  color: var(--noir);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.8rem 1.5rem;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s var(--ease);
  clip-path: var(--cut);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   RESPONSIVE — tablet
   ============================================================ */
@media (max-width: 1024px) {
  .values { grid-template-columns: repeat(2, 1fr); }
  .value:last-child { grid-column: 1 / -1; }
  .board-grid { grid-template-columns: repeat(3, 1fr); }
  .dir-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .event-hero { grid-column: span 12; }
  .countdown-tile { grid-column: span 12; padding: 2.6rem 1.6rem; }
  #thread { display: none; }
}

/* ============================================================
   RESPONSIVE — mobile: the app experience
   ============================================================ */
@media (max-width: 760px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); font-size: 1rem; }

  .nav-links { display: none; }
  .brand { font-size: 1.25rem; }
  .brand img { width: 36px; height: 36px; }
  .site-header { background: rgba(14, 12, 9, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: rgba(201, 162, 39, 0.15); padding: 0.6rem 0; padding-top: calc(0.6rem + env(safe-area-inset-top)); }

  .toast { bottom: calc(5.5rem + env(safe-area-inset-bottom)); }

  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 1.8rem 1rem; }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(odd) { border-top: 1px solid rgba(201, 162, 39, 0.12); }
  .stat:nth-child(even) { border-top: 1px solid rgba(201, 162, 39, 0.12); }
  .stat:nth-child(-n+2) { border-top: none; }

  .values { grid-template-columns: 1fr; }
  .value:last-child { grid-column: auto; }
  /* Bento cards stack on phones — !important beats per-page inline spans */
  .bento { grid-template-columns: 1fr; }
  .bento > * { grid-column: 1 / -1 !important; }

  /* Page heroes: phones don't need a quarter-screen of air */
  .page-hero { padding: 6.8rem 0 2.4rem; }
  .page-hero .lede { font-size: 0.98rem; }

  /* Directory controls: search, then Near/Map as one clean row, then chips */
  .dir-controls { gap: 0.8rem; margin: 1.6rem 0 1.4rem; }
  .dir-search { flex: 1 1 100%; }
  .dir-actions { flex: 1 1 100%; width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.7rem; }
  .dir-act-btn { width: 100%; min-width: 0; }
  .gallery { grid-template-columns: 1fr; }
  .g-lg, .g-sm, .g-third { grid-column: span 12; aspect-ratio: 16 / 11; }
  .dir-grid { grid-template-columns: 1fr; }
  .board-grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
  .tiers { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .newsletter-box { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .event-row { grid-template-columns: 70px 1fr; gap: 1.1rem; }
  .event-row .event-actions { grid-column: 2; }
  .event-date b { font-size: 1.7rem; }
  .hero { min-height: 92svh; }
  .scroll-hint { display: none; }
  .section-num { font-size: 2.6rem; top: 1.4rem; }

  /* App-style bottom tab bar */
  .tabbar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(20, 16, 12, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(201, 162, 39, 0.25);
    padding: 0.5rem 0.3rem calc(0.5rem + env(safe-area-inset-bottom));
  }
  .tabbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ash);
    padding: 0.3rem 0;
    transition: color 0.3s var(--ease);
  }
  .tabbar svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; }
  .tabbar a.active, .tabbar a:hover { color: var(--gold); }
  .tabbar a.active svg { filter: drop-shadow(0 0 6px rgba(201, 162, 39, 0.5)); }

  /* Tab bar: active indicator + pressed feedback + 48px targets */
  .tabbar a {
    position: relative;
    justify-content: center;
    min-height: 48px;
    transition: color 0.3s var(--ease), transform 0.18s var(--ease);
  }
  .tabbar a::before {
    content: "";
    position: absolute;
    top: -0.5rem;
    left: 50%;
    width: 30px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.3s var(--ease);
  }
  .tabbar a.active::before { transform: translateX(-50%) scaleX(1); }
  .tabbar a:active { transform: scale(0.92); }

  /* Mobile type rhythm (375/390/430) */
  .hero h1 { font-size: clamp(2.35rem, 10.5vw, 3.6rem); }
  .page-hero h1 { font-size: clamp(2.05rem, 9vw, 3rem); }
  .section h2 { font-size: clamp(1.72rem, 7vw, 2.5rem); }
  .cta-band h2 { font-size: clamp(1.9rem, 8vw, 2.8rem); }
  .lede { font-size: 1.04rem; }
  .hero .lede { font-size: 1.02rem; }
  .hero h1, .page-hero h1, .section h2, .cta-band h2 { overflow-wrap: break-word; }

  /* Horizontal-overflow guards */
  .gallery > *, .tiers > *, .stats > *, .event-row > *, .newsletter-box > * { min-width: 0; }
  .newsletter-form input { min-width: 0; }
  .section-num { max-width: 38vw; overflow: hidden; }

  /* Header: tighter, keep lang toggle clear of the brand */
  .nav { gap: 1rem; }
  .brand { letter-spacing: 0.16em; gap: 0.6rem; }
  .lang-toggle { padding: 0.34rem 0.55rem; }

  /* Forms: 16px floor (no iOS zoom) + 48px controls */
  .field input, .field select, .field textarea, .dir-search, .newsletter-form input { font-size: 16px; }
  .field input, .field select, .dir-search, .newsletter-form input { min-height: 48px; }
  .field textarea { min-height: 140px; }
  .newsletter-form .btn { justify-content: center; }
  .checkline { gap: 0.85rem; padding: 0.4rem 0; }
  .checkline input { width: 22px; height: 22px; flex: none; margin-top: 0.2rem; }

  /* Cards: friendlier small-screen padding */
  .biz-card { padding: 1.7rem 1.35rem; min-height: 0; }
  .tier { padding: 2rem 1.4rem; }
  .value { padding: 2rem 1.4rem 2.3rem; }
  .countdown-tile { padding: 2.2rem 1.4rem; }

  /* Events + countdown */
  .event-hero { min-height: 320px; }
  .countdown { gap: 0.3rem; }
  .countdown .unit { min-width: 0; }
  .countdown b { font-size: clamp(1.7rem, 8.5vw, 2.6rem); }

  /* Directory: stacked controls, chips become a scroll row with edge fade */
  .dir-controls { flex-direction: column; align-items: stretch; gap: 0.9rem; margin: 1.8rem 0 2rem; }
  .dir-search { flex: none; width: 100%; }
  /* Column flex items don't reliably stretch here — size them explicitly,
     or they fall back to max-content and overflow the viewport on phones */
  .dir-actions { width: 100%; min-width: 0; }
  .dir-act-btn { min-width: 0; }
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: calc(100% + 2 * clamp(1.25rem, 4vw, 3rem));
    margin-inline: calc(-1 * clamp(1.25rem, 4vw, 3rem));
    padding: 2px clamp(1.25rem, 4vw, 3rem) 8px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 clamp(1rem, 3vw, 2.4rem), #000 calc(100% - clamp(1rem, 3vw, 2.4rem)), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 clamp(1rem, 3vw, 2.4rem), #000 calc(100% - clamp(1rem, 3vw, 2.4rem)), transparent);
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; white-space: nowrap; min-height: 40px; }
}

/* ============================================================
   RESPONSIVE — small phones: stacked CTAs, tighter tiles
   ============================================================ */
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 0.8rem; margin-top: 2rem; }
  .hero-ctas .btn, .cta-band .btn { width: 100%; justify-content: center; }
  .btn { padding: 0.95rem 1.4rem; }
  .event-hero { min-height: 280px; }
  .stat { padding: 1.5rem 0.8rem; }
}

/* ============================================================
   RESPONSIVE — narrow phones (≈360px)
   ============================================================ */
@media (max-width: 380px) {
  .wrap { padding-inline: 1.1rem; }
  .brand { font-size: 1.1rem; letter-spacing: 0.12em; }
  .brand img { width: 32px; height: 32px; }
  .lang-toggle { font-size: 0.7rem; letter-spacing: 0.1em; padding: 0.3rem 0.5rem; }
  .hero h1 { font-size: clamp(2.1rem, 11vw, 2.6rem); }
  .page-hero h1 { font-size: 1.9rem; }
  .countdown b { font-size: 1.55rem; }
  .countdown i { font-size: 0.6rem; letter-spacing: 0.14em; }
  .chips { margin-inline: -1.1rem; padding-inline: 1.1rem; }
}

/* ============================================================
   RESPONSIVE — landscape phones: don't crop hero content
   ============================================================ */
@media (max-width: 940px) and (max-height: 450px) and (orientation: landscape) {
  .hero { min-height: auto; padding-top: 7rem; padding-bottom: 3rem; }
  .page-hero { padding: 6.5rem 0 2.5rem; }
  .event-hero { min-height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero .reveal-line span { transform: none; }
  .tabbar a:active { transform: none; }
}
