/* X9 AI · the page is one export crate. Faces: front, side, lid, base. */

@font-face {
  font-family: "Big Shoulders Stencil";
  src: url("fonts/bigshoulders-stencil-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* paint, by face: front in sun, side in shade, lid lit from above, base lowest */
  --paint-front: #EB571D;
  --paint-side: #E2531B;
  --paint-lid: #F06225;
  --paint-base: #DE511A;
  --paint: var(--paint-front);

  --ink: #121212;        /* black stencil ink, stamp ink, print on slips */
  --mark: #F4F1EA;       /* white stencil: the shipper's mark only */
  --paper: #F6F3EC;      /* slips */
  --paper-rule: #B9B2A6; /* rules printed on slips */
  --paper-dim: #5E564C;  /* secondary print on slips, 6.5:1 on paper */
  --label: #F7D046;      /* yellow adhesive labels and hold tags */
  --steel: #8C9499;      /* galvanised strapping */

  --stencil: "Big Shoulders Stencil", "Arial Narrow", sans-serif;
  --text: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --rail: 5.5rem;
  --pad: clamp(1.25rem, 3.2vw, 3.5rem);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow-wood: 60 18 0;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--ink) #C2461A;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--paint-front);
  color: var(--ink);
  font: 500 1.125rem/1.5 var(--text);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--ink);
}

::selection { background: var(--ink); color: var(--label); }

::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: #C2461A; }
::-webkit-scrollbar-thumb { background: var(--ink); border: 3px solid #C2461A; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

main { overflow-x: clip; }

h1, h2, h3, p, dl, dd, ol { margin: 0; }
ol { padding: 0; list-style: none; }
i { font-style: normal; }

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
}
a:hover { text-decoration-thickness: 4px; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: .625rem 1rem;
  background: var(--ink);
  color: var(--label);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 1rem; outline-color: var(--label); }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- faces ---------- */

.face {
  --grain: url("img/grain.webp");
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  background: var(--paint) var(--grain) 0 0 / 1024px 1024px;
  background-blend-mode: multiply;
}
.side { --paint: var(--paint-side); background-position: 310px 420px; }
.lid { --paint: var(--paint-lid); background-position: 640px 150px; }
.base { --paint: var(--paint-base); background-position: 120px 700px; }

.face-in {
  grid-column: 2;
  padding: clamp(4rem, 9vw, 7.5rem) var(--pad) clamp(4rem, 9vw, 7.5rem) 0;
}
.face > .band, .face > .cleat, .face > .skid, .face > .foot { grid-column: 1 / -1; }

/* the measured axis: one dimension line per face, ticked every 20 and 100 */
.dim {
  position: relative;
  grid-column: 1;
  grid-row: 1;
}
.dim::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 1.5rem;
  width: 2px;
  background: var(--ink);
}
.dim::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 calc(1.5rem + 2px);
  width: 18px;
  background:
    repeating-linear-gradient(180deg, var(--ink) 0 2px, transparent 2px 100px) 0 0 / 18px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--ink) 0 1px, transparent 1px 20px) 0 0 / 8px 100% no-repeat;
}
.arr {
  position: absolute;
  left: calc(1.5rem + 1px);
  top: 0;
  width: 16px;
  height: 18px;
  margin-left: -8px;
  background: var(--ink);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.arr-b { top: auto; bottom: 0; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.dim b {
  position: sticky;
  top: 1.25rem;
  display: block;
  width: max-content;
  margin: 1.75rem 0 1.75rem 3.1rem;
  writing-mode: vertical-rl;
  rotate: 180deg;
  font: 700 1.375rem/1 var(--stencil);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* big sprayed stencil marks */
.stencil, .contents, .x9, .up p {
  font-family: var(--stencil);
  text-transform: uppercase;
  -webkit-mask: url("img/spray.webp") 0 0 / 320px 320px;
  mask: url("img/spray.webp") 0 0 / 320px 320px;
}
.stencil {
  font-weight: 800;
  font-size: clamp(2.75rem, 6.2vw, 5.5rem);
  line-height: .94;
  letter-spacing: .005em;
  text-wrap: balance;
  padding-block: .06em;
}

/* ---------- front ---------- */

.front { grid-template-rows: minmax(0, 1fr) auto; min-height: max(100svh, 43rem); }

.front-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(20rem, 24vw, 22rem);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "ship marks" "ship pouch";
  column-gap: clamp(1.5rem, 2.2vw, 2rem);
  row-gap: 1.75rem;
  padding-block: clamp(1.25rem, 3.4vh, 2.25rem) clamp(1.5rem, 4.4vh, 2.75rem);
}

.marks {
  grid-area: marks;
  display: flex;
  justify-content: flex-end;
  gap: clamp(.75rem, 1.4vw, 1.25rem);
}
.marks svg { width: clamp(3.5rem, 6vw, 5.25rem); height: auto; fill: var(--ink); }
.marks .cut { fill: none; stroke: var(--paint); stroke-width: 2.6; }
.marks .rod { fill: none; stroke: var(--ink); stroke-width: 4; }

.shipmark {
  grid-area: ship;
  align-self: end;
  container-type: inline-size;
}
.x9 {
  width: max-content;
  margin: 0 0 0 -.035em;
  padding: .06em .02em .03em 0;
  color: var(--mark);
  font-weight: 900;
  font-size: min(53.4cqw, 60svh);
  line-height: .78;
  letter-spacing: -.012em;
  word-spacing: -.06em;
  -webkit-mask-position: 90px 40px;
  mask-position: 90px 40px;
}
.contents {
  margin-top: .1em;
  padding-block: .06em;
  font-weight: 800;
  font-size: clamp(1.75rem, 8.6cqw, 4.25rem);
  line-height: .95;
  letter-spacing: .01em;
  -webkit-mask-position: 30px 190px;
  mask-position: 30px 190px;
}
.lede {
  max-width: 34rem;
  margin-top: 1.125rem;
  font-size: clamp(1.125rem, 1.25vw, 1.3125rem);
  line-height: 1.45;
}

/* packing-list pouch */
.pouch {
  grid-area: pouch;
  align-self: end;
  position: relative;
  padding: 0 .75rem .875rem;
  background: linear-gradient(118deg, rgb(255 255 255 / .26), rgb(255 255 255 / .08) 38%, rgb(255 255 255 / .2) 58%, rgb(255 255 255 / .06));
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / .45),
    inset 0 -6px 8px -6px rgb(255 255 255 / .5),
    0 12px 18px -10px rgb(var(--shadow-wood) / .7),
    0 2px 3px rgb(var(--shadow-wood) / .35);
}
.pouch::after {
  content: "";
  position: absolute;
  inset: 0 0 58%;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 30%, rgb(255 255 255 / .2) 42%, rgb(255 255 255 / .04) 52%, transparent 62%);
}
.pouch-head {
  margin: 0 -.75rem .875rem;
  padding: .5rem .875rem .4375rem;
  background: var(--label);
  font: 700 1.25rem/1 var(--stencil);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.slip {
  position: relative;
  padding: 1rem 1.125rem 1.125rem;
  background: var(--paper);
  box-shadow: 0 1px 2px rgb(0 0 0 / .28);
  rotate: -.8deg;
  font: 400 1rem/1.4 var(--text);
}

.rows > div {
  display: grid;
  grid-template-columns: 5.75rem minmax(0, 1fr);
  gap: .75rem;
  align-items: baseline;
  padding: .4375rem 0;
  border-bottom: 1px solid var(--paper-rule);
}
.rows > div:first-child { border-top: 2px solid var(--ink); }
dt, .k {
  font: 600 .8125rem/1.2 var(--text);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
dd { font-weight: 500; font-variant-numeric: tabular-nums; }

/* notify form: one line on the slip */
.notify { margin-top: .875rem; }
.notify label { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; }
.lab-sub { font-size: .875rem; color: var(--paper-dim); }
.field {
  display: block;
  width: 100%;
  height: 3rem;
  margin-top: .375rem;
  padding: 0 .75rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: 500 1.0625rem/1 var(--text);
  appearance: none;
}
.field::placeholder { color: #6A6055; opacity: 1; }
.field:hover { background: #FFFDF6; }
.field:focus-visible { outline-offset: 2px; }
.field[aria-invalid="true"] { border-style: dashed; background: #FFF6CF; }

.hp { position: absolute; left: -200vw; width: 1px; height: 1px; opacity: 0; }

.btn {
  display: block;
  width: 100%;
  min-height: 3.5rem;
  margin-top: .625rem;
  padding: .5rem .5rem .4375rem;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: var(--mark);
  font: 700 1.5rem/1 var(--stencil);
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 5px 8px -3px rgb(0 0 0 / .45);
  transition: translate .12s var(--ease-out), box-shadow .12s var(--ease-out), color .12s linear;
}
.btn:hover { color: var(--label); translate: 0 -1px; box-shadow: 0 8px 11px -4px rgb(0 0 0 / .45); }
.btn:active { translate: 0 2px; box-shadow: 0 1px 2px rgb(0 0 0 / .4); }
.btn:disabled { cursor: progress; color: #BDB8AE; translate: 0 2px; box-shadow: none; }

.hint { margin-top: .625rem; font-size: .875rem; line-height: 1.35; color: var(--paper-dim); }
.nojs { margin-top: .5rem; font-size: .875rem; font-weight: 600; }
.js .nojs { display: none; }

/* states print themselves: a yellow hold tag for errors */
.hold {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .625rem;
  align-items: center;
  margin-top: .625rem;
  padding: .5rem .75rem .5rem 1.75rem;
  background: var(--label);
  font-size: .9375rem;
  line-height: 1.35;
  font-weight: 500;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
  rotate: .6deg;
}
.hold:empty { display: none; }
.hold::before {
  content: "";
  position: absolute;
  left: .5rem;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 1px 1px rgb(0 0 0 / .45);
}
.hold b { font: 800 1.375rem/1 var(--stencil); letter-spacing: .06em; text-transform: uppercase; }

/* the stamp */
.done { margin-top: .875rem; }
.done-row { display: grid; gap: .25rem; padding-bottom: .5rem; border-bottom: 2px solid var(--ink); }
.done-row .v { width: max-content; max-width: 100%; font-size: 1.0625rem; font-weight: 600; overflow-wrap: anywhere; }
.stamp {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin: 1.125rem auto .875rem;
  rotate: -6deg;
}
.stamp-face {
  display: grid;
  padding: .3125rem .875rem .25rem;
  border: 9px double var(--ink);
  border-radius: 3px;
  color: var(--ink);
  font: 900 clamp(2rem, 9vw, 2.625rem)/.92 var(--stencil);
  letter-spacing: .03em;
  text-align: center;
  text-transform: uppercase;
  opacity: .9;
  mix-blend-mode: multiply;
  -webkit-mask: url("img/spray.webp") 60px 130px / 240px 240px;
  mask: url("img/spray.webp") 60px 130px / 240px 240px;
}
.ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15rem;
  height: 15rem;
  margin: -7.5rem 0 0 -7.5rem;
  border: 3px solid var(--ink);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.done-note { font-size: .9375rem; line-height: 1.35; }
.again {
  min-height: 2.75rem;
  margin-top: .125rem;
  padding: .25rem 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 500 .9375rem/1.3 var(--text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
  cursor: pointer;
}
.again:hover { text-decoration-thickness: 4px; }

.is-slam .stamp-face { animation: slam .17s cubic-bezier(.7, 0, 1, .55) both; }
.is-slam .ring { animation: ring .62s .15s var(--ease-out) both; }
.is-slam .slip, .is-slam.tag { animation: jolt .34s .15s var(--ease-out) both; }
.is-slam .done-row .v { animation: write .5s .34s var(--ease-out) both; }
@keyframes slam {
  from { opacity: 0; scale: 2.9; }
  55% { opacity: 1; }
  to { opacity: .9; scale: 1; }
}
@keyframes ring {
  from { opacity: .7; scale: .3; }
  to { opacity: 0; scale: 1.75; }
}
@keyframes jolt {
  from { translate: 0 0; }
  22% { translate: 0 7px; }
  58% { translate: 0 -2px; }
  to { translate: 0 0; }
}
@keyframes write {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* steel strapping */
.band {
  position: relative;
  z-index: 1;
  height: 2.875rem;
  background: var(--steel) url("img/strap.webp") 0 0 / 760px 100% repeat-x;
  box-shadow:
    0 7px 9px -3px rgb(var(--shadow-wood) / .6),
    0 -2px 3px -1px rgb(var(--shadow-wood) / .35);
}
.lid > .band { background-position: 430px 0; }
.seal {
  position: absolute;
  left: 66%;
  top: -.4375rem;
  width: 4.75rem;
  height: 3.75rem;
  background: var(--steel) url("img/seal.webp") 0 0 / 100% 100% no-repeat;
  box-shadow: 0 5px 7px -2px rgb(40 12 0 / .55);
}
.seal-l { left: 22%; }

/* timber cleat between faces */
.cleat {
  position: relative;
  z-index: 1;
  height: 4.25rem;
  background: #EC692D url("img/cleat.webp") 0 0 / 760px 100% repeat-x;
  box-shadow:
    0 9px 12px -4px rgb(var(--shadow-wood) / .6),
    0 -2px 4px -1px rgb(var(--shadow-wood) / .3);
}

/* ---------- side ---------- */

.side-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: end;
}
.side-copy { max-width: 40rem; }
.side-copy p { max-width: 33rem; margin-top: 1.5rem; }

.waybill {
  position: relative;
  padding: 1.75rem 1.75rem 1.5rem;
  background: var(--paper);
  box-shadow: 0 14px 20px -12px rgb(var(--shadow-wood) / .75), 0 2px 3px rgb(var(--shadow-wood) / .35);
  rotate: .9deg;
  font: 400 1rem/1.45 var(--text);
}
/* the fold the sheet was mailed with */
.waybill::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 2px;
  margin-top: -1px;
  background: linear-gradient(180deg, rgb(0 0 0 / .07) 50%, rgb(255 255 255 / .9) 50%);
  pointer-events: none;
}
.staple {
  position: absolute;
  top: .625rem;
  left: 1.5rem;
  width: 1.375rem;
  height: 4px;
  background: linear-gradient(180deg, #E1E5E7, #7C8489);
  box-shadow: 0 1px 1px rgb(0 0 0 / .45);
  rotate: -8deg;
}
.staple-r { left: auto; right: 1.5rem; rotate: 5deg; }
.waybill-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .625rem;
  border-bottom: 2px solid var(--ink);
  font: 600 .8125rem/1.2 var(--text);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.waybill-head span:last-child { color: var(--paper-dim); }

.route li {
  position: relative;
  display: grid;
  grid-template-columns: 1.625rem minmax(0, 1fr);
  column-gap: 1rem;
  padding: 1rem 0 1.0625rem;
  border-bottom: 1px solid var(--paper-rule);
}
.route li:last-child { border-bottom: 0; padding-bottom: .25rem; }
.route .box {
  grid-row: 1 / span 2;
  position: relative;
  width: 1.625rem;
  height: 1.625rem;
  margin-top: .125rem;
  border: 2px solid var(--ink);
}
.route .is-here .box::before, .route .is-here .box::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150%;
  height: 4px;
  margin: -2px 0 0 -75%;
  background: var(--ink);
  rotate: 45deg;
}
.route .is-here .box::after { rotate: -45deg; }
.route h3 {
  font: 800 1.875rem/1 var(--stencil);
  letter-spacing: .03em;
  text-transform: uppercase;
}
.route li > p { grid-column: 2; margin-top: .25rem; color: var(--ink); }
.route li:not(.is-here) h3, .route li:not(.is-here) > p { color: var(--paper-dim); }
.route .here {
  position: absolute;
  right: -.25rem;
  top: .5rem;
  margin: 0;
  rotate: -5deg;
}
.route .here span {
  display: block;
  padding: .1875rem .5rem .125rem;
  border: 3px solid var(--ink);
  border-radius: 2px;
  font: 800 1.125rem/1 var(--stencil);
  letter-spacing: .07em;
  text-transform: uppercase;
  opacity: .88;
  mix-blend-mode: multiply;
  -webkit-mask: url("img/spray.webp") 20px 60px / 200px 200px;
  mask: url("img/spray.webp") 20px 60px / 200px 200px;
}

/* ---------- lid ---------- */

.lid-in {
  display: grid;
  grid-template-columns: minmax(0, 46rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.faq { margin-top: clamp(1.75rem, 3.4vw, 2.75rem); border-top: 3px solid var(--ink); }
.faq details { border-bottom: 3px solid var(--ink); }
.faq summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0 .875rem;
  font: 700 clamp(1.5rem, 2.5vw, 2.125rem)/1.02 var(--stencil);
  letter-spacing: .025em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover span { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .16em; }
.pm { position: relative; width: 1.5rem; height: 1.5rem; }
.pm::before, .pm::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 4px;
  margin-top: -2px;
  background: var(--ink);
  transition: rotate .22s var(--ease-out);
}
.pm::after { rotate: 90deg; }
details[open] .pm::after { rotate: 0deg; }
.faq details p { max-width: 38rem; padding: 0 2.5rem 1.375rem 0; }

.up {
  justify-self: end;
  align-self: center;
  display: grid;
  justify-items: center;
  gap: .5rem;
  margin-right: clamp(0rem, 3vw, 3rem);
  rotate: 1.2deg;
}
.up svg {
  width: clamp(9rem, 19vw, 17rem);
  height: auto;
  fill: var(--ink);
  -webkit-mask: url("img/spray.webp") 150px 20px / 320px 320px;
  mask: url("img/spray.webp") 150px 20px / 320px 320px;
}
.up p {
  font-weight: 800;
  font-size: clamp(1.75rem, 3.6vw, 3.25rem);
  line-height: 1;
  letter-spacing: .03em;
  white-space: nowrap;
  padding-block: .06em;
}

/* ---------- base ---------- */

.base-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 27rem);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.base .stencil { font-size: clamp(3.25rem, 8.4vw, 6rem); }

.tag {
  position: relative;
  padding: 1.5rem 1.5rem 1.375rem;
  background: var(--label);
  box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 .4375rem var(--label), inset 0 0 0 calc(.4375rem + 1px) var(--ink), 0 12px 18px -10px rgb(var(--shadow-wood) / .8), 0 2px 3px rgb(var(--shadow-wood) / .4);
  rotate: -1.1deg;
  font: 400 1rem/1.4 var(--text);
}
.tag .notify, .tag .done { margin-top: 0; }
.tag .k, .tag .lab-sub, .tag .hint { color: #3B3414; }
.tag .k { color: var(--ink); }
.tag .hold { background: var(--paper); }
.tag .hold::before { background: var(--label); }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  padding: .625rem var(--pad) .75rem calc(var(--rail) - 1.5rem);
  border-top: 2px solid var(--ink);
  margin-left: 1.5rem;
  font-size: .9375rem;
  align-items: center;
}
.foot a { display: inline-block; padding: .6875rem 0; }
.skid {
  --skid-h: 3.75rem;
  position: relative;
  height: calc(var(--skid-h) + 1.75rem);
  background:
    linear-gradient(180deg, rgb(0 0 0 / .6), rgb(0 0 0 / 0) 75%) 0 0 / 100% var(--skid-h) no-repeat,
    linear-gradient(180deg, #6B7276 0 var(--skid-h), #565C60 var(--skid-h) calc(var(--skid-h) + 2px), #7D8488 calc(var(--skid-h) + 2px));
}
/* three unpainted runners, the same timber as the cleat, in the crate's own shadow */
.skid::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: var(--skid-h);
  background: url("img/cleat.webp") 260px 0 / 760px 100% repeat-x;
  filter: grayscale(1) brightness(.34) contrast(1.15);
  -webkit-mask: linear-gradient(90deg, #000 0 12%, transparent 12% 37%, #000 37% 63%, transparent 63% 88%, #000 88%);
  mask: linear-gradient(90deg, #000 0 12%, transparent 12% 37%, #000 37% 63%, transparent 63% 88%, #000 88%);
}

/* ---------- narrower ---------- */

@media (max-width: 60rem) {
  :root { --rail: 2.375rem; }

  .dim::before { left: .625rem; }
  .dim::after { left: calc(.625rem + 2px); width: 11px; background-size: 11px 100%, 6px 100%; }
  .arr { left: calc(.625rem + 1px); width: 12px; height: 14px; margin-left: -6px; }
  .dim b { margin-left: 1.25rem; font-size: 1rem; }

  .front { min-height: 0; }
  .front-in {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "marks" "ship" "pouch";
    row-gap: 1.25rem;
    padding-block: 1rem 2rem;
  }
  .marks svg { width: 3rem; }
  .x9 { font-size: min(53.4cqw, 44svh); }
  .contents { font-size: clamp(1.5rem, 10cqw, 4.25rem); }
  .pouch { justify-self: start; width: min(100%, 26rem); margin-top: .5rem; }

  .side-in, .lid-in, .base-in { grid-template-columns: minmax(0, 1fr); }
  .waybill { width: min(100%, 30rem); }
  .up { grid-row: 1; justify-self: start; margin: 0 0 .5rem; grid-auto-flow: column; align-items: end; gap: 1rem; }
  .up svg { width: 5.5rem; }
  .tag { width: min(100%, 27rem); }
  .foot { margin-left: .625rem; padding-left: calc(var(--rail) - .625rem); }
  .skid { --skid-h: 2.75rem; }
  .faq details p { padding-right: 0; }
}

@media (max-width: 26rem) {
  .rows > div { grid-template-columns: 5rem minmax(0, 1fr); gap: .5rem; }
  .slip { padding: .875rem .875rem 1rem; }
  .waybill { padding: 1.5rem 1.125rem 1.25rem; }
  .route .here { position: static; grid-column: 2; justify-self: start; margin-top: .5rem; }
  .btn { font-size: 1.375rem; }
  .tag { padding: 1.375rem 1.125rem 1.25rem; }
}

@media (max-width: 21.5rem) {
  .btn { font-size: 1.25rem; letter-spacing: .03em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
