/* ==========================================================
   TODO: BRAND COLORS. Change the palette here, one place only.
   ========================================================== */
:root{
  --bg: #FFFFFF;            /* white base */
  --bg-soft: #F4F4F4;
  --ink: #0A0A0C;           /* near-black text */
  --ink-dim: rgba(10,10,12,.55);
  --charcoal: #242426;       /* primary pill actions */
  --coral: #FF4D2E;         /* primary accent, CTAs */
  --volt: #5B8C00;          /* secondary accent, darkened for white bg */
  --cobalt: #3E63FF;        /* tertiary accent */
  --card: rgba(0,0,0,.045);
  --line: rgba(0,0,0,.12);
  --radius: 20px;
  --nav-h: 64px;
  --font: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

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

html{
  scroll-padding-top: calc(var(--nav-h) + env(safe-area-inset-top) + 12px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference){
  html{ scroll-behavior: smooth; }
}

body{
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
}
body.locked{ overflow: hidden; }

img, video{ display: block; max-width: 100%; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul{ list-style: none; }

:focus-visible{
  outline: 3px solid var(--volt);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection{ background: var(--coral); color: #fff; }

/* ============ FIXED FULL-PAGE VIDEO BACKDROP ============ */
/* Backdrop hidden: page sits on the plain white body background instead */
.backdrop{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg);
}
.backdrop__grad,
.backdrop__vid{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.backdrop__vid{
  object-fit: cover;
  opacity: 0;
  transition: opacity .7s ease;
}
.backdrop__vid.is-on{ opacity: 1; }
.backdrop__grad{
  opacity: 1;
  transition: opacity .7s ease;
}
/* Constant dark overlay so copy always passes contrast over any video */
.backdrop__overlay{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,12,.55) 0%, rgba(10,10,12,.38) 45%, rgba(10,10,12,.78) 100%),
    rgba(10,10,12,.32);
  pointer-events: none;
}

/* Gradient fallback skins (used by backdrop, cards, modal, tiles) */
.grad-0{ background: linear-gradient(135deg, #2A1410 0%, var(--coral) 55%, #FF8A3D 100%); }
.grad-1{ background: linear-gradient(135deg, #101A08 0%, #6E9B1F 50%, var(--volt) 100%); }
.grad-2{ background: linear-gradient(135deg, #0A1030 0%, var(--cobalt) 55%, #7EC9FF 100%); }
.grad-3{ background: linear-gradient(135deg, #1F0B22 0%, #B33FA8 45%, var(--coral) 100%); }
.grad-anim{ background-size: 200% 200%; animation: gradDrift 14s ease-in-out infinite alternate; }
@keyframes gradDrift{
  from{ background-position: 0% 0%; }
  to{ background-position: 100% 100%; }
}

/* All page content rides above the backdrop */
.page{ position: relative; z-index: 1; }

/* ============ SCROLL PROGRESS BAR ============ */
.progress{
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  z-index: 60;
  pointer-events: none;
}
.progress__bar{
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--coral), var(--volt));
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ============ NAV ============ */
.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: calc(var(--nav-h) + env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: env(safe-area-inset-top) max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled{
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__logo{
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.nav__logo span{ color: var(--ink); }
.nav__links{
  display: none;
  align-items: center;
  gap: 28px;
}
.nav__links a{
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink-dim);
  transition: color .2s ease;
}
.nav__links a:hover{ color: var(--ink); }
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: 999px;
  padding: 13px 26px;
  transition: transform .25s cubic-bezier(.2,.9,.3,1.4), background .2s ease, color .2s ease, border-color .2s ease;
  will-change: transform;
}
.btn:hover{ transform: translateY(-2px) scale(1.03); }
.btn:active{ transform: translateY(0) scale(.98); }
.btn--coral,
.btn--volt{ background: var(--charcoal); color: #fff; }
.btn--coral:hover,
.btn--volt:hover{ background: #343438; }
.btn--ghost{ border: 2px solid var(--line); color: var(--ink); }
.btn--ghost:hover{ border-color: var(--ink); }
.btn--sm{ padding: 10px 20px; font-size: .9rem; }
.nav__cta{ display: none; }

/* Hamburger */
.nav__burger{
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  border-radius: 12px;
}
.nav__burger span{
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav__burger[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.menu{
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(255,255,255,.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(32px + env(safe-area-inset-top)) max(32px, env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) max(32px, env(safe-area-inset-left));
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.menu.open{ opacity: 1; visibility: visible; }
.menu a{
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  padding: 10px 0;
  color: var(--ink);
  transform: translateY(14px);
  opacity: 0;
  transition: transform .4s ease, opacity .4s ease;
}
.menu.open a{ transform: translateY(0); opacity: 1; }
.menu.open a:nth-child(2){ transition-delay: .05s; }
.menu.open a:nth-child(3){ transition-delay: .1s; }
.menu.open a:nth-child(4){ transition-delay: .15s; }
.menu.open a:nth-child(5){ transition-delay: .2s; }
.menu a:hover{ color: var(--coral); }

@media (min-width: 820px){
  .nav{ padding: 0 40px; }
  .nav__links{ display: flex; }
  .nav__cta{ display: inline-flex; }
  .nav__burger, .menu{ display: none; }
}

/* ============ SECTION SHELLS / TYPE ============ */
.wrap{
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}
section{ position: relative; }
.kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--volt);
  margin-bottom: 18px;
}
.kicker::before{
  content: "";
  width: 26px; height: 2px;
  background: var(--volt);
  border-radius: 2px;
}
.h2{
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.sub{
  color: var(--ink-dim);
  font-size: clamp(1rem, 2.3vw, 1.15rem);
  max-width: 56ch;
}

/* Scroll reveals */
.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.reveal.in{
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--i, 0) * 60ms);
}

/* ============ POSH-STYLE LANDING ============ */
.poshland{
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + env(safe-area-inset-top) + 24px) 0 calc(28px + env(safe-area-inset-bottom));
  overflow: hidden;
}
.poshland__word{
  width: min(1180px, 100% - 40px);
  margin: 0 auto;
  text-align: right;
  font-size: clamp(64px, 14vw, 240px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -0.045em;
  color: var(--ink);
  pointer-events: none;
}
.poshland__word .dot{ color: var(--ink); }

/* The horizontal film strip */
.poshland__strip{
  margin-top: clamp(18px, 4vh, 48px);
  width: 100%;
  overflow: hidden;
  cursor: ew-resize;
}
.poshland__track{
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px clamp(20px, 8vw, 160px);
  width: max-content;
  will-change: transform;
}
.poshcard{
  flex: 0 0 auto;
  width: clamp(165px, 15.5vw, 250px);
  height: auto;
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-soft);
  cursor: pointer;
  position: relative;
  opacity: .6;
  transform: scale(.96);
  transition: opacity .45s ease, transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.poshcard.is-active{
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 18px 50px rgba(0,0,0,.14);
}
.poshcard__media{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background-color: var(--bg-soft);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
/* Faint label so blank placeholder cards aren't anonymous (until images land) */
.poshcard__label{
  position: relative;
  width: 100%;
  padding: 12px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.2;
  color: var(--ink-dim);
  background: linear-gradient(to top, rgba(0,0,0,.05), transparent);
}
.poshcard.has-img .poshcard__label{
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
}

/* Featured listing below the strip */
.poshland__feature{ margin-top: clamp(22px, 4vh, 44px); }
.poshland__title{
  font-size: clamp(1.3rem, 3.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.05;
}
.poshland__meta,
.poshland__count{
  margin-top: 6px;
  color: var(--ink-dim);
  font-size: clamp(.95rem, 2vw, 1.05rem);
}
.poshland__count{ margin-top: 2px; }
.poshland__cta{ margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.poshland__cue{
  margin: 26px auto 0;
  width: 46px; height: 6px;
  border-radius: 999px;
  background: var(--line);
}

/* Touch / coarse pointer / reduced motion: native horizontal scroll, no scrub */
.poshland.native .poshland__strip{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: default;
}
.poshland.native .poshland__strip::-webkit-scrollbar{ display: none; }
.poshland.native .poshcard{ transform: none; opacity: 1; }
@media (max-width: 820px){
  .poshland__word{ text-align: left; }
  .poshland__track{ padding-inline: 20px; }
  .poshland__cta .btn{ flex: 1 1 140px; }
}

/* ============ HERO ============ */
/* Hero now sits on the white page background, so its text is dark ink (inherits --ink) */
.hero{
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: calc(var(--nav-h) + 40px) 0 80px;
}
.hero__inner{ will-change: transform; }
.hero h1{
  font-size: clamp(3.4rem, 13vw, 8.5rem);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -0.045em;
}
.hero h1 .dot{ color: var(--ink); }
.hero__sub{
  margin-top: 22px;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  color: var(--ink-dim);
  max-width: 44ch;
}
.hero__cta{ margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__badges{
  margin-top: 30px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero__badges span{
  font-size: .78rem;
  font-weight: 500;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-dim);
  background: rgba(0,0,0,.04);
}
.scrollcue{
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.scrollcue__pill{
  width: 24px; height: 38px;
  border: 2px solid var(--line);
  border-radius: 999px;
  position: relative;
}
.scrollcue__pill::after{
  content: "";
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--volt);
  animation: cueDrop 1.6s ease-in-out infinite;
}
@keyframes cueDrop{
  0%{ transform: translateY(0); opacity: 1; }
  70%{ transform: translateY(12px); opacity: 0; }
  100%{ transform: translateY(0); opacity: 0; }
}

/* ============ iOS "Add to Home Screen" banner (shared with shell-common.js) ============ */
.ios-install-banner{
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70;
  background: var(--ink); color: #fff; border-radius: 14px; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px; font-size: .85rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.3);
}
.ios-install-banner__close{ margin-left: auto; color: #fff; font-size: 1rem; background:none; border:0; cursor:pointer; }

/* ============ SCROLLYTELLING INTRO (centered phone, Posh-style) ============ */
.story{
  height: 340vh;            /* scroll runway for the 3 beats */
  background: var(--bg);
}
.story__pin{
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: var(--bg);    /* opaque white covers the fixed backdrop video */
}
/* Static box: absolute children below resolve against .story__pin (full viewport) */
.story__grid{ display: block; width: 100%; height: 100%; }

/* Phone dead-center in the viewport */
.story__visual{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.phone{
  position: relative;
  width: min(300px, 72vw);
  aspect-ratio: 9 / 19;
  border-radius: 44px;
  border: 4px solid #111114;
  background: #000;
  box-shadow: 0 40px 90px rgba(0,0,0,.26);
  overflow: hidden;
}
.phone::before{
  content: "";
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 84px; height: 20px;
  background: #000;
  border-radius: 999px;
  z-index: 3;
}
/* Cross-fading picture layers -blank placeholders until real photos land */
.phone__pic{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft) center / cover no-repeat;
  opacity: 0;
  transition: opacity .6s ease;
}
.phone__pic.active{ opacity: 1; }
.phone__ph{
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(10,10,12,.3);
}
.phone__pic.has-img .phone__ph{ display: none; }

/* Step titles: left, one visible at a time, swapping on scroll */
.story__beats{
  position: absolute;
  top: 50%;
  left: calc((100% - min(1180px, 100% - 40px)) / 2);
  transform: translateY(-50%);
  width: min(420px, 40%);
  z-index: 2;
}
.story__beat{
  position: absolute;
  inset-inline: 0;
  top: 50%;
  transform: translateY(-50%) translateY(10px);
  opacity: 0;
  transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1);
}
.story__beat.active{
  opacity: 1;
  transform: translateY(-50%);
}
.story__beat h3{
  font-size: clamp(1.8rem, 4.6vw, 3rem);
  font-weight: 400;         /* regular weight, not bold */
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ink-dim);    /* soft gray, Posh look */
}

/* Mobile: reserve separate rows for the title and phone so they can never overlap. */
@media (max-width: 819px){
  .story__pin{ padding-top: var(--nav-h); }
  .story__grid{
    display: grid;
    grid-template-rows: minmax(120px, 25svh) minmax(0, 1fr);
    height: calc(100svh - var(--nav-h));
    padding: 8px 20px 24px;
  }
  .story__beats{
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
    transform: none;
    text-align: center;
  }
  .story__beat{
    inset-inline: 0;
    top: auto;
    bottom: 14px;
    transform: translateY(10px);
  }
  .story__beat.active{ transform: translateY(0); }
  .story__beat h3{
    max-width: 18ch;
    margin-inline: auto;
    font-size: clamp(1.55rem, 7vw, 2rem);
    line-height: 1.08;
  }
  .story__visual{
    position: relative;
    inset: auto;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding-top: 10px;
  }
  .phone{
    width: auto;
    height: min(54svh, 500px);
    max-width: 78vw;
    border-radius: clamp(32px, 10vw, 44px);
  }
}

/* ============ ITEM REEL (scroll through items, short-loop video) ============ */
.reel{
  position: relative;
  z-index: 1;
  background: #000;
  /* total height set by JS = (itemCount * PER + 100)vh -pins & consumes the screen */
}
.reel__pin{
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
.reel__bg{ position: absolute; inset: 0; z-index: 0; }
.reel__grad,
.reel__vid{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.reel__vid{
  object-fit: cover;          /* fill the whole page, cropping overflow */
  opacity: 0;
  transition: opacity .8s ease;
}
.reel__vid.is-on{ opacity: 1; }
.reel__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: center / cover no-repeat;
  opacity: 0;
  transition: opacity .8s ease;
}
.reel__img.is-on{ opacity: 1; }
.reel__scrim{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.38), rgba(0,0,0,.22) 45%, rgba(0,0,0,.58)),
    radial-gradient(120% 90% at 50% 50%, transparent 42%, rgba(0,0,0,.48));
}

/* Centered name list -every name the SAME size; active is just brighter */
.reel__names{ position: absolute; inset: 0; z-index: 2; }
.reel__track{
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  --slot: 11vh;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
.reel__name{
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--slot);
  width: 100%;
  padding: 0 24px;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  color: rgba(255,255,255,.32);
  cursor: pointer;
  transition: color .4s ease;
}
.reel__name.is-active{ color: #fff; }   /* same size -brightness only */

/* Bottom-left meta -hidden for now (no real schedule data yet) */
.reel__meta{
  display: none;
  position: absolute;
  left: clamp(20px, 5vw, 64px);
  bottom: clamp(28px, 8vh, 72px);
  z-index: 3;
  color: #fff;
  max-width: 60vw;
}
.reel__where{ font-size: clamp(1rem, 2.4vw, 1.35rem); font-weight: 600; }
.reel__when{ margin-top: 4px; font-size: clamp(.85rem, 2vw, 1rem); color: rgba(255,255,255,.7); }

/* Right-side primary action pill */
.reel__pill{
  position: absolute;
  right: clamp(20px, 5vw, 64px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: var(--charcoal);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.reel__pill:hover{ transform: translateY(-50%) scale(1.04); background: #343438; }
.reel__pill:active{ transform: translateY(-50%) scale(.98); }

.reel__cue{
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 3;
  width: 46px; height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
}

/* Mobile: smaller names, pill to bottom-center */
@media (max-width: 819px){
  .reel__track{ --slot: 8.5vh; }
  .reel__name{ font-size: clamp(1.3rem, 6vw, 1.9rem); }
  .reel__pill{ top: auto; bottom: clamp(24px, 6vh, 56px); right: 50%; transform: translateX(50%); }
  .reel__pill:hover{ transform: translateX(50%) scale(1.04); }
  .reel__pill:active{ transform: translateX(50%) scale(.98); }
  .reel__meta{ bottom: calc(clamp(24px, 6vh, 56px) + 64px); }
}

/* ============ DIRECTORY ============ */
.directory{ padding: 110px 0 90px; }
.directory__head{ margin-bottom: 34px; }

/* ============ JULY EVENT CALENDAR (full-width, black & white) ============ */
.cal-head{ margin-bottom: 34px; }
.cal-head .kicker{ margin-bottom: 14px; }
.cal-head .h2{ margin: 0 0 14px; }
.cal-head .sub{ max-width: 60ch; }

/* The calendar block -fills the full content width */
.cal{
  width: 100%;
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  overflow: visible;
}
.cal__title{
  padding: 18px 18px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.01em;
  text-align: center;
  border-bottom: 1px solid var(--ink);
}
.cal__dow{
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--ink);
}
.cal__dow span{
  padding: 11px 4px;
  text-align: center;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
}
.cal__grid{
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.cal__cell{
  position: relative;
  min-width: 0;                 /* let cells shrink so the month always fits */
  min-height: 132px;
  padding: 30px 8px 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cal__cell:nth-child(7n){ border-right: 0; }
.cal__cell.is-blank{ background: #fafafa; }
.cal__cell.is-today{ box-shadow: inset 0 0 0 2px var(--ink); }
.cal__date{
  position: absolute;
  top: 7px;
  right: 9px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
}
.cal__cell.is-today .cal__date{ font-weight: 800; }

/* Event note: black by default; same-day events receive distinct outline colors. */
.cal__event-wrap{
  position: relative;
  width: 100%;
  margin-top: 5px;
  --event-color: var(--ink);
}
.cal__event{
  position: relative;
  display: block;
  width: 100%;
  padding: 4px 8px;
  border: 1.5px solid var(--event-color);
  border-radius: 7px;
  background: #fff;
  font-family: inherit;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  color: var(--event-color);
  cursor: pointer;
  text-decoration: none;
}
.cal__event:hover,
.cal__event:focus{ background: var(--event-color); color: #fff; outline: none; }
.cal__event:hover .cal__date{ color: #fff; }

/* Minimal hover card: category, location, Google Calendar, and official source. */
.cal__add{
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  z-index: 30;
  width: max-content;
  max-width: 240px;
  padding: 9px 12px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
  font-family: inherit;
  font-size: .76rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .16s ease, transform .16s ease;
}
.cal__add b{ display: block; font-size: .7rem; font-weight: 700; color: var(--ink-dim); margin-bottom: 2px; }
.cal__loc{ display: block; line-height: 1.35; }
.cal__links{ display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--line); }
.cal__links a{ color: var(--ink); font-size: .68rem; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.cal__links a:hover{ text-decoration-thickness: 2px; }
.cal__mobile-more{ display: none; }
.cal__event-wrap:hover .cal__add,
.cal__event-wrap:focus-within .cal__add{ opacity: 1; visibility: visible; transform: translateY(0); }

@media (max-width: 760px){
  /* Keep calendar entries legible and let the month pan horizontally. */
  .cal{ overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cal__title{ position: sticky; left: 0; min-width: 100%; }
  .cal__dow, .cal__grid{ min-width: 700px; }
  .cal__cell{ min-height: 112px; padding: 28px 7px 7px; }
  .cal__date{ font-size: .78rem; top: 6px; right: 8px; }
  .cal__event{ font-size: .68rem; padding: 4px 7px; border-radius: 6px; }
  .cal__mobile-more{ display: inline-block; margin: 2px 4px 0; font-size: .6rem; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
  .cal__dow span{ font-size: .68rem; padding: 9px 2px; letter-spacing: .04em; }
  .cal__add{ display: none; }
}

/* Filter bar */
.filters{
  position: sticky;
  top: calc(var(--nav-h) + env(safe-area-inset-top));
  z-index: 20;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.filters__group{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filters label.flabel{
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.fselect{
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink);
  background: rgba(0,0,0,.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230A0A0C' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 36px 9px 16px;
  cursor: pointer;
  transition: border-color .2s ease;
}
.fselect:hover{ border-color: rgba(255,255,255,.3); }
.fselect option{ background: var(--bg-soft); color: var(--ink); }
.chip{
  font-size: .85rem;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.04);
  color: var(--ink-dim);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.chip:hover{ color: var(--ink); border-color: rgba(255,255,255,.3); }
.chip:active{ transform: scale(.95); }
.chip[aria-pressed="true"]{
  background: var(--volt);
  border-color: var(--volt);
  color: #0A0A0C;
  font-weight: 700;
}
.chip--pace[aria-pressed="true"]{ background: var(--coral); border-color: var(--coral); color: #fff; }
.filters__meta{
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.fcount{
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink-dim);
}
.fcount b{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: .75rem;
  margin-right: 6px;
  padding: 0 6px;
}
.fclear{
  font-size: .85rem;
  font-weight: 700;
  color: var(--volt);
  padding: 8px 12px;
  border-radius: 999px;
  transition: background .2s ease;
}
.fclear:hover{ background: rgba(201,247,58,.12); }
.fclear[hidden]{ display: none; }
@media (max-width: 819px){
  .filters{ border-radius: 16px; }
  .filters__meta{ margin-left: 0; width: 100%; justify-content: space-between; }
}

/* Card grid */
.grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 640px){ .grid{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px){ .grid{ grid-template-columns: repeat(3, 1fr); } }

.card{
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease, opacity .3s ease;
  will-change: transform;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.card:hover, .card:focus-visible{
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  border-color: rgba(255,255,255,.24);
}
.card.filter-hide{
  opacity: 0;
  transform: scale(.94);
  pointer-events: none;
}
.card.filter-gone{ display: none; }
.card__media{
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.card__grad{ position: absolute; inset: 0; }
.card__vid{
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s ease;
}
.card__vid.ready{ opacity: 1; }
.card__media::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,10,12,.55));
  pointer-events: none;
}
.card__day{
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(10,10,12,.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
}
.card__day b{ color: var(--volt); font-weight: 700; }
.card__expand{
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(10,10,12,.72);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: .9rem;
  opacity: 0;
  transition: opacity .25s ease;
}
.card:hover .card__expand, .card:focus-visible .card__expand{ opacity: 1; }
.card__body{ padding: 18px 18px 20px; }
.card__name{
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.card__where{
  margin-top: 6px;
  font-size: .88rem;
  color: var(--ink-dim);
}
.card__where b{ color: var(--ink); font-weight: 500; }
.card__meta{
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pace{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink-dim);
}
.pace .dots{ display: inline-flex; gap: 3px; }
.pace .dots i{
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.pace .dots i.on{ background: var(--coral); }
.iglink{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink-dim);
  transition: color .2s ease;
}
.iglink:hover{ color: var(--volt); }
.iglink svg{ width: 15px; height: 15px; flex: none; }
.card__tags{
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.tag{
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(62,99,255,.16);
  border: 1px solid rgba(62,99,255,.4);
  color: #ABC0FF;
}
.tag:nth-child(odd){
  background: rgba(201,247,58,.1);
  border-color: rgba(201,247,58,.34);
  color: var(--volt);
}
.empty{
  display: none;
  text-align: center;
  padding: 70px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.empty.show{ display: block; }
.empty h3{ font-size: 1.5rem; letter-spacing: -0.02em; }
.empty p{ color: var(--ink-dim); margin: 8px 0 18px; }
/* ============ MARQUEE ============ */
.marquee{
  padding: 56px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.marquee__track{
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee__track{ animation-play-state: paused; }
.marquee__set{
  display: flex;
  align-items: center;
  flex: none;
}
.marquee__set span{
  font-size: clamp(1.7rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
  padding: 0 18px;
  color: var(--ink);
}
.marquee__set span:nth-of-type(3n+2){ color: var(--coral); }
.marquee__set span:nth-of-type(3n){
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink-dim);
}
.marquee__set i{
  width: 10px; height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--volt);
}
@keyframes marquee{
  to{ transform: translateX(-50%); }
}

/* ============ NUMBERED STORY STACK (01/02/03) ============ */
.steps{ position: relative; }
.step{
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.step:nth-child(2){ background: #F8F8F8; }
.step:nth-child(3){ background: #F2F2F4; }
.step__numeral{
  position: absolute;
  right: -2vw;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(11rem, 38vw, 30rem);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,.1);
  pointer-events: none;
  user-select: none;
}
.step:nth-child(1) .step__numeral{ -webkit-text-stroke-color: rgba(255,77,46,.18); }
.step:nth-child(2) .step__numeral{ -webkit-text-stroke-color: rgba(91,140,0,.2); }
.step:nth-child(3) .step__numeral{ -webkit-text-stroke-color: rgba(62,99,255,.22); }
.step__inner{
  position: relative;
  z-index: 1;
  display: grid;
  gap: 30px;
  padding: 90px 0;
}
.step__copy .num{
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--coral);
}
.step__copy h3{
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 14px 0 16px;
}
.step__copy p{
  color: var(--ink-dim);
  max-width: 44ch;
  font-size: 1.05rem;
}
.step__media{
  border-radius: var(--radius);
  aspect-ratio: 16 / 11;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0,0,0,.45);
}
.step__media .label{
  position: absolute;
  bottom: 14px; left: 14px;
  z-index: 1;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(10,10,12,.7);
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
@media (min-width: 820px){
  .step__inner{ grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
  .step:nth-child(2) .step__copy{ order: 2; }
}

/* ============ EDITORIAL ============ */
.editorial{ padding: 120px 0; }
.feature{
  display: grid;
  gap: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.feature__media{
  position: relative;
  min-height: 320px;
  overflow: hidden;
}
.feature__media .card__vid{ transition: opacity .8s ease; }
.feature__media::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,10,12,.5));
}
.feature__body{
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.feature__body .kicker{ color: var(--coral); margin: 0; }
.feature__body .kicker::before{ background: var(--coral); }
.feature__body h3{
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.feature__body p{ color: var(--ink-dim); max-width: 50ch; }
.readlink{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--volt);
  margin-top: 6px;
  transition: gap .25s ease;
}
.readlink:hover{ gap: 16px; }
@media (min-width: 900px){
  .feature{ grid-template-columns: 1.15fr 1fr; }
  .feature__media{ min-height: 460px; }
  .feature__body{ padding: 60px 50px; }
}

/* ============ SOCIAL GRID ============ */
.social{ padding: 0 0 120px; }
.social__grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 30px;
}
@media (min-width: 640px){ .social__grid{ grid-template-columns: repeat(4, 1fr); } }
.tile{
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--line);
}
.tile__face{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.tile:hover .tile__face, .tile:focus-visible .tile__face{ transform: scale(1.08); }
.tile__hover{
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 700;
  background: rgba(10,10,12,.66);
  opacity: 0;
  transition: opacity .3s ease;
}
.tile:hover .tile__hover, .tile:focus-visible .tile__hover{ opacity: 1; }

/* ============ FOOTER ============ */
.footer{
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 110px 0 36px;
  text-align: center;
}
.footer h2{
  font-size: clamp(3rem, 12vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: .95;
}
.footer h2 span{ color: var(--coral); }
.footer__sub{ color: var(--ink-dim); margin-top: 18px; }
.footer__cta{
  margin-top: 34px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer__links{
  margin-top: 70px;
  display: flex;
  gap: 26px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: .9rem;
  color: var(--ink-dim);
}
.footer__links a:hover{ color: var(--ink); }
.footer__social{
  margin-top: 26px;
  display: flex;
  gap: 14px;
  justify-content: center;
}
.footer__social a{
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.footer__social a:hover{ color: var(--volt); border-color: var(--volt); transform: translateY(-3px); }
.footer__social svg{ width: 18px; height: 18px; }
.footer__fine{
  margin-top: 36px;
  font-size: .76rem;
  color: rgba(244,242,236,.4);
}

@media (max-width: 620px){
  .wrap{ width: min(100% - 28px, 1180px); }
  .directory{ padding: 78px 0 64px; }
  .submit{ padding: 82px 0 88px; }
  .cal-head{ margin-bottom: 24px; }
  .submit__btn{ width: 100%; }
}

@media (max-width: 380px){
  .nav__logo{ font-size: .9rem; }
  .h2{ font-size: 2rem; }
}

@media (hover: none) and (pointer: coarse){
  button, a{ touch-action: manipulation; }
  .nav__links a, .footer__links a{ min-height: 44px; display: inline-flex; align-items: center; }
}

/* ============ BIG CTA: SUBMIT YOUR COMMUNITY ============ */
.community-cta{ padding: 100px 0; text-align: center; }
.community-cta__btn{
  display: inline-block;
  padding: 24px 56px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: .01em;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.community-cta__btn:hover{ background: transparent; color: var(--ink); transform: translateY(-2px); }

/* ============ SUBMIT YOUR RUN ITEM (black & white) ============ */
.submit{ padding: 120px 0 130px; text-align: center; }
.submit .kicker{ color: var(--ink); }
.submit .kicker::before{ display: none; }
.submit .h2{ margin-top: 8px; }
.submit .h2 span{ color: var(--ink); }
.submit .sub{ max-width: 620px; margin: 20px auto 0; color: var(--ink-dim); }
.submit__cta{ margin-top: 34px; display: flex; justify-content: center; }
/* Clean rectangular button, no pill */
.submit__btn{
  display: inline-block;
  padding: 16px 34px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .01em;
  border: 1px solid var(--ink);
  border-radius: 4px;
  transition: background .2s ease, color .2s ease;
}
.submit__btn:hover{ background: transparent; color: var(--ink); }

/* Minimal footer variant (no big heading, just links + socials) */
.footer--min{ padding: 46px 0 42px; }
.footer--min .footer__links{ margin-top: 0; }

/* ============ EXPANDED ITEM MODAL ============ */
.modal{
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.modal.open{ opacity: 1; visibility: visible; }
.modal__media{ position: absolute; inset: 0; }
.modal__grad{ position: absolute; inset: 0; }
.modal__vid{
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s ease;
}
.modal__vid.ready{ opacity: 1; }
.modal__shade{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45), transparent 35%, transparent 50%, rgba(0,0,0,.82));
}
.modal__close{
  position: absolute;
  top: 18px; right: 18px;
  z-index: 3;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(10,10,12,.7);
  border: 1px solid var(--line);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background .2s ease;
}
.modal__close:hover{ transform: rotate(90deg); background: rgba(255,255,255,.22); }
.modal__details{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 26px 22px calc(26px + env(safe-area-inset-bottom));
  transform: translateY(18px);
  opacity: 0;
  transition: transform .45s cubic-bezier(.2,.7,.2,1) .1s, opacity .45s ease .1s;
}
.modal.open .modal__details{ transform: translateY(0); opacity: 1; }
.modal__details .inner{
  width: min(860px, 100%);
  margin-inline: auto;
}
.modal__name{
  font-size: clamp(2rem, 7vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
}
.modal__where{ margin-top: 10px; color: rgba(255,255,255,.8); font-size: 1rem; }
.modal__where b{ color: #fff; font-weight: 500; }
.modal__facts{ display: none; }   /* pills removed */
.fact{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 700;
  background: rgba(10,10,12,.66);
  border: 1px solid var(--line);
  padding: 9px 16px;
  border-radius: 999px;
}
.fact .dots{ display: inline-flex; gap: 3px; }
.fact .dots i{ width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.2); }
.fact .dots i.on{ background: var(--coral); }
.modal__tags{ display: none; }   /* pills removed */
.modal__ig{
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  color: #fff;
}
.modal__ig:hover{ text-decoration: underline; }
.modal__ig svg{ width: 18px; height: 18px; }

/* ============ RICH ITEM VIEW (single example: a custom item) ============
   Strictly black & white. Activated by .modal--rich; hides the default
   video/gradient layout and shows a scrollable editorial page instead. */
.modal__rich{ display: none; }
.modal.modal--rich{ background: #000; }
.modal.modal--rich .modal__media,
.modal.modal--rich .modal__details{ display: none; }
.modal.modal--rich .modal__rich{
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.rwc{
  width: min(680px, 100%);
  margin-inline: auto;
  color: #fff;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}
/* Hero */
.detail__hero{ position: relative; min-height: 60vh; display: flex; align-items: flex-end; }
.detail__hero-img{
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
}
.detail__hero::after{
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55), transparent 38%, transparent 55%, #000 98%);
}
.detail__hero-body{ position: relative; z-index: 2; padding: 0 22px 30px; }
.detail__badge{
  display: inline-block;
  font-size: .66rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.55); border-radius: 999px;
  padding: 6px 13px; margin-bottom: 16px;
}
.detail__title{ font-size: clamp(2.6rem, 11vw, 4.2rem); font-weight: 800; line-height: .92; letter-spacing: -0.04em; }
/* Logo shown in place of the text title */
.detail__title--logo{ margin: 2px 0; }
.detail__logo{
  display: block; height: clamp(78px, 15vw, 116px); width: auto;
  max-width: min(74vw, 340px); object-fit: contain;
  border-radius: 16px; box-shadow: 0 12px 34px rgba(0,0,0,.45);
}
.detail__tag{ margin-top: 14px; font-size: 1.05rem; font-weight: 500; color: rgba(255,255,255,.92); }
.detail__meet{ margin-top: 8px; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.55); }
/* Body shell */
.detail__body{ padding: 4px 22px 0; }
.detail__sec{ margin-top: 46px; }
.detail__h{
  font-size: .72rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin-bottom: 18px;
}
.detail__lead{ font-size: 1.12rem; line-height: 1.5; font-weight: 400; color: rgba(255,255,255,.9); }
/* Instagram */
.detail__ig{
  margin-top: 30px;
  display: flex; align-items: center; gap: 14px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 14px;
  padding: 16px 18px; color: #fff;
  transition: border-color .2s ease, background .2s ease;
}
.detail__ig:hover{ border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.04); }
.detail__ig svg{ width: 26px; height: 26px; flex: 0 0 auto; }
.detail__ig-text{ display: flex; flex-direction: column; line-height: 1.25; }
.detail__ig-text b{ font-size: 1.05rem; font-weight: 700; }
.detail__ig-text small{ font-size: .74rem; letter-spacing: .03em; color: rgba(255,255,255,.55); }
.detail__ig-arrow{ margin-left: auto; font-size: 1.1rem; color: rgba(255,255,255,.55); }
/* Stats */
.detail__stats{
  list-style: none; margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16);
}
.detail__stats li{ padding: 20px 6px; text-align: center; }
.detail__stats li + li{ border-left: 1px solid rgba(255,255,255,.16); }
.detail__stat-num{ display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; }
.detail__stat-num.is-long{ font-size: clamp(.88rem, 3.4vw, 1.25rem); line-height: 1.15; }
.detail__stat-num small{ font-size: .9rem; font-weight: 600; margin-left: 2px; }
.detail__stat-lbl{ display: block; margin-top: 6px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); }
/* Social spectrum */
.detail__scale{ margin-top: 26px; }
.detail__scale-track{ position: relative; height: 2px; background: rgba(255,255,255,.22); border-radius: 2px; }
.detail__scale-dot{
  position: absolute; top: 50%; left: 84%; transform: translate(-50%, -50%);
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 5px rgba(255,255,255,.14);
}
.detail__scale-ends{ display: flex; justify-content: space-between; margin-top: 14px; font-size: .74rem; color: rgba(255,255,255,.55); }
.detail__scale-ends span:last-child{ color: #fff; font-weight: 700; }
/* Group facts */
.detail__facts{ list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail__facts li{
  border: 1px solid rgba(255,255,255,.18); border-radius: 14px;
  padding: 18px 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  min-height: 120px;
}
.detail__fact-value{ font-size: 1rem; line-height: 1.3; font-weight: 750; letter-spacing: -0.01em; }
.detail__fact-label{ font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); }
/* Route */
.detail__route{ border: 1px solid rgba(255,255,255,.18); border-radius: 16px; overflow: hidden; }
.detail__map{ display: block; width: 100%; height: auto; background: #0a0a0a; }
.detail__route-meta{ padding: 18px 18px 20px; border-top: 1px solid rgba(255,255,255,.16); }
.detail__route-name{ font-size: 1rem; font-weight: 700; letter-spacing: .02em; }
.detail__route-stats{ list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.detail__route-stats li{ font-size: .82rem; color: rgba(255,255,255,.7); }
.detail__route-stats li b{ color: #fff; font-weight: 700; }
.detail__route-loc{ margin-top: 12px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); }
/* Gallery */
.detail__gallery{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.detail__gallery figure{ margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 12px; }
.detail__gallery figure:first-child{ grid-column: span 2; aspect-ratio: 16 / 10; }
.detail__gallery img{ width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.detail__gallery figure:hover img{ transform: scale(1.05); }
/* CTA */
.detail__actions{ margin-top: 40px; display: grid; grid-template-columns: 1fr; gap: 10px; }
.detail__cta{
  display: block; text-align: center;
  border: 1px solid rgba(255,255,255,.7); border-radius: 999px;
  padding: 16px; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff;
  transition: background .2s ease, color .2s ease;
}
.detail__cta:hover{ background: #fff; color: #000; }
.detail__source{ margin-top: 22px; text-align: center; font-size: .7rem; color: rgba(255,255,255,.4); }
.detail__source a{ color: rgba(255,255,255,.72); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 720px){
  .detail__hero{ min-height: 64vh; }
  .detail__stat-num{ font-size: 2rem; }
  .detail__stat-num.is-long{ font-size: 1.25rem; }
  .detail__actions{ grid-template-columns: repeat(2, 1fr); }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation: none !important;
    transition: none !important;
  }
  .reveal{ opacity: 1; transform: none; }
  .story{ height: auto; }
  .story__pin{ position: static; height: auto; padding: 80px 0; }
  .story__beats{ position: static; transform: none; left: auto; width: auto; max-width: 600px; margin: 0 auto 30px; text-align: center; }
  .story__beat{ position: static; opacity: 1; transform: none; padding: 8px 0; }
  .story__visual{ position: static; transform: none; display: flex; justify-content: center; }
  .story__visual .phone__pic[data-beat="0"]{ opacity: 1; }
  .step{ position: static; min-height: 0; }
  .marquee__track{ animation: none !important; flex-wrap: wrap; }
  .marquee__set:last-child{ display: none; }
  .scrollcue__pill::after{ animation: none !important; }
  .grad-anim{ animation: none !important; }
  .backdrop__vid{ display: none; }
  /* Reel: static clickable name list over a gradient, no pin/video */
  /* Reel: static name column over the gradient, no pin/video */
  .reel__pin{ position: static; height: auto; padding: 80px 0; min-height: 60vh; }
  .reel__names{ position: static; }
  .reel__track{ position: static; transform: none !important; top: auto; }
  .reel__name{ height: auto; padding: 8px 0; color: #fff; }
  .reel__vid, .reel__img{ display: none; }
  .reel__meta, .reel__pill, .reel__cue{ display: none; }
}
