/* Aubi Fashions — export carton homepage
   Layout: one carton side panel laid flat. Marks are printed straight onto kraft in two inks
   (flexo black + brand gold); anything you read closely is label stock stuck on with tape.
   Die-line creases divide the zones. Depth comes from overlap only. */

:root {
  --kraft: #bb8f62;
  --kraft-board: #cda47a;
  --kraft-crease: #8f6440;
  --flute: rgba(108, 70, 36, 0.075);
  --ink: #14110c;
  --ink-2: #35281b;
  --rule-kraft: rgba(20, 17, 12, 0.34);
  --gold: #daa015;
  --gold-hi: #f8cf37;
  --gold-deep: #854c0b;
  --stock: #fbfaf6;
  --stock-rule: #ddd6c8;
  --tape: rgba(248, 240, 224, 0.58);
  --err: #a3201b;

  --font-mark: "Big Shoulders Stencil", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-coder: "Doto", ui-monospace, "Courier New", monospace;
  --font-text: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --gutter-l: max(clamp(16px, 4vw, 56px), env(safe-area-inset-left, 0px));
  --gutter-r: max(clamp(16px, 4vw, 56px), env(safe-area-inset-right, 0px));
  --section-y: clamp(72px, 9vw, 136px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-settle: cubic-bezier(0.19, 1, 0.22, 1);

  --kraft-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .6' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .15 0 0 0 0 .06 0 0 0 1.9 -1'/%3E%3C/filter%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7 .12' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .92 0 0 0 0 .8 0 0 0 1.5 -.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23b)' opacity='.55'/%3E%3C/svg%3E");
  --ink-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.7 0 0 0 1.82'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--ink) var(--kraft);
  overflow-x: clip;
}

body {
  margin: 0;
  background-color: var(--kraft);
  background-image: var(--kraft-tex), repeating-linear-gradient(90deg, transparent 0 8px, var(--flute) 8px 10px);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  caret-color: var(--gold-deep);
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: var(--kraft);
}

::selection { background: var(--gold); color: var(--ink); }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute;
  left: max(16px, env(safe-area-inset-left, 0px));
  top: -60px;
  z-index: 60;
  background: var(--ink);
  color: var(--stock);
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

/* ---------- Bands, creases, the panel edges ---------- */

.band {
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

.inner {
  max-width: 1360px;
  margin-inline: auto;
}

.score {
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--kraft-crease) 0 14px, transparent 14px 23px);
}

main { position: relative; }

main::before,
main::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--kraft-crease) 0 14px, transparent 14px 23px);
  opacity: 0.8;
  pointer-events: none;
}
main::before { left: max(6px, calc(var(--gutter-l) * 0.32)); }
main::after { right: max(6px, calc(var(--gutter-r) * 0.32)); }

/* Printed ink sitting on corrugated board: speckle + flute washboarding */
.flexo {
  -webkit-mask-image: var(--ink-tex), repeating-linear-gradient(90deg, #000 0 7px, rgba(0, 0, 0, 0.84) 7px 10px);
  mask-image: var(--ink-tex), repeating-linear-gradient(90deg, #000 0 7px, rgba(0, 0, 0, 0.84) 7px 10px);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 14px 22px;
  border: 2px solid var(--ink);
  font: 800 15px/1 var(--font-text);
  font-variation-settings: "wdth" 108;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; transition: transform 0.2s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

.btn-solid { background: var(--ink); color: var(--stock); }
.btn-solid:hover { background: var(--gold-deep); border-color: var(--gold-deep); }

.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--stock); }

.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-hi); border-color: var(--gold-hi); }

.btn-ghost { background: transparent; color: var(--kraft-board); border-color: var(--kraft-board); min-height: 44px; padding: 10px 16px; font-size: 13px; }
.btn-ghost:hover { background: var(--kraft-board); color: var(--ink); }

.btn-sm { min-height: 42px; padding: 10px 16px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Nav: printed strip along the top flap ---------- */

.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 30;
  background-color: var(--kraft);
  background-image: var(--kraft-tex), repeating-linear-gradient(90deg, transparent 0 8px, var(--flute) 8px 10px);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 36px);
  min-height: 76px;
  padding-block: 8px;
}

.logo { flex: none; display: block; line-height: 0; }
.logo img { height: 56px; width: auto; }

.nav-menu { margin-left: auto; position: relative; }

.nav-links {
  display: flex;
  gap: clamp(14px, 2vw, 30px);
}
.nav-links a {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding-block: 10px;
  background: linear-gradient(var(--ink), var(--ink)) left bottom / 0 2px no-repeat;
  transition: background-size 0.25s var(--ease-out);
}
.nav-links a:hover { background-size: 100% 2px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  font: 700 13px/1 var(--font-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(28px, 4vw, 56px) clamp(28px, 3vw, 44px); }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(340px, 29vw, 420px);
  grid-template-rows: auto auto 1fr;
  grid-template-areas:
    "title title"
    "copy  label"
    "foot  label";
  column-gap: clamp(28px, 3vw, 56px);
  padding-right: 52px;
}

.hero-title {
  grid-area: title;
  position: relative;
  isolation: isolate;
  font-family: var(--font-mark);
  font-weight: 800;
  font-size: clamp(4.1rem, 13.6vw, 14.5rem);
  line-height: 0.84;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--ink);
  margin-left: -0.04em;
}
.hero-title .flexo { display: block; position: relative; z-index: 1; }
.hero-title .line { display: block; white-space: nowrap; }
.hero-title .ch { display: inline-block; }
.hero-title .mist {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-copy {
  grid-area: copy;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
  padding-top: clamp(22px, 2.6vw, 40px);
  padding-right: clamp(60px, 7vw, 120px);
}

.lede {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.5;
  max-width: 46ch;
  font-weight: 450;
}

.spec {
  margin: 0;
  border-top: 3px solid var(--ink);
  font-variant-numeric: tabular-nums;
}
.spec div {
  display: grid;
  grid-template-columns: 6.2em 1fr;
  gap: 12px;
  padding: 9px 0;
  background: repeating-linear-gradient(90deg, var(--rule-kraft) 0 6px, transparent 6px 10px) left bottom / 100% 1px no-repeat;
}
.spec dt {
  font-weight: 750;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-top: 2px;
}
.spec dd { margin: 0; font-weight: 650; font-size: 15.5px; }

/* The shipping label (working brief form) */
.label {
  position: relative;
  background: var(--stock);
  color: var(--ink);
  padding: 10px;
}
.label-frame { border: 2px solid var(--ink); }

.label-hero {
  grid-area: label;
  align-self: start;
  z-index: 3;
  margin-top: clamp(-252px, -15.8vw, -120px);
  margin-left: clamp(-120px, -7vw, -60px);
  transform: rotate(-1.6deg);
  transform-origin: 60% 0;
}

.label-top {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}
.label-top > div { padding: 14px 14px 12px; }
.label-title {
  font-family: var(--font-mark);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.label-to { font-size: 13px; font-weight: 600; margin-top: 6px; }

.dest {
  display: grid;
  place-content: center;
  text-align: center;
  min-width: 84px;
  border-left: 2px solid var(--ink);
  font-family: var(--font-mark);
  font-weight: 900;
  font-size: 40px;
  line-height: 0.9;
}
.dest span {
  display: block;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.field {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  border-top: 2px solid var(--ink);
  min-height: 50px;
}
.field label {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-right: 2px solid var(--ink);
  font-weight: 750;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.field input,
.field select {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  color: var(--ink);
  font: 500 16px/1.3 var(--font-text);
  padding: 12px;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2314110c' stroke-width='2.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  cursor: pointer;
}
.field input::placeholder { color: #6b5d4c; opacity: 1; }
.field input:focus-visible,
.field select:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: -3px; }
.field[data-invalid] { background: rgba(163, 32, 27, 0.07); }
.field[data-invalid] label { color: var(--err); }

.field-error {
  border-top: 2px solid var(--ink);
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--err);
}

.label-action {
  border-top: 2px solid var(--ink);
  padding: 12px;
  display: grid;
  gap: 10px;
}
.label-note { font-size: 13px; line-height: 1.4; color: #4a3d2e; }
.form-status {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
  padding: 10px 12px;
  border: 2px dashed var(--gold-deep);
  color: var(--gold-deep);
}

.label-code {
  border-top: 2px solid var(--ink);
  padding: 10px 12px 8px;
}
.barcode { display: block; width: 100%; height: 44px; fill: var(--ink); }
.label-code p {
  margin-top: 6px;
  font-family: var(--font-coder);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.12em;
}

/* Clear tape */
.tape {
  position: absolute;
  display: block;
  background-color: var(--tape);
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 6px);
  pointer-events: none;
}
.tape-label {
  top: -18px;
  left: 50%;
  width: 150px;
  height: 36px;
  transform: translateX(-50%) rotate(2.2deg);
  z-index: 2;
}

/* QC sticker, brand gold */
.sticker {
  position: absolute;
  bottom: -38px;
  left: -42px;
  z-index: 4;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  display: grid;
  place-content: center;
  text-align: center;
  transform: rotate(11deg);
}
.sticker::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 2px dashed rgba(20, 17, 12, 0.55);
}
.sticker-qc {
  font-family: var(--font-mark);
  font-weight: 900;
  font-size: 46px;
  line-height: 0.82;
}
.sticker-pass {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 3px;
}
.sticker-aql {
  font-family: var(--font-coder);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* Case-coder lines along the right crease */
.coder-v {
  position: absolute;
  right: 0;
  top: 6px;
  bottom: 6px;
  width: 30px;
  overflow: hidden;
  writing-mode: vertical-rl;
  white-space: nowrap;
  font-family: var(--font-coder);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
}

.hero-foot {
  grid-area: foot;
  align-self: end;
  margin-top: clamp(36px, 4.5vw, 64px);
}
.marks {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  color: var(--ink);
  margin-bottom: 14px;
}
.marks p {
  font-family: var(--font-coder);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.ruler { position: relative; }
.ticks {
  height: 20px;
  border-top: 2px solid var(--ink);
  background-image:
    repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px calc(100% / 6)),
    repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px calc(100% / 12)),
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px calc(100% / 60));
  background-size: calc(100% + 2px) 18px, calc(100% + 2px) 11px, calc(100% + 1px) 6px;
  background-repeat: no-repeat;
}
.ruler-nums {
  position: relative;
  height: 20px;
  margin-top: 4px;
  font-family: var(--font-coder);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.ruler-nums span {
  position: absolute;
  top: 0;
  left: calc(var(--i) * 100% / 6);
  transform: translateX(calc(var(--i) * -100% / 6));
  white-space: nowrap;
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section-y); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 72px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 72px);
}

.h2 {
  font-family: var(--font-mark);
  font-weight: 800;
  font-size: clamp(2.8rem, 6.6vw, 6.4rem);
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: 0;
}
.h2 .flexo { display: inline; }

.intro {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.55;
  max-width: 48ch;
}

/* Pallet */
.pallet { max-width: 1200px; margin-inline: auto; }
.tier { display: flex; gap: 6px; margin-bottom: 6px; }
.tier-top { margin-inline: 3% 7%; }

.carton {
  position: relative;
  flex: var(--w, 1) 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 48px clamp(18px, 2vw, 28px) 24px;
  background-color: var(--kraft-board);
  background-image: var(--kraft-tex), repeating-linear-gradient(90deg, transparent 0 8px, var(--flute) 8px 10px);
  border: 2px solid var(--kraft-crease);
  transition: transform 0.75s var(--ease-settle) calc(var(--i, 0) * 80ms);
}
.carton::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 28px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--kraft-crease) 0 10px, transparent 10px 17px);
}
.carton::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  width: 58px;
  height: 44px;
  transform: translateX(-50%);
  background: var(--gold);
}
.carton.pending { transform: translateY(-34px) rotate(-0.6deg); }
.carton h3 {
  font-family: var(--font-mark);
  font-weight: 800;
  font-size: clamp(1.55rem, 2.3vw, 2.25rem);
  line-height: 0.92;
  text-transform: uppercase;
}
.carton p { font-size: 15.5px; line-height: 1.5; max-width: 40ch; }
.carton .coder {
  margin-top: auto;
  padding-top: 6px;
  font-family: var(--font-coder);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}

.pallet-base { display: block; width: 100%; height: 48px; }
.pallet-base .wood { fill: var(--kraft-crease); stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }

/* Label-stock sheets */
.sheet {
  position: relative;
  background: var(--stock);
  color: var(--ink);
}

.packing { padding: clamp(18px, 3vw, 40px); }
.tape-tl { top: -10px; left: -18px; width: 92px; height: 30px; transform: rotate(-34deg); }
.tape-tr { top: -10px; right: -18px; width: 92px; height: 30px; transform: rotate(34deg); }

.sheet-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  padding-bottom: 16px;
  border-bottom: 4px solid var(--ink);
}
.doc-title {
  font-family: var(--font-mark);
  font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 0.9;
  text-transform: uppercase;
}
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.doc-meta div { display: flex; gap: 10px; align-items: baseline; }
.doc-meta dt {
  font-weight: 750;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.doc-meta dd {
  margin: 0;
  font-family: var(--font-coder);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.05em;
}

.table-wrap { overflow-x: auto; }

.plist {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.plist th,
.plist td {
  text-align: left;
  vertical-align: top;
  padding: 15px 14px 15px 0;
  border-bottom: 1px solid var(--stock-rule);
  font-size: 15.5px;
  line-height: 1.45;
}
.plist thead th {
  padding-block: 14px 10px;
  border-bottom: 2px solid var(--ink);
  font-weight: 750;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.plist tbody th { font-weight: 750; }
.plist tbody td:first-child {
  font-family: var(--font-coder);
  font-weight: 900;
  font-size: 18px;
  color: var(--gold-deep);
  width: 4.5em;
}
.plist tbody tr { transition: background-color 0.18s ease; }
.plist tbody tr:hover { background: rgba(218, 160, 21, 0.12); }

/* Process tape */
.tape-run {
  position: relative;
  height: 96px;
  margin-bottom: clamp(28px, 4vw, 56px);
  margin-left: calc(-1 * var(--gutter-l));
  margin-right: calc(-1 * var(--gutter-r));
  overflow: hidden;
}
.tape-band {
  position: absolute;
  left: -2%;
  right: -2%;
  top: 18px;
  height: 60px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gold);
  color: var(--ink);
  transform: rotate(-1.1deg);
  clip-path: inset(0 calc((1 - var(--p, 1)) * 100%) 0 0);
}
.tape-band span {
  white-space: nowrap;
  font-family: var(--font-mark);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-left: 24px;
}
.tape-roll {
  position: absolute;
  top: 50%;
  left: calc(var(--p, 1) * 104% - 2%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 16px solid var(--gold);
  background: var(--kraft-board);
  outline: 2px solid var(--ink);
  outline-offset: 0;
  transform: translate(-50%, -50%);
  opacity: var(--roll, 0);
}
.tape-roll::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px solid var(--ink);
}

.steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.step {
  position: relative;
  padding: 50px clamp(14px, 1.6vw, 24px) 8px;
  background: repeating-linear-gradient(180deg, var(--kraft-crease) 0 12px, transparent 12px 20px) left top / 2px 100% no-repeat;
}
.step:first-child { background: none; padding-left: 0; }
.step h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mark);
  font-weight: 800;
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  line-height: 1;
  text-transform: uppercase;
}
.step-no {
  font-family: var(--font-coder);
  font-weight: 900;
  font-size: 0.62em;
  color: var(--ink-2);
}
.step-time {
  margin: 10px 0 12px;
  font-family: var(--font-coder);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.step p:last-of-type { font-size: 15.5px; line-height: 1.5; }
.step-tick {
  position: absolute;
  top: 0;
  left: clamp(14px, 1.6vw, 24px);
  width: 34px;
  height: 34px;
  padding: 5px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  transform: scale(0.4) rotate(-30deg);
  opacity: 0;
  transition: transform 0.45s var(--ease-settle), opacity 0.2s ease;
}
.step:first-child .step-tick { left: 0; }
.step.taped .step-tick { transform: scale(1) rotate(0); opacity: 1; }

/* Origin mark */
.origin {
  font-family: var(--font-mark);
  font-weight: 800;
  font-size: clamp(3.2rem, 11.4vw, 12.5rem);
  line-height: 0.86;
  text-transform: uppercase;
  letter-spacing: 0;
}
.origin .flexo { display: inline-block; max-width: 100%; }
.origin-box {
  display: inline-block;
  border: clamp(5px, 0.7vw, 10px) solid var(--ink);
  padding: 0.06em 0.12em 0.02em;
}

.coder-line {
  margin-top: clamp(22px, 3vw, 40px);
  text-wrap: balance;
  font-family: var(--font-coder);
  font-weight: 900;
  font-size: clamp(18px, 2.3vw, 32px);
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.factories-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 88px);
  margin-top: clamp(36px, 5vw, 64px);
  align-items: start;
}
.port {
  margin-top: 20px;
  font-family: var(--font-coder);
  font-weight: 900;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.register { width: 100%; border-collapse: collapse; }
.register th,
.register td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px 14px 0;
  font-size: 16px;
  line-height: 1.4;
  background: repeating-linear-gradient(90deg, var(--rule-kraft) 0 6px, transparent 6px 10px) left bottom / 100% 1px no-repeat;
}
.register thead th {
  font-weight: 750;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 3px solid var(--ink);
  background: none;
}
.register tbody th {
  font-family: var(--font-mark);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.05;
  text-transform: uppercase;
  white-space: nowrap;
}
.register td:last-child {
  font-family: var(--font-coder);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Compliance */
.compliance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.pouch {
  position: relative;
  padding: 14px 14px 20px;
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.pouch::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, 0.2) 44%, transparent 52%);
}
.pouch-print {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 2px 4px 12px;
  font-family: var(--font-mark);
  font-weight: 800;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  line-height: 1;
  text-transform: uppercase;
}
.pouch-sub {
  font-family: var(--font-coder);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.1em;
}

.pack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 36px;
  padding: clamp(20px, 3vw, 36px);
}
.pack-group h3 {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}
.pack-group li {
  position: relative;
  padding: 5px 0 5px 30px;
  font-size: 16px;
  font-weight: 550;
  line-height: 1.4;
}
.pack-group li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--ink);
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%2314110c' stroke-width='3.2'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.pack-wide { grid-column: 1 / -1; }
.pack-note {
  grid-column: 1 / -1;
  font-size: 14px;
  line-height: 1.5;
  color: #4a3d2e;
  padding-top: 14px;
  border-top: 1px solid var(--stock-rule);
}

.label-pack { transform: rotate(1.2deg); margin-top: 18px; }

.checks {
  margin: 0;
  border: 0;
  border-top: 2px solid var(--ink);
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}
.checks legend {
  float: left;
  width: 100%;
  margin-bottom: 4px;
  font-weight: 750;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.checks label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 550;
  line-height: 1.25;
  cursor: pointer;
  min-height: 32px;
}
.checks input {
  flex: none;
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.checks input:checked {
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%2314110c' stroke-width='3.2'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.checks input:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 2px; }

/* ---------- Close: the decisive beat in solid ink ---------- */

.close {
  background: var(--ink);
  color: var(--kraft-board);
  padding-block: clamp(80px, 10vw, 150px);
}
.close-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: end;
}
.close-logo { width: clamp(150px, 15vw, 220px); margin-bottom: clamp(20px, 2.5vw, 36px); }
.close-title {
  font-family: var(--font-mark);
  font-weight: 800;
  font-size: clamp(3.6rem, 11vw, 11.5rem);
  line-height: 0.84;
  text-transform: uppercase;
  color: var(--kraft);
}
.close-title .flexo { display: inline; }
.close-copy { display: grid; gap: 22px; justify-items: start; }
.close-copy > p:first-child { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; max-width: 44ch; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.email {
  font-family: var(--font-coder);
  font-weight: 800;
  font-size: clamp(18px, 1.9vw, 24px);
  letter-spacing: 0.04em;
  color: var(--gold-hi);
  user-select: all;
  overflow-wrap: anywhere;
}
.copy-status { min-height: 1.4em; font-size: 14px; font-weight: 600; color: var(--kraft-board); }
.close :focus-visible { outline-color: var(--gold-hi); }

/* ---------- Footer: the bottom flap ---------- */

.footer { padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
.footer > .score { margin-left: calc(-1 * var(--gutter-l)); margin-right: calc(-1 * var(--gutter-r)); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr);
  gap: 32px clamp(28px, 5vw, 80px);
  padding-top: 48px;
  align-items: start;
}
.footer-brand img { height: 64px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: 14.5px; font-weight: 600; line-height: 1.5; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { font-weight: 650; font-size: 15px; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-meta { display: grid; gap: 10px; font-size: 14px; line-height: 1.5; }
.footer-meta p:first-child { font-family: var(--font-coder); font-weight: 900; font-size: 16px; letter-spacing: 0.04em; }
.sic { color: var(--ink-2); }
.placeholder-note { font-size: 13px; color: var(--ink-2); max-width: 52ch; }

/* ---------- Load sequence: spray, code, slap, stamp ---------- */

.js:not(.ready) .hero-title .ch { opacity: 0.07; filter: blur(9px); }
.ready .hero-title .ch { animation: spray 0.62s var(--ease-out) both; animation-delay: calc(120ms + var(--d) * 58ms); }
@keyframes spray {
  from { opacity: 0.07; filter: blur(9px); transform: translateY(0.015em); }
  to { opacity: 1; filter: blur(0); transform: none; }
}

.ready .coder-v { animation: code 1.5s steps(46, end) 0.95s both; }
@keyframes code {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}

.js:not(.ready) .label-hero { transform: translate(26px, -44px) rotate(5deg) scale(1.04); }
.ready .label-hero { animation: slap 0.75s var(--ease-out) 1.05s both; }
@keyframes slap {
  0% { transform: translate(26px, -44px) rotate(5deg) scale(1.04); }
  62% { transform: translate(0, 0) rotate(-2.3deg) scale(0.99); }
  100% { transform: rotate(-1.6deg); }
}

.js:not(.ready) .label-hero .sticker { opacity: 0; }
.ready .label-hero .sticker { animation: stamp 0.42s cubic-bezier(0.19, 1, 0.22, 1) 1.7s both; }
@keyframes stamp {
  from { opacity: 0; transform: rotate(34deg) scale(1.75); }
  to { opacity: 1; transform: rotate(11deg) scale(1); }
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    flex-direction: column;
    gap: 0;
    min-width: 240px;
    padding: 8px 0;
    background: var(--stock);
    border: 2px solid var(--ink);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 18px; background: none; }
  .nav-links a:hover { background: rgba(218, 160, 21, 0.18); }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) clamp(320px, 38vw, 400px);
    padding-right: 0;
  }
  .coder-v { display: none; }
  .hero-copy { grid-template-columns: minmax(0, 1fr); padding-right: 0; }
  .label-hero { margin-top: clamp(-200px, -15.8vw, -100px); margin-left: clamp(-60px, -3vw, -20px); }

  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .step:nth-child(4) { background: none; padding-left: 0; }
}

@media (max-width: 860px) {
  .logo img { height: 48px; }
  .nav-row { min-height: 66px; }
  .nav .btn-sm { display: none; }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "copy" "label" "foot";
  }
  .label-hero {
    margin-top: 44px;
    margin-left: 0;
    justify-self: center;
    width: min(100%, 460px);
    transform: rotate(-1deg);
  }
  @keyframes slap {
    0% { transform: translate(18px, -30px) rotate(4deg) scale(1.03); }
    62% { transform: translate(0, 0) rotate(-1.6deg) scale(0.99); }
    100% { transform: rotate(-1deg); }
  }
  .sticker { width: 92px; height: 92px; bottom: -30px; left: -12px; }
  .sticker-qc { font-size: 36px; }
  .marks { justify-content: flex-start; flex-wrap: wrap; }
  .hero-foot { margin-top: 64px; }

  .section-head { grid-template-columns: minmax(0, 1fr); align-items: start; }

  .tier { flex-direction: column; }
  .tier-top { margin-inline: 0; }
  .tier-bottom { order: -1; }
  .pallet { display: flex; flex-direction: column; }

  .factories-grid { grid-template-columns: minmax(0, 1fr); }
  .compliance-grid { grid-template-columns: minmax(0, 1fr); }
  .label-pack { justify-self: center; width: min(100%, 480px); }
  .close-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .plist thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .plist, .plist tbody, .plist tr, .plist th, .plist td { display: block; width: auto; }
  .plist tr { padding: 14px 0; border-bottom: 2px solid var(--ink); }
  .plist tbody th,
  .plist tbody td { border: 0; padding: 3px 0; }
  .plist tbody td:first-child { width: auto; }
  .plist tbody td:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-text);
    font-weight: 750;
    font-size: 11px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #5a4a37;
    margin-top: 6px;
  }
  .plist tbody th { font-size: 18px; }

  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .step,
  .step:nth-child(4) {
    padding: 22px 56px 22px 0;
    background: repeating-linear-gradient(90deg, var(--kraft-crease) 0 12px, transparent 12px 20px) left top / 100% 2px no-repeat;
  }
  .step:first-child { background: none; padding-top: 0; }
  .step-tick,
  .step:first-child .step-tick { top: 22px; right: 0; left: auto; }
  .step:first-child .step-tick { top: 0; }

  .register thead { display: none; }
  .register, .register tbody, .register tr, .register th, .register td { display: block; width: auto; }
  .register tr { padding: 12px 0; background: repeating-linear-gradient(90deg, var(--rule-kraft) 0 6px, transparent 6px 10px) left bottom / 100% 1px no-repeat; }
  .register th, .register td { padding: 2px 0; background: none; white-space: normal; }

  .pack { grid-template-columns: minmax(0, 1fr); }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .tape-tl, .tape-tr { width: 84px; top: -12px; }
  .tape-tl { left: -12px; }
  .tape-tr { right: -12px; }
}

@media (max-width: 600px) {
  .ruler-nums span:nth-child(even) { display: none; }
}

@media (max-width: 420px) {
  .field { grid-template-columns: 92px minmax(0, 1fr); }
  .field label { padding: 8px 10px; font-size: 11px; letter-spacing: 0.06em; }
  .label-title { font-size: 26px; }
  .dest { min-width: 66px; font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js:not(.ready) .hero-title .ch,
  .hero-title .ch { opacity: 1 !important; filter: none !important; transform: none !important; }
  .js:not(.ready) .label-hero { transform: rotate(-1.6deg); }
  .js:not(.ready) .label-hero .sticker { opacity: 1; }
  .carton.pending { transform: none; }
}
