/* ===========================================================
   Swift Bengaluru - shared design system
   Apple-inspired. SF Pro system fonts. Light + dark.
   =========================================================== */

/* ---- Theme tokens ---- */
:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --surface-3: #ececee;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --border: rgba(0, 0, 0, 0.10);
  --border-strong: rgba(0, 0, 0, 0.16);
  --accent: #0066b8;          /* brand blue */
  --accent-deep: #0066b8;     /* brand blue (solid fills) */
  --accent-hover: #00538f;
  --on-accent: #ffffff;
  --highlight: #ffc313;       /* brand yellow */
  --nav-bg: rgba(251, 251, 253, 0.72);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 30px rgba(0,0,0,0.06);
  --shadow-hover: 0 2px 6px rgba(0,0,0,0.08), 0 18px 50px rgba(0,0,0,0.12);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #000000;
    --surface: #1d1d1f;
    --surface-2: #161617;
    --surface-3: #2a2a2c;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #86868b;
    --border: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.22);
    --accent: #5aa6e0;
    --accent-deep: #0066b8;
    --accent-hover: #2f86d6;
    --on-accent: #00121f;
    --highlight: #ffc313;
    --nav-bg: rgba(0, 0, 0, 0.72);
    --shadow: 0 1px 3px rgba(0,0,0,0.5), 0 8px 30px rgba(0,0,0,0.5);
    --shadow-hover: 0 2px 6px rgba(0,0,0,0.6), 0 18px 50px rgba(0,0,0,0.6);
  }
}

:root[data-theme="dark"] {
  --bg: #000000;
  --surface: #1d1d1f;
  --surface-2: #161617;
  --surface-3: #2a2a2c;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #86868b;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --accent: #5aa6e0;
  --accent-deep: #0066b8;
  --accent-hover: #2f86d6;
  --on-accent: #00121f;
  --highlight: #ffc313;
  --nav-bg: rgba(0, 0, 0, 0.72);
  --shadow: 0 1px 3px rgba(0,0,0,0.5), 0 8px 30px rgba(0,0,0,0.5);
  --shadow-hover: 0 2px 6px rgba(0,0,0,0.6), 0 18px 50px rgba(0,0,0,0.6);
}

/* ---- Reset ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---- Layout ---- */
.wrap { max-width: 980px; margin: 0 auto; padding: 0 22px; }
.wrap-wide { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.center { text-align: center; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  padding: 12px 16px 0; background: transparent;
}
.nav-inner {
  position: relative;
  max-width: 1080px; margin: 0 auto; padding: 0 12px 0 18px;
  height: 54px; display: flex; align-items: center; justify-content: space-between;
  border-radius: 18px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--border);
  box-shadow: var(--glass-highlight), 0 6px 24px rgba(0,0,0,0.10);
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand img { height: 26px; width: 26px; }
.brand span { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.nav-right { display: flex; align-items: center; gap: 6px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-toggle {
  display: none; position: relative; width: 34px; height: 34px; border-radius: 50%; margin-left: 2px;
  border: 1px solid var(--border); background: transparent; color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.nav-toggle:hover { background: var(--surface-2); border-color: var(--border-strong); }
.nav-toggle .bar { position: absolute; left: 8px; right: 8px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-toggle .bar:nth-child(1) { top: 11px; }
.nav-toggle .bar:nth-child(2) { top: 16px; }
.nav-toggle .bar:nth-child(3) { top: 21px; }
.nav.menu-open .nav-toggle .bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav.menu-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-toggle .bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.nav-link {
  font-size: 14px; font-weight: 400; color: var(--text-2);
  padding: 7px 12px; border-radius: 980px; transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); font-weight: 500; }

.theme-toggle {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border); background: transparent; color: var(--text);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s; margin-left: 4px;
}
.theme-toggle:hover { background: var(--surface-2); border-color: var(--border-strong); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .sun { display: none; }
  :root:not([data-theme]) .theme-toggle .moon { display: block; }
}

/* ---- Typography ---- */
/* SF Pro Expanded used tactically on display headings, big numbers, wordmark */
.display, .display-2, .h2, .stat-num, .edition-count .n {
  font-family: "SF Pro Expanded", "SFProExpanded-Bold", "SF Pro Display Expanded",
    "SF Pro Display", -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
}
/* Nav wordmark: keep regular width so it renders identically on desktop and mobile
   (the expanded face resolves on iOS but not desktop Chrome, causing a mismatch). */
.brand span {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-stretch: normal;
  font-variation-settings: normal;
}
.eyebrow {
  font-size: 15px; font-weight: 600; color: var(--accent);
  letter-spacing: 0; margin-bottom: 14px;
}
.display {
  font-size: clamp(40px, 6.6vw, 80px); font-weight: 700; line-height: 1.05;
  letter-spacing: -0.025em;
}
.display-2 {
  font-size: clamp(32px, 4.6vw, 56px); font-weight: 700; line-height: 1.07;
  letter-spacing: -0.022em;
}
.h2 {
  font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; line-height: 1.1;
  letter-spacing: -0.02em;
}
.h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.018em; }
.lede {
  font-size: clamp(18px, 2vw, 22px); font-weight: 400; color: var(--text-2);
  line-height: 1.4; letter-spacing: -0.012em;
}
.muted { color: var(--text-2); }

/* ---- Buttons ---- */
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-row.center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 16px; font-weight: 500; padding: 11px 22px; border-radius: 980px;
  border: 1px solid transparent; cursor: pointer; transition: all 0.18s ease;
  font-family: inherit; letter-spacing: -0.01em;
}
.btn-primary { background: var(--accent-deep); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-3); }
.btn-ghost { color: var(--accent); padding: 11px 6px; }
.btn-ghost:hover { color: var(--accent-hover); }
.btn-ghost .chev { transition: transform 0.18s ease; }
.btn-ghost:hover .chev { transform: translateX(3px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---- Hero ---- */
.hero { padding-top: 92px; padding-bottom: 64px; text-align: center; }
.hero .display { max-width: 16ch; margin: 0 auto 22px; }
.hero .lede { max-width: 40ch; margin: 0 auto 34px; }

/* ---- Connect strip (below the first fold) ---- */
.connect-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-2); padding: 18px 0; }
.connect-inner { display: flex; align-items: center; justify-content: center; gap: 10px 20px; flex-wrap: wrap; }
.connect-inner .social-row { justify-content: center; }
.connect-text { font-size: 15px; font-weight: 600; color: var(--text-2); letter-spacing: -0.01em; }

/* ---- Feature grid ---- */
.grid-3 { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.grid-3 > .card { flex: 0 1 340px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  padding: 32px; box-shadow: var(--shadow); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-icon {
  width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); margin-bottom: 20px; font-size: 22px;
}
.card h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.018em; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 16px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--accent); font-size: 15px; font-weight: 600; }
.card-link .arr { transition: transform 0.18s ease; }
.card-link:hover { color: var(--accent-hover); }
.card-link:hover .arr { transform: translateX(3px); }

/* ---- Callout band ---- */
.callout {
  background: var(--accent-deep); color: #fff; border-radius: 28px;
  padding: 64px 48px; text-align: center; position: relative; overflow: hidden;
}
.callout::after {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 220px; height: 220px;
  background: linear-gradient(225deg, var(--highlight) 50%, transparent 50%);
  opacity: 0.92; border-radius: 0 0 0 100%;
}
.callout .eyebrow { color: var(--highlight); position: relative; z-index: 2; }
.callout h2 { color: #fff; position: relative; z-index: 2; }
.callout p { color: rgba(255,255,255,0.82); max-width: 50ch; margin: 16px auto 28px; position: relative; z-index: 2; }
.callout .btn-primary { background: var(--highlight); color: #1d1d1f; position: relative; z-index: 2; }
.callout .btn-primary:hover { background: #ffd84d; }

/* ---- Stats band ---- */
.stats-band { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 72px; text-align: center; }
.stats-band > div { min-width: 130px; }

/* ---- "Where we've gathered" logo strip ---- */
.gathered { text-align: center; }
.gathered .lede { margin: 12px auto 0; max-width: 44ch; }
.logos-strip {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 14px; margin: 40px auto 0; max-width: 940px;
}
.logo-item {
  display: inline-flex; align-items: center; justify-content: center;
  height: 62px; min-width: 124px; padding: 0 24px;
  background: #ffffff; border: 1px solid rgba(0,0,0,0.08); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.logo-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.logo-img {
  max-height: 30px; max-width: 132px; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: 0.85; transition: filter 0.2s ease, opacity 0.2s ease;
}
.logo-item:hover .logo-img { filter: none; opacity: 1; }
.logo-wordmark { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: #6e6e73; white-space: nowrap; }
.gathered-cta { margin-top: 44px; }
.gathered-cta p { font-size: 19px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; margin-bottom: 18px; }
.stat-num { font-size: clamp(36px, 5vw, 60px); font-weight: 700; letter-spacing: -0.03em; }
.stat-num .unit { color: var(--accent); }
.stat-label { color: var(--text-2); font-size: 15px; margin-top: 4px; }

/* ---- Section heads ---- */
.section-head { text-align: center; max-width: 30ch; margin: 0 auto 56px; }
.section-head .lede { margin-top: 14px; }

/* =========================================================
   Careers archive
   ========================================================= */
.editions { display: flex; flex-direction: column; gap: 18px; }
.edition-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 26px 30px; box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.edition-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--border-strong); }
.edition-main { min-width: 0; }
.edition-date { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.edition-date h3 { font-size: 23px; font-weight: 600; letter-spacing: -0.02em; }
.badge {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 980px; background: var(--highlight); color: #4a3500;
}
.edition-sub { color: var(--text-2); font-size: 15px; }
.edition-cta { flex-shrink: 0; display: flex; align-items: center; gap: 14px; }
.edition-count { text-align: right; }
.edition-count .n { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.edition-count .l { font-size: 13px; color: var(--text-2); }
.edition-arrow {
  width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
  transition: background 0.18s ease, transform 0.18s ease;
}
.edition-card:hover .edition-arrow { background: var(--accent-deep); color: var(--on-accent); transform: translateX(2px); }

/* =========================================================
   Edition view (job listing)
   ========================================================= */
.edition-hero { padding-top: 64px; padding-bottom: 36px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 15px; margin-bottom: 22px; transition: color 0.15s; }
.back-link:hover { color: var(--text); }
.edition-hero .display-2 { max-width: 18ch; margin-bottom: 18px; }

.stat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.stat-chip {
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 980px; font-size: 14px; font-weight: 500;
}
.stat-chip b { color: var(--accent); font-weight: 700; }

/* filter bar */
.filter-bar {
  position: sticky; top: 74px; z-index: 60;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips .label { font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; margin-right: 4px; }
.chip {
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 980px; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.14s ease; user-select: none;
}
.chip:hover { border-color: var(--border-strong); }
.chip.active { background: var(--accent-deep); color: var(--on-accent); border-color: var(--accent-deep); }
.chip .n { opacity: 0.6; }
.chip.active .n { opacity: 0.8; }

/* job sections */
.jobs-main { padding: 40px 0 72px; }
.city-section { margin-bottom: 44px; }
.city-section:last-child { margin-bottom: 0; }
.city-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.city-head h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.city-head .count { color: var(--text-2); font-size: 15px; font-weight: 500; }
.jobs { display: flex; flex-direction: column; gap: 10px; }
.job {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
.job:hover { transform: translateY(-1px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.job-info { flex: 1; min-width: 0; }
.job-company { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 3px; }
.job-title { font-size: 14px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-meta { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.tag { background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); padding: 5px 12px; border-radius: 980px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tag-yoe { background: transparent; border-color: var(--accent); color: var(--accent); }
.arrow { color: var(--accent); font-size: 15px; font-weight: 600; opacity: 0; transition: opacity 0.14s, transform 0.14s; white-space: nowrap; }
.job:hover .arrow { opacity: 1; transform: translateX(2px); }

.empty { text-align: center; padding: 60px 20px; color: var(--text-2); }
.empty h3 { color: var(--text); font-size: 22px; margin-bottom: 8px; }

.disclaimer { font-size: 13px; color: var(--text-3); border-top: 1px solid var(--border); padding-top: 22px; margin-top: 8px; max-width: 70ch; }

/* =========================================================
   Footer
   ========================================================= */
.footer { border-top: 1px solid var(--border); background: var(--surface-2); padding: 56px 0 40px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer h4 { font-size: 13px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; }
.footer p { color: var(--text-2); font-size: 15px; margin-bottom: 12px; max-width: 44ch; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 9px; }
.footer li a { color: var(--text); font-size: 15px; transition: color 0.15s; }
.footer li a:hover { color: var(--accent); }
.footer .brand { margin-bottom: 16px; }
.footer-theme { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-theme-label { font-size: 13px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; }
.theme-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 980px; background: var(--surface); }
.theme-switch button {
  border: none; background: transparent; color: var(--text-2);
  font-family: inherit; font-size: 13px; font-weight: 500; letter-spacing: -0.01em;
  padding: 6px 16px; border-radius: 980px; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.theme-switch button:hover { color: var(--text); }
.theme-switch button.active { background: var(--accent-deep); color: #fff; }

.footer-bottom { margin-top: 22px; font-size: 13px; color: var(--text-3); }

/* social icon row */
.social-row { display: flex; flex-wrap: wrap; gap: 10px; }
.social-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 980px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}
.social-btn:hover { color: #fff; background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-2px); }
.social-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.social-label { display: block; font-size: 13px; color: var(--text-3); margin-top: 14px; }
.social-label a { color: var(--accent); font-weight: 500; }
.social-label a:hover { color: var(--accent-hover); }

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

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 820px) {
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .nav-link { padding: 7px 8px; }
  .hero { padding-top: 64px; padding-bottom: 48px; }
  .stats-band { grid-template-columns: 1fr 1fr; gap: 32px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .callout { padding: 48px 26px; }
  .edition-card { flex-direction: column; align-items: flex-start; gap: 18px; }
  .edition-cta { width: 100%; justify-content: space-between; }
  .job { flex-direction: column; align-items: flex-start; gap: 12px; }
  .arrow { display: none; }
  .filter-bar { top: 74px; }
}

/* ===========================================================
   Liquid Glass UI
   =========================================================== */
:root { --glass-bg: rgba(255,255,255,0.62); --glass-blur: 18px; --glass-highlight: inset 0 1px 0 rgba(255,255,255,0.65); }
:root[data-theme="light"] { --glass-bg: rgba(255,255,255,0.62); --glass-highlight: inset 0 1px 0 rgba(255,255,255,0.65); }
:root[data-theme="dark"] { --glass-bg: rgba(38,38,40,0.5); --glass-highlight: inset 0 1px 0 rgba(255,255,255,0.14); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) { --glass-bg: rgba(38,38,40,0.5); --glass-highlight: inset 0 1px 0 rgba(255,255,255,0.14); }
}

/* Frosted, translucent chrome */
.filter-bar {
  background: var(--glass-bg);
  -webkit-backdrop-filter: saturate(180%) blur(var(--glass-blur));
  backdrop-filter: saturate(180%) blur(var(--glass-blur));
}
.connect-strip {
  background: var(--glass-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: var(--glass-highlight);
}

/* Glassy controls (specular top edge + frost) */
.btn-secondary, .chip, .theme-toggle, .social-btn, .edition-arrow {
  background: var(--glass-bg);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  box-shadow: var(--glass-highlight);
}

/* Glassy cards */
.card { box-shadow: var(--shadow), var(--glass-highlight); }

/* Card logo plate (dark glass, so white logo elements read) */
.card-media {
  position: relative;
  width: 100%; height: 128px; border-radius: 16px;
  background: linear-gradient(155deg, #2a90e0 0%, var(--accent-deep) 52%, #064f86 100%);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.30), 0 10px 26px rgba(0,76,140,0.30);
}
.card-media::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 80% at 50% -20%, rgba(255,255,255,0.22), transparent 60%);
}
.card-media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(125deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.05) 22%, rgba(255,255,255,0) 46%);
}
.card-media img {
  position: relative; z-index: 1;
  background: #fff; border-radius: 14px; padding: 10px;
  max-width: 82%; max-height: 84%; object-fit: contain;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
/* transparent logos sit straight on the blue glass (no white tile) */
.card-media img.bare {
  background: transparent; border-radius: 18px; padding: 0;
  max-width: 80%; max-height: 90%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.28);
}
.card-media .glyph { position: relative; z-index: 1; font-size: 50px; line-height: 1; }

@media (prefers-reduced-transparency: reduce) {
  .nav-inner, .filter-bar, .connect-strip, .btn-secondary, .chip, .theme-toggle, .social-btn, .edition-arrow {
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
}

/* ===========================================================
   Apple polish + Liquid Glass v2
   =========================================================== */
::selection { background: rgba(0,102,184,0.18); }
:root[data-theme="dark"] ::selection { background: rgba(90,166,224,0.30); }

/* Ambient colour field - gives the glass something to refract */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40vmax 40vmax at 16% 10%, rgba(0,102,184,0.16), transparent 60%),
    radial-gradient(32vmax 32vmax at 88% 6%, rgba(255,195,19,0.13), transparent 60%),
    radial-gradient(46vmax 46vmax at 80% 92%, rgba(0,102,184,0.12), transparent 62%);
  transform: translateZ(0);
}
:root[data-theme="dark"] body::before,
.dark-ambient body::before {
  background:
    radial-gradient(40vmax 40vmax at 16% 10%, rgba(0,102,184,0.34), transparent 60%),
    radial-gradient(32vmax 32vmax at 88% 6%, rgba(255,195,19,0.10), transparent 60%),
    radial-gradient(46vmax 46vmax at 80% 92%, rgba(0,102,184,0.24), transparent 62%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) body::before {
    background:
      radial-gradient(40vmax 40vmax at 16% 10%, rgba(0,102,184,0.34), transparent 60%),
      radial-gradient(32vmax 32vmax at 88% 6%, rgba(255,195,19,0.10), transparent 60%),
      radial-gradient(46vmax 46vmax at 80% 92%, rgba(0,102,184,0.24), transparent 62%);
  }
}
@keyframes drift {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-2.5%); }
}

/* Hero glow */
.hero { position: relative; }
.hero::before {
  content: ''; position: absolute; left: 50%; top: 6%; width: min(740px, 92%); height: 340px;
  transform: translateX(-50%); z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0,102,184,0.20), transparent 72%);
}

/* Primary buttons: gradient + specular glow */
.btn { transition: transform 0.24s cubic-bezier(0.22,1,0.36,1), box-shadow 0.24s ease, background 0.24s ease; }
.btn-primary {
  background: linear-gradient(180deg, #1a82d6 0%, var(--accent-deep) 100%);
  box-shadow: var(--glass-highlight), 0 6px 18px rgba(0,102,184,0.30);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #2a8fe0 0%, #0b6ec0 100%);
  transform: translateY(-2px);
  box-shadow: var(--glass-highlight), 0 12px 30px rgba(0,102,184,0.42);
}
.btn:active { transform: translateY(0) scale(0.98); }

/* Glass control hovers (spring) */
.chip, .theme-toggle, .social-btn, .btn-secondary {
  transition: transform 0.24s cubic-bezier(0.22,1,0.36,1), box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.theme-toggle:hover, .social-btn:hover { transform: translateY(-2px); }

/* Cards: pointer spotlight + spring hover glow */
.card { position: relative; isolation: isolate; transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s ease, border-color 0.3s ease; }
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(0,102,184,0.12), transparent 60%);
  opacity: 0; transition: opacity 0.35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover), var(--glass-highlight); border-color: var(--border-strong); }
.card:hover::before { opacity: 1; }

.edition-card, .job { transition: transform 0.26s cubic-bezier(0.22,1,0.36,1), box-shadow 0.26s ease, border-color 0.2s ease; }

/* Accessible focus ring */
a:focus-visible, button:focus-visible {
  outline: none; box-shadow: 0 0 0 4px rgba(0,102,184,0.38);
}

/* Smoother reveal */
.reveal { transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }

/* Thin scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

/* Meetup agenda ("what a meetup looks like") */
.agenda { max-width: 700px; margin: 48px auto 0; }
.agenda-item {
  display: flex; gap: 20px; padding: 20px 2px; text-align: left;
  align-items: flex-start; border-bottom: 1px solid var(--border);
}
.agenda-item:last-child { border-bottom: none; }
.agenda-num {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-deep); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
.agenda-text { flex: 1; min-width: 0; }
.agenda-text h3 {
  font-size: 18px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 3px;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.agenda-text .dur { color: var(--accent); font-weight: 600; font-size: 13px; }
.agenda-text p { color: var(--text-2); font-size: 15px; }

/* Active core team */
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 34px 44px; margin-top: 48px; }
.team-member { width: 150px; text-align: center; }
.team-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.team-name { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.team-socials { display: flex; justify-content: center; gap: 12px; margin-top: 10px; }
.team-socials a { color: var(--text-3); display: inline-flex; transition: color 0.15s ease, transform 0.15s ease; }
.team-socials a:hover { color: var(--accent); transform: translateY(-2px); }
.team-socials svg { width: 18px; height: 18px; }

/* Event gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 48px; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow); cursor: zoom-in; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.gallery-grid img:hover { transform: translateY(-2px) scale(1.01); box-shadow: var(--shadow-hover); }
@media (max-width: 820px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(30px) saturate(135%); backdrop-filter: blur(30px) saturate(135%);
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(1100px, 94vw); max-height: 88vh; border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  transform: scale(0.96); transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: fixed; top: 20px; right: 22px;
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 24px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background 0.15s ease, transform 0.15s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.3); transform: scale(1.06); }
.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 28px; line-height: 1; padding-bottom: 3px;
  display: flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background 0.15s ease, transform 0.15s ease;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.3); transform: translateY(-50%) scale(1.06); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
@media (prefers-reduced-motion: reduce) { .lightbox, .lightbox img { transition: none; } }

/* ===========================================================
   Hero note + global edge / mobile fixes
   =========================================================== */
html, body { overflow-x: clip; max-width: 100%; }

.hero-note {
  margin: 18px auto 0; max-width: 46ch;
  font-size: 15px; color: var(--text-2); line-height: 1.45;
}
.hero-note strong { color: var(--text); font-weight: 600; }
.hero-disclaimer { margin: 9px auto 0; max-width: 46ch; font-size: 12.5px; color: var(--text-3); }

/* ===========================================================
   Flicker fix: the nav + connect/filter bars re-blur scrolling
   content every frame (backdrop-filter shimmer). Use a clean
   frosted translucency with no live blur instead.
   =========================================================== */
.nav-inner, .filter-bar, .connect-strip {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  background: rgba(255, 255, 255, 0.9);
}
:root[data-theme="dark"] .nav-inner,
:root[data-theme="dark"] .filter-bar,
:root[data-theme="dark"] .connect-strip { background: rgba(26, 26, 28, 0.9); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .nav-inner,
  :root:not([data-theme]) .filter-bar,
  :root:not([data-theme]) .connect-strip { background: rgba(26, 26, 28, 0.9); }
}

@media (max-width: 600px) {
  .wrap, .wrap-wide { padding-left: 22px; padding-right: 22px; }
  .nav { padding-left: 14px; padding-right: 14px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
    padding: 8px; box-shadow: var(--shadow-hover);
    opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.98); transform-origin: top right;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }
  .nav.menu-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links .nav-link { padding: 12px 14px; border-radius: 11px; font-size: 16px; }
  .nav-links .nav-link:hover, .nav-links .nav-link.active { background: var(--surface-2); color: var(--text); }
  .hero { padding-top: 56px; padding-bottom: 44px; }
  .hero .display { font-size: clamp(31px, 8.6vw, 52px); }
  .display-2 { font-size: clamp(27px, 7.6vw, 42px); }
  .h2 { font-size: clamp(25px, 6.6vw, 36px); }
}

/* ---------------------------------------------------------------------- */
/* Open Source — Good First Issue live feed                                */
/* ---------------------------------------------------------------------- */
.os-status { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:26px; flex-wrap:wrap; }
.os-status-text { display:flex; flex-direction:column; line-height:1.2; }
.os-count { font-size:22px; font-weight:700; color:var(--text); letter-spacing:-0.02em; font-variant-numeric:tabular-nums; }
.os-synced { font-size:13px; color:var(--text-3); }
.os-refresh svg { width:17px; height:17px; }

.os-chips { align-items:center; row-gap:10px; }
.os-spacer { flex:1 1 auto; }
.os-toggle { display:inline-flex; align-items:center; gap:8px; font-size:14px; color:var(--text-2); cursor:pointer; user-select:none; }
.os-toggle input { accent-color:var(--accent-deep); width:16px; height:16px; cursor:pointer; }
.os-sort { display:inline-flex; align-items:center; gap:8px; }
.os-sort select { font:inherit; font-size:14px; color:var(--text); background-color:var(--surface); border:1px solid var(--border-strong); border-radius:999px; padding:7px 30px 7px 14px; cursor:pointer; -webkit-appearance:none; appearance:none; background-repeat:no-repeat; background-position:right 12px center; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }

.os-main { padding-top:26px; }
.os-list { display:grid; grid-template-columns:repeat(auto-fill, minmax(340px, 1fr)); gap:16px; }
.os-issue { display:flex; flex-direction:column; gap:10px; padding:20px; background:var(--surface); border:1px solid var(--border); border-radius:18px; box-shadow:var(--shadow); text-decoration:none; color:inherit; transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.os-issue:hover { transform:translateY(-2px); box-shadow:var(--shadow-hover); border-color:var(--border-strong); }
.os-issue-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.os-repo { font-size:13px; font-weight:600; color:var(--accent); font-family:ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing:-0.01em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.os-assign { font-size:11px; font-weight:600; padding:3px 9px; border-radius:999px; white-space:nowrap; flex:0 0 auto; }
.os-assign.free { background:rgba(0,102,184,0.10); color:var(--accent); }
.os-assign.assigned { background:var(--surface-3); color:var(--text-3); }
.os-issue-title { font-size:16px; font-weight:600; line-height:1.35; color:var(--text); }
.os-labels { display:flex; flex-wrap:wrap; gap:6px; }
.os-label { font-size:11px; font-weight:600; padding:3px 9px; border-radius:6px; line-height:1.4; }
.os-issue-meta { display:flex; flex-wrap:wrap; align-items:center; gap:7px; font-size:13px; color:var(--text-3); margin-top:2px; }
.os-dot { opacity:.55; }
.os-loading { text-align:center; color:var(--text-3); padding:40px 0; font-size:15px; }
.os-note { border-radius:14px; padding:14px 18px; font-size:14px; margin-bottom:18px; }
.os-error { background:rgba(255,195,19,0.14); border:1px solid rgba(255,195,19,0.5); color:var(--text); }
.os-token { margin-top:34px; border-top:1px solid var(--border); padding-top:20px; }
.os-token summary { cursor:pointer; font-size:14px; font-weight:600; color:var(--text-2); }
.os-token p { margin:12px 0; max-width:640px; }
.os-token-row { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.os-token-row input { flex:1 1 260px; font:inherit; font-size:14px; color:var(--text); background:var(--surface); border:1px solid var(--border-strong); border-radius:12px; padding:10px 14px; }
.os-token-row .btn { padding-top:9px; padding-bottom:9px; }

@media (max-width:600px) {
  .os-list { grid-template-columns:1fr; }
  .os-status { align-items:flex-start; }
}

/* live "breathing" dot next to sync status */
.os-synced-line { display:inline-flex; align-items:center; gap:7px; }
.os-live { width:8px; height:8px; border-radius:50%; background:#30d158; position:relative; flex:0 0 auto; box-shadow:0 0 0 rgba(48,209,88,0.5); }
.os-live::after { content:""; position:absolute; inset:0; border-radius:50%; background:#30d158; animation:os-breathe 1.9s ease-out infinite; }
@keyframes os-breathe { 0%{ transform:scale(1); opacity:.75 } 70%{ transform:scale(2.8); opacity:0 } 100%{ transform:scale(2.8); opacity:0 } }
@media (prefers-reduced-motion: reduce) { .os-live::after { animation:none; } }

.os-credit { font-size:12px; color:var(--text-3); margin:12px 0 0; }
.os-credit a { color:var(--text-3); font-weight:500; text-decoration:underline; text-underline-offset:2px; }

/* ---------------------------------------------------------------------- */
/* Volunteers                                                              */
/* ---------------------------------------------------------------------- */
.more-link-row { text-align:center; margin-top:18px; }
.more-link { color:var(--accent); font-weight:600; text-decoration:none; font-size:15px; }
.more-link:hover { text-decoration:underline; }
.more-link .arr { display:inline-block; transition:transform .2s ease; }
.more-link:hover .arr { transform:translateX(4px); }

.vol-block { margin-bottom:40px; }
.vol-h { font-size:15px; font-weight:700; letter-spacing:0.3px; text-transform:uppercase; color:var(--text-3); margin-bottom:18px; }
.vol-grid { display:flex; flex-wrap:wrap; gap:12px; }
.vol-name { display:inline-flex; align-items:center; gap:9px; padding:11px 18px; background:var(--surface); border:1px solid var(--border); border-radius:999px; text-decoration:none; color:var(--text); font-weight:500; font-size:15.5px; box-shadow:var(--shadow); transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.vol-name:hover { transform:translateY(-2px); box-shadow:var(--shadow-hover); border-color:var(--border-strong); }
.vol-name svg { width:15px; height:15px; color:#0A66C2; flex:0 0 auto; }
