/* The marketing campaign design for /live/ (website/live/index.html).

   Every declaration is the design export's own value, moved out of the app's CSS module.
   Change them only with a new export. The phone rules (≤900px and ≤420px) are the export's.
   The exceptions are the "Phone fixes" after them and the safe-area inset on .rl-stickyRoom.

   Classes are prefixed rl- so they cannot restyle the site header, footer or other pages.
   On this page 1vh is the browser window: the campaign is the page, not an iframe, so the
   app's frozen --rl-vh is not needed. Fonts are the site's Plus Jakarta Sans and Cormorant
   Garamond (css/fonts.css).
*/

html:has(.rl-root) {
  scroll-behavior: smooth;
}

.rl-root {
  --rl-sans: "Plus Jakarta Sans", sans-serif;
  --rl-serif: "Cormorant Garamond", Georgia, serif;
  margin: 0;
  background: #0a1626;
  color: #fcfaf4;
  font-family: var(--rl-sans);
  font-size: 16px;
  line-height: normal;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

.rl-root a {
  color: #e7c063;
  text-decoration: none;
}

.rl-root a:hover {
  color: #fcfaf4;
}

.rl-root:not(.rl-entered) [data-enter] {
  opacity: 0;
}

/* The gold countdown bar is the site header's (css/rushd-header.css), on every page.
   This campaign does not draw a second one. */

/* ---- 02 Hero ---- */

.rl-hero {
  min-height: clamp(480px, calc((100 * 1vh) - 230px), 640px);
  position: relative;
  overflow: hidden;
  background: #0a1626;
  display: flex;
  flex-direction: column;
}

.rl-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: max(58%, min(100%, calc((760px - 100vw) * 1000)));
  pointer-events: none;
  overflow: hidden;
}

.rl-photo {
  display: block;
  position: relative;
  top: -3%;
  width: 84%;
  height: 100%;
  max-width: none;
  margin-left: max(0px, min(16%, calc((100vw - 760px) * 1000)));
  object-fit: cover;
  object-position: 50% 0%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 10%, #000 24%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 10%, #000 24%);
  filter: contrast(1.03) brightness(1.06);
}

.rl-shadeBottom {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 22, 38, 0) 0%,
    rgba(10, 22, 38, 0) 52%,
    rgba(10, 22, 38, 0.6) 66%,
    rgba(10, 22, 38, 0.9) 78%,
    #0a1626 92%
  );
}

.rl-shadeLeft {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: max(0px, min(55%, calc((100vw - 760px) * 1000)));
  background: linear-gradient(90deg, #0a1626 0%, rgba(10, 22, 38, 0.6) 14%, rgba(10, 22, 38, 0) 32%);
}

.rl-namebox {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: clamp(16px, calc((3 * 1vh)), 30px);
  padding: 0 max(12px, min(8%, calc((100vw - 760px) * 1000))) 0
    max(12px, min(calc(12px + 20%), calc((100vw - 760px) * 1000)));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.rl-name {
  font-family: var(--rl-sans);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
}

/* The role line under the name: two titles and the Elm logo, separated by dots. */
.rl-heroRole {
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #f3d88e;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}

.rl-heroRoleDot {
  color: rgba(243, 216, 142, 0.55);
  padding: 0 6px;
}

.rl-heroRoleOrg {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  vertical-align: middle;
}

.rl-heroRoleLogo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rl-heroRoleLogo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

/* .rl-media ignores the pointer, so the link turns it back on. */
.rl-root .rl-bioLink {
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  z-index: 5;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(10, 22, 38, 0.6);
  border: 1px solid rgba(231, 192, 99, 0.6);
  color: #fcfaf4;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition:
    background 0.18s,
    border-color 0.18s;
}

.rl-root .rl-bioLink:hover {
  background: rgba(231, 192, 99, 0.18);
  border-color: #e7c063;
  color: #fcfaf4;
}

.rl-bioLink:focus-visible {
  outline: 3px solid #f3d88e;
  outline-offset: 3px;
}

/* The export's header carried this pill while live; the header itself is the website's now. */
.rl-onAir {
  position: absolute;
  z-index: 3;
  top: clamp(18px, 3vw, 30px);
  right: clamp(20px, 5vw, 48px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #e5484d;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.rl-onAirDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
}

.rl-copy {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  padding: max(24px, min(calc((52 * 1vh)), calc((760px - 100vw) * 1000))) clamp(20px, 5vw, 48px)
    max(
      clamp(24px, calc((4 * 1vh)), 40px),
      min(calc((6 * 1vh) + 52px), calc((100vw - 760px) * 1000))
    );
}

.rl-copyIn {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(14px, calc((2.2 * 1vh)), 20px);
}

.rl-eyebrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 13px;
  border-radius: 999px;
  background: rgba(231, 192, 99, 0.14);
  border: 1.5px solid #e7c063;
  box-shadow: 0 0 28px -6px rgba(231, 192, 99, 0.55);
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #f3d88e;
  white-space: nowrap;
}

.rl-eyebrowDot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e5484d;
}

.rl-headline {
  margin: 0;
  font-family: var(--rl-sans);
  font-weight: 700;
  font-size: clamp(32px, 3.1vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: max(min(760px, 47vw), min(640px, calc((760px - 100vw) * 1000)));
  color: #fcfaf4;
  text-wrap: balance;
}

.rl-accent {
  font-weight: 700;
  font-style: normal;
  background: linear-gradient(100deg, #c99a3f, #f3d88e 45%, #c99a3f);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 0.04em 0.08em 0;
  margin-right: -0.04em;
  display: inline-block;
}

.rl-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.rl-perk {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: clamp(14px, 1.2vw, 15.5px);
  font-weight: 700;
  color: #fcfaf4;
}

.rl-perkCheck {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: #e7c063;
  color: #0a1626;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rl-ctaRow {
  margin-top: 6px;
  margin-bottom: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 14px 16px;
}

.rl-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.rl-ctaButton {
  height: 62px;
  padding: 0 40px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #f3d88e, #c99a3f);
  color: #0a1626;
  font-family: var(--rl-sans);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: normal;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
}

/* The hero's and the seat section's buttons breathe; the one under "Sound familiar?" does not. */
.rl-ctaGlow {
  box-shadow: 0 18px 50px -14px rgba(216, 180, 99, 0.55);
  animation: rl-glow 2.8s ease-in-out infinite;
}

.rl-ctaGlow .rl-ctaShine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 62%);
  background-size: 250% 100%;
  animation: rl-shine 3.4s ease-in-out infinite;
  pointer-events: none;
}

.rl-ctaLabel {
  position: relative;
}

.rl-ctaButton:hover {
  background: linear-gradient(135deg, #ffe9ae, #e0b04e);
  box-shadow:
    0 0 0 4px rgba(243, 216, 142, 0.25),
    0 20px 46px -12px rgba(231, 192, 99, 0.9);
  transform: translateY(-2px);
}

.rl-ctaButton:active {
  transform: translateY(1px);
}

.rl-ctaButton:focus-visible {
  outline: 3px solid #f3d88e;
  outline-offset: 3px;
}

.rl-date {
  text-align: center;
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 22px;
  color: #f3d88e;
}

.rl-gift {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 6px 18px 6px 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(194, 54, 47, 0.18), rgba(231, 192, 99, 0.12));
  border: 1px solid rgba(231, 192, 99, 0.5);
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-align: left;
}

.rl-giftIcon {
  flex: none;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
}

.rl-giftA {
  color: #ffffff;
}

.rl-giftB {
  color: #f3d88e;
}

.rl-scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(14px, calc((2.6 * 1vh)), 26px);
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #f3d88e;
  text-decoration: none;
}

.rl-root .rl-scroll:hover {
  color: #f3d88e;
}

.rl-scrollCue {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(231, 192, 99, 0.6);
  background: rgba(10, 22, 38, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rl-nudge 1.8s ease-in-out infinite;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.rl-scroll:hover .rl-scrollCue {
  background: rgba(231, 192, 99, 0.18);
  border-color: #e7c063;
}

/* ---- 03 Sound familiar ---- */

.rl-why {
  position: relative;
  z-index: 2;
  background: #ffffff;
  color: #11182c;
}

.rl-whyInner {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(22px, 2.4vw, 32px) clamp(20px, 5vw, 48px) clamp(56px, 8vw, 100px);
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 44px);
}

.rl-whyHead {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.rl-whyKicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #b0883e;
}

.rl-whyRule {
  width: 28px;
  height: 1px;
  background: #b0883e;
}

.rl-whyTitle {
  margin: 0;
  font-family: var(--rl-sans);
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: #0e2138;
}

.rl-whyTitleAccent {
  color: #b0883e;
}

.rl-problems {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(20px, 3vw, 48px);
}

.rl-problem {
  aspect-ratio: 400 / 264;
  width: 100%;
  min-width: 0;
}

.rl-problem svg {
  display: block;
}

.rl-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: calc(-1 * clamp(12px, 2vw, 24px));
}

.rl-bridgeLines {
  display: block;
  max-height: 90px;
  overflow: visible;
}

.rl-bridgePill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  margin-top: 6px;
  padding: 14px 26px;
  border-radius: 999px;
  background: #0e2138;
  box-shadow: 0 18px 40px -20px rgba(14, 33, 56, 0.8);
}

.rl-bridgeDot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: #e5484d;
}

.rl-bridgeText {
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 700;
  line-height: 1.4;
  color: #fcfaf4;
}

.rl-bridgeAccent {
  color: #e7c063;
}

.rl-offers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: clamp(14px, 1.8vw, 20px);
}

.rl-offer {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  border-radius: 18px;
  background: #fcfaf4;
  border: 1px solid #ede6d3;
}

.rl-offerFree {
  background: #fff8e6;
  border: 1.5px solid #e7c063;
}

.rl-offerBadge {
  position: absolute;
  top: -11px;
  right: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f3d88e, #c99a3f);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #0a1626;
}

.rl-offerIcon {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #16304e, #0e2138);
  color: #e7c063;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.rl-offerBody {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rl-offerTitle {
  font-size: 17.5px;
  font-weight: 800;
  color: #0e2138;
}

.rl-offerText {
  font-size: 15px;
  line-height: 1.5;
  color: #4a5468;
  text-wrap: pretty;
}

.rl-whyCta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.rl-whyNote {
  font-size: 14px;
  font-weight: 600;
  color: #737e92;
}

/* Hidden until reveal() marks the section; each part waits for its own --d. */
.rl-why [data-r] {
  opacity: 0;
}

.rl-why[data-in] [data-r="up"] {
  animation: rl-r-up 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0s) both;
}

.rl-why[data-in] [data-r="pop"] {
  transform-box: fill-box;
  transform-origin: center;
  animation: rl-r-pop 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) var(--d, 0s) both;
}

.rl-why [data-r="draw"] {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.rl-why[data-in] [data-r="draw"] {
  animation: rl-r-draw 0.8s ease-out var(--d, 0s) both;
}

/* ---- 04 Bring your question ---- */

.rl-seat {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 12% 0%, rgba(201, 154, 63, 0.18) 0%, rgba(201, 154, 63, 0) 50%),
    linear-gradient(158deg, #16304e 0%, #0e2138 58%, #0a1626 100%);
  color: #fcfaf4;
}

.rl-seatInner {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 48px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}

.rl-seatCopy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.rl-seatDate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 13px;
  border-radius: 999px;
  background: rgba(231, 192, 99, 0.14);
  border: 1.5px solid #e7c063;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #f3d88e;
}

.rl-seatDateDot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e5484d;
}

.rl-seatTitle {
  margin: 0;
  font-family: var(--rl-sans);
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #fcfaf4;
  text-wrap: balance;
}

.rl-seatTitleAccent {
  color: #e7c063;
}

.rl-seatLede {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: #c9d1de;
}

.rl-callCard {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 22px;
  background: #fcfaf4;
  color: #11182c;
  border-top: 4px solid #c99a3f;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}

.rl-callHead {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rl-callPhoto {
  width: 68px;
  height: 68px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  box-shadow:
    0 0 0 3px #fcfaf4,
    0 0 0 5px #e7c063;
}

.rl-callIntro {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rl-callEyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #b0883e;
}

.rl-callTitle {
  font-family: var(--rl-sans);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #0e2138;
}

.rl-callText {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: #4a5468;
  text-wrap: pretty;
}

/* A link to Nayyer's profile, drawn as the design's button. .rl-root a would recolour it. */
.rl-root .rl-callButton {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #21476e, #0e2138);
  color: #f3d88e;
  text-decoration: none;
  font-family: var(--rl-sans);
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: normal;
  cursor: pointer;
  box-shadow: 0 14px 30px -16px rgba(14, 33, 56, 0.8);
  transition:
    transform 0.15s,
    box-shadow 0.2s;
}

.rl-root .rl-callButton:hover {
  color: #f3d88e;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 4px rgba(201, 154, 63, 0.22),
    0 18px 34px -16px rgba(14, 33, 56, 0.9);
}

.rl-callButton:active {
  transform: translateY(1px);
}

.rl-callButton:focus-visible {
  outline: 3px solid #c99a3f;
  outline-offset: 3px;
}

/* ---- 05 Journey ---- */

.rl-journey {
  position: relative;
  z-index: 2;
  background: #fcfaf4;
  color: #11182c;
  overflow: hidden;
}

.rl-journeyInner {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 5vw, 56px);
}

.rl-journeyTop {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}

.rl-journeyIntro {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rl-journeyEyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #b0883e;
}

.rl-journeyRule {
  width: 28px;
  height: 1px;
  background: #b0883e;
}

.rl-journeyName {
  margin: 0;
  font-family: var(--rl-sans);
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: #0e2138;
  text-wrap: balance;
}

.rl-journeyNameAccent {
  color: #b0883e;
}

.rl-journeyLede {
  margin: 0;
  max-width: 520px;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.6;
  color: #2a3346;
  text-wrap: pretty;
}

.rl-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.rl-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0 4px 18px;
  border-left: 2px solid #c99a3f;
}

.rl-statValue {
  font-family: var(--rl-sans);
  font-weight: 700;
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #0e2138;
}

.rl-statLabel {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #4a5468;
}

.rl-chapters {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(
      max(
        calc(25% - 24px),
        min(calc(50% - 16px), calc((1100px - 100vw) * 1000)),
        min(100%, calc((620px - 100vw) * 1000))
      ),
      1fr
    )
  );
  gap: clamp(28px, 3vw, 36px) clamp(20px, 2.4vw, 32px);
  align-items: start;
}

.rl-chapter {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
}

.rl-chapter:nth-child(1) {
  margin-top: max(0px, min(132px, calc((100vw - 1100px) * 1000)));
}

.rl-chapter:nth-child(2) {
  margin-top: max(0px, min(88px, calc((100vw - 1100px) * 1000)));
}

.rl-chapter:nth-child(3) {
  margin-top: max(0px, min(44px, calc((100vw - 1100px) * 1000)));
}

.rl-chapterHead {
  position: relative;
  padding-top: 24px;
  border-top: 2px solid #c99a3f;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rl-chapterDot {
  position: absolute;
  top: -9px;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #c99a3f;
  box-shadow:
    0 0 0 5px #fcfaf4,
    0 0 0 6px rgba(201, 154, 63, 0.45);
}

.rl-chapterKicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #b0883e;
}

.rl-chapterYears {
  font-family: var(--rl-sans);
  font-weight: 700;
  font-size: clamp(26px, 2.4vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #0e2138;
}

.rl-chapterPlace {
  font-size: 13.5px;
  font-weight: 600;
  color: #737e92;
}

.rl-role {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 14px;
  border-left: 2px solid #e2dccb;
}

.rl-roleWhen {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #b0883e;
}

.rl-roleTitle {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #0e2138;
}

.rl-roleWhere {
  font-size: 13.5px;
  line-height: 1.45;
  color: #4a5468;
  text-wrap: pretty;
}

.rl-cert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 8px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e8e1cf;
  box-shadow: 0 8px 20px -16px rgba(16, 24, 44, 0.45);
}

.rl-certMark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #16304e, #0e2138);
  color: #e7c063;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.rl-certIcon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #efeae0;
  flex: none;
}

.rl-certBody {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rl-certTitle {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: #0e2138;
}

.rl-certMeta {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #737e92;
}

.rl-chapterNow {
  margin-top: 0;
  padding: 24px 22px 26px;
  border-radius: 20px;
  background: linear-gradient(160deg, #16304e, #0e2138);
  box-shadow: 0 30px 60px -30px rgba(14, 33, 56, 0.75);
}

.rl-chapterNow .rl-chapterKicker {
  color: #e7c063;
}

.rl-chapterNow .rl-chapterYears {
  color: #ffffff;
}

.rl-chapterNow .rl-chapterPlace {
  color: #b9c2d0;
}

.rl-chapterNow .rl-chapterDot {
  box-shadow:
    0 0 0 5px #0e2138,
    0 0 0 6px rgba(201, 154, 63, 0.45);
}

.rl-chapterNow .rl-role {
  border-left-color: rgba(231, 192, 99, 0.35);
}

.rl-chapterNow .rl-roleWhen {
  color: #e7c063;
}

.rl-chapterNow .rl-roleTitle {
  color: #fcfaf4;
}

.rl-chapterNow .rl-roleWhere {
  color: #b9c2d0;
}


/* ---- The bar along the bottom (after the hero, not while a form is open) ---- */

.rl-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(10, 22, 38, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(231, 192, 99, 0.35);
  animation: rl-rise 0.35s ease both;
}

.rl-stickyInner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px clamp(14px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rl-stickyInfo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rl-stickyLabel {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #f3d88e;
}

.rl-stickyLine {
  font-size: 14px;
  font-weight: 600;
  color: #c9d1de;
  font-variant-numeric: tabular-nums;
}

.rl-stickyButton {
  height: 50px;
  padding: 0 28px;
  flex: none;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #f3d88e, #c99a3f);
  color: #0a1626;
  font-family: var(--rl-sans);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: normal;
  cursor: pointer;
  transition: background 0.2s;
}

.rl-stickyButton:hover {
  background: linear-gradient(135deg, #ffe9ae, #e0b04e);
}

.rl-stickyButton:focus-visible {
  outline: 3px solid #f3d88e;
  outline-offset: 3px;
}

/* Room under the site footer, so the bar never covers its last row. It adds the phone's bottom
   safe-area inset, which is 0 unless the page opts into viewport-fit=cover. */
.rl-stickyRoom {
  height: 72px;
  height: calc(72px + env(safe-area-inset-bottom, 0px));
  background: #0a1626;
}

@media (max-width: 560px) {
  .rl-stickyInfo {
    display: none;
  }
  .rl-stickyButton {
    flex: 1;
  }
}

/* ---- Phones and tablets: the export's own ≤900px layout ---- */

@media (max-width: 900px) {
  .rl-hero {
    min-height: 0;
  }
  .rl-media,
  .rl-namebox {
    display: contents;
  }
  .rl-shadeBottom,
  .rl-shadeLeft {
    display: none;
  }
  .rl-photo {
    order: 1;
    top: 0;
    width: 100%;
    height: min(calc((48 * 1vh)), 96vw);
    min-height: 300px;
    margin: 0;
    object-position: 50% 16%;
    -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
  }
  .rl-name {
    order: 2;
    position: relative;
    z-index: 2;
    margin: -64px 20px 0;
    text-align: center;
    font-size: clamp(34px, 9.6vw, 52px);
  }
  .rl-copy {
    order: 3;
    flex: none;
    padding: 26px 20px 30px;
    justify-content: center;
  }
  .rl-copyIn {
    align-items: center;
    text-align: center;
    gap: 18px;
    max-width: 560px;
  }
  .rl-eyebrow {
    margin-top: 0;
    white-space: normal;
    font-size: 12.5px;
    letter-spacing: 0.14em;
    padding: 9px 16px 9px 13px;
  }
  .rl-headline {
    max-width: none;
    font-size: clamp(30px, 8.4vw, 48px);
  }
  .rl-perks {
    justify-content: center;
  }
  .rl-ctaRow {
    margin: 4px 0 0;
    width: 100%;
    max-width: 420px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .rl-cta {
    margin: 0;
    width: 100%;
    max-width: 420px;
    display: flex;
    gap: 16px;
  }
  .rl-cta .rl-ctaButton {
    width: 100%;
    height: 58px;
    padding: 0 20px;
    font-size: 16px;
  }
  .rl-gift {
    font-size: 15px;
  }
  .rl-date {
    font-size: 14.5px;
    letter-spacing: 0.08em;
    line-height: 1.5;
  }
  .rl-heroRole {
    order: 2;
    position: relative;
    z-index: 2;
    margin: 10px 16px 0;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.12em;
    line-height: 1.8;
  }
  .rl-root .rl-bioLink {
    order: 2;
    position: relative;
    z-index: 2;
    align-self: center;
    margin: 12px auto 0;
    font-size: 12.5px;
    height: 40px;
  }
  .rl-scroll {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    order: 5;
    align-self: center;
    margin: 4px auto 22px;
  }
}

@media (max-width: 860px) {
  .rl-bridgeLines {
    display: none;
  }
}

/* ---- Phone fixes. Not the export's values; each says why ---- */

/* Below 640px the bridge sentence wraps. The pill is a flex row that wraps, so the dot was left
   alone on a row above the text. Here the dot is the first thing on the sentence's first line,
   centred on that line as it is on the one-line row: 6px = (21px line - 9px dot) / 2. Its 9px
   margin and the space after it make about the row's 12px gap. text-wrap: pretty stops the last
   line being one word on the narrowest phones. */
@media (max-width: 639px) {
  .rl-bridgePill {
    display: block;
    text-wrap: pretty;
  }
  .rl-bridgeDot {
    display: inline-block;
    vertical-align: top;
    margin: 6px 9px 0 0;
  }
}

/* The bio link is drawn 40px tall on phones. This adds 4px above it to the area that takes a tap,
   so that area is 44px, and the link looks the same. The 4px go above because .rl-copy starts at
   the link's lower edge and is drawn over it. Above it, 12px of the hero are empty. */
@media (max-width: 900px) {
  .rl-root .rl-bioLink::after {
    content: "";
    position: absolute;
    inset: -4px 0 0;
  }
}

@media (max-width: 420px) {
  .rl-copy {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ---- The "Save your free seat" modal (portalled to <body>, so it carries its own base) ---- */

.rl-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(6, 14, 26, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Centred without a transform, so `rl-up` can slide it in. */
.rl-dialog {
  --rl-sans: "Plus Jakarta Sans", sans-serif;
  --rl-serif: "Cormorant Garamond", Georgia, serif;
  position: fixed;
  inset: 0;
  z-index: 51;
  margin: auto;
  width: calc(100% - 32px);
  max-width: 460px;
  height: fit-content;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  overscroll-behavior: contain;
  background: #fcfaf4;
  color: #11182c;
  border-radius: 22px;
  border-top: 4px solid #c99a3f;
  padding: clamp(24px, 5vw, 36px);
  color-scheme: light;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  font-family: var(--rl-sans);
  font-size: 16px;
  line-height: normal;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

.rl-dialog:focus {
  outline: none;
}

.rl-dialogShown {
  animation: rl-up 0.3s ease both;
}

.rl-dialogWaiting {
  opacity: 0;
  pointer-events: none;
}

.rl-dialog input::placeholder {
  color: #8a94a6;
}

.rl-close {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #f4f1e9;
  color: #0e2138;
  font-size: 20px;
  line-height: normal;
  cursor: pointer;
}

.rl-close:focus-visible {
  outline: 2px solid #c99a3f;
  outline-offset: 2px;
}

.rl-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  position: relative;
}

.rl-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.rl-formHead {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 36px;
}

.rl-formEyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #b0883e;
}

.rl-formTitle {
  margin: 0;
  font-family: var(--rl-serif);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.05;
  color: #0e2138;
}

.rl-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #16304e;
}

.rl-required {
  color: #c2362f;
}

.rl-input {
  height: 52px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1.5px solid #e2dccb;
  background: #ffffff;
  color-scheme: light;
  -webkit-appearance: none;
  appearance: none;
  font-family: var(--rl-sans);
  font-size: 15.5px;
  font-weight: 500;
  line-height: normal;
  color: #11182c;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.rl-input:focus {
  border-color: #c99a3f;
  box-shadow: 0 0 0 4px rgba(201, 154, 63, 0.16);
}

/* reCAPTCHA v2 is a fixed 304px; on the narrowest phones it is scaled to the card. */
.rl-captcha {
  max-width: 100%;
}

.rl-error {
  font-size: 13.5px;
  color: #c2362f;
}

.rl-submit {
  margin-top: 6px;
  height: 56px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #f3d88e, #c99a3f);
  color: #0a1626;
  font-family: var(--rl-sans);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: normal;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 34px -14px rgba(201, 154, 63, 0.8);
  transition:
    background 0.2s,
    transform 0.15s;
}

.rl-submit:hover {
  background: linear-gradient(135deg, #ffe9ae, #e0b04e);
  transform: translateY(-1px);
}

.rl-submit:active {
  transform: translateY(1px);
}

.rl-submit:disabled {
  cursor: progress;
}

.rl-submit:focus-visible {
  outline: 2px solid #0e2138;
  outline-offset: 3px;
}

.rl-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 12px 0 4px;
}

.rl-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e7c063, #c99a3f);
  color: #0e2138;
  font-size: 30px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rl-doneTitle {
  margin: 0;
  font-family: var(--rl-serif);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.05;
  color: #0e2138;
}

.rl-doneBody {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #4a5468;
}

.rl-when {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 22px;
  border-radius: 14px;
  background: #0e2138;
  box-shadow: 0 14px 30px -16px rgba(14, 33, 56, 0.7);
}

.rl-whenLabel {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #e7c063;
}

.rl-whenLive {
  color: #ff4d52;
}

.rl-whenDate {
  font-family: var(--rl-sans);
  font-size: clamp(18px, 4.6vw, 22px);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fcfaf4;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .rl-close {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 389px) {
  .rl-captcha > div {
    transform: scale(0.9);
    transform-origin: 0 0;
  }
}

@media (max-width: 345px) {
  .rl-captcha > div {
    transform: scale(0.84);
  }
}


@keyframes rl-up {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rl-nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

@keyframes rl-glow {
  0%,
  100% {
    box-shadow: 0 18px 50px -14px rgba(216, 180, 99, 0.55);
  }
  50% {
    box-shadow: 0 18px 70px -8px rgba(216, 180, 99, 0.85);
  }
}

@keyframes rl-shine {
  0% {
    background-position: 200% 50%;
  }
  100% {
    background-position: -200% 50%;
  }
}

@keyframes rl-rise {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rl-r-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rl-r-pop {
  from {
    opacity: 0;
    transform: scale(0.3);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rl-r-draw {
  0% {
    opacity: 1;
    stroke-dashoffset: 1;
    fill-opacity: 0;
  }
  60% {
    fill-opacity: 0;
  }
  100% {
    opacity: 1;
    stroke-dashoffset: 0;
    fill-opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.rl-root) {
    scroll-behavior: auto;
  }
  .rl-dialogShown,
  .rl-scrollCue {
    animation: none;
  }
  .rl-ctaGlow,
  .rl-ctaGlow .rl-ctaShine,
  .rl-sticky {
    animation: none;
  }
  .rl-why [data-r] {
    opacity: 1;
    animation: none;
    stroke-dashoffset: 0;
  }
  .rl-why[data-in] [data-r] {
    animation: none;
  }
}
