:root {
  --ink: #0b1b33;
  --navy: #00448c;
  --blue: #0b58c2;
  --blue-deep: #00306a;
  --sun: #ffb81c;
  --coral: #ff5d47;
  --aqua: #12b5c8;
  --steel: #b9d4ff;
  --white: #ffffff;
  --paper: #f3f8ff;
  --line: #d3e0f3;
  --muted: #4b6079;
  --radius: 14px;
  --font-display: "Amatic SC", "Arial Narrow", "Inter", sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Space Mono", "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--navy);
  line-height: 1;
  margin-top: 0;
}

h1 { font-size: 3.6rem; }
h2 { font-size: 3rem; }
h3 { font-size: 1.9rem; }

a { color: var(--blue); }

img { max-width: 100%; display: block; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.center { text-align: center; }

/* Kicker tag: small label flanked by hairlines */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 10px;
}

.kicker::before,
.kicker::after {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero .container > * { animation: none !important; }
  .ticker-track { animation: none !important; }
}

/* Nav */
.site-header {
  background: var(--white);
  color: var(--ink);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 20px rgba(11, 27, 51, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
}

.nav .brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav .brand img {
  height: 60px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  background-image: linear-gradient(var(--blue), var(--blue));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size 0.2s ease, color 0.2s ease;
  padding-bottom: 2px;
}

.nav a:hover {
  color: var(--blue);
  background-size: 100% 2px;
}

.nav .cta {
  background: var(--sun);
  color: var(--ink);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  padding: 11px 20px 7px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ink);
  background-image: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav .cta:hover {
  color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.lang-switch {
  display: flex;
  gap: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  flex-shrink: 0;
}

.lang-switch button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-switch button.active {
  background: var(--blue);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--blue-deep);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--blue-deep) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 56px 24px 130px;
  text-align: center;
}

/* warm sunrise glow, like the light in the video */
.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 184, 28, 0.55) 0%, rgba(255, 184, 28, 0) 68%);
  top: -220px;
  right: -140px;
  pointer-events: none;
  z-index: 1;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* slight zoom from the bottom-right pushes the generator's corner badge out of view */
  transform: scale(1.15);
  transform-origin: 100% 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 8% 100%, rgba(255, 184, 28, 0.5), transparent 42%),
    linear-gradient(160deg, rgba(0, 48, 106, 0.7) 0%, rgba(11, 88, 194, 0.4) 55%, rgba(0, 48, 106, 0.8) 100%);
  z-index: 0;
}

.hero-cut {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -4vw;
  height: calc(64px + 4vw);
  background: var(--paper);
  transform: skewY(-2deg);
  transform-origin: bottom left;
  z-index: 2;
}

.hero-cut.to-sun { background: var(--sun); }

.hero .container { position: relative; z-index: 2; }

.hero-compact { padding-top: 44px; }
.hero-compact h1 { font-size: clamp(3.2rem, 7.5vw, 5.2rem); }

.hero .container > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero .container > *:nth-child(1) { animation-delay: 0.05s; }
.hero .container > *:nth-child(2) { animation-delay: 0.15s; }
.hero .container > *:nth-child(3) { animation-delay: 0.25s; }
.hero .container > *:nth-child(4) { animation-delay: 0.3s; }
.hero .container > *:nth-child(5) { animation-delay: 0.4s; }
.hero .container > *:nth-child(6) { animation-delay: 0.5s; }
.hero .container > *:nth-child(7) { animation-delay: 0.6s; }
.hero .container > *:nth-child(8) { animation-delay: 0.7s; }
.hero .container > *:nth-child(9) { animation-delay: 0.8s; }

.hero-logo {
  width: min(360px, 74vw);
  height: auto;
  margin: 0 auto 26px;
  filter: drop-shadow(0 4px 18px rgba(4, 20, 60, 0.45));
}

.hero .eyebrow {
  display: inline-block;
  background: var(--sun);
  color: var(--ink);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  padding: 9px 20px 6px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(3.6rem, 9vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: 0.015em;
  max-width: 900px;
  margin: 0 auto 12px;
  text-shadow: 0 2px 22px rgba(4, 20, 60, 0.35);
}

.trail-underline {
  display: block;
  margin: 0 auto 24px;
  width: 200px;
  height: 22px;
  color: var(--sun);
}

.hero p.lead {
  max-width: 680px;
  margin: 0 auto 34px;
  color: #eaf2ff;
  font-size: 1.16rem;
}

.button-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn {
  display: inline-block;
  padding: 14px 30px 9px;
  border-radius: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--sun);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.85);
}

.btn-secondary:hover {
  transform: translate(-2px, -2px);
  background: var(--white);
  color: var(--blue-deep);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

/* Next event strip (home hero) */
.next-event {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  max-width: 740px;
  margin: 0 auto 32px;
  padding: 14px 20px;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 rgba(11, 27, 51, 0.85);
  text-align: left;
}

.date-chip {
  background: var(--sun);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 6px 12px;
  text-align: center;
  line-height: 1.1;
  min-width: 62px;
}

.date-chip b {
  display: block;
  font-family: var(--font-display);
  font-size: 2.3rem;
  line-height: 0.9;
}

.date-chip span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ne-text { flex: 1 1 220px; }

.ne-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
}

.ne-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
}

.ne-text span { color: var(--muted); font-size: 0.9rem; }

/* Progress bar */
.progress-wrap {
  position: relative;
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  overflow: hidden;
  height: 16px;
  max-width: 480px;
  margin: 0 auto 30px;
}

.progress-bar {
  position: relative;
  height: 100%;
  width: 0%;
  background: var(--sun);
  border-radius: 999px;
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 780px;
  margin: 0 auto;
}

.hero-stats .stat {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 16px 10px;
  backdrop-filter: blur(4px);
}

.hero-stats .stat .value {
  font-family: var(--font-display);
  font-size: 2.9rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  line-height: 1;
  padding-bottom: 4px;
}

.hero-stats .stat .label {
  color: #dbe8ff;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* Ticker */
.ticker {
  background: var(--sun);
  color: var(--ink);
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0 8px;
  border-bottom: 3px solid var(--ink);
}

.ticker-track {
  display: inline-flex;
  animation: marquee 34s linear infinite;
  will-change: transform;
}

.ticker-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-right: 1.6rem;
}

/* Sections */
section {
  padding: 88px 0;
}

section.alt { background: var(--white); }

section.on-blue {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 140%);
  color: var(--white);
}

section.on-blue .section-heading h2 { color: var(--white); }
section.on-blue .section-heading p { color: #dbe8ff; }
section.on-blue .kicker { color: var(--sun); }

.section-heading {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 48px;
}

.section-heading h2 {
  font-size: clamp(3.2rem, 7vw, 4.8rem);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.section-heading p { color: var(--muted); font-size: 1.08rem; }

.grid {
  display: grid;
  gap: 24px;
}

.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Rotating accent colours for cards, steps, avatars */
.grid > .card:nth-child(4n+1), .steps > .step:nth-child(4n+1) { --tone: var(--blue); --tone-ink: var(--white); }
.grid > .card:nth-child(4n+2), .steps > .step:nth-child(4n+2) { --tone: var(--sun); --tone-ink: var(--ink); }
.grid > .card:nth-child(4n+3), .steps > .step:nth-child(4n+3) { --tone: var(--coral); --tone-ink: var(--white); }
.grid > .card:nth-child(4n+4), .steps > .step:nth-child(4n+4) { --tone: var(--aqua); --tone-ink: var(--white); }

section.on-blue .grid > .card:nth-child(4n+1) { --tone: var(--aqua); }

.card {
  --tone: var(--blue);
  --tone-ink: var(--white);
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-top: 5px solid var(--tone);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 6px 6px 0 var(--ink);
  border-color: var(--ink);
  border-top-color: var(--tone);
}

section.alt .card { background: var(--paper); }

.card h3 { margin-bottom: 8px; font-size: 2.1rem; }

.icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--tone);
  color: var(--tone-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.icon-badge svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.step {
  --tone: var(--blue);
  --tone-ink: var(--white);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--tone);
  padding: 28px 24px 26px;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--tone);
  color: var(--tone-ink);
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  padding-top: 4px;
  margin-bottom: 16px;
}

.step h3 { font-size: 2.2rem; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); }

.steps + .center { margin-top: 44px; }

/* Team */
.team-card {
  text-align: center;
  position: relative;
  padding: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--tone);
  color: var(--tone-ink);
  border-bottom: 3px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 6rem;
  line-height: 1;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.team-body { padding: 16px 14px 20px; }
.team-body h3 { margin: 0 0 4px; font-size: 2.2rem; }
.team-body p { margin: 8px 0 0; font-size: 0.92rem; color: var(--muted); }

.grid[data-team-list] { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

/* Trail timeline (events page) */
.trail {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.trail-line {
  position: absolute;
  left: 11px;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background-image: linear-gradient(to bottom, var(--blue) 0 9px, transparent 9px 18px);
  background-size: 3px 18px;
  background-repeat: repeat-y;
}

.trail-item {
  position: relative;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding-bottom: 32px;
}

.trail-item:last-child { padding-bottom: 0; }

.trail-node {
  position: relative;
  z-index: 1;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  margin-top: 6px;
  margin-left: -1px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--line);
}

.trail-item.is-upcoming .trail-node { border-color: var(--ink); background: var(--sun); }

.trail-item.is-finish .trail-node {
  border-color: var(--sun);
  background: var(--blue);
}

.trail-item .event-card { flex: 1; margin-top: 0; }

/* Events */
.event-card { width: 100%; }

.finish-card {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 130%);
  border-color: var(--ink);
  border-top-color: var(--sun);
}

.finish-card h3,
.finish-card .event-meta { color: var(--white); }

.finish-card p { color: #dbe8ff; }

.finish-card .event-status {
  background: var(--sun);
  border-color: var(--sun);
  color: var(--ink);
}

.event-body h3 { margin-bottom: 4px; }

.event-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.event-status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid;
  margin-bottom: 10px;
}

.event-status.upcoming { border-color: var(--blue); color: var(--blue); background: #e8f1ff; }
.event-status.past { border-color: var(--line); color: var(--muted); }

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 48px 0;
}

/* Closing call-to-action band */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--blue-deep) url("../images/corredores.jpg") center / cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 100px 0;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 184, 28, 0.4), transparent 45%),
    linear-gradient(160deg, rgba(0, 48, 106, 0.84), rgba(11, 88, 194, 0.7));
}

.cta-band .container { position: relative; }
.cta-band .section-heading { margin-bottom: 30px; }
.cta-band .section-heading h2 { color: var(--white); font-size: clamp(3.8rem, 9vw, 6rem); }
.cta-band .section-heading p { color: #eaf2ff; font-size: 1.12rem; }
.cta-band .kicker { color: var(--sun); }
.cta-band .button-row { margin-bottom: 0; }

/* Footer */
.site-footer {
  background: var(--blue-deep);
  color: #c5d8f7;
  padding: 56px 0 48px;
  text-align: center;
}

.footer-logo {
  width: min(260px, 70vw);
  height: auto;
  margin: 0 auto 22px;
}

.site-footer a { color: var(--white); }

.site-footer .socials {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 16px;
}

/* Buttons: solid + small */
[hidden] { display: none !important; }

button.btn { cursor: pointer; }

.btn-solid {
  background: var(--blue);
  color: var(--white);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-solid:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn-small { padding: 9px 18px 5px; font-size: 1.35rem; }

.event-actions { margin-top: 14px; }

/* Signup */
.signup { padding-top: 56px; }

.narrow { max-width: 720px; }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: var(--radius);
  padding: 36px 32px;
}

.form-card + .form-card { margin-top: 24px; }

.form-card h2 { margin-bottom: 22px; font-size: 3.2rem; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.field label { font-weight: 600; font-size: 0.9rem; }

.field input,
.field textarea {
  font: inherit;
  padding: 11px 12px;
  border: 1px solid #b9c9df;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11, 88, 194, 0.2);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-small { max-width: 190px; }

/* Custom dropdown (js/ui.js): same look in every browser */
.custom-select { position: relative; }

.cs-native {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cs-button {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  padding: 11px 44px 11px 12px;
  border: 1px solid #b9c9df;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  position: relative;
  -webkit-appearance: none;
  appearance: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-button::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2.5px solid var(--navy);
  border-bottom: 2.5px solid var(--navy);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s ease;
}

.cs-button[aria-expanded="true"]::after { transform: translateY(-25%) rotate(-135deg); }
.cs-button.is-placeholder { color: var(--muted); }

.cs-button:focus,
.cs-button[aria-expanded="true"] {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11, 88, 194, 0.2);
}

.cs-list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--ink);
  max-height: 280px;
  overflow-y: auto;
}

.cs-option {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1.35;
}

.cs-option.is-empty { color: var(--muted); }
.cs-option.is-empty[aria-selected="true"] { font-weight: 400; color: var(--muted); }
.cs-option.is-empty[aria-selected="true"]::after { content: none; }
.cs-option.is-active { background: #e8f1ff; }

.cs-option[aria-selected="true"] {
  font-weight: 700;
  color: var(--navy);
}

.cs-option[aria-selected="true"]::after {
  content: "\2713";
  float: right;
  color: var(--blue);
}

/* People counter */
.stepper {
  display: flex;
  align-items: stretch;
  border: 1px solid #b9c9df;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.stepper input[type="number"] {
  border: 0;
  border-radius: 0;
  text-align: center;
  padding: 11px 4px;
  min-width: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}

.stepper input[type="number"]::-webkit-inner-spin-button,
.stepper input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stepper:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11, 88, 194, 0.2);
}

.stepper input:focus { box-shadow: none; }

.stepper-btn {
  flex: 0 0 46px;
  border: 0;
  background: var(--paper);
  color: var(--navy);
  font: 700 1.6rem/1 var(--font-body);
  cursor: pointer;
  transition: background 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.stepper-btn:hover { background: #dcebff; }
.stepper-btn:active { background: #c9dfff; }

/* Inline validation messages (instead of the browser's own bubbles) */
.field-error {
  color: #c0341f;
  font-size: 0.86rem;
  font-weight: 600;
  margin-top: 2px;
}

.field.has-error input,
.field.has-error textarea,
.field.has-error .cs-button,
.field.has-error .stepper {
  border-color: #d64530;
  box-shadow: 0 0 0 3px rgba(214, 69, 48, 0.15);
}

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 4px 0 22px;
}

.pay-lead { color: var(--muted); margin-bottom: 22px; }

.summary {
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.summary div:last-child { border-bottom: 0; font-weight: 700; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; }

.pay-methods { display: grid; gap: 14px; margin-bottom: 14px; }

.pay-method {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--paper);
}

.pay-method h3 { font-size: 1.6rem; margin-bottom: 6px; }
.pay-method .form-note { margin: 8px 0 0; }

.pay-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
}

.copy-btn {
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  border-radius: 6px;
  padding: 4px 10px;
  font: 700 0.78rem var(--font-body);
  cursor: pointer;
}

.copy-btn:hover { background: var(--ink); color: var(--white); }

.concept { margin-top: 14px; }

.pay-title { font-size: 1.9rem; margin: 26px 0 12px; }

.ref-card {
  background: #fff6dc;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--sun);
  padding: 20px 22px;
  margin-bottom: 8px;
}

.ref-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.ref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 4px 0 8px;
}

.ref-code {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 2.3rem;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.ref-help { margin: 0; font-size: 0.9rem; color: var(--muted); }

.info-box {
  background: #e8f1ff;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 20px 0 0;
  font-size: 0.95rem;
}

.info-box strong { display: block; margin-bottom: 4px; }

.pay-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 24px 0 16px;
}

@media (max-width: 860px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .grid[data-team-list] { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .team-photo { font-size: 4.5rem; }
}

@media (max-width: 600px) {
  .hero .eyebrow { font-size: 1.2rem; letter-spacing: 0.05em; padding: 8px 14px 5px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 26px 20px; }
  .ticker-track span { font-size: 1.5rem; }
  .next-event { justify-content: flex-start; }
  .hero { padding-bottom: 110px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .nav .brand img { height: 48px; }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .nav-menu.open {
    max-height: 420px;
    padding: 16px 24px 24px;
  }

  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }

  .nav ul li { width: 100%; }

  .nav ul a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav .cta {
    display: inline-block;
    margin-top: 8px;
    text-align: center;
  }

  .lang-switch { margin-top: 14px; align-self: flex-start; }
}
