@font-face {
  font-family: "Varela Round";
  src: url("assets/varela-round-regular.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
  font-style: normal;
}
:root {
  --paper: #f8f6f1;
  --white: #fff;
  --ink: #2c2918;
  --muted: #69655d;
  --blue: #1174b7;
  --line: #dedbd2;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font-family: "Varela Round", "Trebuchet MS", sans-serif; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; }
::selection { background: #52b1fa; color: #242719; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 30; top: 10px; left: 10px; background: white; padding: 14px; }
.section-label { font: 700 11px/1.6 "Varela Round", sans-serif; letter-spacing: 2px; color: var(--blue); }

/* The supplied drawing is a single coordinate plane. Only its camera and the
   small foreground sprites translate; the large illustration is never repainted. */
.hero { position: relative; isolation: isolate; height: 100svh; min-height: 760px; overflow: hidden; background: #d9cdbe; }
.warehouse-shell { position: absolute; inset: 0; overflow: hidden; }
.warehouse { position: absolute; top: 0; left: 0; width: max(100%, 142.699svh); min-width: 1085px; height: 100%; transform-origin: 0 0; }
.warehouse-art, .truck-layer { width: 100%; pointer-events: none; user-select: none; }
.truck-layer { position: absolute; inset: 0; }
.belt-layer { position: absolute; inset: 78.6% 0 auto; pointer-events: none; }
.belt-layer > img { width: 100%; }
.belt-track-window { position: absolute; top: 4%; height: 12%; width: 100%; overflow: hidden; }
.belt-track { width: calc(100% + 48px); height: 100%; margin-left: -48px; background: repeating-linear-gradient(90deg, transparent 0 45px, #b4ada43b 45px 47px, transparent 47px 48px); }
.cat-position, .cat-friend { position: absolute; left: 0; bottom: 20.3%; width: 12.8%; }
.cat-position { z-index: 2; }
.cat { display: block; position: relative; width: 100%; background: transparent; border: 0; padding: 0; }
.cat img { width: 100%; }
.cat-happy { position: absolute; inset: auto 0 0; height: 100%; object-fit: contain; opacity: 0; }
.cat.smiling .cat-usual { opacity: 0; }
.cat.smiling .cat-happy { opacity: 1; }
.cat-friend { width: 10.8%; pointer-events: none; }
.hero::after { content: ""; position: absolute; z-index: 3; inset: auto 0 0; height: 65px; background: linear-gradient(transparent, var(--paper)); pointer-events: none; }
.hero-heading { position: absolute; z-index: 4; top: clamp(20px, 3vh, 50px); left: 3.4%; width: 23%; max-width: 375px; text-align: center; transform: scale(1.06); transform-origin: center top; }
.wall-brand { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; margin-inline: 0; }
.wall-head { width: 50%; flex-shrink: 0; max-width: 155px; margin: 0; transform: rotate(-7deg); transition: transform 180ms ease; }
.wall-brand:hover .wall-head { transform: rotate(-2deg); }
.hero-heading h1 { margin: 0; width: 100%; min-width: 0; }
.wall-wordmark { width: 100%; max-width: 265px; margin: 0 auto; }
.hero-tagline { font-weight: 700; font-size: clamp(22px, 2.35vw, 38px); letter-spacing: -1px; line-height: 1.12; margin: 24px 0 14px; }
.hero-intro { font-size: clamp(13px, 1.1vw, 17px); line-height: 1.6; margin: 0; color: #504c3f; }
.hero-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-links > * { display: inline-flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 46px; padding: 13px 16px; border: 2px solid #2c2918; border-radius: 5px 8px 4px 7px; font-size: 13px; font-weight: 700; }
.hero-socials { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.hero-socials a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1.5px solid #2c29185c; border-radius: 50%; color: var(--ink); }
.hero-socials a:hover { background: #fbf6e9; border-color: var(--ink); }
.hero-socials svg { width: 20px; height: 20px; }
.hero-trade { background: #ffbe55; cursor: pointer; }
.hero-trade:hover { background: #ffd17f; }
.hero-trade:disabled { color: #554528; border-color: #786242; }
.hero-secondary { background: #fbf6e9; }
.hero-secondary:hover { background: #fff; transform: translateY(-1px); }

/* Keep the established four steps and shipping label, matching the new ink,
   cardboard and blue-tape palette throughout. */
.off-duty { padding-top: 78px; }
.off-duty-heading h2 { color: var(--ink); font-weight: 700; }
.moment { border: 1.5px solid #d8d2c5; border-radius: 15px 18px 14px 17px; }
.moment-art { padding: 14px; }
.moment-art img { max-height: 280px; }
.moment > p { font-size: 14px; }
.moment > a { font-size: 14px; }
.pending-action small { font-size: 11px; }
.dispatch-layout { background: #d09e65; border: 3px solid #2c2918; border-radius: 8px 12px 6px 9px; box-shadow: 0 10px 0 #ac7a46; }
.dispatch-layout::before { background: #259eea; border-inline: 2px solid #2c291866; }
.dispatch-layout::after { background: #b1804d; }
.dispatch-story h2 { color: #2c2918; }
.dispatch-long { background: #2c2918; border: 2px solid #2c2918; border-radius: 5px 8px 4px 7px; }
.dispatch-long:hover { background: #45412b; }
.parcel-slip { border: 2px solid #2c2918; box-shadow: 5px 7px 0 #2c291845; }
.parcel-slip::before, .parcel-slip::after { background: #52b1fadb; }
.parcel-ear path:first-child { fill: #d09e65; stroke: #2c2918; stroke-width: 6; }
.parcel-ear path:nth-child(2) { fill: #b1804d; stroke: #b1804d; }
.parcel-ear path:nth-child(3) { display: none; }
.dispatch-footer .footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand > img:first-child { width: 60px; margin: 0; }
.footer-brand .footer-wordmark { width: 100px; margin: 0; }
.barcode { display: block; background: repeating-linear-gradient(90deg, #292b21 0 2px, transparent 2px 4px, #292b21 4px 5px, transparent 5px 8px, #292b21 8px 12px, transparent 12px 15px, #292b21 15px 16px, transparent 16px 19px); }

/* Native dialogs keep the useful details and provide the supplied brand files. */
.world-dialog { position: fixed; width: min(950px, calc(100% - 40px)); max-height: calc(100svh - 40px); overflow-y: auto; padding: 48px; color: var(--ink); background: #f8f6f1; border: 2px solid #2c2918; border-radius: 12px; }
.world-dialog::backdrop { background: #24271bb3; }
.world-dialog h2 { font-size: clamp(28px, 3.3vw, 43px); line-height: 1.08; letter-spacing: -1.5px; margin-top: 14px; }
.dialog-close { position: sticky; display: grid; place-items: center; top: 0; float: right; margin: -28px -28px 0 0; width: 38px; height: 38px; z-index: 5; background: white; border: 1px solid #aaa28b; border-radius: 50%; font-size: 26px; }
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; padding-block: 20px 30px; }
.employee-card { position: relative; background: #e8e2d2; padding: 22px; transform: rotate(-4deg); box-shadow: 3px 5px 0 #b0a89066; }
.employee-top { display: flex; justify-content: space-between; gap: 14px; font: 9px/1.5 "Varela Round", sans-serif; letter-spacing: 1px; padding-bottom: 14px; border-bottom: 1px solid #b0aa97; }
.employee-portrait { position: relative; margin-block: 20px; }
.employee-portrait img { position: relative; width: 86%; max-height: 340px; object-fit: contain; margin: 0 auto; }
.portrait-orbit { position: absolute; inset: 10% 0 0; background: #52b1fa; border-radius: 50%; }
.employee-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #b0aa97; padding-top: 16px; }
.signature { font-size: 32px; font-weight: 700; letter-spacing: -2px; }
.employee-bottom > span:last-child { font-size: 11px; line-height: 1.5; }
.card-tape { position: absolute; top: -16px; left: 37%; width: 90px; height: 28px; background: #52b1faaa; transform: rotate(6deg); }
.about-copy p, .site-footer p { font-size: 14px; line-height: 1.8; color: var(--muted); }
.personality { display: grid; grid-template-columns: 85px 1fr; gap: 12px; font-size: 12px; line-height: 1.5; border-block: 1px solid var(--line); padding-block: 20px; margin-block: 24px; }
.personality span { color: var(--muted); }
.text-link, .platform-link { display: inline-block; text-decoration: underline; text-underline-offset: 5px; padding-block: 10px; font-size: 14px; }
.setup-dialog { width: min(560px, calc(100% - 40px)); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 11px; margin-top: 28px; }
.noscript { padding: 24px; text-align: center; }

@media (min-width: 1700px) {
  .hero-heading { left: 4.5%; }
  .hero-links { flex-wrap: nowrap; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .hero-heading { left: 3%; width: 250px; padding: 18px; background: #d9cdbeed; border-radius: 12px; }
  .wall-head { width: 50%; }
}
/* Phone layout uses normal flow: text can wrap or grow without colliding with
   the warehouse. The scene has its own bounded viewing area below the intro. */
@media (max-width: 760px), (max-width: 1000px) and (pointer: coarse) {
  .hero { display: flex; flex-direction: column; height: auto; min-height: 100svh; }
  .hero-heading {
    order: 0; position: relative; inset: auto; width: min(100%, 460px);
    max-width: none; margin-inline: auto; padding: max(28px, env(safe-area-inset-top)) 24px 24px;
    text-align: center; transform: none;
  }
  .wall-brand { display: flex; justify-content: center; gap: 12px; width: 100%; margin-inline: 0; }
  .hero-heading h1 { flex: 0 1 auto; }
  .wall-head { width: clamp(88px, 28vw, 110px); margin: 0; transform: rotate(-5deg); }
  .wall-wordmark { width: clamp(154px, 43vw, 186px); }
  .hero-tagline { margin: 22px 0 12px; font-size: clamp(29px, 8vw, 36px); line-height: 1.1; letter-spacing: -.8px; }
  .hero-tagline br { display: initial; }
  .hero-intro { display: block; max-width: 285px; margin-inline: auto; font-size: 15px; line-height: 1.5; }
  .hero-links { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; margin-top: 22px; }
  .hero-links > * { width: 100%; justify-content: center; min-height: 48px; padding: 12px 9px; font-size: 12px; gap: 8px; white-space: nowrap; }
  .warehouse-shell { order: 1; position: relative; inset: auto; width: 100%; height: clamp(340px, 53svh, 480px); flex: 1 0 auto; }
  .warehouse { width: max(100%, min(160vw, 740px)); min-width: 0; height: 100%; background: #afa79f; }
  .warehouse-art { position: absolute; top: 0; }
  .truck-layer { top: 0; }
  .cat-position { width: 16%; }
  .cat-friend { width: 13.5%; }
  .hero::after { height: 42px; }
  .off-duty { padding: 54px 20px 30px; }
  .off-duty-heading h2 { font-size: 33px; max-width: 360px; letter-spacing: -1px; }
  .off-duty-heading > p { font-size: 14px; }
  .off-duty-heading .section-label { font-size: 10px; }
  .boxy-moments { grid-template-columns: 1fr; gap: 16px; }
  .moment { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(100px, 1fr); gap: 12px 14px; padding: 22px 20px 14px; }
  .moment-heading { grid-column: 1 / -1; gap: 10px; }
  .moment h3 { font-size: 17px; letter-spacing: -.2px; }
  .moment-number { font-size: 11px; }
  .moment > p { grid-column: 1; grid-row: 2; min-height: 0; margin: 0; font-size: 14px; line-height: 1.6; align-self: center; }
  .moment-art { grid-column: 2; grid-row: 2; margin: 0; padding: 0; height: 155px; min-height: 0; aspect-ratio: auto; }
  .moment-art img { width: 100%; height: 100%; max-height: 155px; }
  .moment > a, .pending-action { grid-column: 1 / -1; padding-top: 8px; margin-top: 0; }
  .moment > a { min-height: 44px; font-size: 14px; border-top: 1px solid #ebe7df; }
  .pending-action button { font-size: 14px; min-height: 30px; }
  .pending-action small { font-size: 12px; }
  .dispatch-section { padding: 90px 16px 20px; }
  .dispatch-layout { padding: 28px 16px 32px; gap: 38px; }
  .dispatch-layout::before { right: 7%; width: 30px; opacity: .4; }
  .dispatch-story { padding: 0; }
  .dispatch-story h2 { font-size: 33px; letter-spacing: -1px; margin: 12px 0 18px; }
  .dispatch-story > p { font-size: 15px; line-height: 1.7; max-width: 310px; }
  .dispatch-long { min-height: 48px; margin: 12px 0 0; padding: 14px 18px; font-size: 14px; gap: 22px; }
  .dispatch-signature { display: none; }
  .parcel-slip { padding: 20px 16px; transform: none; max-width: 100%; }
  .slip-topline { font-size: 10px; letter-spacing: .5px; align-items: flex-start; }
  .slip-topline > span:first-child { max-width: 150px; }
  .slip-topline > span:last-child { white-space: nowrap; }
  .slip-title { flex-wrap: wrap; gap: 12px; padding-block: 18px; }
  .slip-title > strong { font-size: clamp(24px, 7vw, 31px); letter-spacing: -1px; }
  .slip-stamp { font-size: 9px; padding: 5px 8px; margin-left: auto; }
  .slip-specs { margin-block: 22px; }
  .slip-specs > div { grid-template-columns: 1fr; gap: 5px; margin-top: 18px; }
  .slip-specs dt { font-size: 11px; line-height: 1.5; }
  .slip-specs dd { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
  .slip-ticker { display: inline; font-size: 12px; margin-left: 7px; }
  .slip-contract { padding: 18px 8px; margin-inline: -8px; }
  .slip-field-label { font-size: 11px; gap: 8px; flex-wrap: wrap; }
  .contract-value { flex-direction: column; align-items: stretch; gap: 12px; }
  .contract-value code { font-size: 14px; line-height: 1.6; }
  .contract-value button { font-size: 13px; min-height: 44px; }
  .slip-contract > p { font-size: 12px; line-height: 1.6; }
  .slip-destinations { gap: 20px; }
  .slip-destinations > div { grid-template-columns: 1fr; gap: 5px; }
  .slip-destinations span { font-size: 11px; }
  .slip-destinations strong { font-size: 14px; overflow-wrap: anywhere; }
  .slip-destinations small { font-size: 12px; }
  .slip-bottom { gap: 12px; }
  .slip-bottom .barcode { width: 80px; flex-shrink: 0; }
  .slip-bottom > span:last-child { font-size: 9px; }
  .dispatch-footer { margin-top: 45px; padding-inline: 0; gap: 20px 0; }
  .footer-socials { gap: 4px; }
  .footer-socials :is(a, button) { width: 44px; height: 44px; padding: 10px; }
  .footer-brand > img:first-child { width: 28px; }
  .footer-brand .footer-wordmark { width: 65px; }
  .dispatch-footer .footer-brand { gap: 7px; }
  .footer-details { grid-column: 1 / -1; justify-self: center; text-align: center; font-size: 12px; min-height: 44px; }
  body.has-panel { overflow: hidden; }
  .world-dialog { padding: 24px 22px; width: calc(100% - 24px); max-height: calc(100svh - 24px); overscroll-behavior: contain; }
  .dialog-close { width: 44px; height: 44px; margin: -10px -10px 0 0; }
  .about { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 45px; }
  .employee-card { width: min(100%, 270px); margin: 5px auto 0; transform: rotate(-2deg); padding: 18px; }
  .about-copy h2 { font-size: 32px; }
  .about-copy p, .site-footer p, .setup-dialog > p { font-size: 15px; line-height: 1.7; }
  .personality { grid-template-columns: 1fr; gap: 6px; font-size: 14px; }
  .personality strong + span { margin-top: 12px; }
  .text-link, .platform-link { min-height: 44px; font-size: 14px; }
  .setup-dialog > small { font-size: 12px; }
}
@media (max-width: 360px) {
  .hero-heading { padding-inline: 18px; }
  .hero-links { gap: 8px; }
  .hero-links > * { font-size: 11px; padding-inline: 7px; }
  .moment { padding-inline: 16px; gap: 12px 10px; }
  .moment h3 { font-size: 16px; }
  .moment-art { height: 145px; }
  .dispatch-section { padding-inline: 12px; }
  .dispatch-layout { padding-inline: 12px; }
  .parcel-slip { padding-inline: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.contract-value button:not(:disabled) { color: var(--ink); border-color: var(--ink); background: #ffbe55; cursor: pointer; }
.contract-value button:not(:disabled):hover { background: #ffd17f; }
