/* Carry a Couch: work-order pad world */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,400..900&family=Gochi+Hand&display=swap");

:root {
  --yellow: #ffd21f;
  --yellow-deep: #f2bf00;
  --pink: #ffd21f;
  --pink-ink: #a3200f;
  --stamp-on-dark: #c9331a;
  --blue: #5a5248;
  --desk: #18171b;
  --desk-2: #222126;
  --blue-deep: #2a282e;
  --blue-line: rgba(255, 255, 255, 0.09);
  --paper: #f7f2e4;
  --ink: #16130f;
  --ink-soft: #4a3f2c;
  --pen: #1f33b5;
  --rule: rgba(22, 19, 15, 0.16);

  --f-display: "Archivo", "Arial Narrow", sans-serif;
  --f-body: "Archivo", system-ui, sans-serif;
  --f-hand: "Gochi Hand", "Comic Sans MS", cursive;
  --f-num: ui-monospace, "Cascadia Mono", "Consolas", monospace;

  --shadow-sheet: 0 1px 1px rgba(0, 0, 0, 0.25), 0 10px 24px -6px rgba(0, 0, 0, 0.45), 0 30px 60px -20px rgba(0, 0, 0, 0.5);
  --shadow-slip: 0 1px 1px rgba(0, 0, 0, 0.2), 0 8px 18px -6px rgba(0, 0, 0, 0.4);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-thunk: cubic-bezier(0.2, 1.6, 0.4, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--desk);
  background-image: radial-gradient(1200px 600px at 70% -10%, #2b2930 0%, transparent 70%);
  background-repeat: no-repeat;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 2px; }
.sheet :focus-visible, .order :focus-visible { outline-color: var(--ink); }
html { scrollbar-color: var(--yellow) var(--blue-deep); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--blue-deep); }
::-webkit-scrollbar-thumb { background: var(--yellow); border: 3px solid var(--blue-deep); border-radius: 8px; }

.sr-only { color: var(--paper); position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yellow); padding: 10px 14px; font-weight: 800; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.hand { font-family: var(--f-hand); color: var(--pen); font-weight: 400; letter-spacing: 0; }
.mark {
  background: linear-gradient(100deg, transparent 0.2em, rgba(255, 106, 61, 0.38) 0.3em, rgba(255, 106, 61, 0.42) calc(100% - 0.3em), transparent calc(100% - 0.2em));
  background-size: 100% 0.62em;
  background-position: 0 88%;
  background-repeat: no-repeat;
  padding-inline: 0.1em;
}
.mark--y { background-image: linear-gradient(100deg, transparent 0.2em, rgba(255, 210, 31, 0.85) 0.3em, rgba(255, 210, 31, 0.85) calc(100% - 0.3em), transparent calc(100% - 0.2em)); }

/* ---------- type ---------- */
.display {
  font-family: var(--f-display);
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.01em;
}
h1, h2, h3 { margin: 0; text-wrap: balance; }
h2.section-title {
  font-family: var(--f-display);
  font-stretch: 68%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  line-height: 0.9;
  color: var(--paper);
  margin-bottom: 0.4em;
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 60ch; color: rgba(255, 251, 232, 0.88); margin: 0 0 2rem; }
.label {
  font-family: var(--f-display);
  font-stretch: 80%;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}
.num { font-family: var(--f-num); font-variant-numeric: tabular-nums; }

/* ---------- header: clipboard bar ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  color: var(--paper);
  background: rgba(15, 14, 17, 0);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-head.is-solid, .page-plain .site-head { background: rgba(15, 14, 17, 0.96); box-shadow: 0 10px 30px -18px rgba(0,0,0,0.8); }
.site-head .wrap { display: flex; align-items: center; gap: clamp(10px, 2vw, 28px); min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 42px; height: 42px; transform: rotate(-6deg); transition: transform 0.35s var(--ease-thunk); }
.brand:hover img { transform: rotate(4deg) scale(1.06); }
.brand span { font-family: var(--f-display); font-stretch: 62%; font-weight: 900; font-size: 0.95rem; text-transform: uppercase; line-height: 0.82; letter-spacing: 0.01em; }
.brand span i { display: block; font-style: normal; color: var(--yellow); font-size: 1.5em; }
.tabs { display: flex; gap: clamp(4px, 1.6vw, 22px); }
.tabs a {
  position: relative; display: block; text-decoration: none;
  padding: 10px 4px;
  font-family: var(--f-display); font-stretch: 78%; font-weight: 800; text-transform: uppercase; font-size: 0.95rem; letter-spacing: 0.05em;
  color: rgba(247,242,228,0.78);
  transition: color 0.2s;
}
.tabs a::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 2px; height: 3px; border-radius: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-out); }
.tabs a:hover { color: var(--paper); }
.tabs a:hover::after { transform: scaleX(0.5); }
.tabs a[aria-current="page"] { color: var(--paper); }
.tabs a[aria-current="page"]::after { transform: scaleX(1); }
.head-play { margin-left: 8px; --c: var(--stamp-on-dark); }
.head-play:hover { background: #ad2812; }

/* ---------- stamp button (primary action) ---------- */
.stamp-btn {
  --c: var(--pink-ink);
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--f-display); font-stretch: 70%; font-weight: 900; text-transform: uppercase;
  font-size: 1.05rem; letter-spacing: 0.06em; line-height: 1;
  color: var(--paper); background: var(--c);
  border: 0; border-radius: 6px;
  padding: 0.8em 1.15em;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 14px -6px rgba(0,0,0,0.6);
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s, background 0.2s;
}
.stamp-btn svg { width: 1.05em; height: 1.05em; flex: none; }
.stamp-btn:hover { transform: translateY(-2px) rotate(-1deg); background: #961f12; }
.stamp-btn:active { transform: translateY(2px) scale(0.97); box-shadow: 0 2px 4px -2px rgba(0,0,0,0.6); }
.stamp-btn--sm { font-size: 0.9rem; padding: 0.7em 0.95em; }
.stamp-btn--ghost { --c: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.stamp-btn--ghost:hover { background: var(--ink); color: var(--yellow); }
.stamp-btn--blue { --c: var(--ink); }
.stamp-btn--blue:hover { background: #000; }
.stamp-btn[aria-disabled="true"] { --c: transparent; color: var(--ink); box-shadow: none; outline: 2px dashed var(--ink); outline-offset: -2px; cursor: default; transform: none; }
.stamp-btn[aria-disabled="true"]:hover { background: transparent; transform: none; }
.soon { font-family: var(--f-hand); color: var(--pen); font-size: 1.05rem; text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 4px; }
.site-foot .soon { color: var(--yellow); }

/* ---------- rubber stamp ---------- */
.stamp {
  display: inline-block;
  font-family: var(--f-display); font-stretch: 62%; font-weight: 900; text-transform: uppercase;
  color: var(--pink-ink);
  border: 0.14em solid currentColor;
  outline: 0.06em solid currentColor; outline-offset: 0.12em;
  border-radius: 0.18em;
  padding: 0.06em 0.3em 0.02em;
  line-height: 1;
  letter-spacing: 0.04em;
  transform: rotate(-8deg);
  filter: url(#rough);
  mix-blend-mode: multiply;
  opacity: 0.9;
}
.stamp--blue { color: var(--blue); }
.stamp--ink { color: var(--ink); }

/* ---------- paper ---------- */
.sheet {
  position: relative;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  box-shadow: var(--shadow-sheet);
}
.sheet--yellow { background-color: var(--yellow); }
.sheet--pink { background-color: var(--paper); }

.clip {
  position: absolute; width: 34px; height: 78px; top: -26px; left: 28px; z-index: 3;
  color: #9aa3b5;
}
.clip svg { width: 100%; height: 100%; filter: drop-shadow(1px 2px 1.5px rgba(0,0,0,0.35)); }

.tape {
  position: absolute; z-index: 3;
  width: 110px; height: 30px;
  background: rgba(240, 232, 205, 0.78);
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}

/* photo on paper */
.photo {
  position: relative;
  background: #fff;
  padding: 8px 8px 30px;
  box-shadow: var(--shadow-slip);
}
.photo img { width: 100%; object-fit: cover; background: #222; }
.photo figcaption { position: absolute; left: 12px; right: 12px; bottom: 4px; font-family: var(--f-hand); color: var(--pen); font-size: 1.05rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- HERO: the job order ---------- */
.hero { position: relative; padding: clamp(32px, 3.4vw, 48px) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.board { position: relative; transform: rotate(-0.6deg); }
.board > .tape--tl { top: -12px; left: 18px; transform: rotate(-24deg); }
.board > .tape--tr { top: -12px; right: 18px; transform: rotate(22deg); }

.order { padding: clamp(18px, 2.4vw, 30px); padding-top: clamp(28px, 2.6vw, 34px); }
.order-top { display: flex; justify-content: flex-end; align-items: flex-start; gap: 12px; border-bottom: 3px solid var(--ink); padding-bottom: 10px; }
.order-top .label { color: var(--ink); }
.order-no { font-family: var(--f-num); font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--pink-ink); font-weight: 700; letter-spacing: 0.08em; }
.company { padding: 12px 0 2px; }
.company h1 { font-size: clamp(3rem, 5.6vw, 5.3rem); color: var(--ink); white-space: nowrap; }
.company .tag { font-family: var(--f-display); font-stretch: 85%; font-weight: 700; font-size: clamp(0.82rem, 1.2vw, 0.98rem); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 8px; }

.fields { display: grid; grid-template-columns: repeat(6, 1fr); border: 2px solid var(--ink); margin-top: 14px; background: rgba(255,255,255,0.18); }
.field { grid-column: span 3; padding: 6px 10px 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field--third { grid-column: span 2; }
.field:nth-last-child(-n+1) { border-bottom: 0; }
.field .label { display: block; color: var(--ink-soft); font-size: 0.72rem; }
.field .hand { display: block; font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.2; margin-top: 2px; }
.fields .r-end { border-right: 0; }
.fields .b-end { border-bottom: 0; }

.checks { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 2px 0; font-family: var(--f-display); font-stretch: 85%; font-weight: 700; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.06em; }
.check { display: inline-flex; align-items: center; gap: 7px; }
.check i { width: 18px; height: 18px; border: 2px solid var(--ink); display: inline-grid; place-items: center; background: rgba(255,255,255,0.35); }
.check i svg { width: 22px; height: 22px; color: var(--pen); margin: -6px -4px 0 0; }
.check small { font-family: var(--f-hand); text-transform: none; color: var(--pen); font-size: 1rem; letter-spacing: 0; font-weight: 400; }

.sign { position: relative; display: flex; align-items: end; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.sign-line { flex: 1 1 240px; position: relative; }
.sign-line .label { color: var(--ink-soft); display: block; margin-bottom: 4px; }
.sign-btn {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%;
  background: transparent; border: 0; border-bottom: 3px solid var(--ink); padding: 4px 4px 8px; cursor: pointer;
  text-decoration: none; color: var(--ink);
}
.sign-btn .x { font-family: var(--f-display); font-weight: 900; font-size: 1.6rem; line-height: 1; }
.sign-btn .scrawl { font-family: var(--f-hand); font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--pen); flex: 1; text-align: left; transition: letter-spacing 0.3s var(--ease-out); }
.sign-btn .go {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-display); font-stretch: 70%; font-weight: 900; text-transform: uppercase; font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: 0.05em;
  background: var(--pink-ink); color: var(--paper); padding: 12px 18px 11px; border-radius: 6px;
  box-shadow: 0 8px 16px -6px rgba(0,0,0,0.55);
  transition: transform 0.18s var(--ease-out), background 0.2s;
}
.sign-btn .go svg { width: 22px; height: 22px; }
.sign-btn:hover .go { transform: translateY(-2px) rotate(-1.5deg); background: #961f12; }
.sign-btn:hover .scrawl { letter-spacing: 0.04em; }
.sign-note { font-size: 0.82rem; color: var(--ink-soft); margin: 8px 0 0; }

.slam {
  position: absolute; z-index: 6; pointer-events: none;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  right: 4%; bottom: 8%;
  opacity: 0; transform: rotate(-14deg) scale(2.4);
}
.slam.is-on { animation: slam 0.42s var(--ease-thunk) forwards; }
@keyframes slam {
  0% { opacity: 0; transform: rotate(-14deg) scale(2.4); }
  60% { opacity: 0.95; transform: rotate(-11deg) scale(0.94); }
  100% { opacity: 0.92; transform: rotate(-11deg) scale(1); }
}
.board.is-thunk { animation: thunk 0.32s var(--ease-out) 0.2s; }
@keyframes thunk { 0%,100% { transform: rotate(-0.6deg); } 40% { transform: rotate(-0.6deg) translateY(5px) scale(0.995); } }

/* right side of hero: photos */
.hero-side { position: relative; padding-top: 24px; }
.hero-side .p1 { position: relative; width: 100%; transform: rotate(1.2deg); z-index: 2; }
.hero-side .p1 img { aspect-ratio: 4 / 3; }
.hero-side .carbon {
  position: absolute; top: 260px; left: -6%; width: 88%; transform: rotate(-4deg); z-index: 1;
  padding: 16px 16px 18px;
}
.hero-side .carbon img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.hero-side .carbon .label { color: var(--pink-ink); display: block; margin-bottom: 8px; }
.callout {
  position: absolute; z-index: 4;
  font-family: var(--f-hand); color: var(--paper); font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.05;
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  pointer-events: none;
}
.callout svg { width: 54px; height: 40px; color: var(--yellow); flex: none; }
.callout span { background: var(--ink); padding: 3px 10px 4px; border-radius: 4px; transform-origin: left center; transition: clip-path 0.5s var(--ease-out); clip-path: inset(0 0 0 0); }
.hero-side .c1 { top: -18px; left: 2%; transform: rotate(-3deg); }
.hero-side .c2 { top: 250px; right: -2%; transform: rotate(2deg); flex-direction: row-reverse; }
.hero-side .c2 svg { transform: scaleX(-1); }

/* fact tape across the hero */
.fact-tape {
  position: relative; z-index: 5;
  margin-top: clamp(28px, 4vw, 48px);
  background: var(--yellow);
  border-block: 3px solid var(--ink);
  transform: rotate(-1.2deg);
  overflow: hidden;
  width: 104vw; margin-left: -2vw;
}
.fact-tape-track { display: flex; width: max-content; animation: tape 48s linear infinite; }
.fact-tape ul { display: flex; list-style: none; margin: 0; padding: 0; }
.fact-tape li {
  display: flex; align-items: center; gap: 14px; padding: 9px 14px 8px;
  font-family: var(--f-display); font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: 0.04em; white-space: nowrap;
}
.fact-tape li b { color: var(--pink-ink); font-weight: 900; }
.fact-tape li::after { content: ""; width: 10px; height: 10px; background: var(--ink); transform: rotate(45deg); margin-left: 14px; }
@keyframes tape { to { transform: translateX(-50%); } }

/* dispatch ticker */
.radio { margin-top: clamp(36px, 5vw, 56px); }
.radio-box {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  background: #0f0e11; color: var(--paper); border-radius: 10px; padding: 12px 16px;
  box-shadow: var(--shadow-slip);
}
.radio-lamp { width: 12px; height: 12px; border-radius: 50%; background: #e0432f; border: 2px solid #5a1a10; animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.radio-line { font-family: var(--f-num); font-size: 0.95rem; min-height: 1.5em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-line .who { color: var(--yellow); }
.demo-tag { font-family: var(--f-display); font-stretch: 80%; font-weight: 800; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); background: var(--yellow); padding: 4px 8px; border-radius: 4px; white-space: nowrap; }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .lede { margin: 0; }

/* how a job goes: triplicate slips */
.slips { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); counter-reset: step; }
.slip {
  position: relative; padding: 14px 14px 20px; transform: rotate(var(--r, 0deg));
  transition: transform 0.35s var(--ease-out);
}
.slip:hover { transform: rotate(0deg) translateY(-6px); }
.slip:nth-child(1) { --r: -0.5deg; }
.slip:nth-child(2) { --r: 0.4deg; }
.slip:nth-child(3) { --r: -0.3deg; }
.slip:nth-child(4) { --r: 0.5deg; }
.slip::before {
  content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 8px;
  background: radial-gradient(circle at 6px 8px, transparent 3.5px, currentColor 4px) 0 0 / 12px 8px repeat-x;
  color: inherit; opacity: 0;
}
.slip-top { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: 6px; margin-bottom: 10px; }
.slip-top .label { color: var(--ink); }
.slip-top .num { color: var(--pink-ink); font-weight: 700; }
.slip img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border: 2px solid var(--ink); background: #222; }
.slip h3 { font-family: var(--f-display); font-stretch: 70%; font-weight: 900; text-transform: uppercase; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 0.95; margin: 14px 0 8px; }
.slip p { margin: 0; font-size: 0.98rem; color: var(--ink-soft); }
.slip p .hand { font-size: 1.2rem; }
.key { display: inline-block; min-width: 1.7em; padding: 1px 6px; border: 2px solid var(--ink); border-bottom-width: 4px; border-radius: 5px; font-family: var(--f-display); font-stretch: 80%; font-weight: 800; font-size: 0.8em; text-align: center; background: #fff; color: var(--ink); line-height: 1.3; }

/* ranks: inventory sheet */
.inventory { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr); gap: 0; }
.ledger { padding: clamp(18px, 3vw, 30px); border-right: 2px dashed rgba(22,19,15,0.35); }
.ledger-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 3px solid var(--ink); padding-bottom: 8px; }
.ledger-head h3 { font-family: var(--f-display); font-stretch: 70%; font-weight: 900; text-transform: uppercase; font-size: 1.5rem; }
.ledger ol { list-style: none; margin: 0; padding: 0; }
.ledger li { border-bottom: 1px solid var(--rule); }
.rank-btn {
  display: grid; grid-template-columns: 2.6em 1fr auto; align-items: center; gap: 10px; width: 100%;
  background: none; border: 0; padding: 7px 4px; cursor: pointer; text-align: left; color: var(--ink);
  font: inherit; transition: background 0.2s;
}
.rank-btn .num { color: var(--ink-soft); font-size: 0.9rem; }
.rank-btn .nm { font-family: var(--f-display); font-stretch: 78%; font-weight: 800; text-transform: uppercase; font-size: 1.12rem; letter-spacing: 0.02em; }
.rank-btn .sw { width: 34px; height: 14px; border: 1.5px solid var(--ink); border-radius: 2px; }
.rank-btn:hover { background: rgba(255,210,31,0.35); }
.rank-btn[aria-pressed="true"] { background: var(--yellow); }
.rank-btn[aria-pressed="true"] .nm::after { content: ""; display: inline-block; width: 0.55em; height: 0.55em; margin-left: 8px; background: var(--pink-ink); border-radius: 50%; vertical-align: 0.12em; }

.viewer { position: relative; padding: clamp(18px, 3vw, 30px); display: flex; flex-direction: column; gap: 14px; }
.viewer-photo { position: relative; width: min(100%, 460px); margin: 6px auto 0; transform: rotate(0.8deg); }
.viewer-photo img { aspect-ratio: 1; }
.viewer-photo .clip { left: auto; right: 34px; }
.viewer-photo .stamp { position: absolute; right: -10px; bottom: 34px; font-size: 1.7rem; z-index: 4; transform: rotate(-10deg); }
.viewer-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.viewer-meta h3 { font-family: var(--f-display); font-stretch: 64%; font-weight: 900; text-transform: uppercase; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 0.9; }
.types { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; }
.type-btn { padding: 0; border: 2px solid transparent; background: #fff; cursor: pointer; border-radius: 4px; overflow: hidden; transition: transform 0.2s var(--ease-out), border-color 0.2s; }
.type-btn img { aspect-ratio: 1; width: 100%; object-fit: cover; }
.type-btn:hover { transform: translateY(-3px); }
.type-btn[aria-pressed="true"] { border-color: var(--pink-ink); }
.viewer-note { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
.swap-in { animation: swapin 0.45s var(--ease-out); }
@keyframes swapin { from { opacity: 0; transform: translateY(-14px) rotate(-3deg); } }

/* locations: shipping labels */
.labels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.ship {
  position: relative; display: grid; grid-template-rows: auto 1fr; padding: 0; overflow: hidden;
  transform: rotate(var(--r, 0deg)); transition: transform 0.35s var(--ease-out);
}
.ship:hover { transform: rotate(0) translateY(-4px); }
.ship-photo { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.ship-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.ship:hover .ship-photo img { transform: scale(1.05); }
.ship-photo .stamp { position: absolute; left: 50%; top: 50%; translate: -50% -50%; font-size: 1.5rem; color: var(--yellow); mix-blend-mode: normal; }
.ship-body { padding: 12px 14px 14px; display: grid; gap: 6px; border-top: 3px solid var(--ink); }
.ship-to { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ship-to h3 { font-family: var(--f-display); font-stretch: 70%; font-weight: 900; text-transform: uppercase; font-size: 1.6rem; line-height: 1; }
.ship-to .num { color: var(--pink-ink); font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
.ship-row { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.88rem; color: var(--ink-soft); }
.ship-row b { color: var(--ink); font-weight: 700; }
.barcode { height: 26px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px); opacity: 0.85; margin-top: 4px; }

/* hall */
.hall { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hall-photo { position: relative; transform: rotate(-0.5deg); }
.hall-photo img { aspect-ratio: 16 / 9; }
.hall-photo .callout { position: absolute; }
.hall-copy { color: var(--paper); }
.hall-copy h2.section-title { margin-bottom: 0.3em; }
.hall-copy p { color: rgba(255,251,232,0.88); max-width: 46ch; }
.ruled { list-style: none; padding: 0; margin: 20px 0 0; color: var(--ink); }
.ruled li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--rule); }
.ruled li b { font-family: var(--f-display); font-stretch: 78%; font-weight: 800; text-transform: uppercase; }
.ruled li span { font-family: var(--f-hand); color: var(--pen); font-size: 1.2rem; line-height: 1.2; text-align: right; }

/* dispatch board teaser */
.board-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.tally { padding: clamp(16px, 2.6vw, 28px); }
.tally-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--ink); padding-bottom: 8px; margin-bottom: 4px; gap: 10px; }
.tally-head h3, .tally-title { font-family: var(--f-display); font-stretch: 70%; font-weight: 900; text-transform: uppercase; font-size: 1.5rem; }
table.lb { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.lb th { text-align: left; font-family: var(--f-display); font-stretch: 80%; font-weight: 700; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); padding: 8px 6px 6px; border-bottom: 2px solid var(--ink); }
.lb td { padding: 8px 6px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.lb td.r { font-family: var(--f-num); color: var(--pink-ink); font-weight: 700; width: 2.6em; }
.lb td.v { text-align: right; font-family: var(--f-num); font-weight: 700; white-space: nowrap; }
.lb th.v { text-align: right; }
.lb .pl { font-weight: 700; display: block; line-height: 1.2; }
.lb .co { font-family: var(--f-hand); color: var(--pen); font-size: 1.05rem; line-height: 1.1; }
#lb-mini tr:nth-child(1) td.r::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow-deep); margin-right: 5px; vertical-align: 0.1em; box-shadow: 0 0 0 1.5px var(--ink); }

/* crew radio (discord) */
.radio-slip { padding: clamp(22px, 3.6vw, 40px); }
.radio-slip h2 { font-family: var(--f-display); font-stretch: 66%; font-weight: 900; text-transform: uppercase; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 0.9; margin-bottom: 12px; }
.radio-slip p { margin: 0 0 20px; max-width: 42ch; }
.radio-slip .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.soon { font-family: var(--f-hand); color: var(--pen); font-size: 1.15rem; }

/* final sign-off */
.final { padding: clamp(90px, 12vw, 160px) 0 clamp(60px, 8vw, 100px); }
.final .order { max-width: 860px; margin: 0 auto; transform: rotate(-0.4deg); }
.final h2 { font-family: var(--f-display); font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: clamp(2.8rem, 7.4vw, 6rem); line-height: 0.88; margin: 14px 0 20px; }
.final p { margin: 0; max-width: 52ch; }

/* footer */
.site-foot { background: var(--ink); color: rgba(255,251,232,0.8); padding: 44px 0 36px; border-top: 4px solid var(--yellow); font-size: 0.95rem; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
.foot-grid h2 { font-family: var(--f-display); font-stretch: 78%; font-weight: 800; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.12em; color: var(--yellow); margin-bottom: 10px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-grid a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.foot-grid a:hover { color: var(--paper); text-decoration: underline; }
.foot-grid svg { width: 18px; height: 18px; flex: none; }
.foot-brand { display: flex; gap: 14px; align-items: center; }
.foot-brand img { width: 56px; height: 56px; border-radius: 10px; }
.foot-brand b { display: block; color: var(--paper); font-family: var(--f-display); font-stretch: 66%; font-weight: 900; text-transform: uppercase; font-size: 1.5rem; line-height: 1; }
.legal { margin-top: 30px; padding-top: 16px; border-top: 1px solid rgba(255,251,232,0.15); font-size: 0.82rem; color: rgba(255,251,232,0.6); }
.link-pending { cursor: default; }

/* ---------- reveal ---------- */
.js .drop { opacity: 0; transform: translateY(-18px) rotate(calc(var(--r, 0deg) - 2deg)); transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out); }
.js .drop.is-in { opacity: 1; transform: rotate(var(--r, 0deg)); }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .slips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .labels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-grid, .inventory, .hall, .board-teaser { grid-template-columns: 1fr; }
  .ledger { border-right: 0; border-bottom: 2px dashed rgba(22,19,15,0.35); }
  .hero-side { min-height: 0; display: grid; gap: 28px; padding: 18px 6px 0; }
  .hero-side .p1, .hero-side .carbon { position: relative; top: auto; left: auto; right: auto; width: 100%; }
  .hero-side .carbon { width: 92%; margin-left: 4%; }
  .hero-side .c1 { top: -6px; }
  .hero-side .c2 { top: auto; bottom: 28%; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .company h1 { white-space: normal; }
  .brand span { display: none; }
  .tabs a { padding: 8px 2px; font-size: 0.8rem; }
  .brand span { display: none; }
  .head-play .t { display: none; }
  .board { padding: 46px 8px 8px; border-radius: 12px; transform: rotate(-0.8deg); }
  .fields { grid-template-columns: 1fr 1fr; }
  .field, .field--third { grid-column: span 1; }
  .field--full { grid-column: 1 / -1; }
  .fields .field { border-right: 2px solid var(--ink); }
  .fields .field:nth-child(even):not(.field--full) { border-right: 0; }
  .fields .field--full { border-right: 0; }
  .slips, .labels { grid-template-columns: 1fr; }
  .types { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .radio-box { grid-template-columns: auto 1fr; }
  .radio-box .demo-tag { grid-column: 1 / -1; justify-self: start; }
  .radio-line { white-space: normal; }
  .callout { font-size: 1.1rem; }
  .callout svg { width: 36px; height: 28px; }
  .foot-grid { grid-template-columns: 1fr; }
  .ledger ol { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; }
  .rank-btn { grid-template-columns: 1.8em 1fr; padding: 6px 2px; }
  .rank-btn .sw { display: none; }
  .rank-btn .nm { font-size: 0.95rem; }
  .sign-btn .scrawl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1.25rem; }
}

/* printed form titles: canary header band inside each sheet */
.form-head { background: var(--yellow); padding: clamp(16px, 2.4vw, 26px) clamp(16px, 2.6vw, 30px) clamp(14px, 2vw, 22px); border-bottom: 3px solid var(--ink); }
.form-title { font-family: var(--f-display); font-stretch: 64%; font-weight: 900; text-transform: uppercase; font-size: clamp(2.2rem, 4.8vw, 4.2rem); line-height: 0.9; color: var(--ink); margin: 0 0 10px; }
.form-head p { margin: 0; max-width: 62ch; color: var(--ink); font-size: clamp(1rem, 1.3vw, 1.12rem); }
.routing { margin-bottom: clamp(18px, 2.6vw, 28px); transform: rotate(-0.4deg); border-bottom: 0; }
.inventory > .form-head { grid-column: 1 / -1; }

/* how a job goes: one shift sheet */
.shift { overflow: hidden; }
.shift-rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.shift-row { display: grid; grid-template-columns: auto 170px minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px clamp(16px, 2.6vw, 30px); border-bottom: 1px solid var(--rule); }
.shift-row:nth-child(odd) { border-right: 1px dashed rgba(22,19,15,0.3); }
.shift-row:nth-last-child(-n+2) { border-bottom: 0; }
.shift-no { font-weight: 700; color: var(--pink-ink); font-size: 1.05rem; align-self: start; padding-top: 4px; }
.shift-row img { width: 170px; aspect-ratio: 4 / 3; object-fit: cover; border: 2px solid var(--ink); background: #222; }
.shift-row h3 { font-family: var(--f-display); font-stretch: 70%; font-weight: 900; text-transform: uppercase; font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 0.95; margin: 0 0 6px; }
.shift-row p { margin: 0; font-size: 0.97rem; color: var(--ink-soft); }
.shift-row p .hand { font-size: 1.2rem; }

.hall-copy { padding: 0; overflow: hidden; }
.hall-copy .ruled { margin: 0; }
.c-inv { right: -8px; top: 22%; flex-direction: row-reverse; transform: rotate(3deg); }
.c-inv svg { transform: scaleX(-1); }
@media (max-width: 1060px) { .c-inv { display: none; } }
@media (max-width: 900px) {
  .shift-rows { grid-template-columns: 1fr; }
  .shift-row:nth-child(odd) { border-right: 0; }
  .shift-row:nth-last-child(2) { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 640px) {
  .shift-row { grid-template-columns: auto minmax(0, 1fr); }
  .shift-row img { grid-column: 1 / -1; grid-row: 1; width: 100%; }
}

/* ===================== inner pages ===================== */
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 3vw, 36px); }
.page-title { font-family: var(--f-display); font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: clamp(3.4rem, 9vw, 7rem); line-height: 0.86; color: var(--paper); margin-bottom: 14px; }
.page-head .lede { margin: 0; }

/* wiki */
.wiki { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; padding-bottom: 90px; }
.wiki-side { position: sticky; top: 88px; }
.wiki-index { padding: 16px; transform: rotate(-0.6deg); }
.search { width: 100%; margin: 6px 0 4px; font: inherit; font-size: 1rem; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 6px; background: #fff; color: var(--ink); caret-color: var(--pink-ink); }
.search::placeholder { color: #6b604c; }
.search:focus { outline: 3px solid var(--ink); outline-offset: 1px; }
.wiki-count { min-height: 1.2em; margin: 2px 0 8px; font-size: 0.85rem; color: var(--ink-soft); }
.wiki-nav { list-style: none; margin: 0; padding: 0; counter-reset: s; max-height: calc(100vh - 260px); overflow: auto; }
.wiki-nav li { counter-increment: s; border-bottom: 1px solid var(--rule); }
.wiki-nav a { display: flex; gap: 10px; padding: 7px 4px; text-decoration: none; font-family: var(--f-display); font-stretch: 80%; font-weight: 800; text-transform: uppercase; font-size: 0.92rem; letter-spacing: 0.02em; }
.wiki-nav a::before { content: counter(s, decimal-leading-zero); font-family: var(--f-num); color: var(--ink-soft); font-weight: 400; font-size: 0.8rem; }
.wiki-nav a:hover { background: rgba(255,210,31,0.4); }
.wiki-nav a[aria-current] { background: var(--yellow); }
.wiki-body { display: grid; gap: clamp(22px, 3vw, 34px); min-width: 0; }
.wsec { padding: clamp(16px, 2.6vw, 28px); scroll-margin-top: 90px; }
.wsec--yellow { background-color: var(--paper); }
.wsec--pink { background-color: var(--paper); }
.wsec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 3px solid var(--ink); padding-bottom: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.wsec-head h2 { font-family: var(--f-display); font-stretch: 66%; font-weight: 900; text-transform: uppercase; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 0.95; }
.wsec-intro { margin: 0 0 14px; max-width: 72ch; color: var(--ink-soft); }
.tbl-wrap { overflow-x: auto; margin: 0 0 16px; -webkit-overflow-scrolling: touch; }
.tbl-wrap.has-more { -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); }
.wt { width: 100%; border-collapse: collapse; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.wt caption { text-align: left; font-family: var(--f-display); font-stretch: 80%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; color: var(--blue); padding: 6px 0; }
.wt th, .wt td { padding: 8px 10px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.wt thead th { font-family: var(--f-display); font-stretch: 80%; font-weight: 700; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 2px solid var(--ink); white-space: nowrap; vertical-align: bottom; }
.wt tbody th { font-weight: 700; white-space: nowrap; }
.wt .n { text-align: right; font-family: var(--f-num); white-space: nowrap; }
.wt tbody tr:hover { background: rgba(255,210,31,0.28); }
.wt .sub { display: block; font-weight: 400; font-size: 0.84rem; color: var(--ink-soft); white-space: normal; min-width: 18ch; }
.cell-img { display: inline-block; vertical-align: middle; margin-right: 10px; }
.cell-img img { width: 44px; height: 44px; border: 1.5px solid var(--ink); background: #fff; }
.sw-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ink); margin-right: 8px; vertical-align: -1px; }
.wlist { margin: 4px 0 12px; padding-left: 1.2em; color: var(--ink-soft); }
.wlist li { margin: 4px 0; }
.wnote { font-size: 0.88rem; color: var(--ink-soft); margin: 0; max-width: 72ch; }
.wdetails summary { cursor: pointer; font-family: var(--f-display); font-stretch: 80%; font-weight: 800; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.06em; color: var(--blue); }
.pill { display: inline-block; font-size: 0.68rem; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; background: var(--yellow); color: var(--ink); padding: 1px 6px; border-radius: 3px; vertical-align: 2px; }

/* leaderboards */
.lb-sheet { padding: clamp(16px, 3vw, 32px); }
.lb-top { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; border-bottom: 3px solid var(--ink); }
.folder-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.folder-tabs button { font: inherit; font-family: var(--f-display); font-stretch: 78%; font-weight: 800; text-transform: uppercase; font-size: 0.95rem; letter-spacing: 0.03em; padding: 10px 16px 9px; border: 2px solid var(--ink); border-bottom: 0; border-radius: 8px 8px 0 0; background: #efe6c2; color: var(--ink); cursor: pointer; transition: background 0.2s; }
.folder-tabs button:hover { background: #fff3a8; }
.folder-tabs button[aria-selected="true"] { background: var(--yellow); }
.lb-top .demo-tag { margin-bottom: 8px; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2vw, 20px); margin: 26px 0 18px; align-items: end; }
.podium-slip { position: relative; display: grid; gap: 2px; padding: 34px 16px 16px; background: var(--paper); box-shadow: var(--shadow-slip); min-width: 0; }
.podium-slip.p1 { background: var(--yellow); padding-top: 48px; order: 2; transform: rotate(-1deg); }
.podium-slip.p2 { order: 1; transform: rotate(1.2deg); }
.podium-slip.p3 { order: 3; transform: rotate(-0.6deg); }
.podium-stamp { position: absolute; top: 8px; right: 10px; font-size: 1.7rem; }
.podium-name { font-family: var(--f-display); font-stretch: 72%; font-weight: 900; text-transform: uppercase; font-size: clamp(1.2rem, 2.2vw, 1.7rem); line-height: 1; overflow-wrap: anywhere; }
.podium-slip .hand { font-size: 1.1rem; line-height: 1.15; }
.podium-val { font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.5rem); margin-top: 6px; }
.lb--full td { padding: 10px 6px; }
.lb-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px clamp(16px, 3vw, 32px); margin: 34px 0 90px; transform: rotate(0.6deg); }
.lb-cta h2 { font-family: var(--f-display); font-stretch: 66%; font-weight: 900; text-transform: uppercase; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 0.95; }

@media (max-width: 900px) {
  .wiki { grid-template-columns: 1fr; }
  .wiki-side { position: static; }
  .wiki-nav { display: flex; flex-wrap: wrap; gap: 4px; max-height: none; }
  .wiki-nav li { border: 0; }
  .wiki-nav a { border: 1.5px solid var(--ink); border-radius: 4px; padding: 4px 8px; font-size: 0.8rem; }
  .wiki-nav a::before { display: none; }
}
@media (max-width: 640px) {
  .podium { grid-template-columns: 1fr; }
  .podium-slip.p1, .podium-slip.p2, .podium-slip.p3 { order: 0; padding-top: 34px; }
  .folder-tabs button { font-size: 0.78rem; padding: 8px 10px 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .fact-tape-track { animation: none; }
  .js .drop { opacity: 1; transform: rotate(var(--r, 0deg)); }
}
