/* ==========================================================================
   Trade Mission — Detroit & Toronto
   Design tokens → base → chrome → sections
   ========================================================================== */

:root {
  --ink: #0b1530;
  --ink-2: #556079;
  --ink-3: #8a93a6;
  --canvas: #f4f5f8;
  --surface: #ffffff;
  --line: rgba(11, 21, 48, 0.08);
  --line-2: rgba(11, 21, 48, 0.14);

  --accent: #2445c8;          /* Aguascalientes state blue */
  --accent-soft: rgba(36, 69, 200, 0.08);
  --detroit: #a65a14;         /* Detroit River at dusk */
  --toronto: #c8322b;         /* Maple */

  --night: #0a0f1f;

  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius: 14px;

  --shadow-card: 0 1px 2px rgba(11, 21, 48, 0.04), 0 10px 30px rgba(11, 21, 48, 0.06);
  --shadow-lift: 0 2px 4px rgba(11, 21, 48, 0.06), 0 18px 40px rgba(11, 21, 48, 0.1);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;

  --bar-h: 60px;
}

@media (max-width: 859px) {
  :root { --bar-h: 100px; }
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  top: 0 !important; /* Google Translate pushes the body down */
}

img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); }

:focus-visible {
  outline: 3px solid rgba(36, 69, 200, 0.5);
  outline-offset: 2px;
  border-radius: 10px;
}

[id] { scroll-margin-top: calc(var(--bar-h) + 20px); }

.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.lb-lock { overflow: hidden; }

/* ---------- Buttons & chips ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(0.97); }

.btn-light { background: #fff; color: var(--ink); }
.btn-glass {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
}
.btn-ink { background: var(--ink); color: #fff; }

@media (hover: hover) and (pointer: fine) {
  .btn-light:hover { background: #eef0f6; }
  .btn-glass:hover { background: rgba(255, 255, 255, 0.22); }
  .btn-ink:hover { background: #1a2748; }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--canvas);
  transition: transform 160ms var(--ease-out), background-color 150ms ease;
}
.chip .bi { color: var(--accent); }
.chip:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .chip:hover { background: #e8ebf2; }
}

.lang {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 6px;
  color: var(--ink-2);
  background: rgba(11, 21, 48, 0.06);
  white-space: nowrap;
}

/* ==========================================================================
   Navigation bar — translucent material over content
   ========================================================================== */

.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: #fff;
  transition: color 250ms ease;
}

.bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(248, 249, 252, 0.74);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0;
  transition: opacity 250ms ease;
}

.bar.is-solid { color: var(--ink); }
.bar.is-solid::before { opacity: 1; }

.bar-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: inherit;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand span { font-weight: 400; opacity: 0.72; letter-spacing: -0.01em; }

.bar-nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.bar-nav a {
  color: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 999px;
  opacity: 0.8;
  white-space: nowrap;
  transition: opacity 200ms ease, background-color 200ms ease, color 200ms ease;
}
.bar-nav a:hover { opacity: 1; }
.bar-nav a[aria-current="true"] { opacity: 1; background: rgba(255, 255, 255, 0.16); }
.bar.is-solid .bar-nav a[aria-current="true"] { background: var(--accent-soft); color: var(--accent); }

/* Google Translate, restyled as a quiet pill */
.translate { flex: none; min-height: 32px; display: flex; align-items: center; }
.translate .goog-te-gadget { font-size: 0 !important; color: transparent !important; white-space: nowrap; }
.translate .goog-te-gadget > span { display: none !important; }
.translate .goog-te-combo {
  appearance: none;
  -webkit-appearance: none;
  margin: 0 !important;
  height: 32px;
  padding: 0 28px 0 12px;
  border: 0;
  border-radius: 999px;
  font: 500 0.8125rem/1 var(--font);
  color: #fff !important;
  background: rgba(255, 255, 255, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%23888' stroke-width='1.6'%3E%3Cpath d='m1 1 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 11px center;
  cursor: pointer;
}
.bar.is-solid .translate .goog-te-combo { background-color: rgba(11, 21, 48, 0.06); color: var(--ink) !important; }
.translate .goog-te-combo option { color: var(--ink); }
.goog-te-banner-frame, iframe.skiptranslate { display: none !important; }

.bar-menu { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.menu-toggle, .bar-scrim { display: none; }

/* ---------- Mobile: hamburger + dropdown sheet ---------- */
@media (max-width: 859px) {
  :root { --bar-h: 56px; }

  .bar-inner { height: 56px; }

  .menu-toggle {
    display: block;
    position: relative;
    width: 44px;
    height: 44px;
    margin: 0 -10px 0 auto;
    border: 0;
    border-radius: 12px;
    color: inherit;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 160ms var(--ease-out);
  }
  .menu-toggle:active { transform: scale(0.92); }
  .menu-toggle span {
    position: absolute;
    left: 13px;
    width: 18px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 320ms var(--ease-drawer);
  }
  .menu-toggle span:first-child { top: 18.5px; }
  .menu-toggle span:last-child { top: 24px; }
  .bar.menu-open .menu-toggle span:first-child { transform: translateY(2.75px) rotate(45deg); }
  .bar.menu-open .menu-toggle span:last-child { transform: translateY(-2.75px) rotate(-45deg); }

  .bar.menu-open { color: var(--ink); }
  .bar.menu-open::before { opacity: 1; box-shadow: none; }

  .bar-menu {
    position: fixed;
    top: var(--bar-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    max-height: calc(100svh - var(--bar-h));
    overflow-y: auto;
    padding: 4px 20px 22px;
    color: var(--ink);
    background: rgba(248, 249, 252, 0.94);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 1px 0 var(--line), 0 24px 48px rgba(11, 21, 48, 0.14);
    border-radius: 0 0 22px 22px;
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    transition: opacity 160ms ease, transform 200ms var(--ease-out), visibility 0s linear 200ms;
  }
  .bar.menu-open .bar-menu {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: opacity 220ms ease, transform 360ms var(--ease-drawer), visibility 0s;
  }

  .bar-nav { flex-direction: column; gap: 0; margin: 0; }
  .bar-nav a {
    padding: 14px 2px;
    border-radius: 0;
    font-size: 1.1875rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--ink);
    opacity: 1;
    box-shadow: inset 0 -1px 0 var(--line);
  }
  .bar-nav a[aria-current="true"],
  .bar.is-solid .bar-nav a[aria-current="true"] { color: var(--accent); background: none; }

  .bar-menu .translate { margin-top: 16px; }
  .bar-menu .translate > div,
  .bar-menu .goog-te-gadget,
  .bar-menu .goog-te-gadget > div { width: 100%; }
  .bar-menu .translate .goog-te-combo {
    width: 100%;
    height: 46px;
    padding: 0 38px 0 14px;
    border-radius: 14px;
    font-size: 0.9375rem;
    color: var(--ink) !important;
    background-color: rgba(11, 21, 48, 0.06);
  }

  .bar-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgba(8, 13, 32, 0.32);
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms ease, visibility 0s linear 200ms;
  }
  .bar.menu-open .bar-scrim { opacity: 1; visibility: visible; transition: opacity 260ms ease, visibility 0s; }
}

/* ==========================================================================
   Hero — the route is the thesis
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(94svh, 860px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--night);
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 45%; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 13, 32, 0.6) 0%, rgba(8, 13, 32, 0.08) 30%, rgba(8, 13, 32, 0.35) 58%, rgba(8, 13, 32, 0.94) 100%),
    linear-gradient(90deg, rgba(8, 13, 32, 0.55) 0%, rgba(8, 13, 32, 0) 60%);
}

.hero-inner { padding-block: calc(var(--bar-h) + 64px) clamp(40px, 7vw, 72px); }

.hero-eyebrow {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.hero-title {
  margin: 14px 0 0;
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-optical-sizing: auto;
}

.hero-sub {
  margin: 18px 0 0;
  max-width: 34ch;
  font-size: clamp(1.125rem, 2.2vw, 1.4375rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: rgba(255, 255, 255, 0.8);
}
.hero-sub strong { color: #fff; font-weight: 600; }

.route {
  --dot: 12px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 760px;
  margin: clamp(36px, 6vw, 56px) 0 0;
  padding: calc(var(--dot) + 14px) 0 0;
  list-style: none;
}

.route::before,
.route::after {
  content: "";
  position: absolute;
  top: calc(var(--dot) / 2 - 1px);
  left: 0;
  width: 75%;
  height: 2px;
  border-radius: 2px;
}
.route::before { background: rgba(255, 255, 255, 0.2); }
.route::after {
  background: linear-gradient(90deg, #fff 0%, #e8a25c 33.3%, #f06a5f 66.6%, #fff 100%);
  transform-origin: left center;
  animation: route-draw 1400ms var(--ease-drawer) 450ms both;
}

.stop { position: relative; padding-right: 12px; }
.stop::before {
  content: "";
  position: absolute;
  top: calc(-1 * (var(--dot) + 14px));
  left: 0;
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16);
  animation: stop-in 500ms var(--ease-out) both;
}
.stop:nth-child(1)::before { animation-delay: 380ms; }
.stop:nth-child(2)::before { animation-delay: 780ms; background: #e8a25c; box-shadow: 0 0 0 4px rgba(232, 162, 92, 0.25); }
.stop:nth-child(3)::before { animation-delay: 1180ms; background: #f06a5f; box-shadow: 0 0 0 4px rgba(240, 106, 95, 0.25); }
.stop:nth-child(4)::before { animation-delay: 1580ms; }

.stop-city {
  display: block;
  font-size: clamp(0.9375rem, 1.8vw, 1.125rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.stop-date {
  display: block;
  margin-top: 2px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.66);
  font-variant-numeric: tabular-nums;
}
.stop-city .short { display: none; }

@media (max-width: 520px) {
  .stop-city .full { display: none; }
  .stop-city .short { display: inline; }
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(32px, 5vw, 44px); }

.hero-rise { animation: rise 900ms var(--ease-out) both; }
.hero-rise:nth-child(1) { animation-delay: 60ms; }
.hero-rise:nth-child(2) { animation-delay: 130ms; }
.hero-rise:nth-child(3) { animation-delay: 200ms; }
.hero-rise:nth-child(4) { animation-delay: 270ms; }
.hero-rise:nth-child(5) { animation-delay: 340ms; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes route-draw { from { transform: scaleX(0); } }
@keyframes stop-in { from { opacity: 0; transform: scale(0.5); } }

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding-block: clamp(72px, 10vw, 128px); }
.band-white { background: var(--surface); }

.section-head { max-width: 740px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-kicker {
  margin: 0 0 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.005em;
}
.section-title {
  margin: 0;
  font-size: clamp(2.125rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.section-lede {
  margin: 14px 0 0;
  font-size: clamp(1.0625rem, 1.7vw, 1.3125rem);
  line-height: 1.45;
  letter-spacing: -0.012em;
  color: var(--ink-2);
}

/* ==========================================================================
   Agenda
   ========================================================================== */

.days {
  position: sticky;
  top: calc(var(--bar-h) + 10px);
  z-index: 20;
  display: flex;
  gap: 2px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto clamp(28px, 4vw, 44px);
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  border-radius: 18px;
  background: rgba(228, 231, 239, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 0 0 1px var(--line), 0 8px 24px rgba(11, 21, 48, 0.06);
}
.days::-webkit-scrollbar { display: none; }

.days-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(11, 21, 48, 0.08), 0 4px 14px rgba(11, 21, 48, 0.08);
  transition: transform 380ms var(--ease-drawer), width 380ms var(--ease-drawer);
  pointer-events: none;
}

.day-tab {
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 8px 16px 8px 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink-2);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 200ms ease, transform 160ms var(--ease-out);
}
.day-tab:active { transform: scale(0.97); }
.day-tab[aria-selected="true"] { color: var(--ink); }

.d-num {
  grid-row: 1 / 3;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.d-wd { font-size: 0.75rem; font-weight: 600; line-height: 1.2; }
.d-city { display: flex; align-items: center; gap: 5px; font-size: 0.75rem; line-height: 1.2; }
.d-city::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--city, var(--ink-3));
}

[data-city="detroit"] { --city: var(--detroit); }
[data-city="toronto"] { --city: var(--toronto); }
[data-city="transit"] { --city: linear-gradient(90deg, var(--detroit) 50%, var(--toronto) 50%); }
.d-city::before, .day-place::before { background: var(--city); }

@media (max-width: 600px) {
  .day-tab { padding: 8px 12px 8px 11px; column-gap: 7px; }
  .d-city { font-size: 0; gap: 0; }
  .d-num { font-size: 1.3125rem; }
}

.day-panel { max-width: 900px; margin-inline: auto; }

.day-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 32px;
  padding-bottom: 20px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.day-head h3 {
  margin: 0;
  font-size: clamp(1.625rem, 3.2vw, 2.125rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.day-place {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 0;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.day-place::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }

.day-stats { display: flex; gap: 24px; margin: 0; font-size: 0.875rem; color: var(--ink-2); }
.day-stats p { margin: 0; }
.day-stats b {
  display: block;
  font-size: 1.5rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Timeline */

.timeline { list-style: none; margin: 0; padding: 12px 0 0; }

.tl-item {
  display: grid;
  grid-template-columns: 92px 28px minmax(0, 1fr);
  grid-template-areas: "time marker body";
  column-gap: 14px;
}

.tl-time {
  grid-area: time;
  padding-top: 11px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.tl-time time { display: block; font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; }
.tl-time span { display: block; font-size: 0.8125rem; color: var(--ink-2); }

.tl-marker { grid-area: marker; position: relative; }
.tl-marker::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: var(--line-2);
}
.tl-item:first-child .tl-marker::before { top: 20px; }
.tl-item:last-child .tl-marker::before { bottom: auto; height: 20px; }

.tl-marker::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--canvas);
  box-shadow: inset 0 0 0 2px var(--ink-3);
}

.tl-event .tl-time { padding-top: 21px; }
.tl-event .tl-marker::after {
  top: 24px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--canvas), 0 0 0 6px rgba(36, 69, 200, 0.2);
}

/* Logistics rows stay quiet */
.step {
  grid-area: body;
  display: flex;
  gap: 12px;
  padding: 10px 0 16px;
}
.step-icon { flex: none; margin-top: 2px; font-size: 1rem; color: var(--ink-3); }
.step-body { min-width: 0; }
.step-title { margin: 0; font-size: 0.9375rem; font-weight: 500; color: var(--ink); line-height: 1.45; }
.step-kind {
  margin-right: 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.step-note { margin: 2px 0 0; font-size: 0.875rem; color: var(--ink-2); }
.step-addr {
  display: inline-flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 3px;
  font-size: 0.875rem;
  color: var(--ink-2);
  transition: color 150ms ease;
}
.step-addr .bi { margin-top: 1px; }
.step-addr:hover { color: var(--accent); }

/* Meetings are the content */
.event-card {
  grid-area: body;
  margin: 8px 0 20px;
  padding: 20px 22px 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.event-kind {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
}

.event-title {
  margin: 0;
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
.event-note { margin: 6px 0 0; font-size: 0.9375rem; color: var(--ink-2); }

.event-alert {
  display: flex;
  gap: 8px;
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #7a4a06;
  background: #fff6e5;
}
.event-alert .bi { flex: none; margin-top: 1px; }

.people-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 18px 0 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.people-label span {
  min-width: 18px;
  padding: 1px 6px;
  border-radius: 999px;
  text-align: center;
  letter-spacing: 0;
  background: rgba(11, 21, 48, 0.06);
}

.people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2px 16px;
  margin: 0 -10px;
  padding: 0;
  list-style: none;
}

.person {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--ink);
  transition: background-color 150ms ease, transform 160ms var(--ease-out);
}
a.person:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  a.person:hover { background: var(--canvas); }
  a.person:hover .person-go { opacity: 1; }
}

.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
}

.person-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.person-text strong { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; }
.person-text span { font-size: 0.8125rem; color: var(--ink-2); }
.person-go { margin-left: auto; font-size: 0.875rem; color: var(--ink-3); opacity: 0.7; transition: opacity 150ms ease; }

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.agenda-foot { display: flex; justify-content: center; margin-top: clamp(32px, 5vw, 48px); }

@media (max-width: 640px) {
  .tl-item {
    grid-template-columns: 22px minmax(0, 1fr);
    grid-template-areas: "marker time" "marker body";
    column-gap: 12px;
  }
  .tl-time,
  .tl-event .tl-time {
    display: flex;
    gap: 5px;
    padding-top: 10px;
    text-align: left;
    color: var(--ink-2);
  }
  .tl-time time { font-size: 0.8125rem; color: var(--ink); }
  .tl-time span::before { content: "– "; }
  .tl-marker::after,
  .tl-event .tl-marker::after { top: 14px; }
  .tl-item:first-child .tl-marker::before { top: 18px; }
  .tl-item:last-child .tl-marker::before { height: 18px; }
  .step { padding-top: 2px; }
  .event-card { margin: 6px 0 18px; padding: 16px 16px 14px; border-radius: 18px; }
  .people { grid-template-columns: 1fr; }
  .day-stats { gap: 16px; }
}

/* ==========================================================================
   Delegation
   ========================================================================== */

.members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(16px, 2.4vw, 24px);
}

/* Portraits shown at about their native resolution (source ≈266×355 px, 3:4)
   so they are never upscaled (pixelated) or cropped. */
.member {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 24px 24px;
  border-radius: var(--radius-xl);
  background: var(--canvas);
  text-align: center;
}

.member-photo {
  display: block;
  width: min(212px, 100%);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, #e9ecf4, #dfe3ee);
  box-shadow: 0 1px 2px rgba(11, 21, 48, 0.06), 0 12px 28px rgba(11, 21, 48, 0.12);
  transition: transform 160ms var(--ease-out), box-shadow 300ms ease;
}
.member-photo:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .member-photo:hover { box-shadow: 0 2px 4px rgba(11, 21, 48, 0.08), 0 18px 40px rgba(11, 21, 48, 0.18); }
}
.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
}

.member-body { display: flex; flex-direction: column; align-items: center; flex: 1; width: 100%; padding-top: 22px; }
.member-name { margin: 0; font-size: 1.25rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.022em; }
.member-role { margin: 4px 0 0; max-width: 32ch; font-size: 0.875rem; font-weight: 500; line-height: 1.35; color: var(--accent); }
.member-bio {
  align-self: stretch;
  display: -webkit-box;
  margin: 12px 0 0;
  overflow: hidden;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-2);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.link-arrow {
  display: inline-flex;
  align-self: center;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.link-arrow .bi { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover .bi { transform: translate(2px, -2px); }
}

/* Four members: 2×2 on medium screens, one row on wide screens, one column on phones */
.members { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1100px) {
  .members { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .member { padding: 26px 20px 22px; }
}
@media (max-width: 560px) {
  .members { grid-template-columns: 1fr; }
}

/* Phones: portrait beside name and role, bio underneath */
@media (max-width: 560px) {
  .member {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "photo name"
      "photo role"
      "bio   bio"
      "link  link";
    column-gap: 16px;
    align-items: normal;
    padding: 18px;
    border-radius: var(--radius-lg);
    text-align: left;
  }
  .member-photo { grid-area: photo; width: 104px; border-radius: 14px; }
  .member-body { display: contents; }
  .member-name { grid-area: name; align-self: end; font-size: 1.125rem; }
  .member-role { grid-area: role; align-self: start; max-width: none; font-size: 0.8125rem; }
  .member-bio { grid-area: bio; margin-top: 14px; font-size: 0.875rem; }
  .link-arrow { grid-area: link; justify-self: start; align-self: auto; padding-top: 12px; }
}

/* ==========================================================================
   Document lists — inset grouped, shared by library & presentations
   ========================================================================== */

.doc-list {
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.doc-list li { position: relative; }
.doc-list li:not([hidden]) ~ li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 62px;
  right: 14px;
  height: 1px;
  background: var(--line);
}

.doc {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 10px 14px 10px 12px;
  border-radius: 14px;
  color: var(--ink);
  transition: background-color 150ms ease, transform 160ms var(--ease-out);
}
.doc:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) {
  .doc:hover { background: var(--canvas); }
  .doc:hover .doc-go { transform: translateX(2px); color: var(--accent); }
}

.doc-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 1.0625rem;
  color: var(--accent);
  background: var(--accent-soft);
}
.doc-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.doc-text strong { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; }
.doc-text span { margin-top: 1px; font-size: 0.8125rem; color: var(--ink-2); }
.doc .lang { margin-left: auto; }
.doc-go { flex: none; margin-left: auto; font-size: 0.8125rem; color: var(--ink-3); transition: transform 200ms var(--ease-out), color 150ms ease; }
.doc .lang + .doc-go { margin-left: 0; }

/* ---------- Library ---------- */

.lib-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 28px;
}

.search {
  position: relative;
  flex: 1 1 320px;
  max-width: 480px;
}
.search .bi {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  font-size: 0.9375rem;
  color: var(--ink-3);
  pointer-events: none;
}
.search input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 42px;
  border: 0;
  border-radius: 14px;
  font: 400 1rem var(--font);
  color: var(--ink);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(11, 21, 48, 0.04);
  transition: box-shadow 200ms ease;
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 4px rgba(36, 69, 200, 0.12); }

.search-status { margin: 0; font-size: 0.875rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.lib-grid { columns: 2 420px; column-gap: 28px; }

.doc-group { break-inside: avoid; margin: 0 0 32px; }
.group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px 6px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.group-title .count { font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.group-title .city-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--city); }

.lib-empty {
  margin: 8px 0 32px;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--ink-2);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.lib-empty strong { display: block; margin-bottom: 4px; font-size: 1.0625rem; color: var(--ink); }

/* ---------- Presentations ---------- */

.decks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }

.deck { display: flex; flex-direction: column; }
.deck-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 18px;
  border-radius: var(--radius-xl);
  background: #1b2f8f;
  box-shadow: var(--shadow-card);
}
.deck-cover img { width: 100%; height: 100%; object-fit: cover; }
.deck-title { margin: 0 0 12px 6px; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.025em; }

@media (max-width: 820px) {
  .decks { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Videos — dark stage
   ========================================================================== */

.band-night { background: var(--night); color: #f4f6fb; }
.band-night .section-title { color: #fff; }
.band-night .section-lede { color: rgba(255, 255, 255, 0.64); }

.player-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.player-frame video { width: 100%; height: 100%; object-fit: contain; background: #000; }

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  border: 0;
  color: #fff;
  background:
    radial-gradient(120% 90% at 50% 100%, rgba(36, 69, 200, 0.45), transparent 60%),
    linear-gradient(160deg, #111a3a, #05070f);
  cursor: pointer;
}
.player-start-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 200ms var(--ease-out), background-color 200ms ease;
}
.player-start-icon .bi { margin-left: 4px; }
.player-start:active .player-start-icon { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .player-start:hover .player-start-icon { background: rgba(255, 255, 255, 0.24); transform: scale(1.04); }
}
.player-start-label { font-size: 0.9375rem; font-weight: 600; color: rgba(255, 255, 255, 0.86); }
.player-frame.has-video .player-start { display: none; }

.player-meta { margin-top: 18px; padding-inline: 4px; }
.player-meta h3 { margin: 0; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.025em; color: #fff; }
.player-meta p { margin: 4px 0 0; color: rgba(255, 255, 255, 0.6); }

.playlist {
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.track {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  text-align: left;
  color: #fff;
  background: transparent;
  cursor: pointer;
  transition: background-color 150ms ease, transform 160ms var(--ease-out);
}
.track:active { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) {
  .track:hover { background: rgba(255, 255, 255, 0.07); }
}
.track[aria-pressed="true"] { background: rgba(255, 255, 255, 0.12); }

.track-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.1);
}
.track-icon .bi { margin-left: 2px; }
.track[aria-pressed="true"] .track-icon { color: var(--night); background: #fff; }

.track-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.track-text strong { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; }
.track-text span { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.56); }
.track .lang { margin-left: auto; color: rgba(255, 255, 255, 0.72); background: rgba(255, 255, 255, 0.1); }

@media (max-width: 900px) {
  .player-grid { grid-template-columns: 1fr; }
  .player-frame { border-radius: 18px; }
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.seg button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--canvas);
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.seg button span { font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; transition: color 200ms ease; }
.seg button:active { transform: scale(0.97); }
.seg button[aria-pressed="true"] { color: #fff; background: var(--ink); }
.seg button[aria-pressed="true"] span { color: rgba(255, 255, 255, 0.6); }
@media (hover: hover) and (pointer: fine) {
  .seg button[aria-pressed="false"]:hover { background: #e8ebf2; }
}

.photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.photo a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e6e9f0;
  cursor: zoom-in;
}
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .photo a:hover img { transform: scale(1.04); }
}

@media (max-width: 520px) {
  .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .photo a { border-radius: 10px; }
}

/* ---------- Lightbox ---------- */

.lightbox { position: fixed; inset: 0; z-index: 100; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(5, 8, 18, 0.94); }

.lb-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.lb-img {
  border-radius: 12px;
  object-fit: contain;
  will-change: transform;
  -webkit-user-drag: none;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}
.lb-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(22px, env(safe-area-inset-bottom));
  margin: 0;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.72);
  pointer-events: none;
}
.lb-count {
  position: absolute;
  top: max(24px, env(safe-area-inset-top));
  left: 24px;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  font-variant-numeric: tabular-nums;
}

.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  font-size: 1.125rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition: background-color 150ms ease, transform 160ms var(--ease-out);
}
.lb-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .lb-btn:hover { background: rgba(255, 255, 255, 0.22); }
}
.lb-close { top: max(16px, env(safe-area-inset-top)); right: 16px; }
.lb-prev { top: 50%; left: 16px; margin-top: -22px; }
.lb-next { top: 50%; right: 16px; margin-top: -22px; }

@media (max-width: 640px) {
  .lb-prev, .lb-next { top: auto; bottom: max(14px, env(safe-area-inset-bottom)); margin-top: 0; }
  .lb-cap { bottom: max(72px, calc(env(safe-area-inset-bottom) + 60px)); }
  .lb-img { border-radius: 8px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.foot { padding-block: 40px; border-top: 1px solid var(--line); background: var(--canvas); }
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.foot-brand strong { display: block; font-size: 1rem; color: var(--ink); letter-spacing: -0.015em; }
.foot-copy { margin: 0; }
.foot-top { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.foot-credit { flex-basis: 100%; margin: 0; font-size: 0.75rem; color: var(--ink-3); }
.foot-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   Ottawa mission — single-city route and richer event cards
   ========================================================================== */

[data-city="ottawa"] { --city: var(--toronto); }

/* Three-stop route: Aguascalientes → Ottawa → Aguascalientes */
.route--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 620px; }
.route--3::before,
.route--3::after { width: 66.6%; }
.route--3::after { background: linear-gradient(90deg, #fff 0%, #f06a5f 50%, #fff 100%); }
.route--3 .stop:nth-child(2)::before { animation-delay: 880ms; background: #f06a5f; box-shadow: 0 0 0 4px rgba(240, 106, 95, 0.25); }
.route--3 .stop:nth-child(3)::before { animation-delay: 1380ms; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16); }

.event-status {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  color: #7a4a06;
  background: #fff1d6;
  white-space: nowrap;
}

.event-section-label {
  margin: 16px 0 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.event-objective { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.event-objective--more { margin-top: 8px; color: var(--ink-2); }

.event-list {
  margin: 6px 0 0;
  padding: 0 0 0 18px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink);
}
.event-list li + li { margin-top: 2px; }
.event-list li::marker { color: var(--accent); }

.event-program {
  margin: 6px 0 0;
  padding: 4px 14px;
  list-style: none;
  border-radius: 14px;
  background: var(--canvas);
}
.event-program li {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  font-size: 0.875rem;
  line-height: 1.45;
}
.event-program li + li { border-top: 1px solid var(--line); }
.event-program time { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.event-program span { color: var(--ink-2); }

.event-facts { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 0 0; }
.event-fact { display: inline-flex; align-items: flex-start; gap: 7px; margin: 0; font-size: 0.875rem; line-height: 1.4; color: var(--ink-2); }
.event-fact .bi { flex: none; margin-top: 2px; color: var(--ink-3); }
.event-fact strong { font-weight: 600; color: var(--ink); }
.event-fact--pending .bi { color: #b7791f; }

@media (max-width: 640px) {
  .event-program { padding: 2px 12px; }
  .event-program li { grid-template-columns: 1fr; gap: 1px; padding: 8px 0; }
}

/* ==========================================================================
   Hidden sections — delete this block to show them again
   ========================================================================== */

#briefings,
#imagenes,
.bar-nav a[href="#briefings"],
.bar-nav a[href="#imagenes"] {
  display: none !important;
}

/* ==========================================================================
   Accessibility preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .bar::before, .days { background: #f8f9fc; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .btn-glass, .lb-btn, .player-start-icon { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  :root { --ink-2: #3a4459; --line: rgba(11, 21, 48, 0.2); --line-2: rgba(11, 21, 48, 0.35); }
  .event-card, .doc-list, .search input { box-shadow: inset 0 0 0 1px var(--ink-2); }
}
