/* ship.css — the shipping page (Vera's spec, Sep 28 2026): "The Loading
   Dock". home.css supplies the base. Objects: a kraft box edge, a 4x6 thermal
   label, 360 boxes, a packing slip, a tractor-feed invoice, tally counters, a
   zone wheel, a proof of delivery. No carrier colours, no gradients or glow. */
.ship-page { --kraft: #C9A878; --kraft-d: #A98A5C; --thermal: #FAF9F5; --red: #D6454F; --red-soft: #F08A91; --mono: "IBM Plex Mono", ui-monospace, monospace; }
.ship-page section { position: relative; }
.ship-page h2 { font-size: clamp(30px, 3.4vw, 46px); }
.h-ink { color: var(--ink); }
.red { color: var(--red-soft); }
.ill { font-size: 12px; color: var(--snow-2); margin-top: 24px; max-width: 32em; }
.caption a, .s7__sub a { border-bottom: 1px solid currentColor; }
.big { font: 500 clamp(44px, 5.4vw, 72px)/1 var(--mono); margin-top: 18px; font-variant-numeric: tabular-nums; }
.big small { font: 400 16px var(--body); color: var(--snow-2); margin-left: 8px; }
.big--red { color: var(--red); } .big--red small { color: var(--ink-2); }

/* 1. the label on the box */
.s1 { padding: clamp(150px, 16vw, 200px) 0 160px; }
.s1__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.s1 h1 { font-size: clamp(38px, 4.4vw, 62px); line-height: 1.08; max-width: 14em; }
.s1__n { font: 500 clamp(36px, 4.4vw, 56px)/1.05 var(--mono); margin-top: 26px; font-variant-numeric: tabular-nums; color: var(--red-soft); }
.s1__n small { font: 400 15px var(--body); color: var(--snow-2); margin-left: 8px; }
.s1__n--y { margin-top: 8px; color: var(--snow); font-size: clamp(28px, 3.2vw, 40px); }
.s1 .cta { margin-top: 30px; }
.boxedge { background: var(--kraft); padding: 40px 34px; border-radius: 4px; transform: rotate(-2deg);
  background-image: repeating-linear-gradient(90deg, transparent 0 9px, rgba(0,0,0,.06) 9px 10px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); }
.label { background: var(--thermal); color: #111; font: 500 13px/1.6 var(--mono); padding: 18px 20px; transform: rotate(3deg); box-shadow: 0 1px 0 rgba(0,0,0,.2); }
.label__row { display: flex; justify-content: space-between; gap: 12px; }
.label__big { font-size: 18px; font-weight: 600; }
.label__rule { border-top: 3px solid #111; margin: 10px 0; }
.label__bars { display: flex; gap: 2px; height: 54px; margin: 14px 0 8px; align-items: stretch; }
.label__bars i { background: #111; width: 2px; } .label__bars i.b1 { width: 4px; } .label__bars i.b2 { width: 1px; margin-right: 2px; }
.label__trk { font-size: 12px; justify-content: center; letter-spacing: .1em; }
.label > * { animation: printline 280ms steps(4) both; }
.label > :nth-child(2) { animation-delay: .25s; } .label > :nth-child(3) { animation-delay: .5s; } .label > :nth-child(4) { animation-delay: .75s; }
.label > :nth-child(5) { animation-delay: 1s; } .label > :nth-child(6) { animation-delay: 1.25s; } .label > :nth-child(7) { animation-delay: 1.5s; } .label > :nth-child(8) { animation-delay: 1.8s; }
@keyframes printline { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* 2. the dock */
.dock-sec { height: 300vh; }
.dock__pin, .open__pin, .wheel__pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.dock__pin > .wrap, .open__pin > .wrap, .wheel__pin > .wrap { width: 100%; }
.dock__count { font: 500 15px var(--mono); color: var(--snow-2); margin-top: 12px; }
.dock__count b { color: var(--red-soft); font-size: 22px; }
.dock { display: grid; grid-template-columns: repeat(24, 1fr); gap: 6px; margin-top: 28px; }
.box { aspect-ratio: 1.2; background: var(--kraft); border-radius: 2px; position: relative; box-shadow: inset 0 -3px 0 var(--kraft-d); }
.box::before { content: ""; position: absolute; left: 44%; top: 0; bottom: 0; width: 12%; background: rgba(0,0,0,.08); }
.box--bad::after { content: ""; position: absolute; right: -3px; top: -4px; width: 9px; height: 12px; background: var(--red); border-radius: 1px 1px 2px 2px; transform: rotate(12deg); }
.js .box--bad:not(.on)::after { opacity: 0; transform: rotate(12deg) scale(.3); }
.js .box--bad::after { transition: opacity 200ms ease, transform 260ms cubic-bezier(.3,1.6,.5,1); }
.dock-sec .caption { margin-top: 18px; }

/* 3. one box opened */
.open-sec { height: 220vh; }
.open__grid, .tf__grid, .wheel__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.open__p { color: var(--ink-2); font-size: 17px; margin-top: 16px; max-width: 26em; }
.open__p b { color: var(--ink); font-family: var(--mono); font-weight: 500; }
.slip { background: #fff; color: #1A1D2B; padding: 24px 26px; box-shadow: 0 30px 60px -40px rgba(17,24,39,.5); border-top: 6px solid var(--kraft); }
.slip__h { font: 500 12px var(--mono); color: #6A6F80; padding-bottom: 12px; border-bottom: 1px solid #E0DCD1; }
.slip__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 14px; }
.slip__k { font: 600 12px var(--body); letter-spacing: .14em; text-transform: uppercase; color: #6A6F80; margin-bottom: 8px; }
.slip__col p:not(.slip__k) { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dotted #D8D4CA; font-size: 14px; }
.slip__col b { font: 500 14px var(--mono); }
.slip__t { font-weight: 600; border-bottom: 0 !important; }
.slip__col--billed b { color: var(--red); }
.js .slip__col--billed { text-decoration: none; }
.js .open-sec.cut .slip__col--billed b { text-decoration: line-through; text-decoration-thickness: 2px; }
.js .slip__col--agreed { opacity: .15; transition: opacity 600ms ease; }
.js .open-sec.cut .slip__col--agreed { opacity: 1; }

/* 4. the tractor-feed invoice */
.tf-sec { padding: 120px 0 160px; }
.tf { position: relative; background: repeating-linear-gradient(#F7F8F2 0 36px, #E6EEDF 36px 72px); color: #1F2A1F; padding: 22px 44px; font: 400 13px/36px var(--mono);
  box-shadow: 0 30px 60px -40px rgba(17,24,39,.5); }
.tf::before, .tf::after { content: ""; position: absolute; top: 0; bottom: 0; width: 18px; background: radial-gradient(circle at 9px 18px, #F4F2EE 0 4.5px, transparent 5px) 0 0 / 18px 36px repeat-y; }
.tf::before { left: 6px; } .tf::after { right: 6px; }
.tf__h { font-weight: 500; letter-spacing: .06em; }
.tf__rows { list-style: none; }
.tf__row { display: grid; grid-template-columns: 70px 1fr 64px 52px auto; gap: 10px; }
.tf__row b { font-weight: 500; position: relative; justify-self: end; }
.tf__row.is-bad b { color: var(--red); }
.pen { position: absolute; left: -12px; top: -4px; width: calc(100% + 24px); height: calc(100% + 8px); overflow: visible; pointer-events: none; }
.pen path { fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 300; stroke-dashoffset: 0; }
.js .tf:not(.in) .pen path { stroke-dashoffset: 300; }
.js .tf .pen path { transition: stroke-dashoffset 800ms ease; }
.js .tf.in .tf__row:nth-child(3) .pen path { transition-delay: .3s; } .js .tf.in .tf__row:nth-child(5) .pen path { transition-delay: .6s; } .js .tf.in .tf__row:nth-child(6) .pen path { transition-delay: .9s; }
.tf__more { color: #6A776A; }
.tf__tot { display: flex; justify-content: space-between; font-weight: 600; border-top: 2px solid #1F2A1F; }

/* 5. the tally counters */
.tally-sec { padding: 160px 0; }
.tallies { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.tally { text-align: center; }
.tally__head { display: inline-flex; gap: 3px; padding: 12px 14px; background: #C8CDD6; border-radius: 12px 12px 6px 6px; box-shadow: inset 0 -4px 0 #9EA4AF, 0 20px 40px -24px rgba(0,0,0,.7); }
.drum { width: 26px; height: 38px; overflow: hidden; background: #0E1320; border-radius: 3px; }
.drum__strip { display: block; font: 500 22px/38px var(--mono); color: #F4F1EA; width: 26px; word-spacing: 26px; white-space: normal; text-align: center; transform: translateY(calc(var(--d) * -38px)); }
.d0 { --d: 0; } .d1 { --d: 1; } .d2 { --d: 2; } .d3 { --d: 3; } .d4 { --d: 4; } .d5 { --d: 5; } .d6 { --d: 6; } .d7 { --d: 7; } .d8 { --d: 8; } .d9 { --d: 9; }
.js .tally:not(.in) .drum__strip { transform: translateY(0); }
.js .drum__strip { transition: transform 1.4s cubic-bezier(.2,.8,.2,1); }
.tally__n { font: 500 14px var(--mono); color: var(--snow-2); margin-top: 14px; }
.tally__l { font-size: 15px; margin-top: 4px; min-height: 2.8em; }
.tally__amt { font: 500 24px var(--mono); color: var(--red-soft); margin-top: 6px; }
.allowed { margin-top: 44px; color: var(--snow-2); font-size: 15px; max-width: 44em; }
.allowed b { font-family: var(--mono); color: var(--snow); font-weight: 500; }

/* 6. the zone wheel */
.wheel-sec { height: 260vh; }
.wheel { position: relative; width: min(420px, 100%); margin: 0 auto; }
.wheel svg { width: 100%; height: auto; transform: rotate(var(--rot, 0deg)); transition: transform 120ms linear; }
.ring { fill: #C9A878; stroke: #141A2A; stroke-width: 2; }
.ring.r1 { fill: #D4B78B; } .ring.r2 { fill: #C9A878; } .ring.r3 { fill: #D4B78B; } .ring.r4 { fill: #C9A878; } .ring.r5 { fill: #D4B78B; }
.ring__t { font: 500 12px var(--mono); fill: #2A2418; }
.wheel__c { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.wheel__c span { font: 600 26px var(--mono); color: #2A2418; background: #F4F1EA; padding: 10px 14px; border-radius: 50%; min-width: 110px; text-align: center; }
.wheel__p { color: var(--snow-2); font-size: 17px; margin-top: 16px; max-width: 28em; }

/* 7. the proof of delivery */
.s7 { padding: 160px 0; }
.s7__wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pod { background: #F4F1EA; color: #1A1D2B; width: min(420px, 100%); padding: 20px 24px; border-radius: 4px; text-align: left; margin-bottom: 48px; }
.pod__h { font: 600 12px var(--mono); letter-spacing: .16em; }
.pod__r { display: flex; align-items: flex-end; gap: 12px; margin-top: 18px; font-size: 13px; color: #6A6F80; }
.pod__line { flex: 1; border-bottom: 1.5px solid #1A1D2B; height: 50px; position: relative; }
.pod__sig { position: absolute; inset: 0; width: 100%; height: 100%; }
.pod__sig path { fill: none; stroke: #1A1D2B; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 700; stroke-dashoffset: 700; transition: stroke-dashoffset 1.6s ease; }
.s7.in .pod__sig path, .s7:hover .pod__sig path { stroke-dashoffset: 0; }
.s7 h2 { font-size: clamp(30px, 3.8vw, 50px); line-height: 1.15; }
.s7 .cta { justify-content: center; margin-top: 30px; }
.s7__sub { color: var(--snow-2); margin-top: 18px; font-size: 15px; }

@media (max-width: 860px) {
  .s1__grid, .open__grid, .tf__grid, .wheel__grid { grid-template-columns: 1fr; }
  .boxedge { padding: 24px 20px; }
  .dock { grid-template-columns: repeat(15, 1fr); gap: 4px; }
  .dock__pin, .open__pin, .wheel__pin { align-items: flex-start; padding-top: 84px; }
  .tallies { grid-template-columns: 1fr 1fr; }
  .tf { padding: 14px 30px; font-size: 11px; } .tf__row { grid-template-columns: 50px 1fr 0 0 auto; } .tf__row span:nth-child(3), .tf__row span:nth-child(4) { display: none; }
  .wheel { width: 280px; }
}
@media (prefers-reduced-motion: reduce) { .label > * { animation: none; } }
