/* =========================================================
   THE CYCLING INITIATIVE — CORE STYLESHEET
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=Roboto+Mono:wght@400;500;700&display=swap');

:root {
  /* ---- Colour tokens — from the TCI logo ---- */
  --navy: #07154A;
  --navy-deep: #020A2E;
  --blue: #075BFF;
  --blue-light: #126DFF;
  --cyan: #00D9FF;
  --teal: #00E6C3;
  --purple: #6947FF;
  --purple-dark: #4E2FD1;
  --error: #FF4D6D;
  --white: #FFFFFF;
  --fog: #F3F6FA;

  /* Derived */
  --ink: var(--navy-deep);
  --border-soft: rgba(7, 21, 74, 0.12);
  --border-onmark: rgba(255, 255, 255, 0.18);

  /* ---- Type ---- */
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Roboto Mono', monospace;

  /* ---- Layout ---- */
  --nav-height: 76px;
  --container: 1180px;
  --radius: 2px;

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
  line-height: 1.1;
  font-weight: 600;
}
p { margin: 0 0 1em; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Visually-hidden but accessible */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--purple); color: var(--white); padding: 12px 20px;
  font-family: var(--font-mono); font-size: 14px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 2px;
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--teal);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--purple); color: var(--white); border-color: var(--purple); }
.btn-primary:hover { background: var(--purple-dark); border-color: var(--purple-dark); }
.btn-secondary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-secondary:hover { background: var(--blue); border-color: var(--blue); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--border-onmark); }
.btn-outline:hover { border-color: var(--white); }
.btn-outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }
.btn-block { width: 100%; }
.btn-huge { padding: 24px 52px; font-size: 17px; letter-spacing: 0.08em; box-shadow: 0 12px 32px rgba(105,71,255,0.35); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  color: var(--white);
  font-size: 19px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.brand-mark {
  width: 10px; height: 10px; background: var(--cyan); display: inline-block;
  transform: rotate(45deg);
  flex-shrink: 0;
}
.brand-logo { height: 34px; width: auto; display: block; border-radius: 6px; flex-shrink: 0; }
.brand-wordmark { white-space: nowrap; }
@media (max-width: 420px) {
  .brand-wordmark { max-width: 150px; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
}
.footer-brand-lockup { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.footer-logo { height: 40px; width: auto; border-radius: 8px; flex-shrink: 0; }
.footer-brand-lockup h3 { margin: 0; }

.nav-desktop { display: flex; align-items: center; gap: 4px; }
.nav-desktop a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  padding: 10px 14px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--white);
  border-color: var(--cyan);
}
.nav-actions { display: flex; align-items: center; gap: 8px; }

.nav-more { position: relative; }
.nav-more-toggle {
  background: none; border: none;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase;
  color: rgba(255,255,255,0.72); padding: 10px 14px; display: inline-flex; align-items: center; gap: 6px;
}
.nav-more-toggle:hover { color: var(--white); }
.nav-more-panel {
  display: none;
  position: absolute; top: 100%; right: 0;
  background: var(--navy); border: 1px solid rgba(255,255,255,0.08);
  min-width: 160px; padding: 6px;
}
.nav-more.open .nav-more-panel { display: block; }
.nav-more-panel a {
  display: block; padding: 10px 12px; font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.8);
}
.nav-more-panel a:hover { background: rgba(255,255,255,0.06); color: var(--white); }

/* Hamburger (mobile only) */
.hamburger {
  display: none;
  background: none;
  border: none;
  width: 44px; height: 44px;
  position: relative;
  flex-shrink: 0;
}
.hamburger span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--white);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease), top 0.2s var(--ease);
}
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 22px; }
.hamburger span:nth-child(3) { top: 29px; }
.hamburger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- Mobile menu overlay ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--navy-deep);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s var(--ease);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-top {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-height);
  padding: 0 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.mobile-menu-close {
  background: none; border: none; width: 44px; height: 44px; position: relative;
}
.mobile-menu-close span {
  position: absolute; top: 50%; left: 8px; right: 8px; height: 2px; background: var(--white);
}
.mobile-menu-close span:nth-child(1) { transform: rotate(45deg); }
.mobile-menu-close span:nth-child(2) { transform: rotate(-45deg); }

.mobile-menu-body { padding: 20px 24px 40px; flex: 1; }
.mobile-nav-list a {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav-list a[aria-current="page"] { color: var(--blue-light); }
.mobile-nav-list a[aria-current="page"]::before { content: '— '; }
.mobile-menu-donate { margin-top: 24px; }
.mobile-menu-social {
  display: flex; gap: 18px; margin-top: 28px; flex-wrap: wrap;
}
.mobile-menu-social a {
  font-family: var(--font-mono); font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.05em; color: rgba(255,255,255,0.65);
  display: inline-flex; align-items: center;
}
.mobile-menu-social a:hover { color: var(--white); }

body.menu-open { overflow: hidden; }

@media (max-width: 900px) {
  .nav-desktop, .nav-actions .btn { display: none; }
  .nav-actions .hamburger { display: block; }
  .hamburger { display: block; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: linear-gradient(180deg, rgba(2,10,46,0.55) 0%, rgba(2,10,46,0.88) 55%, var(--navy-deep) 100%), url('../images/gallery/community-waterfront-ride.jpg');
  background-size: cover;
  background-position: center 30%;
  color: var(--white);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0; height: 6px;
  background: repeating-linear-gradient(
    90deg, var(--white) 0 28px, transparent 28px 52px
  );
  opacity: 0.9;
}
.hero-inner { max-width: 760px; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); color: var(--white); margin-bottom: 4px; }
.hero .tagline {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--blue-light);
  font-size: clamp(18px, 2.6vw, 26px);
  letter-spacing: 0.03em;
  margin-bottom: 22px;
}
.hero p.lede { font-size: 18px; color: rgba(255,255,255,0.82); max-width: 620px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0 52px;
}
.page-hero .eyebrow { color: var(--blue-light); }
.page-hero h1 { color: var(--white); font-size: clamp(32px, 5vw, 52px); }
.page-hero p.lede { color: rgba(255,255,255,0.8); max-width: 640px; font-size: 17px; }

/* =========================================================
   SECTIONS
   ========================================================= */
section { padding: 72px 0; }
.section-fog { background: var(--fog); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2 { color: var(--white); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }

/* ---------- Pillar / what-we-do cards ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-soft); }
.pillar-card {
  background: var(--white);
  padding: 32px 26px;
  transition: background 0.2s var(--ease);
}
.pillar-card:hover { background: var(--fog); }
.pillar-card .num { font-family: var(--font-mono); font-size: 13px; color: var(--blue); margin-bottom: 18px; display: block; }
.pillar-card h3 { font-size: 20px; margin-bottom: 10px; }
.pillar-card p { color: rgba(11,30,54,0.7); font-size: 15px; margin: 0; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

/* =========================================================
   SIGNATURE COMPONENT — "ROAD" PROGRESS TRACKER
   ========================================================= */
.road-tracker {
  background: var(--navy-deep);
  color: var(--white);
  padding: 44px clamp(20px, 4vw, 44px);
  border-radius: var(--radius);
}
.road-tracker-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 12px; margin-bottom: 28px;
}
.road-tracker-head h2, .road-tracker-head h3 { margin: 0; color: var(--white); }
.road-tracker-stat {
  font-family: var(--font-mono);
  font-size: clamp(26px, 4vw, 38px);
  color: var(--blue-light);
}
.road-tracker-stat .goal { color: rgba(255,255,255,0.5); font-size: 0.6em; }

.road {
  position: relative;
  height: 34px;
  background: #142c4a;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 14px;
}
.road-surface {
  position: absolute; inset: 0;
  background: #142c4a;
}
.road-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-light) 100%);
  width: 0%;
  transition: width 1s var(--ease);
}
.road-centerline {
  position: absolute; left: 0; right: 0; top: 50%; height: 3px;
  transform: translateY(-50%);
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.85) 0 16px, transparent 16px 30px);
}
.road-marker {
  position: absolute; top: 50%; width: 14px; height: 14px;
  background: var(--purple);
  border: 3px solid var(--navy-deep);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  left: 0%;
  transition: left 1s var(--ease);
}
.road-tracker-foot {
  display: flex; justify-content: space-between; font-family: var(--font-mono);
  font-size: 13px; color: rgba(255,255,255,0.6); flex-wrap: wrap; gap: 8px;
}
.road-tracker-foot .pct { color: var(--cyan); font-weight: 700; }

/* =========================================================
   CARDS — rides / journal / founders / events
   ========================================================= */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--border-soft);
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.card-media {
  aspect-ratio: 4 / 3;
  background: var(--navy);
  background-size: cover;
  background-position: center;
  position: relative;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-status {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--purple); color: var(--white); padding: 5px 10px;
}
.card-status.upcoming { background: var(--blue); }
.card-status.completed { background: var(--navy-deep); }
.card-status.cancelled { background: #6b7280; }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-meta {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--blue);
}
.card-body h3 { font-size: 19px; margin-bottom: 2px; }
.card-body p { color: rgba(11,30,54,0.7); font-size: 14.5px; margin: 0; flex: 1; }
.card-stats { display: flex; gap: 16px; font-family: var(--font-mono); font-size: 12.5px; color: var(--navy); margin-top: 6px; flex-wrap: wrap; }
.card-link { margin-top: 12px; font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; color: var(--blue); letter-spacing: 0.05em; }
.card-link:hover { text-decoration: underline; }

.empty-state {
  border: 1px dashed var(--border-soft);
  padding: 48px 24px;
  text-align: center;
  color: rgba(11,30,54,0.6);
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Founders */
.founder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .founder-grid { grid-template-columns: 1fr; } }
.founder-card { display: flex; flex-direction: column; }
.founder-photo {
  aspect-ratio: 1 / 1;
  background: var(--navy);
  margin-bottom: 20px;
  overflow: hidden;
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-role {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--purple); margin-bottom: 6px; display: block;
}
.founder-headline {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.8;
  color: rgba(7,21,74,0.62);
  margin-bottom: 18px;
}
.founder-card .btn { margin-top: 8px; align-self: flex-start; }

/* =========================================================
   FORMS
   ========================================================= */
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block; font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 8px; color: var(--navy);
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--white);
  color: var(--ink);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--blue);
}
.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select { border-color: var(--error); }
.field-error { color: var(--error); font-size: 13px; margin-top: 6px; display: none; font-family: var(--font-mono); }
.form-field.has-error .field-error { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 14px;
  display: none;
}
.form-status.visible { display: block; }
.form-status.success { background: rgba(27,95,166,0.1); color: var(--blue); border: 1px solid var(--blue); }
.form-status.error { background: rgba(255,77,109,0.08); color: var(--error); border: 1px solid var(--error); }
.form-status.loading { background: var(--fog); color: var(--navy); border: 1px solid var(--border-soft); }

.newsletter-inline { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-inline .form-field { flex: 1; min-width: 180px; margin-bottom: 0; }

/* =========================================================
   PROGRESS TRACKER (secondary/compact — used inline on pages)
   ========================================================= */
.progress-compact { margin: 18px 0; }
.progress-compact .bar { height: 10px; background: var(--border-soft); border-radius: 6px; overflow: hidden; }
.progress-compact .bar-fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); width: 0%; transition: width 1s var(--ease); }
.progress-compact .labels { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12.5px; margin-top: 8px; color: var(--navy); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 30px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand h3 { color: var(--white); font-size: 20px; margin-bottom: 4px; }
.footer-brand .tagline { font-family: var(--font-display); text-transform: uppercase; color: var(--blue-light); font-size: 14px; margin-bottom: 10px; }
.footer-brand .loc { font-family: var(--font-mono); font-size: 13px; color: rgba(255,255,255,0.55); }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 14px; font-weight: 500;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { display: inline-flex; align-items: center; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.45);
}

/* =========================================================
   MISC UTILITIES
   ========================================================= */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.tag {
  font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em;
  border: 1px solid var(--border-soft); padding: 7px 12px; color: var(--navy);
}
.divider { height: 1px; background: var(--border-soft); margin: 56px 0; }
.stat-block { display: flex; gap: 40px; flex-wrap: wrap; margin: 24px 0; }
.stat-block .stat { font-family: var(--font-mono); }
.stat-block .stat .n { font-size: 34px; color: var(--blue); display: block; }
.stat-block .stat .l { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(11,30,54,0.6); }
.social-row { display: flex; gap: 14px; flex-wrap: wrap; }
.social-row a {
  font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 10px 16px; border: 1px solid var(--border-soft); color: var(--navy);
  display: inline-flex; align-items: center;
}
.social-row a:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }
.social-row a:hover .social-icon { filter: brightness(0) invert(1); }
.social-icon { width: 16px; height: 16px; vertical-align: -3px; margin-right: 7px; }

.partner-card {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  padding: 40px;
}
.partner-logo { width: 140px; height: 140px; object-fit: contain; border-radius: 12px; flex-shrink: 0; }
@media (max-width: 700px) {
  .partner-card { flex-direction: column; text-align: center; padding: 30px; }
  .partner-logo { width: 110px; height: 110px; }
}
.video-embed { position: relative; aspect-ratio: 16/9; background: var(--navy); overflow: hidden; }
.video-embed iframe { width: 100%; height: 100%; border: 0; }
.lazy-img { background: var(--fog); }

/* =========================================================
   GALLERY + LIGHTBOX
   ========================================================= */
.masonry {
  columns: 3 240px;
  column-gap: 16px;
}
@media (max-width: 760px) { .masonry { columns: 2 160px; } }
.masonry-item {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
  background: var(--navy);
}
.masonry-item img { width: 100%; display: block; transition: transform 0.3s var(--ease); }
.masonry-item:hover img { transform: scale(1.04); }
.masonry-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(2,10,46,0.85), transparent);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 22px 12px 10px;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.masonry-item:hover .cap { opacity: 1; }
.gallery-filters { margin-bottom: 24px; }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(2,10,46,0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(90vw, 1100px); max-height: 82vh; object-fit: contain; }
.lightbox-caption {
  position: absolute; bottom: 24px; left: 0; right: 0; text-align: center;
  color: rgba(255,255,255,0.75); font-family: var(--font-mono); font-size: 13px;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
  color: var(--white); width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.18); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* =========================================================
   NEWSLETTER — dated ride posts, newest first
   ========================================================= */
.newsletter-post {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border-soft);
}
.newsletter-post:first-child { padding-top: 0; }
@media (max-width: 760px) { .newsletter-post { grid-template-columns: 1fr; } }
.newsletter-post-media {
  aspect-ratio: 4/3;
  background: var(--navy);
  overflow: hidden;
  border-radius: var(--radius);
}
.newsletter-post-media img { width: 100%; height: 100%; object-fit: cover; }
.newsletter-post-media.empty {
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--border-soft);
  background: var(--fog);
  color: rgba(7,21,74,0.5);
  font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em;
  text-align: center; padding: 20px;
}
.newsletter-post-body h3 { font-size: 24px; margin-bottom: 6px; }
.newsletter-post-gallery { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.newsletter-post-gallery img {
  width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius);
  cursor: zoom-in;
}
.newsletter-badge {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; background: var(--purple); color: var(--white); padding: 4px 10px; margin-bottom: 10px;
}

/* Condensed newsletter cards (list view) */
.newsletter-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 980px) { .newsletter-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .newsletter-card-grid { grid-template-columns: 1fr; } }
.newsletter-card { border: 1px solid var(--border-soft); background: var(--white); display: flex; flex-direction: column; }
.newsletter-card .card-media { aspect-ratio: 4/3; background: var(--navy); background-size: cover; background-position: center; }
.newsletter-card .card-media.empty {
  display: flex; align-items: center; justify-content: center; background: var(--fog);
  color: rgba(7,21,74,0.5); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase;
}
.newsletter-card .card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.newsletter-card .card-body h3 { font-size: 19px; margin-bottom: 2px; }
.newsletter-card .card-body p { color: rgba(7,21,74,0.7); font-size: 14.5px; margin: 0; flex: 1; }
.newsletter-read-more {
  margin-top: 12px; font-family: var(--font-mono); font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--blue); background: none; border: none; padding: 0; text-align: left; cursor: pointer;
}
.newsletter-read-more:hover { text-decoration: underline; }

/* Expanded post modal — takes up most of the viewport, like a real article */
.post-modal {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(2,10,46,0.92);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}
.post-modal.open { display: flex; }
.post-modal-card {
  background: var(--white);
  width: 100%;
  max-width: 900px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  margin-bottom: 40px;
}
.post-modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  background: rgba(2,10,46,0.65); border: 1px solid rgba(255,255,255,0.3);
  color: var(--white); width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.post-modal-close:hover { background: rgba(2,10,46,0.9); }
.post-modal-media { width: 100%; aspect-ratio: 16/9; background: var(--navy); }
.post-modal-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-modal-media.empty {
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-family: var(--font-mono); font-size: 13px; text-transform: uppercase;
}
.post-modal-body { padding: clamp(24px, 4vw, 48px); }
.post-modal-body h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 14px; }
.post-modal-body p { font-size: 16.5px; line-height: 1.7; color: rgba(7,21,74,0.85); }
.post-modal-gallery { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.post-modal-gallery img { width: 120px; height: 120px; object-fit: cover; border-radius: 4px; cursor: zoom-in; }
