/* ===========================================================
   NYC Fintech Women — shared site system (v6 "Refresh" direction)
   Pink-magenta + deep plum · Fraunces display · soft radial washes
   =========================================================== */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --soft: #fdf2f7;
  --soft-2: #faf5ff;
  --fg: #1a1024;
  --muted: #5b4a66;
  --line: #ece4f0;
  --pink: #e0257b;
  --pink-deep: #b91767;
  --plum: #3b0d3a;
  --accent: #ffd24a;
  --font-display: 'Fraunces', 'GT Sectra', 'Iowan Old Style', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); font-family: var(--font-sans); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

:root { --page-gutter: 32px; }
@media (max-width: 720px) { :root { --page-gutter: 20px; } }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--page-gutter); }

.kicker { font-size: 12px; font-weight: 700; color: var(--pink-deep); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }

/* ---------- BUTTONS ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; font-size: 14px; font-weight: 600; border-radius: 999px; transition: transform .15s ease, background .2s, color .2s, box-shadow .2s; cursor: pointer; border: none; font-family: inherit; }
.btn-pink { background: var(--pink); color: #fff; }
.btn-pink:hover { background: var(--pink-deep); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(224, 37, 123, 0.28); }
.btn-ghost { background: transparent; color: var(--plum); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--plum); }
.btn-dark { background: var(--plum); color: #fff; }
.btn-dark:hover { background: #1a1024; transform: translateY(-1px); }
.btn-lg { padding: 15px 28px; font-size: 15.5px; }

/* ---------- NAV ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 18px 0; }
.logo { display: flex; align-items: center; line-height: 0; }
.logo img { height: 54px; width: auto; display: block; }
.nav-links { display: flex; gap: 32px; font-size: 15px; font-weight: 500; color: var(--plum); }
.nav-links > a, .nav-links .has-menu > a { position: relative; padding: 4px 0; }
.nav-links a:hover { color: var(--pink); }
.nav-links a.active { color: var(--pink); }
.nav-cta { display: flex; gap: 10px; }
.nav-links .has-menu { position: relative; }
.nav-links .has-menu > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-links .has-menu > a::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-1px); opacity: 0.5; transition: opacity .2s; }
.nav-links .has-menu:hover > a::after { opacity: 1; }
.dropdown { position: absolute; top: 100%; left: 0; transform: translateY(10px); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px; min-width: 100%; width: max-content; box-shadow: 0 24px 60px rgba(59,13,58,0.14); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s; display: flex; flex-direction: column; gap: 2px; z-index: 60; }
.has-menu::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 16px; }
.has-menu:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(6px); }
.dropdown a { padding: 11px 14px; border-radius: 11px; font-size: 14.5px; font-weight: 600; color: var(--plum); display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.dropdown a small { font-size: 12px; color: var(--muted); font-weight: 400; }
.dropdown a:hover { background: var(--soft); color: var(--pink-deep); }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; flex-shrink: 0; transition: border-color .2s, background .2s; }
.nav-toggle:hover { border-color: var(--plum); background: var(--soft); }
.nav-toggle-bar { display: block; width: 100%; height: 2px; background: var(--plum); border-radius: 2px; transition: transform .2s, opacity .2s; }
.mobile-nav { position: fixed; inset: 0; z-index: 200; pointer-events: none; visibility: hidden; }
.mobile-nav.open { pointer-events: auto; visibility: visible; }
.mobile-nav-backdrop { position: absolute; inset: 0; background: rgba(26, 16, 36, 0.45); opacity: 0; transition: opacity .28s ease; }
.mobile-nav.open .mobile-nav-backdrop { opacity: 1; }
.mobile-nav-panel { position: absolute; top: 0; right: 0; width: min(340px, 88vw); height: 100%; background: var(--bg); border-left: 1px solid var(--line); box-shadow: -24px 0 60px rgba(59, 13, 58, 0.12); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .32s cubic-bezier(0.4, 0, 0.2, 1); overflow: hidden; }
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-panel::before { content: ""; position: absolute; top: -120px; right: -80px; width: 280px; height: 280px; background: radial-gradient(circle at center, var(--soft) 0%, transparent 70%); pointer-events: none; }
.mobile-nav-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.96); }
.mobile-nav-brand { display: flex; align-items: center; line-height: 0; }
.mobile-nav-brand img { height: 42px; width: auto; display: block; }
.mobile-nav-close { width: 40px; height: 40px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--plum); font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color .2s, background .2s, color .2s; }
.mobile-nav-close:hover { border-color: var(--pink); color: var(--pink-deep); background: var(--soft); }
.mobile-nav-body { position: relative; z-index: 1; flex: 1; overflow-y: auto; padding: 16px 14px 24px; }
.mobile-nav-group { border: 1px solid var(--line); border-radius: 16px; background: #fff; margin-bottom: 10px; overflow: hidden; }
.mobile-nav-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; border: none; background: transparent; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--plum); cursor: pointer; text-align: left; transition: background .2s, color .2s; }
.mobile-nav-trigger::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: 0.45; transition: transform .2s, opacity .2s; flex-shrink: 0; }
.mobile-nav-group.open .mobile-nav-trigger::after { transform: rotate(-135deg); opacity: 1; }
.mobile-nav-trigger:hover, .mobile-nav-trigger.current { color: var(--pink-deep); background: var(--soft); }
.mobile-nav-sub { display: none; flex-direction: column; gap: 2px; padding: 4px 8px 10px; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--soft) 0%, #fff 100%); }
.mobile-nav-group.open .mobile-nav-sub { display: flex; }
.mobile-nav-sub a { padding: 11px 12px; border-radius: 11px; font-size: 14.5px; font-weight: 600; color: var(--plum); transition: background .2s, color .2s; }
.mobile-nav-sub a:hover, .mobile-nav-sub a.active { background: #fff; color: var(--pink-deep); }
.mobile-nav-foot { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px 22px 24px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.96); }
.mobile-nav-foot .btn { justify-content: center; width: 100%; }
body.nav-open { overflow: hidden; }
@media (max-width: 1040px) {
  .nav-links, .nav-cta { display: none; }
  .nav-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 16px;
    padding: 14px 0;
  }
  .logo { justify-self: start; min-width: 0; }
  .logo img { height: 42px; }
  .nav-toggle { display: flex; justify-self: end; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-nav-panel, .mobile-nav-backdrop, .nav-toggle-bar { transition: none; }
}

/* ---------- PAGE HERO ---------- */
.page-hero { padding: 84px 0 64px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; top: -220px; right: -180px; width: 620px; height: 620px; background: radial-gradient(circle at center, var(--soft) 0%, transparent 70%); pointer-events: none; z-index: 0; }
.page-hero::after { content: ""; position: absolute; bottom: -320px; left: -220px; width: 680px; height: 680px; background: radial-gradient(circle at center, var(--soft-2) 0%, transparent 70%); pointer-events: none; z-index: 0; }
.page-hero .inner { position: relative; z-index: 1; max-width: 820px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--soft); color: var(--pink-deep); font-size: 13px; font-weight: 600; margin-bottom: 24px; }
.pill .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); position: relative; }
.pill .pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--pink); opacity: 0.4; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(0.8); opacity: 0.5; } 70% { transform: scale(1.8); opacity: 0; } 100% { opacity: 0; } }
.page-hero h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 5.2vw, 66px); line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 22px; color: var(--plum); text-wrap: balance; }
.page-hero h1 em { font-style: italic; color: var(--pink); font-weight: 400; }
.page-hero h1 .underline { background: linear-gradient(180deg, transparent 65%, var(--accent) 65%, var(--accent) 92%, transparent 92%); padding: 0 4px; }
.page-hero p { font-size: 19px; color: var(--muted); line-height: 1.6; margin: 0; max-width: 660px; text-wrap: pretty; }

/* ---------- SECTIONS ---------- */
.section { padding: 80px 0; }
.section.tight { padding: 56px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 44px; gap: 32px; flex-wrap: wrap; }
.sec-head .left { max-width: 660px; }
.sec-head h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -0.025em; margin: 0; color: var(--plum); text-wrap: balance; }
.sec-head h2 em { font-style: italic; color: var(--pink); font-weight: 400; }
.sec-foot { margin-top: 40px; text-align: center; }

/* ---------- MARQUEE ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; animation: scroll 40s linear infinite; width: max-content; align-items: center; padding: 8px 0; }
@keyframes scroll { to { transform: translateX(-50%); } }
.marquee-logo { font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--plum); white-space: nowrap; opacity: 0.7; letter-spacing: -0.01em; transition: opacity .2s; }
.marquee-logo:hover { opacity: 1; color: var(--pink); }

/* ---------- EVENT CARDS ---------- */
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .events-grid { grid-template-columns: 1fr; } }
.event { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; display: flex; flex-direction: column; }
.event:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(59,13,58,0.10); border-color: var(--pink); }
.event-img { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--soft) 0%, var(--soft-2) 100%); position: relative; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.event.v-pink .event-img { background: linear-gradient(135deg, #fce4f0 0%, var(--pink) 100%); color: #fff; }
.event.v-plum .event-img { background: linear-gradient(135deg, var(--plum) 0%, #5b1e5c 100%); color: rgba(255,255,255,0.7); }
.event.v-sun .event-img { background: linear-gradient(135deg, #fff3c4 0%, var(--accent) 100%); color: var(--plum); }
.event.v-mint .event-img { background: linear-gradient(135deg, #d6fbef 0%, #5eead4 100%); color: var(--plum); }
.event-img .date-chip { position: absolute; top: 16px; left: 16px; background: #fff; padding: 8px 12px; border-radius: 12px; color: var(--plum); display: flex; flex-direction: column; align-items: center; line-height: 1; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.event-img .date-chip .d { font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.event-img .date-chip .m { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--pink); margin-top: 2px; }
.event-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.event-tag { font-size: 11px; font-weight: 700; color: var(--pink-deep); letter-spacing: 0.12em; text-transform: uppercase; }
.event-name { font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.2; letter-spacing: -0.015em; color: var(--plum); margin: 0; }
.event-meta { color: var(--muted); font-size: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.event-meta .sep { color: var(--line); }
.event-cta { margin-top: 12px; padding: 10px 16px; background: var(--soft); color: var(--pink-deep); border-radius: 999px; font-size: 13px; font-weight: 600; align-self: flex-start; transition: background .2s, color .2s; cursor: pointer; }
.event:hover .event-cta { background: var(--pink); color: #fff; }

/* Luma-backed cards. The Events page and the three chapter pages all replace
   their built-in cards with these at runtime, so the rules live here rather
   than in any one page. A rendered card is an <a> wrapping the same markup. */
a.event { text-decoration: none; color: inherit; }
.event-img.has-cover { background-size: cover; background-position: center; }
.event-img.has-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0) 55%); }
.event-img .date-chip { z-index: 1; }
.events-grid.is-loading, .event-2col.is-loading { opacity: .55; transition: opacity .2s; }

/* ---------- FOOTER ---------- */
footer { background: var(--plum); color: rgba(255,255,255,0.7); padding: 80px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
.foot-brand { font-family: var(--font-display); font-weight: 500; font-size: 28px; color: #fff; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; letter-spacing: -0.02em; }
.foot-brand .dot { width: 14px; height: 14px; min-width: 14px; min-height: 14px; flex-shrink: 0; border-radius: 50%; background: var(--pink); display: inline-block; }
@media (max-width: 1040px) {
  .foot-brand { font-size: 17px; gap: 8px; }
  .foot-brand .dot { width: 9px; height: 9px; min-width: 9px; min-height: 9px; }
}
.foot-grid > div p { font-size: 14.5px; line-height: 1.6; max-width: 320px; }
.foot-col h4 { font-size: 12px; font-weight: 700; color: #ffb4d3; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 18px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { color: rgba(255,255,255,0.75); font-size: 14.5px; transition: color .2s; }
.foot-col a:hover { color: #fff; }
.foot-bot { padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,0.55); }

/* labelled placeholder helper */
.ph-note { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
