/* =====================================================================
   Really Fast — stylesheet
   Design language: bone paper, espresso ink, mono labels, light display.
   ===================================================================== */

:root {
  /* Quiet gallery palette */
  --background: oklch(0.955 0.005 90);
  --foreground: oklch(0.18 0.005 80);
  --muted-foreground: oklch(0.52 0.006 80);
  --accent: oklch(0.42 0.008 80);
  --border: oklch(0.84 0.005 85);
  --live: oklch(0.62 0.11 150);

  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --banner-h: 12px;

  /* A gallery-friendly spectrum — saturated enough to read as a rainbow,
     soft enough to keep dark text legible edge to edge */
  --rainbow: linear-gradient(
    90deg,
    #e0726c 0%,
    #e0a258 17%,
    #e3cf63 33%,
    #74c08a 50%,
    #5aa3d6 67%,
    #7d8ad8 83%,
    #a886cf 100%
  );
}

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

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---- Typography helpers ---- */
.font-display {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.035em;
  text-transform: lowercase;
}

.font-mono {
  font-family: var(--font-sans);
}

.mono-label {
  font-family: var(--font-sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--muted-foreground);
}

.mono-label--accent {
  color: var(--accent);
}

/* ---- Layout primitives ---- */
.wrap {
  width: 100%;
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 768px) {
  .wrap {
    padding-inline: 40px;
  }
}

.max-4xl { max-width: 56rem; }
.max-5xl { max-width: 64rem; }
.max-6xl { max-width: 72rem; }

/* ---- Shared site banner (configured in site-header.js) ---- */
:root[data-site-announcement] {
  --banner-h: 28px;
}

.site-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--banner-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--rainbow);
  background-size: 175% 100%;
  background-position: 0% 50%;
  color: #16130d;
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  filter: saturate(0.9);
  transition: background-position 2.6s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.7s ease, letter-spacing 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-banner:hover {
  background-position: 100% 50%;
  filter: saturate(1.22) brightness(1.05);
  letter-spacing: 0.37em;
}
.site-banner .site-banner__arrow {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-banner:hover .site-banner__arrow {
  transform: translateX(5px);
}

/* ---- Site nav ---- */
/* The header stays pinned while you scroll; a hairline appears once content
   slides beneath it. */
.site-nav {
  position: fixed;
  top: var(--banner-h);
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 24px;
  background: var(--background);
  transition: box-shadow 0.3s ease;
}
.site-nav.is-stuck {
  box-shadow: 0 1px 0 var(--border);
}
@media (min-width: 768px) {
  .site-nav {
    padding: 20px 40px;
  }
}

.site-nav .nav-edge {
  font-family: var(--font-sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-nav .nav-edge:hover {
  border-bottom-color: var(--foreground);
}
.site-nav .nav-left {
  justify-self: start;
}
.site-nav .nav-right {
  justify-self: end;
}

.site-nav .nav-brand {
  justify-self: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  font-size: 18px;
  line-height: 1;
  color: var(--foreground);
  transition: opacity 0.2s ease;
}
.site-nav .nav-brand:hover {
  opacity: 0.6;
}

/* ---- Site footer ---- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  font-family: var(--font-sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: color-mix(in oklch, var(--foreground) 60%, transparent);
}
@media (min-width: 768px) {
  .site-footer {
    padding: 20px 40px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
}

.site-footer .clock-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
}
.site-footer .city-clocks {
  display: flex;
  align-items: baseline;
  gap: 28px;
}
.site-footer .clock-label {
  color: color-mix(in oklch, var(--foreground) 42%, transparent);
}
.site-footer .clock {
  font-variant-numeric: tabular-nums;
}
.site-footer--cities .clock {
  letter-spacing: 0.06em;
}
.site-footer .footer-link {
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-footer .footer-link:hover {
  border-bottom-color: currentColor;
}
.site-footer .footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

@media (max-width: 767px) {
  .site-footer--cities {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .site-footer--cities .city-clocks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
  }
  .site-footer--cities .clock-wrap {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 0;
    text-align: center;
  }
  .site-footer--cities .clock-label {
    font-size: 9px;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }
  .site-footer--cities .clock {
    font-size: 9px;
    letter-spacing: 0;
  }
  .site-footer--cities .footer-links {
    width: 100%;
    justify-content: center;
    gap: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
  }
}

/* ---- Buttons ---- */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid color-mix(in oklch, var(--foreground) 70%, transparent);
  color: var(--foreground);
  padding: 16px 28px;
  font-family: var(--font-sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-outline:hover {
  background-color: var(--foreground);
  color: var(--background);
}

/* =====================================================================
   HOME
   ===================================================================== */
.home {
  position: relative;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Centered against the full viewport — the fixed nav and absolutely
   positioned footer are out of flow, so this stays dead-center no matter
   how short the page gets. */
.home-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 64rem;
  margin-inline: auto;
  padding-inline: 32px;
}

.home-title {
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.home-cities {
  margin-bottom: 22px;
  font-size: 10px;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--foreground);
}

.home-lede {
  margin-top: 22px;
  max-width: 30rem;
  margin-inline: auto;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted-foreground);
}
@media (min-width: 768px) {
  .home-lede {
    margin-top: 26px;
    font-size: 14px;
  }
}

/* ---- Rotating word ---- */
.home-lede__brand-phrase {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25em;
  margin-inline-start: 0.25em;
  white-space: nowrap;
}
.rotator {
  display: inline-block;
  position: relative;
  white-space: nowrap;
  vertical-align: baseline;
}
.rotator-word {
  display: inline-block;
  white-space: nowrap;
  color: var(--foreground);
  font-weight: 500;
  will-change: transform, opacity, filter;
}

/* On the home page the footer is pinned to the bottom edge and taken out of
   normal flow, so it never pushes the centered content off-center. */
.home > .site-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

/* =====================================================================
   INTERIOR PAGE SHELL
   ===================================================================== */
.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.page-main {
  flex: 1;
  width: 100%;
  margin-inline: auto;
  padding: 112px 24px 64px;
}
@media (min-width: 768px) {
  .page-main {
    padding: 128px 40px 64px;
  }
}

.page-eyebrow {
  margin-bottom: 32px;
}

.page-title {
  font-size: 10vw;
  line-height: 0.98;
}
@media (min-width: 768px) {
  .page-title {
    font-size: 5.4vw;
  }
}

.page-title--inquire {
  font-size: clamp(2.25rem, 8vw, 3.25rem);
}
@media (min-width: 768px) {
  .page-title--inquire {
    font-size: 3.25rem;
  }
}

/* =====================================================================
   ABOUT
   ===================================================================== */
.about-main {
  padding: 120px 24px 80px;
}
@media (min-width: 768px) {
  .about-main {
    padding: 144px 40px 96px;
  }
}

.about-title {
  margin-top: 20px;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 0.98;
  max-width: 16ch;
}

.about-intro {
  margin-top: 24px;
  max-width: 45rem;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted-foreground);
}
@media (min-width: 768px) {
  .about-intro {
    font-size: 17px;
  }
}

.points {
  margin-top: 48px;
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
@media (min-width: 768px) {
  .points {
    margin-top: 64px;
    grid-template-columns: repeat(3, 1fr);
  }
}

.point {
  background: var(--background);
  padding: 22px 22px;
}
@media (min-width: 768px) {
  .point {
    padding: 26px 30px;
  }
}

.point-n {
  font-family: var(--font-sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--accent);
}

.point-title {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.3;
}
@media (min-width: 768px) {
  .point-title {
    font-size: 20px;
  }
}

.point-body {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-foreground);
}
@media (min-width: 768px) {
  .point-body {
    font-size: 14px;
  }
}

.faq {
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid var(--foreground);
}
@media (min-width: 768px) {
  .faq {
    margin-top: 96px;
    padding-top: 40px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
  }
}

.faq-title {
  margin-top: 14px;
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  line-height: 1;
}

.faq-list {
  margin-top: 44px;
  border-top: 1px solid var(--border);
}
@media (min-width: 768px) {
  .faq-list {
    margin-top: 0;
  }
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  position: relative;
  display: block;
  width: 100%;
  padding: 24px 48px 24px 0;
  border: 0;
  background: transparent;
  color: var(--foreground);
  font-family: var(--font-sans);
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
}
.faq-question:focus-visible {
  outline: 1px solid var(--foreground);
  outline-offset: 4px;
}
.faq-question::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 22px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.25s ease;
}
.faq-item.is-open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 320ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 220ms ease;
}
.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
}
.faq-answer__inner {
  min-height: 0;
  overflow: hidden;
}
.faq-answer p {
  max-width: 42rem;
  padding: 0 48px 26px 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted-foreground);
}
@media (prefers-reduced-motion: reduce) {
  .faq-answer,
  .faq-question::after {
    transition: none;
  }
}

/* =====================================================================
   INQUIRE
   ===================================================================== */
.form {
  margin-top: 48px;
  display: grid;
  gap: 40px;
}
@media (min-width: 768px) {
  .form {
    margin-top: 64px;
  }
}

.field {
  display: block;
}

.field-label {
  font-family: var(--font-sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: color-mix(in oklch, var(--foreground) 70%, transparent);
}

.field-label .req {
  color: var(--accent);
}

.field-control {
  margin-top: 8px;
}

.field-input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--foreground);
  padding: 12px 0;
  font-family: var(--font-sans);
  font-size: 18px;
  color: var(--foreground);
}
@media (min-width: 768px) {
  .field-input {
    font-size: 20px;
  }
}
.field-input::placeholder {
  color: color-mix(in oklch, var(--foreground) 30%, transparent);
}
.field-input:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

textarea.field-input {
  resize: none;
}

.field-row {
  display: grid;
  gap: 40px;
}
@media (min-width: 768px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-foot {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 16px;
}
@media (min-width: 768px) {
  .form-foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.tally-embed {
  position: relative;
  margin-top: 40px;
  min-height: 380px;
}
@media (min-width: 768px) {
  .tally-embed {
    margin-top: 52px;
  }
}
.tally-embed iframe {
  width: 100%;
  border: 0;
  display: block;
  opacity: 0;
  transition: opacity 180ms ease;
}
.tally-embed.is-loaded iframe {
  opacity: 1;
}

.tally-loader {
  position: absolute;
  inset: 0 0 auto;
  height: 380px;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 140ms ease, visibility 0s linear 140ms;
}
.tally-embed.is-loading .tally-loader {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.tally-spinner {
  width: 20px;
  height: 20px;
  border: 1px solid color-mix(in oklch, var(--foreground) 22%, transparent);
  border-top-color: var(--foreground);
  border-radius: 50%;
  animation: tally-spin 720ms linear infinite;
}

@keyframes tally-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tally-embed iframe,
  .tally-loader {
    transition: none;
  }
  .tally-spinner {
    animation-duration: 1.5s;
  }
}

.form-foot p {
  font-family: var(--font-sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: color-mix(in oklch, var(--foreground) 50%, transparent);
  max-width: 24rem;
}

/* =====================================================================
   FLYER BOOKING
   ===================================================================== */
.flyer-main {
  flex: 1;
  width: min(100%, 72rem);
  margin-inline: auto;
  padding: 124px 24px 40px;
}
@media (min-width: 768px) {
  .flyer-main {
    padding: 144px 40px 48px;
  }
}

.flyer-title {
  margin-top: 14px;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: 0.94;
}

.cal-embed {
  height: 760px;
  margin-top: 56px;
}
@media (min-width: 768px) {
  .cal-embed {
    height: 720px;
    margin-top: 72px;
  }
}

.flyer-contact {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted-foreground);
  font-size: 12px;
}

.flyer-contact span {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.flyer-contact a {
  color: var(--foreground);
  border-bottom: 1px solid currentColor;
  transition: opacity 0.2s ease;
}
.flyer-contact a:hover {
  opacity: 0.55;
}

.cal-fallback {
  padding: 32px;
  font-size: 14px;
  color: var(--muted-foreground);
}
.cal-fallback a {
  color: var(--foreground);
  border-bottom: 1px solid currentColor;
}

/* =====================================================================
   REFERRALS
   ===================================================================== */
.referral-grid {
  margin-top: 64px;
  display: grid;
  gap: 40px;
  align-items: start;
}
@media (min-width: 768px) {
  .referral-grid {
    margin-top: 96px;
    grid-template-columns: 7fr 5fr;
    gap: 64px;
  }
}

.referral-copy {
  display: grid;
  gap: 32px;
  font-size: 16px;
  line-height: 1.7;
  color: color-mix(in oklch, var(--foreground) 85%, transparent);
}
@media (min-width: 768px) {
  .referral-copy {
    font-size: 18px;
  }
}

.referral-pct {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--accent);
  font-size: 30px;
  vertical-align: middle;
  padding: 0 8px;
}
@media (min-width: 768px) {
  .referral-pct {
    font-size: 36px;
  }
}

.referral-aside {
  border: 1px solid var(--border);
  padding: 40px;
}

.referral-aside ul {
  margin-top: 24px;
  display: grid;
  gap: 12px;
  list-style: none;
  font-size: 14px;
  line-height: 1.6;
  color: color-mix(in oklch, var(--foreground) 80%, transparent);
}

.referral-aside .fineprint {
  margin-top: 32px;
}

/* =====================================================================
   PRIDE
   ===================================================================== */
.pride-lead {
  font-size: clamp(2.1rem, 5.6vw, 4.4rem);
  line-height: 1.06;
  max-width: 20ch;
}

.pride-trevor {
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.pride-body {
  margin-top: 40px;
  max-width: 38rem;
  display: grid;
  gap: 24px;
  font-size: 16px;
  line-height: 1.75;
  color: color-mix(in oklch, var(--foreground) 85%, transparent);
}
@media (min-width: 768px) {
  .pride-body {
    margin-top: 52px;
    font-size: 18px;
  }
}

.text-link {
  color: inherit;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}
.text-link:hover {
  opacity: 0.55;
}

/* =====================================================================
   TRACKING
   ===================================================================== */
.track-main {
  display: flex;
  flex-direction: column;
}
@media (max-width: 767px) {
  .track-main {
    padding-top: 96px;
    padding-bottom: 28px;
  }
}
.track-main.is-empty {
  justify-content: center;
}
.track-main.is-empty .track-card {
  margin-top: 0;
}

.track-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}
.track-intro[hidden] {
  display: none;
}

.track-lede {
  margin-top: 14px;
  max-width: 26rem;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.track-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.track-search {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  width: 100%;
  max-width: 440px;
}
.track-search__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--foreground);
  padding: 12px 0;
  font-family: var(--font-sans);
  font-size: 17px;
  letter-spacing: 0.01em;
  color: var(--foreground);
}
.track-search__input::placeholder {
  color: color-mix(in oklch, var(--foreground) 35%, transparent);
}
.track-search__input:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.track-search__btn {
  border: 1px solid color-mix(in oklch, var(--foreground) 70%, transparent);
  background: transparent;
  color: var(--foreground);
  padding: 12px 26px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.track-search__btn:hover {
  background: var(--foreground);
  color: var(--background);
}

.track-card {
  margin-top: 44px;
}
@media (min-width: 768px) {
  .track-card {
    margin-top: 56px;
  }
}

.track-card__top {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.track-notices {
  margin-bottom: 28px;
}
.track-notices ul {
  list-style: none;
  display: grid;
  gap: 10px;
  padding: 0;
}
.track-banner {
  border-left: 2px solid var(--accent);
  background: color-mix(in oklch, var(--foreground) 4%, var(--background));
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.track-update-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (min-width: 768px) {
  .track-card__top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.track-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}
.track-arrival {
  margin-top: 10px;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.02;
}
.track-window {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted-foreground);
}

.track-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--foreground);
  white-space: nowrap;
}
.track-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--live);
  animation: live-pulse 2.4s ease-out infinite;
}
@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in oklch, var(--live) 55%, transparent);
  }
  70% {
    box-shadow: 0 0 0 7px color-mix(in oklch, var(--live) 0%, transparent);
  }
  100% {
    box-shadow: 0 0 0 0 color-mix(in oklch, var(--live) 0%, transparent);
  }
}
@media (prefers-reduced-motion: reduce) {
  .track-status::before {
    animation: none;
  }
}

.track-meta {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 26px 0;
}
@media (min-width: 640px) {
  .track-meta {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
  .track-meta__item {
    padding: 0 26px;
    border-left: 1px solid var(--border);
  }
  .track-meta__item:first-child {
    padding-left: 0;
    border-left: 0;
  }
}
.track-meta__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}
.track-meta__value {
  margin-top: 8px;
  font-size: 16px;
  color: var(--foreground);
}

.track-section-title {
  margin-top: 32px;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted-foreground);
}

.timeline {
  list-style: none;
  position: relative;
  margin-top: 22px;
  padding-left: 26px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--border);
}
.timeline__item {
  position: relative;
  padding-bottom: 26px;
}
.timeline__item:last-child {
  padding-bottom: 0;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  background: var(--foreground);
}
.timeline__item--info::before {
  background: var(--background);
  border: 1px solid var(--muted-foreground);
}
.timeline__item--active::before {
  background: var(--live);
  animation: live-pulse 2.4s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .timeline__item--active::before {
    animation: none;
  }
}
.timeline__date {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
}
.timeline__event {
  margin-top: 4px;
  font-size: 15px;
  color: var(--foreground);
}
.timeline__item--active .timeline__event {
  font-weight: 500;
}
.timeline__meta {
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted-foreground);
}

.track-promo {
  margin-top: 40px;
  max-width: 40rem;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted-foreground);
}
.track-promo a {
  color: var(--foreground);
  border-bottom: 1px solid currentColor;
  transition: opacity 0.2s ease;
}
.track-promo a:hover {
  opacity: 0.6;
}

/* Notice / prompt / error body copy */
.track-card__body {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted-foreground);
  max-width: 40rem;
}

/* Third-party carrier hand-off (UPS, etc.) */
.track-carrier {
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.track-carrier strong {
  color: var(--foreground);
  font-weight: 500;
}

/* Proof of delivery */
.proof {
  margin-top: 32px;
}
.proof__when {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted-foreground);
}
.proof__photos {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.proof__photo-link {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
}
.proof__photo {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.proof__photo-link:hover .proof__photo {
  transform: scale(1.03);
}
.proof__signature {
  margin-top: 18px;
}
.proof__sublabel {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}
.proof__sig-img {
  margin-top: 8px;
  max-width: 240px;
  border-bottom: 1px solid var(--border);
}
.proof__signee {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted-foreground);
}

/* Multi-parcel order list */
.parcel-list {
  list-style: none;
  margin-top: 24px;
  border-top: 1px solid var(--border);
}
.parcel-list__item {
  border-bottom: 1px solid var(--border);
}
.parcel-list__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  transition: padding-left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.parcel-list__button:hover {
  padding-left: 10px;
}
.parcel-list__tracking {
  font-size: 16px;
  color: var(--foreground);
}
.parcel-list__summary {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted-foreground);
}
.parcel-list__status {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-foreground);
  white-space: nowrap;
}

/* Delivery additions remain within reach as a draggable bottom sheet. */
.track-main.has-delivery-addition { padding-bottom: 132px; }
.delivery-addition__backdrop {
  position: fixed;
  z-index: 30;
  inset: 0;
  background: rgb(28 27 24 / 14%);
  opacity: var(--addition-backdrop-opacity, 1);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s ease, visibility 0.55s;
  -webkit-tap-highlight-color: transparent;
}
.delivery-addition__backdrop.is-visible { visibility: visible; pointer-events: auto; }
.delivery-addition {
  position: fixed;
  z-index: 35;
  inset-inline: 0;
  bottom: 0;
  width: 100%;
  max-height: min(78vh, 680px);
  max-height: min(78dvh, 680px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  border-radius: 28px 28px 0 0;
  background: var(--background);
  box-shadow: 0 -8px 48px rgb(18 18 18 / 10%), 0 -1px 4px rgb(18 18 18 / 3%);
  transform: translate3d(0, var(--addition-offset, 0px), 0);
  transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
.delivery-addition::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: 40px;
  padding: 3px;
  border-radius: inherit;
  pointer-events: none;
  background: var(--rainbow);
  background-size: 175% 100%;
  background-position: 0% 50%;
  filter: saturate(0.9);
  /* A top-edge accent that fades out along the curved corners. */
  -webkit-mask: linear-gradient(to bottom, #fff 0 5px, transparent 28px),
    linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: source-in, xor;
  mask: linear-gradient(to bottom, #fff 0 5px, transparent 28px),
    linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: intersect, exclude;
  animation: addition-rainbow 4.5s cubic-bezier(0.37, 0, 0.63, 1) infinite alternate;
}
@keyframes addition-rainbow {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}
.delivery-addition.is-entering { transform: translate3d(0, calc(100% + 30px), 0); }
.delivery-addition.is-dragging,
.delivery-addition__backdrop.is-dragging { transition: none; }
.delivery-addition__top {
  flex: none;
  padding-top: 5px;
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.delivery-addition.is-dragging .delivery-addition__top { cursor: grabbing; }
.delivery-addition__grip {
  display: grid;
  place-items: center;
  width: 100%;
  height: 26px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: inherit;
  touch-action: none;
}
.delivery-addition__handle {
  display: block;
  width: 36px;
  height: 4px;
  border-radius: 99px;
  background: color-mix(in oklch, var(--foreground) 18%, var(--background));
  transition: width 0.3s ease, background-color 0.3s ease;
}
.delivery-addition__grip:hover .delivery-addition__handle { width: 46px; background: var(--muted-foreground); }
.delivery-addition__header,
.delivery-addition__content {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
}
.delivery-addition__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px max(20px, env(safe-area-inset-bottom));
}
.delivery-addition__heading { min-width: 0; }
.delivery-addition__title {
  font-size: clamp(1.5rem, 5.8vw, 2.15rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}
.delivery-addition svg,
.addition-payment svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.delivery-addition__content {
  min-height: 0;
  overflow-y: auto;
  padding: 0 24px max(24px, env(safe-area-inset-bottom));
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
}
.delivery-addition__body {
  max-width: 50rem;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-foreground);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.delivery-addition__rail-heading {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.delivery-addition__rail-controls { display: flex; gap: 8px; }
.delivery-addition__rail-controls[hidden] { display: none; }
.delivery-addition__rail-controls button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--foreground);
  font: inherit;
  font-size: 17px;
  cursor: pointer;
}
.delivery-addition__rail-controls button:hover { border-color: var(--foreground); }
.delivery-addition__rail-controls button:disabled { cursor: default; opacity: 0.35; }
.delivery-addition__offers {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 300px);
  gap: 16px;
  margin-top: 12px;
  padding: 0 0 4px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
}
.delivery-addition__offers::-webkit-scrollbar { display: none; }
.delivery-addition__offer {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
  border: 1px solid color-mix(in oklch, var(--border) 65%, transparent);
  border-radius: 20px;
  background: color-mix(in oklch, var(--background) 45%, white);
  scroll-snap-align: start;
}
.delivery-addition__image {
  display: block;
  width: 100%;
  height: 156px;
  margin: 14px 0 9px;
  border-radius: 12px;
  background: color-mix(in oklch, var(--foreground) 3%, var(--background));
  object-fit: contain;
}
.delivery-addition__details { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.delivery-addition__offer-title { font-size: 16px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.delivery-addition__product,
.delivery-addition__description,
.delivery-addition__feedback {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted-foreground);
}
.delivery-addition__feedback:empty { display: none; }
.delivery-addition__action { margin-top: auto; padding-top: 20px; }
.delivery-addition__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--foreground);
  background: var(--foreground);
  border-radius: 12px;
  color: var(--background);
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.delivery-addition__button-label { min-width: 0; text-align: left; }
.delivery-addition__button-total { display: flex; align-items: center; gap: 8px; }
.delivery-addition__button-price { font: inherit; text-align: right; }
.delivery-addition__button:hover { background: var(--accent); }
.delivery-addition__button:active { transform: scale(0.98); }
.delivery-addition__button:disabled { cursor: wait; opacity: 0.55; }
.delivery-addition :focus-visible,
.addition-payment :focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.delivery-addition__grip:focus-visible { outline: none; }
.delivery-addition__grip:focus-visible .delivery-addition__handle { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (min-width: 768px) {
  .delivery-addition { width: min(calc(100% - 48px), 1040px); border-radius: 32px 32px 0 0; }
  .delivery-addition__backdrop { display: none; }
  .delivery-addition__header { padding-inline: 32px; padding-bottom: 22px; }
  .delivery-addition__content { padding-inline: 32px; padding-bottom: 28px; }
  .delivery-addition__body { font-size: 14px; }
  .delivery-addition__offers { grid-auto-columns: minmax(270px, calc((100% - (var(--addition-columns, 3) - 1) * 16px) / var(--addition-columns, 3))); }
  .delivery-addition__offers:has(> li:only-child) { grid-auto-columns: min(100%, 420px); }
}

/* A direct payment link stays available even when a browser blocks new tabs. */
body.addition-payment-open { overflow: hidden; }
.addition-payment {
  position: fixed;
  inset: 0;
  width: min(360px, calc(100% - 40px));
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 50px 32px 36px;
  overflow-y: auto;
  border: 1px solid rgb(255 255 255 / 60%);
  border-radius: 28px;
  background: var(--background);
  color: var(--foreground);
  box-shadow: 0 24px 100px rgb(18 18 18 / 18%);
  text-align: center;
}
.addition-payment[open] { animation: addition-payment-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
.addition-payment::backdrop { background: rgb(24 23 20 / 25%); backdrop-filter: blur(5px); }
@keyframes addition-payment-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.addition-payment__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
}
.addition-payment__close:hover { background: color-mix(in oklch, var(--foreground) 5%, var(--background)); }
.addition-payment__message { max-width: 25ch; margin-inline: auto; font-size: 17px; line-height: 1.6; }
.addition-payment__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-width: 130px;
  min-height: 46px;
  margin-top: 24px;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--foreground);
  color: var(--background);
  font-size: 13px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.addition-payment__link:hover { background: var(--accent); }
.addition-payment__link:active { transform: scale(0.98); }
@media (prefers-reduced-motion: reduce) {
  .delivery-addition, .delivery-addition__backdrop { transition: none; }
  .delivery-addition::before, .addition-payment[open] { animation: none; }
}
.related-orders { margin-top: 38px; }
.related-orders__list { margin-top: 16px; list-style: none; border-top: 1px solid var(--border); }
.related-orders__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.related-orders__list a { text-decoration: underline; text-underline-offset: 3px; }
.related-orders__status { color: var(--muted-foreground); font-size: 12px; }
@media (max-width: 600px) {
  .delivery-addition__header { gap: 12px; padding-inline: 20px; }
  .delivery-addition__content { padding-inline: 20px; }
  .related-orders__list li { flex-direction: column; gap: 3px; }
}

#track-result {
  scroll-margin-top: 152px;
}

/* Scroll / load reveal — echoes the manifesto fade-in on the live site */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
