/* Paper sections keep their own light palette when the warehouse lights change. */
.off-duty, .dispatch-section {
  --paper: #f8f6f1;
  --white: #fff;
  --ink: #252723;
  --muted: #696960;
  --line: #dedbd2;
  --blue: #3469a4;
  color-scheme: light;
}
.off-duty { background: #f8f6f1; padding-bottom: 42px; }
.moment { background: #fff; }
.moment h3 { text-transform: uppercase; font-size: 17px; letter-spacing: -0.3px; }
.moment > p { min-height: 70px; }
.pending-action { margin-top: auto; padding-top: 12px; }
.pending-action button {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 28px;
  padding: 0;
  background: transparent;
  color: #777970;
  font: inherit;
  font-size: 12px;
  cursor: not-allowed;
}
.pending-action small { display: block; font-size: 10px; color: #696960; line-height: 1.5; }
.buy-note { color: var(--muted); font-size: 11px; line-height: 1.7; margin: 24px 0 0; }
.dispatch-section {
  padding: 90px 44px 24px;
  background: #e9dfcb;
  color: var(--ink);
  scroll-margin-top: 0;
}
.dispatch-page-inner { max-width: 1400px; margin: 0 auto; }
.dispatch-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 8%; align-items: center; }
.dispatch-story .section-label { font-size: 10px; letter-spacing: 1.6px; color: #6b604d; }
.dispatch-story h2 { font-size: clamp(40px, 4vw, 64px); line-height: 1.05; letter-spacing: -2.7px; margin: 24px 0; }
.dispatch-story > p { color: #605b50; font-size: 15px; line-height: 1.8; }
.dispatch-long {
  display: inline-flex;
  gap: 45px;
  align-items: center;
  background: #263b44;
  color: #fff9eb;
  padding: 17px 23px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  margin: 20px 0 12px;
}
.dispatch-long:hover { background: #375567; }
.dispatch-story > small { display: block; font-size: 10px; color: #605b50; line-height: 1.6; }
.dispatch-signature { display: flex; align-items: center; gap: 14px; margin-top: 44px; }
.dispatch-signature img { width: 68px; height: auto; transform: rotate(-8deg); }
.dispatch-signature span { font-size: 12px; color: #605b50; line-height: 1.6; }
.parcel-slip {
  position: relative;
  background: #fffef9;
  padding: 29px;
  border: 1px solid #c6bda9;
  box-shadow: 5px 7px 0 #c4b69d55;
}
.parcel-slip::before {
  content: "";
  position: absolute;
  width: 95px;
  height: 27px;
  top: -14px;
  left: 40%;
  background: #88b4d0b8;
  transform: rotate(-4deg);
}
.slip-topline { display: flex; justify-content: space-between; gap: 15px; font: 9px/1.6 monospace; letter-spacing: 1px; }
.slip-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 2px solid #303b3b; padding: 22px 0; }
.slip-title > strong { font-size: clamp(27px, 2.8vw, 44px); letter-spacing: -1.9px; }
.slip-title > strong > span { color: #777c78; font-weight: 400; }
.slip-stamp { border: 2px solid #41677c; padding: 7px 9px; font: 9px/1.35 monospace; text-align: center; letter-spacing: .6px; color: #41677c; transform: rotate(7deg); }
.slip-specs { margin: 23px 0; }
.slip-specs > div { display: grid; grid-template-columns: 130px 1fr; gap: 15px; margin-top: 16px; }
.slip-specs dt { font: 10px/1.8 monospace; letter-spacing: .5px; color: #676b64; }
.slip-specs dd { margin: 0; font-size: 13px; line-height: 1.6; }
.slip-specs dd small { display: block; font-size: 10px; color: #676b64; }
.slip-specs a { text-decoration: underline; text-underline-offset: 4px; }
.slip-ticker { font: 10px monospace; color: #41677c; margin-left: 8px; }
.slip-contract { padding: 20px 0; border-block: 1px dashed #b9b9ad; scroll-margin-top: 40px; }
.slip-field-label { display: flex; justify-content: space-between; gap: 10px; font: 9px/1.5 monospace; letter-spacing: .5px; }
.slip-field-label > span:last-child { color: #80612c; }
.contract-value { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 13px; }
.contract-value code { font: 12px/1.6 monospace; overflow-wrap: anywhere; }
.contract-value button { flex-shrink: 0; background: #eeeee7; border: 1px solid #d4d4c8; border-radius: 3px; min-height: 36px; padding: 7px 11px; font-size: 10px; color: #74766d; cursor: not-allowed; }
.slip-contract > p { font-size: 10px; line-height: 1.7; margin: 12px 0 0; color: #676b64; }
.slip-destinations { display: grid; gap: 14px; margin: 21px 0; }
.slip-destinations > div { display: grid; grid-template-columns: 145px 1fr; gap: 12px; }
.slip-destinations span { font: 9px/1.7 monospace; letter-spacing: .4px; color: #676b64; }
.slip-destinations strong { font-size: 11px; line-height: 1.6; font-weight: 400; }
.slip-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 20px; border-top: 2px solid #303b3b; }
.slip-bottom .barcode { width: 170px; height: 31px; }
.slip-bottom > span:last-child { font: 9px/1.7 monospace; letter-spacing: .5px; text-align: right; }
.dispatch-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid #c9c0ac; margin-top: 70px; padding-top: 22px; font-size: 10px; line-height: 1.7; color: #605b50; }
.dispatch-footer a { padding-block: 8px; flex-shrink: 0; color: #28383e; }
.dispatch-footer p { max-width: 430px; margin: 0; text-align: center; }
.setup-dialog { max-width: min(560px, calc(100vw - 24px)); }
.setup-dialog h2 { font-size: 34px; }
.setup-dialog > p { font-size: 14px; line-height: 1.8; color: var(--muted); }
.setup-dialog > small { display: block; margin-top: 14px; font-size: 11px; line-height: 1.6; color: var(--muted); }
@media (min-width: 1600px) { .moment h3 { font-size: 20px; } }
@media (max-width: 1100px) {
  .dispatch-section { padding-inline: 28px; }
  .dispatch-layout { gap: 5%; }
  .parcel-slip { padding: 23px; }
  .slip-specs > div { grid-template-columns: 95px 1fr; gap: 10px; }
  .slip-stamp { font-size: 8px; }
}
@media (max-width: 800px) {
  .dispatch-layout { grid-template-columns: 1fr; gap: 50px; }
  .dispatch-story h2 { font-size: 48px; }
  .dispatch-signature { display: none; }
  .parcel-slip { max-width: 620px; width: 100%; }
  .dispatch-footer { flex-wrap: wrap; gap: 12px 24px; }
  .dispatch-footer p { order: 3; width: 100%; max-width: none; text-align: left; }
}
@media (max-width: 640px) {
  .moment h3 { font-size: 19px; }
  .moment > p { min-height: 0; }
  .dispatch-section { padding: 65px 20px 20px; }
  .dispatch-story .section-label { font-size: 8px; }
  .dispatch-story h2 { font-size: 43px; margin: 19px 0; letter-spacing: -2px; }
  .dispatch-story > p { font-size: 13px; }
  .parcel-slip { padding: 19px; }
  .slip-topline { font-size: 7px; letter-spacing: .4px; }
  .slip-title > strong { font-size: 30px; letter-spacing: -1.7px; }
  .slip-stamp { font-size: 7px; padding: 5px; }
  .slip-specs > div { grid-template-columns: 86px 1fr; gap: 8px; }
  .slip-specs dd { font-size: 12px; }
  .slip-specs dt { font-size: 9px; }
  .slip-ticker { display: block; margin: 2px 0 0; }
  .slip-field-label { font-size: 8px; }
  .contract-value { align-items: flex-start; }
  .contract-value code { font-size: 11px; }
  .slip-destinations > div { grid-template-columns: 112px 1fr; gap: 8px; }
  .slip-bottom .barcode { width: 95px; }
  .slip-bottom > span:last-child { font-size: 8px; }
  .dispatch-footer { margin-top: 40px; font-size: 9px; }
}
@media (max-width: 360px) {
  .slip-title > strong { font-size: 25px; letter-spacing: -1.3px; white-space: nowrap; }
  .slip-title { gap: 8px; }
}

/* A floor-to-paper dissolve, followed by paper warming into the parcel surface. */
.immersive .hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 135px;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(180deg, #f8f6f100 0%, #f8f6f11a 28%, #f8f6f18c 65%, #f8f6f1 100%);
}
.immersive .world-footer a {
  color: #263b44;
  text-decoration-color: #263b4466;
  text-shadow: 0 1px 4px #f8f6f1;
}
.immersive .world-footer a:hover { color: #142a35; }
.dispatch-section {
  background: linear-gradient(180deg, #f8f6f1 0, #efe5d6 130px, #e6d3b8 330px, #e8d9c3 100%);
  padding-top: 110px;
}
.dispatch-layout {
  position: relative;
  isolation: isolate;
  gap: 7%;
  padding: 64px 55px 70px;
  border: 1px solid #ac804e;
  border-radius: 3px 5px 2px 2px;
  background-color: #cda573;
  background-image:
    repeating-linear-gradient(7deg, #fff4d710 0 1px, transparent 1px 4px),
    repeating-linear-gradient(97deg, #70451b0b 0 1px, transparent 1px 7px),
    linear-gradient(110deg, #efd2a440, transparent 35%, #9c642c24 72%, #f3d6a534);
  box-shadow: inset 0 3px 1px #f5d7a780, inset 3px 0 2px #edc69666,
    inset -3px 0 3px #6e492b33, 0 16px 0 -1px #a97944,
    0 18px 0 -1px #815832, 0 28px 26px -14px #60452855;
}
/* The sealed center fold sits under the readable, flat paper label. */
.dispatch-layout::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 42%;
  width: 70px;
  border-inline: 1px solid #2f638359;
  background:
    linear-gradient(90deg, transparent 46%, #233d3f77 48%, #29445488 50%, #b7d5e057 52%, transparent 55%),
    repeating-linear-gradient(0deg, #daeafa18 0 1px, transparent 1px 4px),
    #6898b9b8;
  transform: skewY(-1deg);
}
.dispatch-layout::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -16px;
  height: 15px;
  pointer-events: none;
  border-top: 1px solid #80532580;
  background: repeating-linear-gradient(90deg, #855a3277 0 1px, #c1956277 1px 4px);
}
.dispatch-story { position: relative; }
.dispatch-story .section-label { color: #4e3e28; font-family: monospace; }
.dispatch-story h2 { font-size: clamp(37px, 3.65vw, 58px); color: #332b22; }
.dispatch-story > p, .dispatch-story > small, .dispatch-signature span { color: #493d2e; }
.parcel-slip {
  z-index: 1;
  transform: rotate(1deg);
  border-color: #c5b697;
  background: linear-gradient(100deg, #fffef8, #fffdf5 92%, #eee9dc);
  box-shadow: 1px 2px 2px #67432322, 4px 9px 10px #67432326, 14px 20px 25px -15px #50331866;
}
.parcel-slip::before {
  width: 112px;
  height: 35px;
  top: -18px;
  left: 36%;
  background: repeating-linear-gradient(0deg, #dfedee22 0 1px, transparent 1px 3px), #81adc6ba;
  clip-path: polygon(0 6%, 6% 0, 13% 5%, 23% 0, 35% 4%, 46% 0, 58% 5%, 70% 0, 85% 4%, 100% 0, 99% 92%, 94% 100%, 84% 96%, 74% 100%, 60% 95%, 48% 100%, 36% 94%, 24% 100%, 12% 94%, 0 100%);
  transform: rotate(-6deg);
}
.parcel-slip::after {
  content: "";
  position: absolute;
  bottom: -12px;
  right: 10%;
  width: 86px;
  height: 26px;
  background: #90b3c58c;
  transform: rotate(-9deg);
  pointer-events: none;
}
.dispatch-signature { border-top: 1px solid #75532b55; padding-top: 22px; max-width: 260px; }
.dispatch-footer { margin-top: 80px; border-color: #a58d6859; }
@media (max-width: 1100px) {
  .dispatch-layout { padding: 48px 30px 55px; gap: 6%; }
  .dispatch-layout::before { left: 40%; width: 55px; }
  .dispatch-story h2 { font-size: 39px; }
}
@media (max-width: 800px) {
  .dispatch-layout { gap: 50px; padding: 42px 30px 50px; }
  .dispatch-layout::before { left: auto; right: 9%; width: 48px; }
  .dispatch-story { padding-right: 45px; }
  .dispatch-story h2 { font-size: 43px; }
}
@media (max-width: 640px) {
  .immersive .hero::after { height: 110px; }
  .dispatch-section { padding: 70px 14px 20px; }
  .dispatch-layout { padding: 34px 17px 40px; gap: 42px; }
  .dispatch-layout::before { right: 7%; width: 38px; opacity: .55; }
  .dispatch-story { padding-right: 20px; }
  .dispatch-story h2 { font-size: 37px; letter-spacing: -1.8px; }
  .dispatch-story > p br { display: none; }
  .dispatch-story > small { max-width: 200px; }
  .parcel-slip { padding: 15px; transform: rotate(.5deg); }
  .slip-title { gap: 6px; }
  .slip-title > strong { font-size: 25px; letter-spacing: -1.2px; white-space: nowrap; }
  .slip-stamp { font-size: 6px; padding: 4px; }
  .slip-specs > div { grid-template-columns: 74px 1fr; }
  .slip-field-label { flex-wrap: wrap; }
  .slip-destinations > div { grid-template-columns: 1fr; gap: 3px; }
  .dispatch-footer { margin-top: 55px; padding-inline: 6px; }
}
/* Keep the warehouse artwork open; contrast follows the lettering, not a side panel. */
.immersive .world-shade {
  background: linear-gradient(180deg, #10232c45 0, transparent 17%, transparent 80%, #10232c24 100%);
}
.immersive .hero-heading {
  text-shadow: 0 2px 4px #14262c88, 0 0 20px #14262c40;
}
.immersive .hero-heading .hero-intro,
.immersive .hero-kicker { text-shadow: 0 1px 3px #10232ce0, 0 0 9px #10232c88; }
.hero-links { text-shadow: none; }

/* BOXY's cardboard ears rise from the parcel; the slip reads as the top layer. */
.dispatch-section { padding-top: 150px; }
.parcel-ear {
  position: absolute;
  top: -101px;
  width: 150px;
  height: 127px;
  z-index: -1;
  pointer-events: none;
  filter: drop-shadow(2px 3px 1px #6b462733);
}
.parcel-ear-left { left: 8%; transform: rotate(-7deg); }
.parcel-ear-right { right: 9%; transform: scaleX(-1) rotate(-6deg); }
.parcel-slip {
  background: #fff;
  border: 2px solid #665039;
  border-radius: 2px;
  box-shadow: 0 3px 0 #d9c5a4, 3px 9px 0 -2px #78563455,
    8px 20px 28px -8px #50311666, 1px 2px 3px #50311633;
}
.parcel-slip::before { background-color: #72a4c4e0; }
.parcel-slip::after { background-color: #72a4c4bf; }
.slip-title { border-bottom-width: 3px; }
.slip-title > strong { font-weight: 700; }
.slip-contract { background: #f7f8f6; margin-inline: -12px; padding-inline: 12px; }
.slip-destinations a { color: #315e79; text-decoration: underline; text-underline-offset: 4px; }
.slip-destinations small { display: block; margin-top: 4px; font-size: 10px; line-height: 1.6; color: #676b64; }
@media (max-width: 800px) {
  .parcel-ear { width: 116px; height: 98px; top: -78px; }
  .parcel-ear-left { left: 6%; }
  .parcel-ear-right { right: 6%; }
  .dispatch-section { padding-top: 120px; }
}
@media (max-width: 640px) {
  .parcel-ear { width: 85px; height: 72px; top: -57px; }
  .dispatch-section { padding-top: 95px; }
  .slip-contract { margin-inline: -7px; padding-inline: 7px; }
}

/* Social icons on the left, with the wordmark centered independently. */
.dispatch-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  padding-block: 27px 12px;
}
.footer-socials { display: flex; align-items: center; gap: 10px; justify-self: start; }
.footer-socials button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid #8e7e6459;
  border-radius: 50%;
  background: transparent;
  color: #4d554f;
  cursor: not-allowed;
}
.footer-socials svg { display: block; width: 22px; height: 22px; }
.dispatch-footer .footer-brand {
  justify-self: center;
  font-size: 39px;
  letter-spacing: -2.7px;
  color: #28383e;
  text-shadow: none;
  padding: 0;
}
.footer-brand img { width: 60px; height: auto; margin-right: 8px; }
.footer-details { justify-self: end; text-align: right; }
@media (max-width: 640px) {
  .dispatch-footer { grid-template-columns: 1fr auto 1fr; gap: 18px 0; }
  .footer-socials { gap: 4px; }
  .footer-socials button { width: 36px; height: 36px; padding: 7px; }
  .footer-socials svg { width: 20px; height: 20px; }
  .dispatch-footer .footer-brand { font-size: 30px; letter-spacing: -2px; }
  .footer-brand img { width: 43px; margin-right: 6px; }
  .footer-details { grid-column: 1 / -1; justify-self: center; text-align: center; }
}
