:root {
  /* Lombard Odier–inspired LIGHT palette */
  --bg: #f6f1ea;            /* warm ivory */
  --bg-2: #fbf8f3;          /* lighter surface */
  --bg-3: #ffffff;          /* card */
  --line: #e2d8ca;          /* hairlines */
  --ink: #20140f;           /* near-black ink */
  --ink-soft: #5a4f45;      /* secondary */
  --ink-faint: #8c7f70;     /* metadata */
  --accent: #8c2f2a;        /* burgundy / oxblood */
  --accent-warm: #a8462e;   /* terracotta */
  --gold: #9c7b3a;          /* restrained metallic (legible on light) */

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Work Sans', system-ui, sans-serif;

  --maxw: 1140px;
  --space: clamp(4.5rem, 9vw, 9rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 5vw, 3rem);
  background: rgba(246, 241, 234, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(246,241,234,.92); }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); }
.brand-mark { width: 28px; height: 28px; color: var(--ink); }
.brand-name {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600;
  letter-spacing: .03em;
}
.site-nav { display: flex; gap: clamp(1rem, 3vw, 2.4rem); }
.site-nav a {
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); transition: color .2s ease; position: relative;
}
.site-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 1px;
  background: var(--accent); transition: width .25s ease;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a:hover::after { width: 100%; }

/* ---------- Layout primitives ---------- */
section { padding-inline: clamp(1.25rem, 5vw, 3rem); }
.section-head {
  max-width: var(--maxw); margin: 0 auto 2.6rem;
  display: flex; align-items: center; gap: 1.1rem;
}
.section-head--tight { margin-inline: 0; }
.rule { display: inline-block; width: 46px; height: 1px; background: var(--accent); flex: none; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: .005em;
}
.eyebrow, .kicker {
  font-size: .76rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: url('assets/hero-charity.png') center/cover no-repeat;
  opacity: .42;
}
.hero-bg::after { content:''; position:absolute; inset:0; background: linear-gradient(to bottom, rgba(246,241,234,.4), var(--bg) 92%); }
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  padding-top: clamp(4.5rem, 13vh, 9rem); padding-bottom: var(--space);
  text-align: center;
}
.hero .eyebrow { display: block; margin-bottom: 1.4rem; }
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3.4rem, 12vw, 8rem); line-height: .96; letter-spacing: -.01em;
  margin-bottom: 1.5rem; color: var(--ink);
}
.hero-lede {
  max-width: 42ch; margin: 0 auto 2.6rem; color: var(--ink-soft);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem); line-height: 1.7;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: .85rem 1.7rem; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  border: 1px solid var(--accent); transition: all .25s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-warm); border-color: var(--accent-warm); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: rgba(140,47,42,.06); }

/* ---------- Giving (primary) ---------- */
.giving { padding-block: var(--space); }
.giving-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: center;
}
.giving-media { aspect-ratio: 16/11; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 60px -32px rgba(32,20,15,.35); }
.giving-media img { width: 100%; height: 100%; object-fit: cover; }
.giving-text .lead {
  font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.4; color: var(--ink); margin-bottom: 1.2rem;
}
.giving-text p { color: var(--ink-soft); margin-bottom: 1rem; }
.giving-text strong { color: var(--accent); font-weight: 600; }
.giving-note { font-size: .9rem; color: var(--ink-faint); border-left: 2px solid var(--line); padding-left: 1rem; }

/* ---------- Featured video ---------- */
.featured { padding-block: var(--space); border-top: 1px solid var(--line); }
.video-wrap {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: center;
}
.video-frame {
  position: relative; aspect-ratio: 16/9; width: 100%;
  border: 1px solid var(--line); background: #000; overflow: hidden;
  box-shadow: 0 24px 60px -28px rgba(32,20,15,.35);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-meta .kicker { display: block; margin-bottom: 1rem; }
.video-meta h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; margin-bottom: 1rem;
}
.video-meta p { color: var(--ink-soft); margin-bottom: 1.2rem; font-size: .98rem; }
.quote-inline {
  font-family: var(--font-display); font-style: italic; font-size: 1.2rem;
  line-height: 1.4; color: var(--accent); border-left: 2px solid var(--accent);
  padding-left: 1rem;
}
.text-link { color: var(--accent); font-weight: 500; font-size: .92rem; letter-spacing: .03em; }
.text-link:hover { color: var(--accent-warm); }

/* ---------- Press grid ---------- */
.press { padding-block: var(--space); border-top: 1px solid var(--line); }
.press-intro { max-width: var(--maxw); margin: -1.4rem auto 2.6rem; color: var(--ink-faint); }
.press-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem;
}
.press-card {
  background: var(--bg-3); border: 1px solid var(--line);
  display: flex; flex-direction: column; overflow: hidden;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.press-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 20px 40px -26px rgba(32,20,15,.4); }
.press-media { display: block; aspect-ratio: 16/10; overflow: hidden; }
.press-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.press-card:hover .press-media img { transform: scale(1.05); }
.press-text { padding: 1.3rem 1.4rem 1.6rem; }
.press-meta {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .6rem; font-weight: 600;
}
.press-text h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.3rem; line-height: 1.22;
}
.press-text h3 a { transition: color .2s ease; }
.press-text h3 a:hover { color: var(--accent); }

/* ---------- Presence ---------- */
.presence { padding-block: var(--space); border-top: 1px solid var(--line); }
.place-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem;
}
.place-card {
  background: var(--bg-3); border: 1px solid var(--line); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.place-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 20px 40px -26px rgba(32,20,15,.4); }
.place-media { aspect-ratio: 16/9; overflow: hidden; }
.place-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.place-card:hover .place-media img { transform: scale(1.05); }
.place-text { padding: 1.4rem 1.5rem 1.7rem; }
.place-text h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; margin-bottom: .6rem; }
.place-text p { color: var(--ink-soft); font-size: .96rem; }
.place-text strong { color: var(--accent); font-weight: 600; }

/* ---------- Gibraltar (legacy) ---------- */
.gibraltar { padding-block: var(--space); border-top: 1px solid var(--line); }
.gib-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: center;
}
.gib-media { aspect-ratio: 4/3; overflow: hidden; border: 1px solid var(--line); }
.gib-media img { width: 100%; height: 100%; object-fit: cover; }
.gib-text > p { color: var(--ink-soft); margin-bottom: 1.6rem; }
.record-list { list-style: none; }
.record-list li {
  padding: 1rem 0; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: .25rem;
}
.record-list li:last-child { border-bottom: 1px solid var(--line); }
.record-list a {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  color: var(--ink); transition: color .2s ease;
}
.record-list a:hover { color: var(--accent); }
.record-list span { font-size: .82rem; color: var(--ink-faint); letter-spacing: .04em; }

/* ---------- Foundation ---------- */
.foundation { padding-block: var(--space); border-top: 1px solid var(--line); }
.foundation-text { max-width: var(--maxw); margin: 0 auto; color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Legacy quote ---------- */
.legacy { padding-block: var(--space); border-top: 1px solid var(--line); text-align: center; background: var(--bg-2); }
.legacy blockquote { max-width: 34ch; margin: 0 auto; }
.legacy p {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.7rem, 4.5vw, 2.8rem); line-height: 1.3; color: var(--ink);
}
.legacy cite { display: block; margin-top: 1.6rem; font-style: normal; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(2.5rem,6vw,4rem) clamp(1.25rem,5vw,3rem); background: var(--bg); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.footer-inner .brand-name { display: block; margin-bottom: .6rem; color: var(--ink); }
.footer-inner p { color: var(--ink-faint); font-size: .9rem; letter-spacing: .03em; }
.footer-note { margin-top: 1rem; font-size: .78rem; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .press-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .video-wrap { grid-template-columns: 1fr; }
  .gib-grid { grid-template-columns: 1fr; }
  .giving-grid { grid-template-columns: 1fr; }
  .place-grid { grid-template-columns: 1fr; }
  .site-nav { display: none; }
}
@media (max-width: 560px) {
  .press-grid { grid-template-columns: 1fr; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Journey map ---------- */
.journey { padding-block: var(--space); border-top: 1px solid var(--line); }
.map-frame {
  max-width: var(--maxw); margin: 0 auto;
  border: 1px solid var(--line); background: var(--bg-3);
  box-shadow: 0 24px 60px -32px rgba(32,20,15,.35);
  overflow: hidden;
}
#journeyMap {
  width: 100%; height: clamp(360px, 56vw, 560px);
  background: var(--bg-2);
}
/* Leaflet light-theme harmonisation */
.leaflet-container { font-family: var(--font-body); background: var(--bg-2); }
.leaflet-control-attribution {
  background: rgba(255,255,255,.78) !important;
  color: var(--ink-faint) !important; font-size: .68rem;
}
.leaflet-control-attribution a { color: var(--ink-soft) !important; }
.leaflet-bar a {
  background: var(--bg-3); color: var(--ink); border-bottom-color: var(--line);
}
.leaflet-bar a:hover { background: var(--bg); color: var(--accent); }
.leaflet-bar { border: 1px solid var(--line); box-shadow: 0 6px 18px -10px rgba(32,20,15,.4); }

/* Numbered pins */
.journey-pin {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #fff;
  border: 2px solid var(--bg-3);
  box-shadow: 0 4px 10px -3px rgba(32,20,15,.55);
}
.journey-pin .jp-num {
  font-family: var(--font-body); font-weight: 600; font-size: .76rem; line-height: 1;
}
.journey-tip {
  background: var(--ink); color: var(--bg); border: none;
  font-family: var(--font-body); font-size: .8rem; letter-spacing: .02em;
  padding: .3rem .55rem; border-radius: 3px; box-shadow: 0 6px 16px -8px rgba(0,0,0,.5);
}
.journey-tip::before { border-top-color: var(--ink); }

/* Ordered legend (clickable) */
.journey-legend {
  max-width: var(--maxw); margin: 1.4rem auto 0;
  list-style: none; counter-reset: jl;
  display: flex; flex-wrap: wrap; gap: .55rem .7rem;
  font-size: .9rem;
}
.journey-legend li {
  display: inline-flex; align-items: center; gap: .5rem; counter-increment: jl;
  padding: .4rem .85rem .4rem .45rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-3); color: var(--ink-soft);
  cursor: pointer; transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.journey-legend li:hover, .journey-legend li:focus-visible {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-1px); outline: none;
}
.journey-legend .jl-name { font-weight: 500; }
.journey-legend .jl-dot {
  display: grid; place-items: center; flex: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: .68rem; font-weight: 600;
}
.journey-legend .jl-dot::before { content: counter(jl); }

@media (max-width: 640px) {
  .journey-legend { gap: .45rem; font-size: .82rem; }
}

/* ---------- Map popups & casino map ---------- */
.section-subhead { margin-top: 3.2rem; }
.section-subhead h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem); color: var(--ink); line-height: 1.1;
}
#casinoMap { width: 100%; height: clamp(360px, 52vw, 520px); background: var(--bg-2); }

.leaflet-popup-content-wrapper {
  background: var(--bg-3); color: var(--ink);
  border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 16px 40px -18px rgba(32,20,15,.5);
}
.leaflet-popup-tip { background: var(--bg-3); border: 1px solid var(--line); }
.leaflet-popup-content { margin: 0; }
.leaflet-popup-close-button { color: var(--ink-faint) !important; }
.leaflet-popup-close-button:hover { color: var(--accent) !important; }
.map-pop { padding: 1rem 1.1rem 1.05rem; max-width: 250px; }
.map-pop-eyebrow {
  display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: .35rem;
}
.map-pop h4 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.18rem;
  line-height: 1.15; color: var(--ink); margin: 0 0 .4rem;
}
.map-pop p { font-size: .88rem; line-height: 1.5; color: var(--ink-soft); margin: 0; }
.map-pop strong { color: var(--accent); font-weight: 600; }

/* ---------- Casino legend (clickable) ---------- */
.casino-legend {
  max-width: var(--maxw); margin: 1.4rem auto 0;
  list-style: none; counter-reset: cl;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem 1.5rem;
}
.casino-legend li {
  counter-increment: cl;
  display: flex; align-items: baseline; gap: .6rem;
  padding: .55rem .2rem; border-bottom: 1px solid var(--line);
  cursor: pointer; transition: color .2s ease;
}
.casino-legend li:hover, .casino-legend li:focus-visible {
  color: var(--accent); outline: none;
}
.casino-legend .jl-dot {
  display: grid; place-items: center; flex: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: .68rem; font-weight: 600;
  transform: translateY(3px);
}
.casino-legend .jl-dot::before { content: counter(cl); }
.casino-legend .cl-name { font-weight: 500; color: inherit; }
.casino-legend .cl-place {
  margin-left: auto; font-size: .82rem; color: var(--ink-faint); white-space: nowrap;
}
.casino-legend li:hover .cl-place { color: var(--accent); }
@media (max-width: 640px) {
  .casino-legend { grid-template-columns: 1fr; gap: 0; }
  .casino-legend .cl-place { font-size: .76rem; }
}
