/* ==========================================================================
   Triangle Bikeworks — design system
   Ported from the Claude Design handoff (*-Bikeworks.dc.html). Token values
   are taken verbatim from the prototypes' inline styles.
   ========================================================================== */

:root {
  /* Surfaces */
  --tbw-bg:            #fffdf9;
  --tbw-surface:       #ffffff;
  --tbw-sand:          #faf3e8;
  --tbw-sand-light:    #fdfaf5;
  --tbw-border:        #efe7da;
  --tbw-dark:          #2b2b2b;
  --tbw-dark-card:     #3a3a3a;

  /* Text */
  --tbw-ink:           #2b2b2b;
  --tbw-muted:         #5c5c5c;
  --tbw-muted-dark:    #98989b;

  /* Brand */
  --tbw-red:           #a3212c;
  --tbw-red-hover:     #7c1820;
  --tbw-blue:          #3a63a8;
  --tbw-blue-deep:     #2c4f8f;
  --tbw-blue-tint:     #eaf1fb;
  --tbw-green:         #4f9d4a;
  --tbw-green-deep:    #3d7a3a;
  --tbw-green-tint:    #eaf6e9;
  --tbw-orange:        #e8862b;
  --tbw-orange-deep:   #c25c1c;
  --tbw-orange-tint:   #fdece0;
  --tbw-purple-deep:   #6b3fa0;
  --tbw-purple-tint:   #f3ecfa;

  /* Type */
  --tbw-font-head: 'Poppins', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --tbw-font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Geometry */
  --tbw-wide:   1280px;
  --tbw-narrow: 1200px;
  --tbw-gutter: 24px;
  --tbw-r-pill: 999px;
  --tbw-r-card: 20px;
  --tbw-r-lg:   24px;
  --tbw-r-hero: 28px;
  --tbw-r-xl:   32px;
}

/* --------------------------------------------------------------- base ---- */

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

body {
  margin: 0;
  background: var(--tbw-bg);
  color: var(--tbw-ink);
  font-family: var(--tbw-font-body);
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: var(--tbw-red); }
a:hover { color: var(--tbw-red-hover); }

h1, h2, h3 { font-family: var(--tbw-font-head); }

img { max-width: 100%; height: auto; }

/* Visible keyboard focus — the prototypes had none, and this ships publicly. */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--tbw-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.tbw-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--tbw-red);
  color: #fff;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 0 8px 0;
}
.tbw-skip-link:focus {
  left: 0;
  color: #fff;
}

.tbw-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;
}

/* ------------------------------------------------------------ helpers ---- */

.pill { border-radius: var(--tbw-r-pill); }

.tbw-wide   { max-width: var(--tbw-wide);   margin-inline: auto; padding-inline: var(--tbw-gutter); }
.tbw-narrow { max-width: var(--tbw-narrow); margin-inline: auto; padding-inline: var(--tbw-gutter); }

.tbw-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--tbw-r-pill);
}
.tbw-eyebrow--orange { background: var(--tbw-orange-tint); color: var(--tbw-orange-deep); }
.tbw-eyebrow--blue   { background: var(--tbw-blue-tint);   color: var(--tbw-blue-deep); }
.tbw-eyebrow--green  { background: var(--tbw-green-tint);  color: var(--tbw-green-deep); }
.tbw-eyebrow--purple { background: var(--tbw-purple-tint); color: var(--tbw-purple-deep); }
.tbw-eyebrow--solid-blue  { background: var(--tbw-blue);  color: #fff; }
.tbw-eyebrow--solid-green { background: var(--tbw-green); color: #fff; }
.tbw-eyebrow--on-red      { background: rgba(255,255,255,0.15); color: #fff; }

.tbw-btn {
  display: inline-block;
  border-radius: var(--tbw-r-pill);
  font-weight: 700;
  font-size: 14px;
  padding: 16px 28px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.tbw-btn--primary { background: var(--tbw-red); color: #fff; }
.tbw-btn--primary:hover { background: var(--tbw-red-hover); color: #fff; }
.tbw-btn--light { background: #fff; color: var(--tbw-ink); }
.tbw-btn--light:hover { background: #f2ede4; color: var(--tbw-ink); }
.tbw-btn--on-red { background: #fff; color: var(--tbw-red); padding: 18px 32px; }
.tbw-btn--on-red:hover { background: #f6eee9; color: var(--tbw-red); }
.tbw-btn--lg { padding: 18px 32px; }
.tbw-btn--sm { padding: 12px 20px; font-size: 13px; }

/* ---------------------------------------------------------------- nav ---- */

.tbw-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--tbw-wide);
  margin: 0 auto;
  padding: 16px var(--tbw-gutter);
}
.tbw-nav__logo img { height: 38px; width: auto; display: block; }
.tbw-nav__logo-text {
  font-family: var(--tbw-font-head);
  font-weight: 800;
  font-size: 20px;
  color: var(--tbw-ink);
  letter-spacing: -0.01em;
}
.tbw-nav__menu { display: flex; gap: 8px; align-items: center; }
.tbw-nav__menu ul {
  display: flex;
  gap: 8px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tbw-nav__menu a {
  display: inline-block;
  border-radius: var(--tbw-r-pill);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tbw-ink);
}
.tbw-nav__menu a:hover { background: var(--tbw-sand); color: var(--tbw-ink); }
.tbw-nav__menu .current-menu-item > a,
.tbw-nav__menu .current_page_item > a { background: var(--tbw-sand); }

.tbw-nav__donate {
  background: var(--tbw-red);
  color: #fff !important;
  padding: 12px 24px !important;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--tbw-r-pill);
  margin-left: 6px;
}
.tbw-nav__donate:hover { background: var(--tbw-red-hover) !important; }

.tbw-nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--tbw-border);
  border-radius: var(--tbw-r-pill);
  padding: 10px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--tbw-ink);
  cursor: pointer;
}

/* -------------------------------------------------------------- hero ----- */

.tbw-hero { position: relative; max-width: var(--tbw-wide); margin: 8px auto 0; padding: 0 var(--tbw-gutter); }
.tbw-hero__frame {
  position: relative;
  border-radius: var(--tbw-r-hero);
  overflow: hidden;
  height: 82vh;
  min-height: 560px;
  background: #f0602b;
}
.tbw-hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,20,20,0.05) 30%, rgba(20,20,20,0.68) 100%);
  pointer-events: none;
}
.tbw-hero__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px; }
.tbw-hero__title {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  margin: 18px 0 0;
  max-width: 18ch;
}
.tbw-hero__lede {
  font-size: 18px;
  color: #fff;
  max-width: 56ch;
  margin: 18px 0 0;
  opacity: 0.95;
}
.tbw-hero__actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

/* ------------------------------------------------------------- slider ---- */

.tbw-slider { position: relative; width: 100%; height: 100%; overflow: hidden; }

.tbw-slider__viewport { position: relative; width: 100%; height: 100%; }

.tbw-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease;
  will-change: opacity;
}
.tbw-slider__slide.is-active { opacity: 1; }
.tbw-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Single-image slot: no transition machinery needed. */
.tbw-slider--static .tbw-slider__slide { position: relative; opacity: 1; }

.tbw-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px; height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  color: var(--tbw-ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}
.tbw-slider__nav:hover { background: #fff; }
.tbw-slider__nav--prev { left: 16px; }
.tbw-slider__nav--next { right: 16px; }

.tbw-slider__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
  margin: 0; padding: 0;
  list-style: none;
}
.tbw-slider__dot {
  width: 9px; height: 9px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.tbw-slider__dot.is-active { background: #fff; transform: scale(1.25); }

/* Hero puts its dots above the copy block, not over it. */
.tbw-hero__frame .tbw-slider__dots { bottom: auto; top: 24px; left: auto; right: 24px; transform: none; }

.tbw-slot-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  min-height: 160px;
  padding: 20px;
  background: repeating-linear-gradient(45deg, #f4ece0, #f4ece0 12px, #efe4d4 12px, #efe4d4 24px);
  color: var(--tbw-orange-deep);
  font-family: var(--tbw-font-body);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

/* ------------------------------------------------------------ marquee ---- */

@keyframes tbw-marquee-left  { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes tbw-marquee-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.tbw-marquee { padding: 56px 0 0; overflow: hidden; }
.tbw-marquee__label { max-width: var(--tbw-wide); margin: 0 auto; padding: 0 var(--tbw-gutter) 24px; }
.tbw-marquee__label span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tbw-red);
}
.tbw-marquee__track { overflow: hidden; margin-bottom: 16px; }
.tbw-marquee__track:last-child { margin-bottom: 0; padding-bottom: 8px; }
.tbw-marquee__row { display: flex; gap: 16px; width: max-content; }
.tbw-marquee__row--left  { animation: tbw-marquee-left  42s linear infinite; }
.tbw-marquee__row--right { animation: tbw-marquee-right 42s linear infinite; }
.tbw-marquee__track:hover .tbw-marquee__row,
.tbw-marquee__track:focus-within .tbw-marquee__row { animation-play-state: paused; }

.tbw-tile {
  position: relative;
  flex: 0 0 260px;
  height: 320px;
  border-radius: var(--tbw-r-card);
  overflow: hidden;
}
.tbw-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tbw-tile__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(30,20,15,0.85) 100%);
  pointer-events: none;
}
.tbw-tile__badge {
  position: absolute;
  left: 14px; bottom: 14px;
  border-radius: var(--tbw-r-pill);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
}
.tbw-badge--red    { background: var(--tbw-red); }
.tbw-badge--blue   { background: var(--tbw-blue); }
.tbw-badge--green  { background: var(--tbw-green); }
.tbw-badge--orange { background: var(--tbw-orange); }

/* ------------------------------------------------------------ sections --- */

.tbw-section { padding: 56px var(--tbw-gutter) 40px; }
.tbw-section--tight { padding: 24px var(--tbw-gutter) 80px; }

.tbw-statement { max-width: var(--tbw-wide); margin: 0 auto; text-align: center; }
.tbw-statement p {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 500;
  color: var(--tbw-ink);
  max-width: 44ch;
  margin: 0 auto;
  line-height: 1.4;
}

.tbw-page-head { padding: 64px var(--tbw-gutter) 40px; max-width: var(--tbw-narrow); margin: 0 auto; }
.tbw-page-head--tight { padding-bottom: 32px; }
.tbw-page-head__title {
  font-size: clamp(34px, 5.5vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--tbw-ink);
  margin: 20px 0 0;
  max-width: 18ch;
}
.tbw-page-head__title--wide {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.12;
  max-width: 22ch;
}
.tbw-page-head__lede {
  font-size: 18px;
  line-height: 1.5;
  color: var(--tbw-muted);
  max-width: 58ch;
  margin: 18px 0 0;
}

.tbw-prose h2 { font-size: 22px; font-weight: 700; color: var(--tbw-ink); margin: 0; }
.tbw-prose p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--tbw-muted);
  margin-top: 14px;
  max-width: 56ch;
}

/* Split: text beside a portrait photo slot */
.tbw-split {
  max-width: var(--tbw-narrow);
  margin: 0 auto;
  padding: 0 var(--tbw-gutter) 64px;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px;
  align-items: start;
}
.tbw-split--center { align-items: center; }
.tbw-split__media { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--tbw-r-lg); overflow: hidden; }

/* ------------------------------------------------------------ features --- */

.tbw-cards {
  max-width: var(--tbw-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tbw-card {
  border-radius: var(--tbw-r-lg);
  overflow: hidden;
  background: var(--tbw-surface);
  border: 1px solid var(--tbw-border);
}
.tbw-card__media { height: 220px; }
.tbw-card__body { padding: 26px; }
.tbw-card__title { font-size: 22px; font-weight: 700; color: var(--tbw-ink); margin: 14px 0 0; }
.tbw-card__text { font-size: 15px; color: var(--tbw-muted); margin-top: 10px; line-height: 1.5; }

/* ---------------------------------------------------------------- stats -- */

.tbw-stats { padding: 60px var(--tbw-gutter); background: var(--tbw-sand); }
.tbw-stats__grid {
  max-width: var(--tbw-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.tbw-stat__num { font-size: clamp(34px, 5vw, 52px); font-weight: 800; font-family: var(--tbw-font-head); }
.tbw-stat__label { font-size: 14px; font-weight: 600; color: var(--tbw-ink); margin-top: 6px; }

/* ---------------------------------------------------------- testimonial -- */

.tbw-feature {
  padding: 80px var(--tbw-gutter);
}
.tbw-feature__grid {
  max-width: var(--tbw-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.tbw-feature__media { border-radius: var(--tbw-r-hero); overflow: hidden; aspect-ratio: 5 / 4; }
.tbw-feature__title {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  color: var(--tbw-ink);
  margin: 18px 0 0;
}
.tbw-feature__text { font-size: 16px; color: var(--tbw-muted); margin-top: 14px; line-height: 1.6; }
.tbw-feature blockquote {
  font-size: 19px;
  font-weight: 600;
  color: var(--tbw-ink);
  line-height: 1.5;
  margin: 22px 0 0;
  padding-left: 18px;
  border-left: 4px solid var(--tbw-red);
}
.tbw-attrib { font-size: 14px; font-weight: 600; color: var(--tbw-muted); margin-top: 12px; }

.tbw-pullquote { padding: 24px var(--tbw-gutter) 80px; text-align: center; }
.tbw-pullquote p:first-child {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--tbw-ink);
}
.tbw-pullquote .tbw-attrib { margin-top: 18px; }

/* --------------------------------------------------------------- video --- */

.tbw-video { padding: 24px var(--tbw-gutter) 80px; }
.tbw-video__inner { max-width: 900px; margin: 0 auto; position: relative; }
.tbw-video__frame { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--tbw-r-hero); overflow: hidden; }
.tbw-video__play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  border: none; background: none; cursor: pointer;
  z-index: 4;
}
.tbw-video__play-dot {
  width: 78px; height: 78px;
  border-radius: 50%;
  background: var(--tbw-red);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease;
}
.tbw-video__play:hover .tbw-video__play-dot { transform: scale(1.06); }
.tbw-video__play-dot::after {
  content: '';
  width: 0; height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 20px solid #fff;
  margin-left: 4px;
}
.tbw-video__embed { position: absolute; inset: 0; z-index: 5; border-radius: var(--tbw-r-hero); overflow: hidden; }
.tbw-video__embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ------------------------------------------------------------ dark band -- */

.tbw-band {
  padding: 64px var(--tbw-gutter);
  border-radius: var(--tbw-r-xl);
  max-width: var(--tbw-wide);
  margin: 0 auto 60px;
}
.tbw-band--dark { background: var(--tbw-dark); }
.tbw-band--red  { background: var(--tbw-red); text-align: center; padding: 70px var(--tbw-gutter); }
.tbw-band__inner { max-width: var(--tbw-narrow); margin: 0 auto; }
.tbw-band__title { font-size: 30px; font-weight: 800; color: #fff; margin: 16px 0 0; }

.tbw-cta { padding: 70px var(--tbw-gutter); background: var(--tbw-red); text-align: center; border-radius: var(--tbw-r-xl); max-width: var(--tbw-wide); margin: 0 auto 60px; }
.tbw-cta__title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: #fff; margin: 0; }
.tbw-cta__text { font-size: 17px; color: #fff; max-width: 52ch; margin: 14px auto 0; opacity: 0.92; }
.tbw-cta__quote {
  max-width: 720px;
  margin: 20px auto 0;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
}
.tbw-cta .tbw-attrib { color: #fff; opacity: 0.85; margin-top: 20px; }

/* ------------------------------------------------------------- ride log -- */

.tbw-ridelog { margin-top: 26px; display: flex; flex-direction: column; }
.tbw-ridelog__row {
  display: grid;
  grid-template-columns: 0.6fr 1.6fr 1.6fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.tbw-ridelog__row:last-child { border-bottom: none; }
.tbw-ridelog__year  { font-size: 16px; font-weight: 700; color: #fff; }
.tbw-ridelog__name  { font-size: 16px; color: #fff; opacity: 0.9; }
.tbw-ridelog__route { font-size: 16px; color: #fff; opacity: 0.6; }

/* ----------------------------------------------------------- tile grids -- */

.tbw-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 26px;
}
.tbw-grid-2--tight { gap: 20px; }

.tbw-panel {
  background: var(--tbw-surface);
  border: 1px solid var(--tbw-border);
  border-radius: var(--tbw-r-card);
  padding: 24px;
}
.tbw-panel__name { font-size: 20px; font-weight: 700; color: var(--tbw-ink); margin: 0; }
.tbw-panel__role {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tbw-red);
  margin: 8px 0 0;
}
.tbw-panel__bio { font-size: 15px; line-height: 1.6; color: var(--tbw-muted); margin-top: 12px; }

.tbw-panel--dark { background: var(--tbw-dark-card); border: none; border-radius: 16px; padding: 22px; }
.tbw-panel--dark h3 { font-size: 19px; font-weight: 700; color: #fff; margin: 0; }
.tbw-panel--dark p { font-size: 15px; line-height: 1.6; color: #fff; opacity: 0.85; margin-top: 12px; }

/* Give: the four ways-to-give cards */
.tbw-give-card {
  background: var(--tbw-surface);
  border: 1px solid var(--tbw-border);
  border-radius: var(--tbw-r-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.tbw-give-card .tbw-eyebrow { align-self: flex-start; padding: 5px 14px; font-size: 11px; }
.tbw-give-card h2 { font-size: 19px; font-weight: 700; color: var(--tbw-ink); margin: 14px 0 0; }
.tbw-give-card p { font-size: 15px; line-height: 1.6; color: var(--tbw-muted); margin-top: 12px; flex: 1; }
.tbw-give-card .tbw-btn { align-self: flex-start; margin-top: 16px; }

/* ------------------------------------------------------- info cards ------ */
/* Safety & Parents: four white explainer cards in a two-column grid. */

.tbw-info-card {
  background: var(--tbw-surface);
  border: 1px solid var(--tbw-border);
  border-radius: var(--tbw-r-card);
  padding: 24px;
}
.tbw-info-card h2 { font-size: 19px; font-weight: 700; color: var(--tbw-ink); margin: 0; }
.tbw-info-card p { font-size: 15px; line-height: 1.6; color: var(--tbw-muted); margin-top: 12px; }
.tbw-info-card h3 { font-size: 16px; font-weight: 700; color: var(--tbw-ink); margin: 20px 0 0; }
.tbw-info-card ul { margin: 10px 0 0; padding-left: 20px; }
.tbw-info-card li { font-size: 15px; line-height: 1.7; color: #5d5d60; }

/* --------------------------------------------------------- quote cards --- */

.tbw-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 26px;
}

.tbw-quote-card {
  background: var(--tbw-dark-card);
  border-radius: 16px;
  padding: 22px;
}
.tbw-quote-card__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  opacity: 0.5;
}
.tbw-quote-card__quote {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  color: #fff;
  margin: 12px 0 0;
}
.tbw-quote-card__attrib {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  opacity: 0.7;
  margin: 12px 0 0;
}

/* ----------------------------------------------------------- closing cta - */

.tbw-closer { padding: 56px var(--tbw-gutter) 80px; max-width: var(--tbw-narrow); margin: 0 auto; text-align: center; }
.tbw-closer--flush { padding-top: 0; }
.tbw-closer h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--tbw-ink);
  margin: 0;
}
.tbw-closer .tbw-btn { margin-top: 22px; }

/* -------------------------------------------------------------- footer --- */

.tbw-footer { padding: 40px var(--tbw-gutter) 32px; background: var(--tbw-sand); }
.tbw-footer--light { background: var(--tbw-sand-light); }
.tbw-footer__inner {
  max-width: var(--tbw-wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}
.tbw-footer__meta { font-size: 13px; font-weight: 500; color: var(--tbw-muted); }
.tbw-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.tbw-footer nav ul { display: flex; gap: 20px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.tbw-footer nav a { font-size: 13px; font-weight: 600; color: var(--tbw-ink); }
.tbw-footer nav a:hover { color: var(--tbw-red); }

/* ---------------------------------------------------- editor / fallback -- */

.tbw-default-page { max-width: 760px; margin: 0 auto; padding: 64px var(--tbw-gutter) 80px; }
.tbw-default-page h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; line-height: 1.1; margin: 0 0 24px; }
.tbw-default-page p,
.tbw-default-page li { font-size: 17px; line-height: 1.65; color: var(--tbw-muted); }
.tbw-default-page a { text-decoration: underline; }

/* --------------------------------------------------------- breakpoints --- */
/* The prototypes are desktop-only; these rules are additions, not ports.    */

@media (max-width: 1024px) {
  .tbw-cards { grid-template-columns: repeat(2, 1fr); }
  .tbw-grid-3 { grid-template-columns: 1fr; }
  .tbw-feature__grid { grid-template-columns: 1fr; gap: 32px; }
  .tbw-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .tbw-hero__body { padding: 32px; }
}

@media (max-width: 860px) {
  .tbw-nav__toggle { display: inline-block; }
  .tbw-nav__menu {
    display: none;
    position: absolute;
    top: 74px;
    left: var(--tbw-gutter);
    right: var(--tbw-gutter);
    z-index: 20;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--tbw-surface);
    border: 1px solid var(--tbw-border);
    border-radius: var(--tbw-r-card);
    padding: 12px;
    box-shadow: 0 18px 40px rgba(43,43,43,0.14);
  }
  .tbw-nav__menu.is-open { display: flex; }
  .tbw-nav__menu ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .tbw-nav__menu a { display: block; }
  .tbw-nav__donate { margin-left: 0; text-align: center; }
  .tbw-nav { position: relative; }

  .tbw-split,
  .tbw-grid-2,
  .tbw-grid-2--tight { grid-template-columns: 1fr; }
  .tbw-split__media { aspect-ratio: 4 / 3; max-height: 460px; }

  .tbw-ridelog__row { grid-template-columns: 64px 1fr; row-gap: 4px; }
  .tbw-ridelog__route { grid-column: 2; }

  /* The hero copy is absolutely positioned on desktop. On a narrow screen it
     is taller than any fixed-ratio frame, so it would overflow and clip. Stack
     image, scrim and copy in one grid cell instead and let the copy set the
     height. */
  .tbw-hero__frame {
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    display: grid;
  }
  .tbw-hero__frame > * { grid-area: 1 / 1; }
  .tbw-hero__frame > .tbw-slider,
  .tbw-hero__frame > .tbw-slot-empty { min-height: 60vw; }
  .tbw-hero__body {
    /* Stays positioned: the slides are absolute, so a static body would be
       painted underneath the photo. Relative + z-index keeps the copy on top
       while still taking part in the grid's height. */
    position: relative;
    z-index: 2;
    inset: auto;
    align-self: end;
    padding: 28px 24px;
  }
  .tbw-hero__title { max-width: none; }
  /* The copy fills the lower half, so arrows would land on the headline.
     Swipe and the dots both still work here. */
  .tbw-hero__frame .tbw-slider__nav { display: none; }

  .tbw-band, .tbw-cta { border-radius: var(--tbw-r-lg); }
}

@media (max-width: 620px) {
  .tbw-cards { grid-template-columns: 1fr; }
  .tbw-stats__grid { grid-template-columns: 1fr; gap: 28px; }
  .tbw-hero__body { padding: 24px; }
  .tbw-feature, .tbw-video { padding-left: 16px; padding-right: 16px; }
  .tbw-tile { flex: 0 0 200px; height: 260px; }
  .tbw-slider__nav { width: 36px; height: 36px; }
  .tbw-slider__nav--prev { left: 8px; }
  .tbw-slider__nav--next { right: 8px; }
  .tbw-footer__inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .tbw-marquee__row--left,
  .tbw-marquee__row--right { animation: none; }
  .tbw-marquee__track { overflow-x: auto; }
  .tbw-slider__slide { transition: none; }
  * { scroll-behavior: auto !important; }
}
