/* ------------------------------------------------------------------
   Baird Logistics Services — splash page
   ------------------------------------------------------------------ */

:root {
  --ink: #0a0a0c;
  --accent: #1a56d6;
  --accent-light: #7aa7ff;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --wrap: 1120px;
}

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

html { -webkit-text-size-adjust: 100%; }

body.splash {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

p { margin: 0; }
h1, h2 { margin: 0; font-weight: 400; }
a { color: inherit; text-decoration: none; }

:where(a, button, input, summary):focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

[hidden] { display: none !important; }

/* ---------- Background ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 55%;
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(102deg,
      rgba(6, 8, 12, 0.97) 0%,
      rgba(6, 8, 12, 0.93) 38%,
      rgba(6, 8, 12, 0.68) 66%,
      rgba(6, 8, 12, 0.5) 100%),
    radial-gradient(760px 520px at 84% 12%, rgba(26, 86, 214, 0.4), transparent 68%);
}

/* ---------- Shell ---------- */

.shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 3vw, 40px);
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 34px) clamp(20px, 4vw, 40px);
  min-height: 100vh;
  min-height: 100svh;
}

.shell > .content { flex: 1 0 auto; }

/* ---------- Top ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }

.brand-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 6px 10px;
  background: #fff;
  border-radius: 9px;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.75);
}
.brand-plate img {
  display: block;
  height: 72px;
  width: auto;
}

.location {
  font-size: 0.71rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  padding: 7px 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Headline ---------- */

.content { max-width: 54rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(26, 86, 214, 0.3);
  border: 1px solid rgba(122, 167, 255, 0.42);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
  backdrop-filter: blur(6px);
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 0 4px rgba(122, 167, 255, 0.16);
}

h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5.4vw, 4.15rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
}

.lede {
  margin-top: 18px;
  font-size: clamp(0.97rem, 1.2vw, 1.08rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  max-width: 38em;
}

/* ---------- Highway progress ---------- */

.progress-card {
  --p: 50;
  --truck-w: clamp(84px, 12vw, 128px);
  margin-top: clamp(28px, 4vw, 40px);
  padding: clamp(18px, 2.4vw, 24px);
  border-radius: 20px;
  background: rgba(8, 11, 16, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.9);
}

.progress-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding: 0 4px;
}

.progress-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.progress-sub {
  margin-top: 5px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

.progress-value {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 0.9;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

/* Road surface */
.road {
  position: relative;
  height: clamp(92px, 12vw, 118px);
  margin: 0 4px;
  border-radius: 12px;
  background-color: #12161c;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 7px 7px, 13px 13px;
  background-position: 0 0, 4px 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 14px 24px -18px rgba(255, 255, 255, 0.35), inset 0 -10px 20px -14px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

/* Distance travelled */
.road-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--p) * 1%);
  background: linear-gradient(90deg, rgba(26, 86, 214, 0.06), rgba(26, 86, 214, 0.34));
  transition: width 900ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.road-fill::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-light);
  box-shadow: 0 0 14px 2px rgba(122, 167, 255, 0.55);
}

/* Dashed centre line */
.road-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 64%;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.42) 0 26px,
    transparent 26px 52px
  );
  pointer-events: none;
}

/* Finish marker */
.finish-flag {
  position: absolute;
  right: 10px;
  top: 18%;
  bottom: 18%;
  width: 20px;
}
.flag-pole {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55) 0 6px,
    transparent 6px 12px
  );
}
.flag-cloth {
  position: absolute;
  right: 2px;
  top: 0;
  width: 16px;
  height: 11px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  border-radius: 1px;
}

/* Truck */
.truck-holder {
  position: absolute;
  top: 64%;
  left: clamp(calc(var(--truck-w) / 2), calc(var(--p) * 1%), calc(100% - var(--truck-w) / 2));
  transform: translate(-50%, -100%);
  transition: left 900ms cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 3;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.55));
}

.truck {
  width: var(--truck-w);
  animation: haul 2.8s ease-in-out infinite;
}
.truck svg { display: block; width: 100%; height: auto; }

@keyframes haul {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.5px); }
}

/* Mile markers */
.mileage {
  display: flex;
  justify-content: space-between;
  margin: 10px 4px 0;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.38);
}

/* ---------- Admin ---------- */

.admin {
  margin-top: 26px;
  padding: 20px 22px;
  border-radius: 16px;
  background: rgba(26, 86, 214, 0.14);
  border: 1px solid rgba(122, 167, 255, 0.34);
  max-width: 40rem;
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.admin-head h2 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.admin-close {
  font-size: 1.15rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.55);
  padding: 2px 6px;
  border-radius: 6px;
}
.admin-close:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

.admin-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-note {
  max-width: 34em;
  margin-bottom: 16px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.66);
}

.admin-auth .admin-label {
  display: block;
  margin-bottom: 8px;
}

.admin-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.admin-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 14px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
}
.admin-input::placeholder { color: rgba(255, 255, 255, 0.34); }
.admin-input:focus {
  outline: none;
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(122, 167, 255, 0.18);
}

.admin-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.admin-foot .admin-hint { margin-top: 0; }

.admin-link {
  padding: 2px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  background: none;
  color: rgba(255, 255, 255, 0.62);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.admin-link:hover { color: #fff; border-color: #fff; }

.admin-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.admin-range {
  flex: 1 1 160px;
  min-width: 140px;
  accent-color: var(--accent-light);
  cursor: pointer;
}

.admin-number {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px 6px 6px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}
.admin-number input {
  width: 3.6rem;
  padding: 4px 6px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.admin-number input:focus { outline: none; background: rgba(255, 255, 255, 0.1); }
.admin-number input::-webkit-outer-spin-button,
.admin-number input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.admin-number input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

.admin-save {
  padding: 9px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease;
}
.admin-save:hover { background: #2a6bf0; }
.admin-save:disabled { opacity: 0.6; cursor: default; }

.admin-msg {
  margin-top: 12px;
  min-height: 1.3em;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
}
.admin-msg.is-ok { color: #9fd7a8; }
.admin-msg.is-error { color: #ffb3a7; }

.admin-hint {
  margin-top: 6px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}
.admin-hint code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Contact ---------- */

.contact {
  margin-top: clamp(24px, 3.4vw, 34px);
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  max-width: 36rem;
}

.contact-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}

.contact-lines {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.contact-lines a {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.2;
  color: #fff;
  border-bottom: 1px solid rgba(122, 167, 255, 0.45);
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.contact-lines a:hover {
  color: var(--accent-light);
  border-color: var(--accent-light);
}

.divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.22);
}

.note {
  margin-top: 12px;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Bottom ---------- */

.bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.77rem;
  color: rgba(255, 255, 255, 0.45);
}

.bottom-links {
  display: flex;
  align-items: center;
  gap: 18px;
}
.bottom-links a {
  color: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease;
}
.bottom-links a:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); }

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .bg img { object-position: 70% 50%; }
  .bg::after {
    background:
      linear-gradient(180deg,
        rgba(6, 8, 12, 0.9) 0%,
        rgba(6, 8, 12, 0.88) 45%,
        rgba(6, 8, 12, 0.95) 100%),
      radial-gradient(520px 380px at 80% 6%, rgba(26, 86, 214, 0.42), transparent 70%);
  }

  .shell { gap: 14px; padding-top: 14px; padding-bottom: 10px; }

  .top { flex-wrap: wrap; row-gap: 10px; }
  .brand-plate img { height: 64px; }
  .location {
    display: inline-block;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    padding: 5px 10px;
  }

  /* Spread the slack through the content instead of leaving a void above the footer */
  .content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 auto;
    max-width: none;
  }

  .eyebrow {
    align-self: flex-start;
    margin-bottom: 12px;
  }
  h1 { font-size: clamp(2.1rem, 9.6vw, 2.85rem); }
  .lede { margin-top: 10px; font-size: 0.93rem; }

  .progress-card { margin-top: 0; padding: 14px; }
  .road { height: 78px; margin: 0 2px; }
  .progress-head { align-items: center; margin-bottom: 12px; }
  .progress-value { font-size: 1.9rem; }
  .mileage { margin: 6px 2px 0; font-size: 0.6rem; letter-spacing: 0.04em; }

  .admin { padding: 18px; }
  .admin-range { flex-basis: 100%; }

  .contact { margin-top: 0; padding-top: 14px; }
  .contact-lines { flex-direction: column; align-items: flex-start; gap: 8px; }
  .divider { display: none; }
  .note { margin-top: 8px; }

  .bottom { flex-direction: column; align-items: flex-start; gap: 5px; padding-top: 12px; }
}

@media (max-width: 359px) {
  .location { display: none; }
}

/* Short phones: shrink the furniture so the whole splash still fits on one screen */
@media (max-width: 720px) and (max-height: 760px) {
  .shell { gap: 8px; padding-top: 8px; padding-bottom: 6px; }
  .brand-plate img { height: 48px; }

  .eyebrow { margin-bottom: 8px; padding: 4px 11px; font-size: 0.68rem; }
  h1 { font-size: clamp(1.85rem, 8.2vw, 2.3rem); }
  .lede { margin-top: 6px; font-size: 0.88rem; }

  .progress-card { padding: 10px 12px; }
  .road { height: 62px; }
  .progress-value { font-size: 1.6rem; }
  .progress-head { margin-bottom: 8px; }
  .mileage { margin-top: 4px; font-size: 0.56rem; }

  .contact { padding-top: 8px; }
  .contact-label { margin-bottom: 8px; font-size: 0.64rem; }
  .contact-lines a { font-size: clamp(1.1rem, 4.4vw, 1.25rem); }
  .note { margin-top: 5px; font-size: 0.76rem; }

  .bottom { padding-top: 8px; font-size: 0.72rem; gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  .truck { animation: none; }
  .truck-holder,
  .road-fill { transition: none; }
}

/* Dark-background variant: the white knockout logo sits straight on the surface */
.brand-plate.brand-plate--bare {
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
}
