/* Baptism model "Mașina de curse": race cars on a circuit, start lights and checkered flags.
   The color theme sets --accent (the first race car, titles, buttons) and --sky (the color of the sky). */
.race-baptism {
  --asphalt: #3b424d;
  --asphalt-dark: #262b33;
  --kerb: #e23b3b;
  --board-ink: #1f2530;
  --paper: #fffdf7;
  --ink: #2b3340;
  --ink-soft: #62707f;
  --accent-deep: color-mix(in srgb, var(--accent) 80%, #1c1f2a);
  --accent-soft: color-mix(in srgb, var(--accent) 13%, #fff);
  --sky-soft: color-mix(in srgb, var(--sky) 45%, #fff);
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.race-baptism *, .race-baptism *::before, .race-baptism *::after { box-sizing: border-box; }
.race-baptism h1, .race-baptism h2, .race-baptism h3, .race-baptism p, .race-baptism figure { margin: 0; }
.race-baptism .skip-link { position: absolute; z-index: 10; top: 8px; left: 8px; padding: 12px 16px; border-radius: 12px; background: #fff; color: var(--ink); transform: translateY(-220%); }
.race-baptism .skip-link:focus { transform: translateY(0); }
.race-baptism .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.race-baptism .container { width: min(100% - 40px, 880px); margin-inline: auto; }
.race-baptism .section { padding: clamp(52px, 8vw, 84px) 0; }
.race-baptism h2 { color: var(--accent-deep); font: 400 clamp(32px, 5vw, 48px)/1.12 "Racing Sans One", system-ui, sans-serif; text-align: center; text-wrap: balance; }
.race-baptism .section-eyebrow { color: var(--ink); font: italic 700 clamp(14px, 1.7vw, 16px)/1.5 "Barlow", system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; }

/* Race car */
.race-baptism .racer { display: block; height: auto; overflow: visible; }
.race-baptism .racer--main .racer-body { fill: var(--accent); }
.race-baptism .racer--sun .racer-body { fill: #f5b82e; }
/* The third car is silver: no color theme uses silver for the first car. */
.race-baptism .racer--silver .racer-body { fill: #d5dce4; }
.race-baptism .racer-shade { fill: rgba(0, 0, 0, .16); }
.race-baptism .racer-dark { fill: #15181d; }
.race-baptism .racer-helmet { fill: #fff; }
.race-baptism .racer-helmet-stripe { fill: var(--accent); }
.race-baptism .racer--main .racer-helmet-stripe { fill: #f5b82e; }
.race-baptism .racer-visor { fill: #262b33; }
.race-baptism .racer-stripe { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; }
.race-baptism .racer-roundel { fill: #fff; }
.race-baptism .racer-number { fill: #1f2530; font: 400 17px "Racing Sans One", "Barlow", sans-serif; }
.race-baptism .racer-speed { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; opacity: .55; }
.race-baptism .wheel { transform-box: fill-box; transform-origin: center; animation: wheel-spin .7s linear infinite; }
.race-baptism .wheel-tire { fill: #1f2329; }
.race-baptism .wheel-mark { fill: none; stroke: #f5b82e; stroke-width: 2.5; stroke-dasharray: 9 7; }
.race-baptism .wheel-rim { fill: #dfe6ee; }
.race-baptism .wheel-spoke { fill: none; stroke: #8e9aa8; stroke-width: 3; stroke-linecap: round; }

/* Checkered flag */
.race-baptism .race-flag { position: absolute; top: clamp(18px, 4vw, 44px); width: clamp(52px, 8.5vw, 112px); height: auto; overflow: visible; filter: drop-shadow(0 8px 10px rgba(31, 37, 48, .16)); transform-origin: 9% 100%; animation: flag-wave 3.2s ease-in-out infinite alternate; }
.race-baptism .race-flag--left { left: clamp(10px, 6vw, 96px); }
/* The right flag leans to the right: its pole is on the right side of the drawing. */
.race-baptism .race-flag--right { right: clamp(10px, 6vw, 96px); transform-origin: 91% 100%; animation-name: flag-wave-right; animation-delay: -1.6s; }
.race-baptism .flag-pole { fill: #7c8794; }
.race-baptism .flag-cloth { stroke: #1f2530; stroke-width: 2; stroke-linejoin: round; }

/* Hero: the sky, the start lights, the driver board and the circuit */
.race-baptism .hero { position: relative; display: flex; flex-direction: column; align-items: center; overflow: hidden; padding: 0 20px; background: linear-gradient(180deg, var(--sky) 0%, var(--sky-soft) 72%, #fff 100%); text-align: center; }
.race-baptism .hero-sky { position: absolute; inset: 0; pointer-events: none; }
.race-baptism .cloud { position: absolute; fill: #fff; filter: drop-shadow(0 8px 12px rgba(43, 51, 64, .07)); animation: cloud-drift 44s ease-in-out infinite alternate; }
.race-baptism .cloud--one { top: 40%; left: 3%; width: clamp(80px, 12vw, 160px); opacity: .9; }
.race-baptism .cloud--two { top: 30%; right: 4%; width: clamp(70px, 10vw, 140px); opacity: .8; animation-direction: alternate-reverse; }

/* The start lights hang from the top of the page. */
.race-baptism .start-lights { position: relative; z-index: 2; display: flex; gap: clamp(6px, 1.1vw, 10px); padding: clamp(8px, 1.2vw, 12px) clamp(12px, 1.8vw, 18px); border-radius: 0 0 16px 16px; background: var(--asphalt-dark); box-shadow: 0 10px 20px rgba(31, 37, 48, .22); }
.race-baptism .start-light { width: clamp(18px, 2.6vw, 28px); aspect-ratio: 1; border-radius: 50%; background: #5a1a1a; box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .35); animation: start-light 5s linear infinite; }
.race-baptism .start-light:nth-child(2) { animation-name: start-light-2; }
.race-baptism .start-light:nth-child(3) { animation-name: start-light-3; }
.race-baptism .start-light:nth-child(4) { animation-name: start-light-4; }
.race-baptism .start-light:nth-child(5) { animation-name: start-light-5; }

.race-baptism .hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; max-width: 840px; padding-top: clamp(30px, 5vw, 56px); }
.race-baptism .hero-eyebrow { color: var(--ink); font: italic 700 clamp(13.5px, 1.7vw, 17px)/1.5 "Barlow", system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; }

/* The driver board: the race number and the first name of the child */
.race-baptism .plates { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; margin: 18px 0 22px; font-weight: 400; }
.race-baptism .plate { position: relative; display: inline-flex; align-items: center; justify-content: center; max-width: 100%; min-height: clamp(78px, 13vw, 136px); padding: 8px clamp(20px, 3.8vw, 48px) 8px clamp(62px, 9.6vw, 116px); border: clamp(4px, .6vw, 6px) solid var(--board-ink); border-radius: clamp(10px, 1.4vw, 16px); background: #fff; box-shadow: clamp(6px, 1vw, 10px) clamp(6px, 1vw, 10px) 0 rgba(31, 37, 48, .18), 0 22px 34px rgba(31, 37, 48, .14); transform: skewX(-9deg); }
/* The race number is in a white circle, on the colored side of the board. */
.race-baptism .plate::before { position: absolute; top: 0; bottom: 0; left: 0; width: clamp(48px, 7.4vw, 88px); border-radius: clamp(5px, .8vw, 9px) 0 0 clamp(5px, .8vw, 9px); background: var(--accent); content: ""; }
.race-baptism .plate::after { position: absolute; top: 50%; left: clamp(24px, 3.7vw, 44px); display: flex; align-items: center; justify-content: center; width: clamp(32px, 5.2vw, 62px); aspect-ratio: 1; border-radius: 50%; background: #fff; color: var(--board-ink); content: attr(data-number); font: 400 clamp(20px, 3.4vw, 40px)/1 "Racing Sans One", system-ui, sans-serif; transform: translate(-50%, -50%) skewX(9deg); }
.race-baptism .plate-name { color: var(--board-ink); font: 400 clamp(36px, 10.5vw, 104px)/1.05 "Racing Sans One", system-ui, sans-serif; letter-spacing: .02em; text-transform: uppercase; overflow-wrap: anywhere; transform: skewX(9deg); }
.race-baptism .plate--short .plate-name { font-size: clamp(50px, 13vw, 104px); }
.race-baptism .plates--two .plate { min-height: clamp(64px, 10vw, 106px); }
.race-baptism .plates--two .plate-name { font-size: clamp(30px, 7.4vw, 68px); }
.race-baptism .plates--two .plate--short .plate-name { font-size: clamp(38px, 9.6vw, 68px); }

/* The date on a dark board */
.race-baptism .hero-date { display: inline-block; padding: 10px 26px; border-bottom: 5px solid var(--accent); border-radius: 8px; background: var(--board-ink); color: #fff; font: italic 700 clamp(14px, 1.7vw, 17px)/1.4 "Barlow", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; transform: skewX(-9deg); }

.race-baptism .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 26px;
  padding: 13px 36px;
  border: 0;
  border-radius: 10px;
  background: var(--accent-deep);
  box-shadow: 0 6px 0 color-mix(in srgb, var(--accent-deep) 68%, #000), 0 16px 24px color-mix(in srgb, var(--accent) 26%, transparent);
  color: #fff;
  cursor: pointer;
  font: italic 700 18px/1.3 "Barlow", system-ui, sans-serif;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .12s ease, box-shadow .12s ease;
}
.race-baptism .button:hover { box-shadow: 0 3px 0 color-mix(in srgb, var(--accent-deep) 68%, #000), 0 10px 18px color-mix(in srgb, var(--accent) 26%, transparent); transform: translateY(3px); }
.race-baptism .button:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }

/* The circuit: hills, a red and white kerb, the finish line and three race cars */
.race-baptism .hero-track { position: relative; z-index: 1; align-self: stretch; margin: clamp(30px, 4.6vw, 54px) -20px 0; }
.race-baptism .hills { display: block; width: 100%; height: clamp(56px, 9vw, 120px); margin-bottom: -2px; }
.race-baptism .hill--back { fill: #b4e0b0; }
.race-baptism .hill--front { fill: #84cb86; }
.race-baptism .track { position: relative; height: clamp(104px, 13.5vw, 150px); overflow: hidden; background: var(--asphalt); }
.race-baptism .track::before, .race-baptism .track::after { position: absolute; right: 0; left: 0; height: clamp(9px, 1.2vw, 13px); background: repeating-linear-gradient(90deg, var(--kerb) 0 26px, #fff 26px 52px); content: ""; }
.race-baptism .track::before { top: 0; }
.race-baptism .track::after { bottom: 0; }
.race-baptism .track-finish { position: absolute; top: 0; bottom: 0; left: 68%; width: clamp(22px, 3vw, 34px); background: conic-gradient(var(--board-ink) 25%, #fff 0 50%, var(--board-ink) 0 75%, #fff 0) 0 0 / clamp(11px, 1.5vw, 17px) clamp(11px, 1.5vw, 17px); }
/* The three race cars drive with the same speed, with the same distance between them. */
.race-baptism .track-car { position: absolute; bottom: 18%; left: 0; width: clamp(124px, 17vw, 228px); animation: car-drive 10.5s linear infinite; }
.race-baptism .track-car--two { animation-delay: -3.5s; }
.race-baptism .track-car--three { animation-delay: -7s; }

/* Message and photos */
.race-baptism .story { padding-top: clamp(44px, 6.5vw, 68px); }
.race-baptism .story-inner { max-width: 680px; text-align: center; }
.race-baptism .story-message { margin-top: 16px; color: var(--ink-soft); font-size: 18px; }
.race-baptism .story-message p + p { margin-top: 12px; }
.race-baptism .wheels { display: flex; align-items: flex-start; justify-content: center; gap: clamp(14px, 5vw, 44px); margin-bottom: 30px; }
.race-baptism .photo-wheel { display: flex; flex-direction: column; align-items: center; min-width: 0; }
/* The photo is in a race wheel: the tire with a yellow line, the rim, then the photo. */
.race-baptism .photo-wheel__tire { width: clamp(200px, 44vw, 270px); aspect-ratio: 1; padding: clamp(17px, 3.2vw, 24px); border-radius: 50%; background: repeating-conic-gradient(#1f2329 0 6deg, #2e343d 6deg 12deg); box-shadow: inset 0 0 0 clamp(5px, 1vw, 7px) #1f2329, inset 0 0 0 clamp(8px, 1.5vw, 11px) #f5b82e, 0 16px 30px rgba(31, 37, 48, .26); }
.race-baptism .photo-wheel__tire img { display: block; width: 100%; height: 100%; border: clamp(5px, 1vw, 8px) solid #dfe6ee; border-radius: 50%; box-shadow: 0 0 0 3px #8e9aa8; object-fit: cover; }
.race-baptism .wheels--two .photo-wheel__tire { width: clamp(140px, 39vw, 220px); padding: clamp(12px, 2.6vw, 19px); }
.race-baptism .photo-wheel figcaption { margin-top: 12px; color: var(--accent-deep); font: 400 clamp(24px, 4.8vw, 30px)/1.2 "Racing Sans One", system-ui, sans-serif; overflow-wrap: anywhere; }

/* Parents and godparents: the team boards */
.race-baptism .team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 24px 34px; padding: 0 8px; }
.race-baptism .team-board { display: flex; align-items: center; justify-content: center; padding: 24px 28px 20px; border-bottom: 7px solid var(--accent); border-radius: 12px; background: var(--board-ink); box-shadow: 8px 8px 0 rgba(31, 37, 48, .14); color: #fff; text-align: center; transform: skewX(-7deg); }
.race-baptism .team-board--second { border-bottom-color: #f5b82e; }
.race-baptism .team-board__text { transform: skewX(7deg); }
.race-baptism .team-board h3 { margin-bottom: 4px; color: rgba(255, 255, 255, .82); font: italic 700 13.5px/1.5 "Barlow", system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.race-baptism .team-board p { color: #fff; font: 400 clamp(23px, 3.2vw, 29px)/1.25 "Racing Sans One", system-ui, sans-serif; overflow-wrap: anywhere; text-wrap: balance; }

/* Countdown: the timer of a race */
.race-baptism .countdown { padding-right: 20px; padding-left: 20px; text-align: center; }
.race-baptism .countdown-parts { display: inline-flex; gap: clamp(6px, 1.6vw, 12px); margin-top: 18px; padding: clamp(10px, 2vw, 16px); border-radius: 16px; background: var(--asphalt-dark); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .08), 0 16px 30px rgba(31, 37, 48, .24); }
.race-baptism .countdown-part { display: flex; flex-direction: column; align-items: center; justify-content: center; width: clamp(64px, 17.5vw, 108px); padding: 12px 4px 10px; border-radius: 10px; background: linear-gradient(180deg, #111418 0%, #2c333d 50%, #111418 100%); color: #fff; }
.race-baptism .countdown-part:last-child { background: linear-gradient(180deg, var(--accent-deep) 0%, var(--accent) 50%, var(--accent-deep) 100%); }
.race-baptism .countdown-part strong { font: 400 clamp(30px, 6.8vw, 46px)/1.1 "Racing Sans One", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.race-baptism .countdown-part span { margin-top: 2px; color: rgba(255, 255, 255, .8); font: italic 700 clamp(11px, 2.6vw, 13px)/1.4 "Barlow", system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; }

/* Schedule: a race with a stage for each event */
.race-baptism .events { padding-top: 0; }
.race-baptism .events-date { margin-top: 8px; color: var(--ink-soft); text-align: center; }
.race-baptism .hero-date::first-letter, .race-baptism .events-date::first-letter, .race-baptism .footer-date::first-letter { text-transform: uppercase; }
.race-baptism .route { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; margin-top: 30px; }
/* The stages are joined by a red and white kerb. */
.race-baptism .route::before { position: absolute; top: 19px; right: 25%; left: 25%; height: 10px; border-radius: 5px; background: repeating-linear-gradient(90deg, var(--kerb) 0 20px, #fff 20px 40px); box-shadow: 0 0 0 1px #e3e8ee; content: ""; }
.race-baptism .route--single { grid-template-columns: minmax(0, 440px); justify-content: center; }
.race-baptism .route--single::before { display: none; }
.race-baptism .event-card { position: relative; margin-top: 64px; padding: 28px 22px 26px; border: 2px solid #e3e8ee; border-bottom: 6px solid var(--board-ink); border-radius: 16px; background: #fff; box-shadow: 0 14px 30px rgba(31, 37, 48, .08); text-align: center; }
.race-baptism .stop-badge { position: absolute; z-index: 1; top: -64px; left: 50%; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-left: -24px; border: 4px solid var(--board-ink); border-radius: 50%; background: #fff; box-shadow: 0 6px 14px rgba(31, 37, 48, .2); color: var(--board-ink); font: 400 24px/1 "Racing Sans One", system-ui, sans-serif; }
.race-baptism .stop-label { color: var(--ink-soft); font: italic 700 13.5px/1.5 "Barlow", system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.race-baptism .event-card h3 { color: var(--accent-deep); font: 400 29px/1.2 "Racing Sans One", system-ui, sans-serif; }
.race-baptism .event-time { display: block; margin-top: 2px; color: var(--ink); font: 400 42px/1.15 "Racing Sans One", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.race-baptism .event-date { color: var(--ink-soft); font-size: 15px; }
.race-baptism .event-location { margin-top: 10px; font-weight: 700; }
.race-baptism .event-address, .race-baptism .event-description { color: var(--ink-soft); font-size: 15.5px; }
.race-baptism .event-description { margin-top: 8px; }
.race-baptism .invitation-navigation a { border-color: color-mix(in srgb, var(--accent) 45%, #fff); border-radius: 8px; color: var(--accent-deep); font-weight: 700; }

/* Gallery */
.race-baptism .gallery { padding-top: 0; }
.race-baptism .invitation-story-gallery__photo { border-radius: 14px; }

/* RSVP: the finish line of the circuit */
.race-baptism .rsvp { position: relative; padding: clamp(74px, 9.5vw, 108px) 20px; background: var(--asphalt); }
.race-baptism .rsvp::before, .race-baptism .rsvp::after { position: absolute; right: 0; left: 0; height: clamp(10px, 1.3vw, 14px); background: repeating-linear-gradient(90deg, var(--kerb) 0 26px, #fff 26px 52px); content: ""; }
.race-baptism .rsvp::before { top: 0; }
.race-baptism .rsvp::after { bottom: 0; }
.race-baptism .rsvp-card { position: relative; z-index: 1; width: min(100%, 680px); margin: 0 auto; overflow: hidden; padding: clamp(50px, 6.8vw, 66px) clamp(22px, 5vw, 44px) clamp(24px, 5vw, 44px); border-radius: 16px; background: #fff; box-shadow: 0 24px 50px rgba(0, 0, 0, .32); }
.race-baptism .finish-flag { position: absolute; top: 0; right: 0; left: 0; height: 24px; background: conic-gradient(var(--board-ink) 25%, #fff 0 50%, var(--board-ink) 0 75%, #fff 0) 0 0 / 24px 24px; }
.race-baptism .rsvp-intro { margin-top: 10px; color: var(--ink-soft); text-align: center; }
.race-baptism .rsvp-deadline { text-align: center; }
.race-baptism #rsvp .invitation-rsvp-information { --rsvp-info-radius: 10px; }
.race-baptism .guest-greeting { margin-top: 16px; text-align: center; }
.race-baptism .form-status { margin-top: 16px; padding: 12px 16px; border-radius: 10px; background: #e6f5ec; color: #1f6b43; text-align: center; }
.race-baptism .form-status--error { background: #fde9e9; color: #9b2c2c; }
.race-baptism .rsvp-form { margin-top: 24px; }
.race-baptism .attendance-field { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; padding: 0; border: 0; }
.race-baptism .attendance-field label { position: relative; display: block; cursor: pointer; }
.race-baptism .attendance-field input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.race-baptism .attendance-field span { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 12px; border: 2px solid var(--accent-deep); border-radius: 10px; background: #fff; color: var(--accent-deep); font: 700 16px/1.3 "Barlow", system-ui, sans-serif; text-align: center; transition: background-color .15s ease, color .15s ease; }
.race-baptism .attendance-field input:checked + span { background: var(--accent-deep); color: #fff; }
.race-baptism .attendance-field input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.race-baptism .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.race-baptism .form-field--full { grid-column: 1 / -1; }
.race-baptism .form-field[hidden] { display: none; }
.race-baptism .form-field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.race-baptism .form-field input, .race-baptism .form-field textarea { width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid #d5dce4; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; }
.race-baptism .form-field textarea { resize: vertical; }
.race-baptism .form-field input:focus, .race-baptism .form-field textarea:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px var(--accent-soft); }
.race-baptism .button--submit { width: 100%; margin-top: 22px; }
.race-baptism .form-feedback { min-height: 1.5em; margin-top: 16px; color: var(--accent-deep); font-weight: 700; text-align: center; }

/* Footer */
.race-baptism .invitation-footer { padding: 38px 20px 42px; background: var(--sky-soft); text-align: center; }
.race-baptism .footer-car { width: 150px; margin: 0 auto; padding-left: 14px; }
.race-baptism .footer-car .racer-speed { display: none; }
.race-baptism .footer-message { margin-top: 12px; color: var(--accent-deep); font: 400 clamp(30px, 5.4vw, 44px)/1.15 "Racing Sans One", system-ui, sans-serif; text-wrap: balance; }
.race-baptism .footer-name { margin-top: 6px; color: var(--ink); font: italic 700 16px/1.5 "Barlow", system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; overflow-wrap: anywhere; }
.race-baptism .footer-date { color: var(--ink-soft); }
.race-baptism .wedday-credit { display: inline-block; margin-top: 18px; color: var(--ink-soft); font-size: 13px; }

@keyframes wheel-spin {
  to { transform: rotate(360deg); }
}
@keyframes car-drive {
  from { transform: translateX(-290px); }
  to { transform: translateX(calc(100vw + 70px)); }
}
@keyframes cloud-drift {
  from { transform: translateX(-10px); }
  to { transform: translateX(26px); }
}
@keyframes flag-wave {
  from { rotate: -14deg; }
  to { rotate: -6deg; }
}
@keyframes flag-wave-right {
  from { rotate: 14deg; }
  to { rotate: 6deg; }
}
/* The five start lights come on one after the other, then all the lights go out: the race starts. */
@keyframes start-light { 0%, 9% { background: #5a1a1a; box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .35); } 10%, 79% { background: #ff3b30; box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .2), 0 0 14px rgba(255, 59, 48, .9); } 80%, 100% { background: #5a1a1a; box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .35); } }
@keyframes start-light-2 { 0%, 23% { background: #5a1a1a; box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .35); } 24%, 79% { background: #ff3b30; box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .2), 0 0 14px rgba(255, 59, 48, .9); } 80%, 100% { background: #5a1a1a; box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .35); } }
@keyframes start-light-3 { 0%, 37% { background: #5a1a1a; box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .35); } 38%, 79% { background: #ff3b30; box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .2), 0 0 14px rgba(255, 59, 48, .9); } 80%, 100% { background: #5a1a1a; box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .35); } }
@keyframes start-light-4 { 0%, 51% { background: #5a1a1a; box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .35); } 52%, 79% { background: #ff3b30; box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .2), 0 0 14px rgba(255, 59, 48, .9); } 80%, 100% { background: #5a1a1a; box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .35); } }
@keyframes start-light-5 { 0%, 65% { background: #5a1a1a; box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .35); } 66%, 79% { background: #ff3b30; box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .2), 0 0 14px rgba(255, 59, 48, .9); } 80%, 100% { background: #5a1a1a; box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .35); } }

@media (max-width: 720px) {
  /* On a small screen each stage number is above its card, and the cards are one under the other. */
  .race-baptism .route { grid-template-columns: minmax(0, 1fr); }
  .race-baptism .route::before { display: none; }
  .race-baptism .track-car { animation-duration: 6s; }
  .race-baptism .track-car--two { animation-delay: -2s; }
  .race-baptism .track-car--three { animation-delay: -4s; }
  .race-baptism .team-board { transform: skewX(-5deg); }
  .race-baptism .team-board__text { transform: skewX(5deg); }
}

@media (max-width: 560px) {
  .race-baptism .form-grid { grid-template-columns: minmax(0, 1fr); }
  .race-baptism .attendance-field { gap: 8px; }
  .race-baptism .attendance-field span { padding: 10px 6px; font-size: 15px; }
  .race-baptism .track::before, .race-baptism .track::after, .race-baptism .rsvp::before, .race-baptism .rsvp::after { background: repeating-linear-gradient(90deg, var(--kerb) 0 18px, #fff 18px 36px); }
}

/* Without motion, the three race cars stand on the circuit and the five start lights are on. */
@media (prefers-reduced-motion: reduce) {
  .race-baptism .track-car, .race-baptism .wheel, .race-baptism .cloud, .race-baptism .race-flag, .race-baptism .start-light { animation: none; }
  .race-baptism .race-flag { rotate: -10deg; }
  .race-baptism .race-flag--right { rotate: 10deg; }
  .race-baptism .start-light { background: #ff3b30; }
  .race-baptism .track-car--one { left: 6%; }
  .race-baptism .track-car--two { left: 38%; }
  .race-baptism .track-car--three { left: 74%; }
  .race-baptism .racer-speed { display: none; }
  .race-baptism .button { transition: none; }
}
