@layer reset, base, components, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, p, ol, dl, dd { margin: 0; }
  button, input { font: inherit; }
  button, a { -webkit-tap-highlight-color: transparent; }
  img, svg { display: block; max-width: 100%; }
}

/* Pass 2 — the page is one routed case, not a stack of themed panels. */
body::before {
  position: absolute;
  z-index: 0;
  opacity: .045;
}

body > header,
body > main,
body > footer { position: relative; z-index: 1; }

.ministry-header { position: relative; }
.progress-rule {
  position: fixed;
  inset: 0 0 auto;
  z-index: 110;
  height: 4px;
  background: transparent;
  pointer-events: none;
}

.load-sequence {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  visibility: visible;
}
.load-shutter {
  position: absolute;
  left: 0;
  width: 100%;
  height: 51%;
  background:
    repeating-linear-gradient(90deg, transparent 0 51px, rgba(238,228,200,.07) 51px 52px),
    var(--green-dark);
  transition: transform .72s cubic-bezier(.76, 0, .24, 1);
}
.load-shutter::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--manila);
  box-shadow: 0 0 0 1px var(--green-dark), 0 0 22px rgba(0,0,0,.35);
}
.load-shutter-top { top: 0; }
.load-shutter-top::after { bottom: 0; }
.load-shutter-bottom { bottom: 0; }
.load-shutter-bottom::after { top: 0; }
.load-sequence > b {
  position: relative;
  z-index: 2;
  min-width: 300px;
  padding: 16px 22px;
  color: var(--paper);
  border: 7px double currentColor;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 900;
  line-height: .9;
  text-align: center;
  transform: rotate(-6deg) scale(1.28);
  opacity: 0;
}
.load-sequence small {
  display: block;
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .16em;
}
.site-ready .load-shutter-top { transform: translateY(-102%); transition-delay: .28s; }
.site-ready .load-shutter-bottom { transform: translateY(102%); transition-delay: .28s; }
.site-ready .load-sequence { visibility: hidden; transition: visibility 0s 1.05s; }
.site-ready .load-sequence > b { animation: open-file .66s cubic-bezier(.1,.84,.18,1) both; }
@keyframes open-file {
  0% { opacity: 0; transform: rotate(-2deg) scale(1.75); }
  34%, 72% { opacity: 1; transform: rotate(-6deg) scale(1); }
  100% { opacity: 0; transform: rotate(-7deg) scale(.94); }
}

.load-piece { opacity: 0; animation: none; }
.site-ready .hero-copy { animation: copy-arrive .8s .46s cubic-bezier(.16,.8,.2,1) both; }
.site-ready .queue-machine { animation: machine-arrive .85s .52s cubic-bezier(.16,.8,.2,1) both; }
.site-ready .hero-ledger { animation: ledger-arrive .65s .68s cubic-bezier(.16,.8,.2,1) both; }
@keyframes copy-arrive { from { opacity: 0; transform: translate3d(-42px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes machine-arrive { from { opacity: 0; transform: translate3d(0, -52px, 0) rotate(-2deg); } to { opacity: 1; transform: rotate(.65deg); } }
@keyframes ledger-arrive { from { opacity: 0; transform: scaleX(.6); transform-origin: left; } to { opacity: 1; transform: scaleX(1); transform-origin: left; } }

.case-rail {
  position: fixed;
  z-index: 36;
  top: 28%;
  right: 0;
  width: 82px;
  color: var(--paper);
  background: var(--green-dark);
  border: 1px solid var(--paper);
  border-right: 0;
  box-shadow: -7px 9px 0 rgba(28,40,34,.18);
}
.case-rail-title {
  display: block;
  padding: 10px 8px;
  color: var(--green-dark);
  background: var(--manila);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.case-rail-title b { display: block; font-weight: 500; }
.case-rail ol { margin: 0; padding: 0; list-style: none; }
.case-step a {
  min-height: 58px;
  display: grid;
  grid-template-columns: 19px 1fr;
  align-content: center;
  gap: 1px 5px;
  padding: 7px;
  border-top: 1px solid rgba(238,228,200,.28);
  text-decoration: none;
}
.case-step span { grid-row: 1 / 3; color: #9fb2a3; font-size: 8px; }
.case-step b { font-size: 8px; text-transform: uppercase; }
.case-step strong { color: #aab6ab; font-size: 6px; letter-spacing: .08em; }
.case-step.is-active a { color: var(--ink); background: var(--paper); }
.case-step.is-active span, .case-step.is-active strong { color: var(--red); }
.case-step.is-complete a { color: var(--paper); background: var(--carbon); }
.case-step.is-complete strong { color: #dfe7cf; }
.case-step a:hover { filter: brightness(1.16); }

.file-chute {
  top: 92px;
  right: 94px;
  width: 166px;
  height: 214px;
  padding-top: 24px;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .25s ease, transform .35s cubic-bezier(.18,.8,.2,1);
}
.file-chute.has-files { opacity: 1; transform: none; }
.chute-label {
  position: absolute;
  inset: 0 0 auto;
  padding: 5px 8px;
  color: var(--paper);
  background: var(--green-dark);
  border: 1px solid var(--paper);
  font-size: 6px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.filing-stack { position: absolute; inset: 29px 4px 0; display: flex; flex-direction: column; justify-content: flex-end; }
.filed-record {
  height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  overflow: hidden;
  color: var(--ink);
  background: var(--manila);
  border: 0 solid var(--green-dark);
  font-size: 8px;
  transform: translateX(100%) rotate(4deg);
  transition: height .4s ease, transform .55s cubic-bezier(.18,.8,.2,1), border-width .1s ease;
}
.filed-record:nth-child(2n) { background: #d4d9bd; }
.filed-record.is-stacked { height: 36px; border-width: 1px 1px 0; transform: none; }
.filed-record b { font-family: var(--display); font-size: 12px; }
.filed-record small { font-size: 6px; letter-spacing: .1em; }

.checkpoint-strip {
  min-height: 54px;
  display: grid;
  grid-template-columns: .75fr 1.5fr .75fr;
  align-items: center;
  gap: 24px;
  padding: 9px clamp(22px, 6vw, 92px);
  color: var(--paper);
  background: var(--ink);
  border-bottom: 1px solid var(--green);
  font-style: normal;
}
.stamp-office > .checkpoint-strip { grid-column: 1 / -1; }
.checkpoint-strip span, .checkpoint-strip em { font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.checkpoint-strip b { font-size: 10px; font-weight: 500; }
.checkpoint-strip em { justify-self: end; padding: 5px 7px; color: var(--paper); background: var(--red); font-style: normal; font-weight: 700; transform: rotate(-1deg); }
.checkpoint-strip.is-cleared em { color: var(--green-dark); background: var(--manila); }
.checkpoint-strip.is-cleared { box-shadow: inset 6px 0 0 var(--manila); }

.entry-desk {
  grid-template-columns: minmax(0, .98fr) minmax(430px, .82fr);
  background:
    linear-gradient(90deg, rgba(74,93,79,.08) 1px, transparent 1px) 0 0 / 52px 100%,
    radial-gradient(ellipse at 72% 3%, rgba(255,255,225,.9) 0 7%, transparent 24%),
    linear-gradient(180deg, #f1f3e5 0%, var(--pallor) 66%, #cfd5c4 100%);
}
.entry-desk::before {
  content: '';
  position: absolute;
  left: 42%;
  top: 18px;
  width: min(36vw, 520px);
  height: 15px;
  background: #fbffe4;
  border: 1px solid rgba(74,93,79,.28);
  box-shadow: 0 0 48px 18px rgba(244,255,210,.46);
  transform: perspective(260px) rotateX(-62deg);
}
.hero-copy h1 { max-width: 760px; text-wrap: balance; }
.hero-wait {
  position: absolute;
  right: 2%;
  bottom: 0;
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  gap: 0 9px;
  padding: 8px 11px;
  color: var(--paper);
  background: var(--violet);
  box-shadow: 5px 6px 0 rgba(28,40,34,.18);
  transform: rotate(1.5deg);
}
.hero-wait span, .hero-wait em { font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }
.hero-wait b { grid-row: 1 / 3; grid-column: 2; font-family: var(--display); font-size: 29px; line-height: .9; }
.hero-wait em { font-style: normal; }
.queue-machine { width: min(100%, 560px); }
.queue-machine.is-processing .number-window { animation: window-flicker .36s steps(2,end) infinite; }
.queue-machine.has-called { box-shadow: 12px 14px 0 rgba(41,60,51,.17), inset 0 0 0 7px rgba(238,228,200,.5), 0 0 0 7px rgba(50,86,109,.22); }
@keyframes window-flicker { 50% { filter: brightness(.9); } }

.machine-header,
.number-window small,
.number-window span { font-size: 9px; }
.queue-status { font-size: 11px; }
.hero-ledger { font-size: 10px; }

.field-error { min-height: 22px; font-size: 11px; }
.field-error:not(:empty) {
  margin-top: 7px;
  padding: 7px 9px;
  color: #6e211f;
  background: rgba(163,61,56,.09);
  border-left: 4px solid var(--red);
}
.reason-fieldset.has-error { border-color: var(--red); box-shadow: inset 5px 0 0 rgba(163,61,56,.12); }
.official-form.is-filed { animation: accept-copy .5s cubic-bezier(.15,.8,.2,1); }
.official-form.is-filed::after { animation: receipt-slam .48s cubic-bezier(.1,.8,.16,1) both; }
.submit-dossier:disabled { cursor: default; filter: saturate(.55); }
@keyframes accept-copy { 45% { transform: translateY(7px) rotate(.25deg); } }
@keyframes receipt-slam { from { opacity: 0; transform: translate(-50%, -50%) rotate(-2deg) scale(1.75); } to { opacity: 1; transform: translate(-50%, -50%) rotate(-11deg) scale(1); } }

.stamp-route {
  position: absolute;
  z-index: 1;
  left: 10%;
  right: 12%;
  top: 49%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  color: rgba(238,228,200,.7);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .15em;
}
.stamp-route i { height: 2px; background: repeating-linear-gradient(90deg, currentColor 0 7px, transparent 7px 13px); }
.stamp-route i::after { content: '>'; float: right; margin-top: -10px; font-style: normal; font-size: 14px; }
.stamp-stage.is-armed .stamp-route { color: #ead5ee; animation: route-pulse .8s ease-in-out infinite alternate; }
.stamp-stage.is-armed .approval-target { background: rgba(104,76,103,.1); box-shadow: 0 0 0 8px rgba(104,76,103,.08); }
.stamp-stage.is-approved { animation: desk-thump .38s cubic-bezier(.16,.8,.2,1); }
.is-dragging-stamp { user-select: none; }
@keyframes route-pulse { to { opacity: .45; } }
@keyframes desk-thump { 35% { transform: translateY(7px); } }

.administrative-rebuke { animation: administrative-rebuke .52s cubic-bezier(.36,.07,.19,.97); }
@keyframes administrative-rebuke {
  20%, 60% { transform: translateX(-7px); }
  40%, 80% { transform: translateX(7px); }
}
.lunch-plaque.is-relocated { animation: plaque-arrives .58s cubic-bezier(.1,.8,.2,1) both; }
@keyframes plaque-arrives { from { opacity: 0; transform: translate3d(-80px,-36px,0) rotate(-18deg) scale(1.25); } to { opacity: 1; transform: rotate(-6deg); } }

.door-window { font-size: 9px; }
.corridor-response span, .corridor-response b { font-size: 9px; }
.chart-node small, .loop-label { font-size: 8px; }
.chart-node span, .chart-header span, .property-header span, .property-header b { font-size: 9px; }
.property-footnote { font-size: 10px; }

.guide-page body::before { position: absolute; }
.guide-page .ministry-header { position: relative; }
.guide-section-copy p { font-size: 14px; line-height: 1.65; }
.guide-section h2 { text-wrap: balance; }

@media (max-width: 1100px) {
  .entry-desk { grid-template-columns: minmax(0, .95fr) minmax(350px, .9fr); }
  .case-rail { width: 72px; }
  .file-chute { right: 80px; }
  .hero-wait { display: none; }
}

@media (max-width: 760px) {
  body { padding-bottom: 0; }
  .load-sequence > b { min-width: 260px; font-size: 28px; }
  .case-rail {
    position: relative;
    z-index: 3;
    top: auto;
    right: auto;
    width: 100%;
    border: 0;
    box-shadow: none;
  }
  .case-rail-title { display: none; }
  .case-rail ol { display: grid; grid-template-columns: repeat(4, 1fr); }
  .case-step a {
    min-height: 52px;
    grid-template-columns: 17px 1fr;
    padding: 6px 8px;
    border-top: 0;
    border-right: 1px solid rgba(238,228,200,.24);
  }
  .case-step b { font-size: 7px; }
  .case-step strong { font-size: 6px; }
  .file-chute { top: 72px; right: 6px; width: 132px; transform: scale(.8) translateY(-12px); transform-origin: top right; }
  .file-chute.has-files { transform: scale(.8); }
  .checkpoint-strip {
    min-height: 74px;
    grid-template-columns: 1fr auto;
    gap: 5px 12px;
    padding: 10px 18px;
  }
  .checkpoint-strip b { grid-column: 1 / -1; grid-row: 2; font-size: 9px; }
  .checkpoint-strip em { grid-column: 2; grid-row: 1; max-width: 132px; text-align: right; }
  .entry-desk { padding: 30px 14px 28px; }
  .entry-desk::before { left: 22%; width: 72vw; top: 6px; }
  .hero-copy { padding-bottom: 30px; }
  .department-line { margin-bottom: 13px; font-size: 8px; }
  .hero-copy h1 { font-size: clamp(55px, 17vw, 68px); line-height: .76; }
  .hero-deck { margin-top: 21px; margin-left: 4%; font-size: 12px; }
  .desk-route { min-height: 46px; margin-top: 15px; margin-left: 4%; }
  .desk-route b { width: 44px; height: 44px; }
  .queue-machine { min-height: 520px; margin-bottom: 38px; padding: 25px 20px; }
  .queue-machine h2 { margin: 17px 0; font-size: 22px; }
  .number-window { min-height: 118px; border-width: 6px; }
  .ticket-lever { min-height: 58px; margin-top: 17px; }
  .queue-status { min-height: 58px; margin-top: 16px; padding-right: 120px; font-size: 10px; }
  .paper-ticket { right: 25px; bottom: 25px; }
  .hero-ledger { padding-top: 15px; font-size: 9px; }
  .docket-ribbon { min-height: 58px; }
  .permit-layout { padding-top: 58px; }
  .permit-intro h2,
  .corridor-heading h2,
  .records-heading h2,
  .final-desk h2 { letter-spacing: -.065em; }
  .form-field label, .reason-fieldset legend { font-size: 11px; }
  .stamp-stage { min-height: 760px; }
  .stamp-route { left: 7%; right: 6%; top: 77%; }
  .corridor-section { padding: 0 0 76px; }
  .corridor-heading { margin: 0 18px 36px; padding-top: 66px; }
  .doors {
    min-width: 0;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 18px 28px;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-color: var(--green) transparent;
  }
  .door,
  .door:last-child {
    flex: 0 0 148px;
    width: 148px;
    min-height: 292px;
    scroll-snap-align: center;
  }
  .doors::before { bottom: -42px; }
  .corridor-response { margin: 34px 18px 0; }
  .door-window { font-size: 9px; }
  .guide-section-copy p { font-size: 14px; }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .case-rail {
    position: relative;
    z-index: 3;
    top: auto;
    right: auto;
    width: 100%;
    border: 0;
    box-shadow: none;
  }
  .case-rail-title { display: none; }
  .case-rail ol { display: grid; grid-template-columns: repeat(4, 1fr); }
  .case-step a {
    min-height: 52px;
    grid-template-columns: 20px 1fr;
    padding: 7px 18px;
    border-top: 0;
    border-right: 1px solid rgba(238,228,200,.24);
  }
  .file-chute { right: 8px; }
}

@media (max-width: 760px) {
  .queue-machine { padding-top: 22px; }
  .queue-machine h2 { font-size: 21px; line-height: .98; }
  .number-window { min-height: 105px; }
}

@media (prefers-reduced-motion: reduce) {
  .load-sequence { display: none; }
  .load-piece { opacity: 1; }
  .filed-record { transition: none; }
  .queue-machine.is-processing .number-window,
  .stamp-stage.is-armed .stamp-route { animation: none; }
}

@layer base {
  :root {
    --manila: #d9c9a3;
    --paper: #eee4c8;
    --pallor: #e7ead8;
    --green: #4a5d4f;
    --green-dark: #293c33;
    --ink: #1c2822;
    --red: #a33d38;
    --violet: #684c67;
    --carbon: #32566d;
    --rule: rgba(28, 40, 34, .33);
    --shadow: rgba(26, 31, 27, .22);
    --display: 'Archivo', sans-serif;
    --mono: 'IBM Plex Mono', monospace;
  }

  html { background: var(--green-dark); color: var(--ink); }
  body {
    min-width: 320px;
    overflow-x: clip;
    background: var(--manila);
    font-family: var(--mono);
    font-size: 16px;
    line-height: 1.55;
  }

  body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 20;
    pointer-events: none;
    opacity: .07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.73' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  }

  a { color: inherit; }
  button { color: inherit; }
  ::selection { color: var(--paper); background: var(--violet); }
  :focus-visible { outline: 3px solid #f2c84b; outline-offset: 4px; }
  section { scroll-margin-top: 78px; }

  .skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100;
    padding: 12px 16px;
    color: var(--paper);
    background: var(--ink);
    transform: translateY(-150%);
  }
  .skip-link:focus { transform: translateY(0); }
}

@layer components {
  .ministry-header {
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: 70px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 clamp(18px, 3vw, 54px);
    color: var(--paper);
    background: var(--green);
    border-bottom: 1px solid rgba(238, 228, 200, .5);
    box-shadow: 0 8px 24px rgba(27, 42, 34, .18);
  }

  .bureau-mark { display: inline-flex; align-items: center; gap: 12px; width: max-content; text-decoration: none; }
  .bureau-seal, .footer-seal {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-family: var(--display);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -.08em;
    box-shadow: inset 0 0 0 3px var(--green), inset 0 0 0 4px currentColor;
  }
  .bureau-name { font-family: var(--display); font-size: 11px; font-weight: 700; line-height: 1.05; letter-spacing: .05em; text-transform: uppercase; }
  .primary-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); }
  .primary-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    position: relative;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
  }
  .primary-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 8px; height: 2px; background: var(--paper); transition: right .25s ease; }
  .primary-nav a:hover::after, .primary-nav a:focus-visible::after { right: 0; }
  .file-status { justify-self: end; display: flex; align-items: center; gap: 12px; font-size: 10px; letter-spacing: .1em; }
  .file-status strong { display: grid; place-items: center; min-width: 48px; height: 32px; color: var(--green-dark); background: var(--manila); font-size: 12px; box-shadow: 3px 3px 0 rgba(0, 0, 0, .18); }
  .progress-rule { position: sticky; top: 70px; z-index: 41; height: 3px; background: var(--green-dark); }
  .progress-rule span { display: block; width: 0; height: 100%; background: var(--red); transition: width .7s cubic-bezier(.2, .8, .2, 1); }

  .file-chute { position: fixed; z-index: 39; top: 88px; right: 12px; width: 122px; height: 160px; overflow: hidden; pointer-events: none; }
  .flying-file {
    --i: 0;
    position: absolute;
    top: calc(var(--i) * 9px);
    right: 0;
    width: 108px;
    height: 66px;
    padding: 9px;
    color: var(--ink);
    background: var(--manila);
    border: 1px solid var(--green-dark);
    box-shadow: 4px 5px 0 rgba(30, 43, 36, .25);
    font-size: 10px;
    font-weight: 700;
    animation: file-cascade 1.7s var(--delay) cubic-bezier(.12, .74, .2, 1) both;
  }
  .flying-file::before { content: ''; position: absolute; top: -9px; left: 8px; width: 38px; height: 9px; background: inherit; border: inherit; border-bottom: 0; }
  @keyframes file-cascade { from { opacity: 0; transform: translate3d(140%, -130px, 0) rotate(18deg); } 55% { opacity: 1; } to { opacity: 0; transform: translate3d(0, 22px, 0) rotate(var(--tilt)); } }

  .entry-desk {
    position: relative;
    min-height: min(940px, calc(100dvh - 73px));
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(380px, .75fr);
    grid-template-rows: 1fr auto;
    gap: clamp(30px, 5vw, 96px);
    padding: clamp(52px, 7vh, 96px) clamp(22px, 6vw, 92px) 38px;
    color: var(--ink);
    background:
      linear-gradient(90deg, rgba(74, 93, 79, .08) 1px, transparent 1px) 0 0 / 52px 100%,
      linear-gradient(180deg, #edf0df 0%, var(--pallor) 72%, #d5d9ca 100%);
  }
  .entry-desk::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(167deg, transparent 49.8%, rgba(67, 81, 69, .16) 50%, rgba(67, 81, 69, .05) 50.4%, transparent 50.6%); pointer-events: none; }
  .corridor-perspective { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: .27; }
  .corridor-perspective span { position: absolute; left: 53%; top: 0; width: 1px; height: 150%; transform-origin: 50% 0; background: var(--green); }
  .corridor-perspective span:nth-child(1) { transform: rotate(30deg); }
  .corridor-perspective span:nth-child(2) { transform: rotate(17deg); }
  .corridor-perspective span:nth-child(3) { transform: rotate(-17deg); }
  .corridor-perspective span:nth-child(4) { transform: rotate(-30deg); }
  .corridor-perspective span:nth-child(5) { top: 54%; left: 0; width: 100%; height: 1px; }

  .load-piece { animation: arrive .9s cubic-bezier(.18, .8, .2, 1) both; }
  .queue-machine { animation-delay: 120ms; }
  .hero-ledger { animation-delay: 240ms; }
  @keyframes arrive { from { opacity: .22; transform: translateY(22px); } to { opacity: 1; transform: none; } }

  .hero-copy { position: relative; z-index: 2; align-self: center; max-width: 780px; padding-bottom: 50px; }
  .department-line { display: inline-block; margin-bottom: 22px; padding: 5px 9px; color: var(--paper); background: var(--carbon); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; transform: rotate(-1deg); }
  .hero-copy h1 { max-width: 900px; font-family: var(--display); font-size: clamp(66px, 9.1vw, 150px); font-weight: 900; line-height: .76; letter-spacing: -.085em; text-transform: uppercase; }
  .hero-deck { max-width: 570px; margin: 38px 0 0 clamp(0px, 7vw, 110px); padding-left: 22px; border-left: 5px solid var(--red); font-size: clamp(14px, 1.15vw, 18px); font-weight: 500; }
  .desk-route { width: max-content; min-height: 52px; margin: 30px 0 0 clamp(0px, 7vw, 110px); display: inline-flex; align-items: center; gap: 26px; color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
  .desk-route b { width: 48px; height: 48px; display: grid; place-items: center; color: var(--paper); background: var(--green); font-size: 20px; transition: transform .25s ease; }
  .desk-route:hover b { transform: translateY(6px); }
  .hero-number { position: absolute; z-index: 0; right: -18px; bottom: -48px; color: rgba(74, 93, 79, .09); font-family: var(--display); font-size: clamp(180px, 29vw, 460px); font-weight: 900; line-height: .8; letter-spacing: -.12em; }

  .queue-machine {
    position: relative;
    z-index: 3;
    align-self: center;
    width: min(100%, 520px);
    min-height: 600px;
    padding: 38px clamp(24px, 3vw, 46px);
    background: var(--manila);
    border: 2px solid var(--green-dark);
    box-shadow: 12px 14px 0 rgba(41, 60, 51, .17), inset 0 0 0 7px rgba(238, 228, 200, .5);
    transform: rotate(.6deg);
  }
  .queue-machine::after { content: 'TICKET OUTPUT / Q SERIES'; position: absolute; right: 46px; bottom: 55px; color: rgba(28, 40, 34, .64); font-size: 7px; font-weight: 700; letter-spacing: .12em; transition: opacity .2s ease; }
  .queue-machine:has(.paper-ticket.is-issued)::after { opacity: 0; }
  .machine-screws i { position: absolute; width: 9px; height: 9px; border: 1px solid var(--green-dark); border-radius: 50%; background: #aeb49b; box-shadow: inset 1px 1px 1px rgba(255,255,255,.7); }
  .machine-screws i:nth-child(1) { top: 13px; left: 13px; }.machine-screws i:nth-child(2) { top: 13px; right: 13px; }.machine-screws i:nth-child(3) { bottom: 13px; left: 13px; }.machine-screws i:nth-child(4) { right: 13px; bottom: 13px; }
  .machine-header { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 11px; border-bottom: 3px double var(--green-dark); font-size: 9px; font-weight: 700; letter-spacing: .13em; }
  .queue-machine h2 { max-width: 390px; margin: 24px 0; font-family: var(--display); font-size: clamp(24px, 2.2vw, 36px); line-height: 1.02; text-transform: uppercase; }
  .number-window { min-height: 150px; display: grid; place-items: center; align-content: center; padding: 17px; color: #dbe5cc; background: #263d32; border: 8px solid #89937c; box-shadow: inset 0 0 22px #07170f, 4px 5px 0 rgba(42, 57, 48, .22); text-align: center; text-shadow: 0 0 9px rgba(214, 235, 187, .55); }
  .number-window small, .number-window span { font-size: 8px; letter-spacing: .18em; }
  .number-window strong { display: block; color: #eff8d9; font-family: var(--display); font-size: clamp(46px, 4.5vw, 72px); line-height: .95; letter-spacing: .04em; transition: color .2s ease, text-shadow .2s ease; }
  .number-window strong.is-called { color: #f4d36e; text-shadow: 0 0 18px rgba(244, 211, 110, .85); animation: number-call .32s ease 3; }
  @keyframes number-call { 50% { transform: scale(1.04); } }
  .ticket-lever { position: relative; width: 100%; min-height: 62px; margin-top: 22px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; color: var(--paper); background: var(--red); border: 0; box-shadow: 0 7px 0 #682d2b; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
  .ticket-lever:hover { transform: translateY(2px); box-shadow: 0 5px 0 #682d2b; }
  .ticket-lever:active, .ticket-lever.is-pulled { transform: translateY(6px); box-shadow: 0 1px 0 #682d2b; }
  .ticket-lever:disabled { cursor: wait; opacity: .92; }
  .lever-label { font-size: 13px; font-weight: 700; letter-spacing: .13em; }
  .lever-slot { width: 74px; height: 9px; background: #4b1e1d; border: 2px solid #c26861; box-shadow: inset 0 2px 4px rgba(0,0,0,.65); }
  .paper-ticket { position: absolute; z-index: 4; right: 44px; bottom: 35px; width: 122px; height: 0; overflow: hidden; padding: 0 12px; display: grid; align-content: center; justify-items: center; color: var(--ink); background: var(--paper); border: 1px dashed var(--ink); box-shadow: 5px 7px 0 rgba(30, 40, 34, .16); text-align: center; transition: height .65s cubic-bezier(.18,.8,.2,1), padding .65s ease; transform: rotate(2deg); }
  .paper-ticket.is-issued { height: 110px; padding-block: 10px; }
  .paper-ticket small, .paper-ticket span { font-size: 7px; }
  .paper-ticket b { font-family: var(--display); font-size: 30px; }
  .queue-status { min-height: 45px; margin-top: 18px; padding-right: 142px; font-size: 10px; line-height: 1.4; }
  .hero-ledger { position: relative; z-index: 2; grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr; align-items: center; gap: 11px 16px; padding-top: 22px; border-top: 1px solid var(--green); font-size: 9px; letter-spacing: .08em; }
  .hero-ledger span { color: var(--green); font-weight: 700; }
  .hero-ledger b { font-weight: 500; }

  .docket-ribbon { min-height: 58px; display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; padding-inline: clamp(22px, 6vw, 92px); color: var(--paper); background: var(--carbon); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-size: 10px; letter-spacing: .08em; }
  .docket-ribbon span:nth-child(2) { text-align: center; }.docket-ribbon span:last-child { text-align: right; }
  .permit-section { background: var(--manila); }
  .permit-layout { display: grid; grid-template-columns: minmax(260px, .6fr) minmax(0, 1.4fr); gap: clamp(40px, 7vw, 120px); padding: clamp(72px, 10vw, 150px) clamp(22px, 6vw, 92px); }
  .permit-intro { align-self: start; position: sticky; top: 130px; }
  .eyebrow { margin-bottom: 18px; color: var(--carbon); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
  .permit-intro h2, .corridor-heading h2, .records-heading h2, .final-desk h2 { font-family: var(--display); font-size: clamp(46px, 6vw, 88px); font-weight: 800; line-height: .92; letter-spacing: -.055em; text-transform: uppercase; }
  .permit-intro > p:not(.eyebrow) { max-width: 440px; margin-top: 28px; font-size: 14px; }
  .clerk-note { max-width: 320px; margin: 62px 0 0 16%; padding: 20px 22px; color: var(--carbon); border: 2px solid currentColor; transform: rotate(-3deg); }
  .clerk-note span { font-size: 9px; font-weight: 700; letter-spacing: .14em; }
  .clerk-note p { margin: 12px 0 16px; font-size: 12px; }.clerk-note b { font-size: 10px; }

  .official-form { position: relative; padding: clamp(28px, 4vw, 58px); background: var(--paper); border: 1px solid var(--ink); box-shadow: 10px 13px 0 rgba(42, 54, 47, .16), 20px 27px 0 rgba(89, 99, 87, .11); }
  .official-form::before, .official-form::after { content: ''; position: absolute; top: 10px; bottom: -20px; z-index: -1; width: 100%; border: 1px solid rgba(28,40,34,.35); background: #d7dcb9; }
  .official-form::before { left: 10px; }.official-form::after { left: 20px; bottom: -34px; background: #b8c7ce; }
  .form-heading { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding-bottom: 22px; border-bottom: 4px double var(--ink); }
  .coat-mark { width: 56px; height: 56px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--ink); }
  .coat-mark span { font-family: var(--display); font-size: 17px; font-weight: 900; }
  .form-heading small { display: block; font-size: 8px; letter-spacing: .12em; }.form-heading strong { font-family: var(--display); font-size: clamp(16px, 2vw, 25px); line-height: 1; }
  .form-heading > b { align-self: start; padding: 5px 7px; color: var(--paper); background: var(--violet); font-size: 8px; letter-spacing: .1em; transform: rotate(2deg); }
  .field-row { display: grid; gap: 24px; }.field-row.two-up { grid-template-columns: 1fr .45fr; }
  .form-field { margin-top: 34px; }
  .form-field label, .reason-fieldset legend { display: block; margin-bottom: 9px; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
  .form-field label span, .reason-fieldset legend span { color: var(--red); }
  .form-field input { width: 100%; min-height: 48px; padding: 8px 10px; color: var(--carbon); background: transparent; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; font-size: 19px; font-weight: 600; }
  .form-field input:focus { background: rgba(50, 86, 109, .08); outline: 3px solid var(--carbon); outline-offset: 2px; }
  .form-field input[aria-invalid="true"] { border-color: var(--red); }
  .form-field small { display: block; margin-top: 8px; color: #405248; font-size: 9px; }
  .field-error { min-height: 19px; margin-top: 5px; color: #7d2725; font-size: 10px; font-weight: 600; }
  .reason-fieldset { margin: 34px 0 0; padding: 22px; border: 1px solid var(--ink); }
  .reason-fieldset label { min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 5px 0; border-bottom: 1px dotted var(--rule); font-size: 11px; }
  .reason-fieldset input, .certification input { width: 20px; height: 20px; accent-color: var(--carbon); flex: 0 0 auto; }
  .certification { min-height: 52px; margin-top: 24px; display: flex; align-items: center; gap: 12px; font-size: 10px; font-weight: 600; }
  .form-action-row { margin-top: 24px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; padding-top: 22px; border-top: 3px double var(--ink); }
  .form-action-row p { color: #3e4c44; font-size: 9px; }
  .submit-dossier { min-width: 230px; min-height: 58px; position: relative; overflow: hidden; color: var(--paper); background: var(--carbon); border: 0; cursor: pointer; box-shadow: 5px 6px 0 #213e50; font-size: 11px; font-weight: 700; letter-spacing: .1em; }
  .submit-dossier i { position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent 0 8px, rgba(255,255,255,.1) 8px 10px); transform: translateX(-100%); transition: transform .5s ease; }.submit-dossier:hover i { transform: translateX(0); }.submit-dossier:active { transform: translateY(4px); box-shadow: 2px 2px 0 #213e50; }
  .official-form.is-filed::after { content: 'RECEIVED'; position: absolute; z-index: 2; left: 47%; top: 47%; width: auto; height: auto; padding: 8px 16px; color: rgba(163, 61, 56, .75); background: transparent; border: 5px double currentColor; font-family: var(--display); font-size: clamp(30px, 5vw, 64px); font-weight: 900; transform: translate(-50%, -50%) rotate(-11deg); pointer-events: none; }

  .stamp-office { display: grid; grid-template-columns: .62fr 1.38fr; min-height: 880px; color: var(--paper); background: var(--green-dark); }
  .stamp-intro { padding: clamp(72px, 9vw, 140px) clamp(26px, 6vw, 92px); align-self: center; }
  .stamp-code { display: inline-block; margin-bottom: 28px; padding-bottom: 6px; border-bottom: 2px solid var(--red); font-size: 9px; letter-spacing: .15em; }
  .stamp-intro h2 { font-family: var(--display); font-size: clamp(54px, 6.3vw, 100px); font-weight: 800; line-height: .83; letter-spacing: -.06em; text-transform: uppercase; }
  .stamp-intro > p:not(.stamp-code) { max-width: 490px; margin-top: 32px; color: #d5d9c6; font-size: 13px; }
  .stamp-instruction { max-width: 410px; min-height: 74px; margin-top: 46px; display: grid; grid-template-columns: 56px 1fr; grid-template-rows: 1fr 1fr; align-items: center; border: 1px solid rgba(238,228,200,.55); }
  .stamp-instruction span { grid-row: 1 / 3; display: grid; place-items: center; align-self: stretch; color: var(--green-dark); background: var(--manila); font-family: var(--display); font-size: 24px; font-weight: 900; }
  .stamp-instruction b, .stamp-instruction strong { padding-left: 15px; font-size: 9px; letter-spacing: .12em; }.stamp-instruction strong { color: #dfb1bf; }
  .stamp-stage { position: relative; min-height: 880px; overflow: hidden; background: repeating-linear-gradient(90deg, #758272 0 2px, #7e8b7a 2px 80px); border-left: 1px solid var(--paper); touch-action: none; }
  .desk-mat-label { position: absolute; top: 26px; left: 32px; font-size: 9px; letter-spacing: .18em; color: rgba(238,228,200,.8); }
  .ink-pad { position: absolute; left: 9%; bottom: 10%; width: 230px; height: 180px; display: grid; place-items: center; align-content: center; color: var(--paper); background: #3f2a40; border: 12px solid #bea993; box-shadow: 12px 14px 0 rgba(30, 38, 31, .35), inset 0 0 0 5px #5f415e; transform: rotate(-2deg); }
  .ink-pad span { position: relative; z-index: 2; font-size: 8px; letter-spacing: .13em; }.ink-pad i { width: 135px; height: 85px; margin-top: 10px; border-radius: 50%; background: var(--violet); box-shadow: inset 0 0 22px #281d28; }
  .ink-pad.was-used i { animation: ink-press .48s ease; }
  @keyframes ink-press { 50% { transform: scale(.92); filter: brightness(1.28); } }
  .approval-sheet { position: absolute; top: 8%; right: 7%; width: min(55%, 600px); min-height: 700px; padding: clamp(26px, 4vw, 52px); color: var(--ink); background: var(--paper); border: 1px solid var(--ink); box-shadow: 16px 18px 0 rgba(28,40,34,.28); transform: rotate(1.2deg); }
  .approval-head { display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 4px double var(--ink); font-size: 9px; }.approval-sheet h3 { max-width: 450px; margin: 32px 0 34px; font-family: var(--display); font-size: clamp(28px, 3vw, 42px); line-height: .98; text-transform: uppercase; }
  .approval-sheet dl div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid var(--rule); font-size: 10px; }.approval-sheet dt { font-weight: 700; }.approval-sheet dd { color: var(--carbon); }
  .approval-target { min-height: 170px; margin-top: 36px; display: grid; place-items: center; padding: 24px; border: 3px dashed rgba(104,76,103,.58); color: var(--violet); text-align: center; font-size: 9px; font-weight: 700; letter-spacing: .1em; }
  .final-imprint { position: absolute; left: 48%; bottom: 13%; display: none; padding: 9px 17px; color: rgba(104,76,103,.82); border: 7px double currentColor; font-family: var(--display); font-size: clamp(28px, 4.2vw, 62px); font-weight: 900; line-height: .8; text-align: center; transform: translateX(-50%) rotate(-9deg); }.final-imprint small { display: block; margin-top: 8px; font-family: var(--mono); font-size: 8px; letter-spacing: .15em; }
  .stamp-stage.is-approved .final-imprint { display: block; animation: slam-mark .35s cubic-bezier(.1,.8,.2,1) both; }.stamp-stage.is-approved .approval-target { opacity: .12; }
  @keyframes slam-mark { from { opacity: 0; transform: translateX(-50%) scale(1.7) rotate(-4deg); filter: blur(2px); } to { opacity: 1; transform: translateX(-50%) scale(1) rotate(-9deg); filter: none; } }
  .rubber-stamp { position: absolute; z-index: 5; left: 10%; top: 18%; width: 150px; height: 190px; padding: 0; background: transparent; border: 0; cursor: grab; filter: drop-shadow(9px 12px 5px rgba(24,31,26,.38)); touch-action: none; }
  .rubber-stamp.is-dragging { cursor: grabbing; transform: scale(1.05) rotate(2deg); }
  .stamp-handle { position: absolute; left: 46px; top: 0; width: 58px; height: 100px; border-radius: 40px 40px 12px 12px; background: linear-gradient(90deg, #693f2f, #aa7854 46%, #5e372a); border: 2px solid #3f281e; }
  .stamp-neck { position: absolute; left: 31px; top: 85px; width: 88px; height: 44px; background: #806049; border: 2px solid #3f281e; }
  .stamp-base { position: absolute; left: 8px; bottom: 8px; width: 134px; height: 66px; display: grid; place-items: center; color: var(--paper); background: #38251f; border: 6px solid #8f6a4d; font-family: var(--display); font-size: 27px; font-weight: 900; }
  .rubber-stamp.is-inked .stamp-base { box-shadow: inset 0 -7px 0 var(--violet); }.rubber-stamp.has-slammed { opacity: .42; transform: rotate(-8deg); }

  .corridor-section { min-height: 980px; padding: clamp(78px, 9vw, 138px) clamp(22px, 5vw, 76px); background: linear-gradient(180deg, #e6eadc, #cbd1bf); overflow: hidden; }
  .corridor-heading { display: grid; grid-template-columns: 1.3fr .7fr; gap: 60px; align-items: end; max-width: 1500px; margin: 0 auto 80px; }
  .corridor-heading h2 { max-width: 900px; }.corridor-heading > p { max-width: 470px; padding: 24px 0 10px 24px; border-left: 4px solid var(--red); font-size: 13px; }
  .doors { position: relative; max-width: 1500px; min-width: 940px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(10px, 1.5vw, 25px); perspective: 1200px; }
  .doors::before { content: ''; position: absolute; left: -15vw; right: -15vw; bottom: -100px; height: 160px; background: repeating-linear-gradient(90deg, rgba(74,93,79,.2) 0 2px, transparent 2px 90px); transform: perspective(300px) rotateX(70deg); }
  .door { position: relative; min-height: 490px; padding: 0; overflow: hidden; color: var(--paper); background: #52675a; border: 9px solid #9aa891; border-bottom-width: 18px; cursor: pointer; transform-origin: left center; box-shadow: inset 0 0 0 2px var(--green-dark), 10px 13px 0 rgba(53,68,57,.2); transition: transform .55s cubic-bezier(.2,.78,.2,1), filter .3s ease; }
  .door:hover { filter: brightness(1.08); transform: translateY(-8px); }.door:active { transform: translateY(2px); }.door.is-open { transform: perspective(900px) rotateY(-21deg); filter: brightness(1.16); }
  .door::before, .door::after { content: ''; position: absolute; left: 14%; right: 14%; border: 2px solid rgba(37,53,43,.75); box-shadow: inset 5px 6px 0 rgba(34,49,39,.15); }.door::before { top: 38%; height: 20%; }.door::after { top: 63%; bottom: 7%; }
  .door-number { position: absolute; top: 4%; left: 0; right: 0; font-family: var(--display); font-size: clamp(56px, 5vw, 88px); font-weight: 900; line-height: 1; }
  .door-window { position: absolute; z-index: 2; top: 25%; left: 8%; right: 8%; min-height: 46px; display: grid; place-items: center; padding: 7px; color: var(--ink); background: var(--paper); border: 4px solid #273b30; font-size: 8px; font-weight: 700; line-height: 1.2; letter-spacing: .05em; text-transform: uppercase; }
  .door-handle { position: absolute; z-index: 3; right: 13%; top: 56%; width: 25px; height: 25px; border-radius: 50%; background: #242d28; border: 4px solid #aeb090; box-shadow: 0 0 0 3px #35493c; }
  .lunch-plaque { position: absolute; z-index: 5; top: 47%; left: 6%; right: 6%; padding: 10px 4px; color: var(--paper); background: var(--red); border: 2px solid var(--paper); box-shadow: 5px 6px 0 rgba(0,0,0,.25); font-size: 10px; font-weight: 700; letter-spacing: .12em; transform: rotate(-6deg); }
  .corridor-response { position: relative; z-index: 2; max-width: 890px; margin: 86px auto 0; display: grid; grid-template-columns: .35fr 1fr .55fr; gap: 24px; align-items: center; padding: 24px 28px; color: var(--paper); background: var(--carbon); box-shadow: 9px 10px 0 rgba(39,59,49,.18); }.corridor-response span, .corridor-response b { font-size: 8px; letter-spacing: .12em; }.corridor-response p { font-size: 12px; }.corridor-response b { text-align: right; }

  .regulations { padding: clamp(82px, 10vw, 160px) clamp(22px, 7vw, 110px); background-color: var(--paper); background-image: linear-gradient(rgba(50,86,109,.13) 1px, transparent 1px); background-size: 100% 32px; }
  .regulation-title-block { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 70px); max-width: 1450px; margin: 0 auto 90px; }.giant-section-mark { color: var(--red); font-family: var(--display); font-size: clamp(140px, 22vw, 320px); font-weight: 900; line-height: .62; }.regulation-title-block p { margin-bottom: 14px; color: var(--carbon); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }.regulation-title-block h2 { max-width: 980px; min-width: 0; font-family: var(--display); font-size: clamp(50px, 7.3vw, 112px); font-weight: 800; line-height: .85; letter-spacing: -.06em; text-transform: uppercase; }
  .regulation-columns { max-width: 1450px; margin: 0 auto; display: grid; grid-template-columns: 1.12fr .92fr 1.05fr .78fr; gap: 0; border-top: 3px double var(--ink); border-bottom: 3px double var(--ink); }.regulation-columns article, .margin-ruling { min-height: 310px; padding: 30px; border-right: 1px solid var(--ink); }.regulation-columns article:nth-child(2) { background: rgba(74, 93, 79, .07); }.regulation-columns h3 { margin-bottom: 22px; font-family: var(--display); font-size: 20px; text-transform: uppercase; }.regulation-columns p { font-size: 12px; }.regulation-columns article p + p { margin-top: 18px; }.redacted span { color: transparent; background: var(--ink); }.margin-ruling { color: var(--paper); background: var(--violet); border-right: 0; transform: rotate(1.4deg); }.margin-ruling b { font-family: var(--display); font-size: 22px; }.margin-ruling p { margin: 34px 0; font-size: 13px; font-weight: 600; }.margin-ruling span { font-size: 8px; letter-spacing: .13em; }

  .records-annex { padding: clamp(86px, 10vw, 150px) clamp(22px, 5vw, 76px); color: var(--paper); background: var(--carbon); }
  .records-heading { max-width: 1450px; margin: 0 auto 70px; }.records-heading p { margin-bottom: 15px; color: #d6d6bd; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }.records-heading h2 { max-width: 1000px; }
  .records-grid { max-width: 1450px; margin: 0 auto; display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(22px, 4vw, 60px); }
  .organization-chart, .lost-property { background: #d8ddc8; color: var(--ink); border: 1px solid var(--ink); box-shadow: 10px 12px 0 rgba(18,40,53,.35); }
  .chart-header, .property-header { min-height: 80px; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--paper); background: var(--green); border-bottom: 1px solid var(--ink); }.chart-header h3, .property-header h3 { font-family: var(--display); font-size: 22px; text-transform: uppercase; }.chart-header span, .property-header span, .property-header b { font-size: 8px; letter-spacing: .1em; }
  .chart-canvas { position: relative; min-height: 550px; overflow: hidden; }.chart-canvas svg { position: absolute; inset: 5% 3%; width: 94%; height: 90%; color: var(--carbon); }
  .chart-node { position: absolute; width: 27%; min-height: 92px; display: grid; align-content: center; padding: 13px; color: var(--ink); background: var(--paper); border: 2px solid var(--carbon); box-shadow: 5px 6px 0 rgba(50,86,109,.25); text-align: center; }.chart-node small { color: var(--red); font-size: 7px; font-weight: 700; letter-spacing: .12em; }.chart-node strong { margin: 4px 0; font-family: var(--display); font-size: 14px; line-height: 1.05; text-transform: uppercase; }.chart-node span { font-size: 8px; }.director { top: 5%; left: 36.5%; }.left-node { top: 33%; left: 8%; }.right-node { top: 33%; right: 8%; }.clerk-node { left: 36.5%; bottom: 8%; border-color: var(--red); transform: rotate(-1deg); }.loop-label { position: absolute; right: 2%; bottom: 3%; max-width: 200px; color: var(--carbon); font-size: 7px; font-weight: 700; letter-spacing: .12em; }
  .lost-property ol { list-style: none; padding: 0; counter-reset: property; }.lost-property li { min-height: 92px; display: grid; grid-template-columns: 52px 1fr; align-content: center; padding: 14px 22px; border-bottom: 1px solid var(--rule); }.lost-property li > span { grid-row: 1 / 3; color: var(--red); font-size: 10px; font-weight: 700; }.lost-property li strong { font-family: var(--display); font-size: 17px; text-transform: uppercase; }.lost-property li em { color: #405248; font-size: 9px; font-style: normal; }.property-footnote { padding: 20px 22px; color: var(--paper); background: var(--violet); font-size: 9px; }

  .final-desk { position: relative; min-height: 620px; overflow: hidden; display: grid; grid-template-columns: 1fr .7fr; align-items: center; gap: 60px; padding: clamp(90px, 12vw, 180px) clamp(22px, 7vw, 110px); background: var(--manila); }.final-desk > div:not(.verdict-stamp) { position: relative; z-index: 2; }.final-desk > div > p:first-child { margin-bottom: 16px; color: var(--carbon); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }.final-copy { max-width: 520px; padding-left: 36px; border-left: 5px solid var(--red); }.final-copy p { font-size: 13px; }.final-copy button { min-height: 52px; margin-top: 30px; padding: 0; color: var(--ink); background: transparent; border: 0; border-bottom: 2px solid currentColor; cursor: pointer; font-size: 10px; font-weight: 700; letter-spacing: .12em; }.final-copy button span { display: inline-block; margin-left: 20px; font-size: 18px; transition: transform .35s ease; }.final-copy button:hover span { transform: rotate(-180deg); }.verdict-stamp { position: absolute; left: 48%; top: 48%; color: rgba(163,61,56,.13); border: 12px double currentColor; font-family: var(--display); font-size: clamp(100px, 19vw, 290px); font-weight: 900; line-height: .8; transform: translate(-50%, -50%) rotate(-8deg); white-space: nowrap; transition: color .5s ease; }.application-complete .verdict-stamp { color: rgba(104,76,103,.2); }

  .site-footer { min-height: 170px; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 16px 24px; padding: 36px clamp(22px, 5vw, 76px); color: var(--paper); background: var(--green-dark); border-top: 6px solid var(--green); font-size: 10px; }.footer-seal { box-shadow: inset 0 0 0 3px var(--green-dark), inset 0 0 0 4px currentColor; }.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 26px; }.site-footer a { min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 5px; }.site-footer > span { grid-column: 2 / 4; color: #aeb9a9; font-size: 8px; letter-spacing: .14em; text-align: right; }

  /* Guide */
  .guide-page { background: var(--pallor); }
  .guide-page .ministry-header { position: relative; }
  .guide-hero { min-height: 610px; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 60px; padding: clamp(80px, 10vw, 150px) clamp(22px, 7vw, 110px); background: linear-gradient(105deg, var(--pallor) 0 58%, var(--manila) 58%); border-bottom: 18px solid var(--carbon); }
  .guide-hero h1 { font-family: var(--display); font-size: clamp(70px, 10vw, 150px); font-weight: 900; line-height: .76; letter-spacing: -.08em; text-transform: uppercase; }.guide-hero h1 span { display: block; color: var(--red); }.guide-hero-copy { align-self: end; max-width: 560px; margin-bottom: 30px; padding: 34px; background: var(--paper); border: 1px solid var(--ink); box-shadow: 11px 13px 0 rgba(41,60,51,.22); transform: rotate(1deg); }.guide-hero-copy b { font-size: 9px; letter-spacing: .14em; }.guide-hero-copy p { margin-top: 24px; font-size: 13px; }.guide-return { min-height: 48px; margin-top: 26px; display: inline-flex; align-items: center; gap: 18px; color: var(--carbon); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
  .guide-document { max-width: 1180px; margin: 0 auto; padding: clamp(72px, 9vw, 130px) clamp(22px, 5vw, 70px); }.guide-lede { margin-bottom: 80px; padding: 28px 32px; color: var(--paper); background: var(--green); border-left: 10px solid var(--red); font-family: var(--display); font-size: clamp(24px, 3vw, 40px); font-weight: 600; line-height: 1.05; text-transform: uppercase; }.guide-section { display: grid; grid-template-columns: 220px 1fr; gap: clamp(35px, 7vw, 100px); padding: 52px 0; border-top: 3px double var(--ink); }.guide-section h2 { font-family: var(--display); font-size: 28px; line-height: .95; text-transform: uppercase; }.guide-section h2 span { display: block; margin-bottom: 9px; color: var(--red); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; }.guide-section-copy { columns: 2; column-gap: 48px; }.guide-section-copy p { margin-bottom: 18px; font-size: 13px; break-inside: avoid; }.guide-section-copy code { padding: 2px 4px; color: var(--paper); background: var(--carbon); font-family: var(--mono); font-size: .9em; }.token-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-top: 24px; background: var(--ink); border: 1px solid var(--ink); break-inside: avoid; }.token-strip span { min-height: 78px; display: flex; align-items: flex-end; padding: 9px; font-size: 8px; font-weight: 700; }.token-strip span:nth-child(1) { background: #d9c9a3; }.token-strip span:nth-child(2) { color: var(--paper); background: #4a5d4f; }.token-strip span:nth-child(3) { color: var(--paper); background: #a33d38; }.token-strip span:nth-child(4) { color: var(--paper); background: #684c67; }.token-strip span:nth-child(5) { color: var(--paper); background: #32566d; }.reproduce-slip { margin-top: 24px; padding: 22px; border: 2px dashed var(--violet); background: var(--paper); font-size: 12px; transform: rotate(-.5deg); }
}

@layer responsive {
  @media (max-width: 1100px) {
    .ministry-header { grid-template-columns: 1fr auto; }.primary-nav { display: none; }
    .entry-desk { grid-template-columns: 1fr minmax(330px, .8fr); gap: 34px; padding-inline: 38px; }.hero-copy h1 { font-size: clamp(60px, 9.3vw, 104px); }.queue-machine { min-height: 560px; }.hero-ledger { grid-template-columns: auto 1fr auto 1fr; }.hero-ledger span:nth-of-type(3), .hero-ledger b:nth-of-type(3) { display: none; }
    .permit-layout { grid-template-columns: .55fr 1fr; gap: 45px; padding-inline: 38px; }.form-action-row { grid-template-columns: 1fr; }.submit-dossier { width: 100%; }
    .stamp-office { grid-template-columns: .72fr 1.28fr; }.approval-sheet { width: 64%; right: 4%; }.ink-pad { left: 4%; width: 190px; }.rubber-stamp { left: 5%; }
    .doors { min-width: 0; grid-template-columns: repeat(5, minmax(130px, 1fr)); }.door { min-height: 430px; }
    .regulation-columns { grid-template-columns: repeat(3, 1fr); }.margin-ruling { grid-column: 1 / -1; min-height: 170px; }.regulation-columns article:nth-child(3) { border-right: 0; }
    .records-grid { grid-template-columns: 1fr; }.lost-property { max-width: 760px; margin-left: auto; }
  }

  @media (max-width: 760px) {
    body { font-size: 15px; }
    .ministry-header { min-height: 64px; padding-inline: 14px; }.bureau-name { display: none; }.bureau-seal { width: 40px; height: 40px; }.file-status { gap: 8px; }.file-status span { font-size: 8px; }.progress-rule { top: 64px; }
    .file-chute { top: 76px; right: 6px; transform: scale(.78); transform-origin: top right; }
    .entry-desk { min-height: auto; display: block; padding: 54px 18px 34px; }.hero-copy { padding-bottom: 42px; }.department-line { margin-bottom: 18px; }.hero-copy h1 { font-size: clamp(57px, 18vw, 84px); line-height: .79; }.hero-deck { margin: 28px 0 0 8%; padding-left: 15px; font-size: 13px; }.desk-route { margin-left: 8%; }.queue-machine { width: calc(100% - 10px); min-height: 570px; margin: 0 0 50px 2px; padding: 32px 23px; box-shadow: 8px 9px 0 rgba(41,60,51,.17); transform: rotate(.35deg); }.queue-machine h2 { font-size: 25px; }.number-window { min-height: 135px; }.queue-status { padding-right: 130px; }.hero-ledger { grid-template-columns: auto 1fr; gap: 8px 16px; }.hero-ledger span:nth-of-type(2), .hero-ledger b:nth-of-type(2) { display: none; }.hero-number { font-size: 190px; bottom: 5px; }
    .docket-ribbon { min-height: 70px; grid-template-columns: 1fr auto; padding: 12px 18px; }.docket-ribbon span:nth-child(2) { display: none; }.docket-ribbon span:last-child { text-align: right; font-size: 8px; }
    .permit-layout { display: block; padding: 72px 18px 96px; }.permit-intro { position: static; }.permit-intro h2, .corridor-heading h2, .records-heading h2, .final-desk h2 { font-size: clamp(43px, 14vw, 64px); }.clerk-note { margin: 38px 0 48px 9%; }.official-form { padding: 26px 18px; box-shadow: 6px 8px 0 rgba(42,54,47,.16), 12px 16px 0 rgba(89,99,87,.11); }.official-form::before { left: 6px; }.official-form::after { left: 12px; }.form-heading { grid-template-columns: auto 1fr; }.form-heading > b { display: none; }.coat-mark { width: 48px; height: 48px; }.form-heading strong { font-size: 15px; }.field-row.two-up { grid-template-columns: 1fr; gap: 0; }.reason-fieldset { padding: 18px 14px; }.reason-fieldset label { min-height: 52px; }.form-action-row { display: block; }.form-action-row p { margin-bottom: 18px; }.submit-dossier { min-width: 0; }
    .stamp-office { display: block; }.stamp-intro { padding: 82px 18px 56px; }.stamp-intro h2 { font-size: clamp(55px, 17vw, 75px); }.stamp-stage { min-height: 800px; border-left: 0; border-top: 1px solid var(--paper); }.desk-mat-label { left: 18px; }.approval-sheet { top: 9%; right: 4%; width: 76%; min-height: 560px; padding: 24px 18px; }.approval-sheet h3 { margin: 24px 0; font-size: 27px; }.approval-sheet dl div { grid-template-columns: 72px 1fr; }.approval-target { min-height: 130px; margin-top: 22px; }.ink-pad { z-index: 3; left: 4%; bottom: 3%; width: 150px; height: 120px; border-width: 8px; }.ink-pad i { width: 90px; height: 48px; }.rubber-stamp { left: 3%; top: 16%; width: 116px; height: 155px; }.stamp-handle { left: 35px; width: 46px; height: 82px; }.stamp-neck { left: 23px; top: 70px; width: 70px; }.stamp-base { width: 104px; height: 54px; font-size: 22px; }
    .corridor-section { min-height: auto; padding: 82px 18px 90px; }.corridor-heading { display: block; margin-bottom: 50px; }.corridor-heading > p { margin-top: 28px; padding: 16px 0 0; border-left: 0; border-top: 4px solid var(--red); }.doors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }.door { min-height: 288px; border-width: 6px; border-bottom-width: 12px; }.door-number { font-size: 54px; }.door-window { top: 28%; min-height: 50px; padding-inline: 5px; font-size: 9px; line-height: 1.25; }.door:last-child { grid-column: 1 / -1; width: calc(50% - 6px); justify-self: center; }.corridor-response { margin-top: 58px; display: block; padding: 20px; }.corridor-response p { margin: 12px 0; }.corridor-response b { display: block; text-align: left; }
    .regulations { padding: 82px 18px; }.regulation-title-block { grid-template-columns: 68px minmax(0, 1fr); gap: 10px; margin-bottom: 56px; }.giant-section-mark { font-size: 110px; }.regulation-title-block h2 { font-size: clamp(38px, 10.8vw, 48px); line-height: .89; }.regulation-columns { display: block; }.regulation-columns article, .margin-ruling { min-height: 0; padding: 28px 20px; border-right: 0; border-bottom: 1px solid var(--ink); }.margin-ruling { min-height: 190px; }
    .records-annex { padding: 82px 18px; }.records-heading { margin-bottom: 48px; }.chart-header, .property-header { align-items: flex-start; }.chart-header span { max-width: 120px; text-align: right; }.chart-canvas { min-height: 600px; }.chart-canvas svg { transform: rotate(90deg) scale(.72); }.chart-node { width: 66%; min-height: 78px; }.director { top: 4%; left: 17%; }.left-node { top: 27%; left: 3%; }.right-node { top: 49%; right: 3%; }.clerk-node { left: 17%; bottom: 6%; }.loop-label { right: 4%; bottom: 1%; max-width: 130px; }.lost-property { margin-top: 18px; }.lost-property li { grid-template-columns: 42px 1fr; padding-inline: 16px; }.lost-property li strong { font-size: 15px; }
    .final-desk { min-height: 580px; display: block; padding: 100px 18px; }.final-desk h2 { min-width: 0; font-size: clamp(40px, 11vw, 50px); overflow-wrap: normal; }.final-copy { margin-top: 55px; padding-left: 18px; }.verdict-stamp { left: 50%; top: 51%; font-size: 92px; border-width: 7px; }.site-footer { grid-template-columns: auto 1fr; padding: 32px 18px; }.site-footer nav { grid-column: 1 / -1; justify-content: flex-start; gap: 4px 20px; }.site-footer > span { grid-column: 1 / -1; text-align: left; }
    .guide-hero { min-height: 650px; display: block; padding: 72px 18px; background: linear-gradient(180deg, var(--pallor) 0 54%, var(--manila) 54%); }.guide-hero h1 { font-size: clamp(70px, 21vw, 96px); }.guide-hero-copy { margin: 70px 3px 0; padding: 24px 20px; }.guide-document { padding: 72px 18px; }.guide-lede { margin-bottom: 56px; padding: 24px 20px; font-size: 24px; }.guide-section { display: block; padding: 42px 0; }.guide-section h2 { margin-bottom: 28px; }.guide-section-copy { columns: 1; }.token-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }.token-strip span { min-height: 66px; padding: 5px; font-size: 6px; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
    .door:hover, .door.is-open { transform: none; }
  }
}

/* Pass 2 guide dossier */
.guide-hero {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  grid-template-columns: .8fr 1.2fr;
  background:
    linear-gradient(105deg, transparent 0 58%, rgba(217,201,163,.94) 58%),
    repeating-linear-gradient(90deg, rgba(74,93,79,.07) 0 1px, transparent 1px 52px),
    var(--pallor);
}
.guide-hero::before {
  content: 'G-95 / PUBLIC COPY';
  position: absolute;
  right: -44px;
  top: 88px;
  padding: 8px 58px;
  color: rgba(163,61,56,.6);
  border: 5px double currentColor;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 900;
  transform: rotate(90deg);
}
.guide-hero h1 { position: relative; z-index: 2; }
.guide-file-tabs {
  position: absolute;
  left: clamp(22px, 7vw, 110px);
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}
.guide-file-tabs span {
  padding: 8px 10px 6px;
  color: var(--paper);
  background: var(--carbon);
  font-size: 7px;
  letter-spacing: .08em;
  transform: translateY(4px);
}
.guide-file-tabs span:nth-child(2n) { background: var(--violet); transform: translateY(8px); }
.guide-hero-copy { align-self: center; margin-bottom: 0; }
.guide-document { max-width: 1280px; }
.guide-lede { margin-bottom: 0; }
.guide-docket {
  min-height: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 78px;
  color: var(--paper);
  background: var(--carbon);
  border-top: 1px solid var(--paper);
}
.guide-docket span {
  display: grid;
  place-items: center;
  padding: 8px;
  border-right: 1px solid rgba(238,228,200,.35);
  font-size: 8px;
  letter-spacing: .12em;
}
.guide-section { grid-template-columns: 190px minmax(0, 1fr); }
.guide-section-copy {
  columns: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 48px;
}
.guide-section-copy > * { min-width: 0; }
.guide-process {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 10px;
  padding: 1px;
  color: var(--paper);
  background: var(--ink);
  break-inside: avoid;
}
.guide-process div {
  position: relative;
  min-height: 108px;
  display: grid;
  align-content: center;
  padding: 15px;
  background: var(--green);
}
.guide-process div:not(:last-child)::after {
  content: '→';
  position: absolute;
  z-index: 2;
  right: -12px;
  top: 42%;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--manila);
  border: 1px solid var(--ink);
}
.guide-process span { color: #d7c9a9; font-size: 9px; }
.guide-process b { font-family: var(--display); font-size: 20px; text-transform: uppercase; }
.guide-process small { margin-top: 7px; font-size: 8px; }
.token-strip,
.reproduce-slip { grid-column: 1 / -1; }
.token-strip span { min-height: 96px; }
.reproduce-slip { margin-top: 0; font-size: 13px; line-height: 1.6; }

@media (max-width: 760px) {
  .guide-hero {
    min-height: 530px;
    padding: 45px 18px 52px;
    background:
      linear-gradient(172deg, transparent 0 52%, rgba(217,201,163,.94) 52%),
      repeating-linear-gradient(90deg, rgba(74,93,79,.07) 0 1px, transparent 1px 52px),
      var(--pallor);
  }
  .guide-hero::before { display: none; }
  .guide-hero h1 { font-size: clamp(62px, 19vw, 78px); }
  .guide-hero-copy { margin: 42px 3px 0; padding: 21px 20px; }
  .guide-hero-copy p { margin-top: 17px; }
  .guide-file-tabs { left: 18px; right: 18px; overflow: hidden; }
  .guide-file-tabs span { flex: 1 0 auto; padding-inline: 7px; font-size: 6px; }
  .guide-document { padding-top: 56px; }
  .guide-lede { font-size: 23px; }
  .guide-docket { grid-template-columns: repeat(2, 1fr); margin-bottom: 50px; }
  .guide-docket span { min-height: 38px; }
  .guide-section-copy { display: block; }
  .guide-process { grid-template-columns: repeat(2, 1fr); margin: 24px 0; }
  .guide-process div { min-height: 92px; }
  .guide-process div::after { display: none !important; }
  .token-strip { margin-top: 24px; }
  .reproduce-slip { margin-top: 24px; }
}

/* Pass 3 — art direction: pneumatic dispatch, optical type, and tactile finish. */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--red) var(--green-dark);
}
::-webkit-scrollbar { width: 12px; height: 10px; }
::-webkit-scrollbar-track { background: var(--green-dark); }
::-webkit-scrollbar-thumb {
  background: var(--red);
  border: 3px solid var(--green-dark);
}
::-webkit-scrollbar-thumb:hover { background: #c05851; }

body {
  font-kerning: normal;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
button,
a { touch-action: manipulation; }
p { text-wrap: pretty; }
h1,
h2,
h3,
.queue-machine h2,
.chart-node strong,
.lost-property strong { font-kerning: normal; text-wrap: balance; }
.file-status strong,
.hero-wait b,
.number-window strong,
.paper-ticket b,
.door-number,
.lost-property li > span,
.guide-docket,
.case-step span,
.filed-record { font-variant-numeric: tabular-nums slashed-zero; }

.bureau-mark,
.case-step a,
.site-footer a,
.guide-return,
.reason-fieldset label,
.certification {
  transition: color .2s ease, background-color .2s ease, filter .2s ease, transform .25s cubic-bezier(.2,.8,.2,1);
}
.bureau-mark:hover .bureau-seal,
.bureau-mark:focus-visible .bureau-seal { transform: rotate(-8deg); background: rgba(238,228,200,.1); }
.bureau-seal { transition: transform .3s cubic-bezier(.2,.8,.2,1), background-color .2s ease; }
.reason-fieldset label:hover,
.certification:hover { color: var(--carbon); background: rgba(50,86,109,.055); }
.site-footer a:hover,
.site-footer a:focus-visible { color: #fff8db; text-decoration-thickness: 2px; }
.guide-return:hover,
.guide-return:focus-visible { color: var(--red); transform: translateX(-5px); }
.final-copy button:hover,
.final-copy button:focus-visible { color: var(--red); }
.rubber-stamp:hover:not(.has-slammed) { filter: drop-shadow(12px 16px 6px rgba(24,31,26,.48)) brightness(1.04); }

.permit-section {
  background:
    linear-gradient(90deg, transparent 0 8.2%, rgba(163,61,56,.07) 8.2% 8.34%, transparent 8.34%),
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(50,86,109,.08) 31px 32px),
    var(--manila);
}
.corridor-section {
  background:
    radial-gradient(ellipse at 50% -7%, rgba(255,255,222,.9) 0 5%, transparent 27%),
    repeating-linear-gradient(90deg, transparent 0 19.9%, rgba(74,93,79,.075) 20% 20.1%),
    linear-gradient(180deg, #e9eddf, #cbd1bf);
}
.records-annex {
  background:
    radial-gradient(circle at 12% 18%, rgba(231,234,216,.09), transparent 24%),
    repeating-linear-gradient(115deg, transparent 0 80px, rgba(238,228,200,.025) 80px 81px),
    var(--carbon);
}
.guide-document {
  background:
    linear-gradient(90deg, transparent 0 24px, rgba(163,61,56,.045) 24px 25px, transparent 25px),
    repeating-linear-gradient(180deg, transparent 0 39px, rgba(50,86,109,.035) 39px 40px);
}

.expedite-bell {
  width: calc(100% - 144px);
  min-height: 58px;
  margin-top: 8px;
  padding: 6px 8px 6px 0;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  background: rgba(238,228,200,.34);
  border: 1px solid rgba(28,40,34,.48);
  cursor: pointer;
  text-align: left;
  box-shadow: 3px 4px 0 rgba(28,40,34,.12);
  transition: color .2s ease, background-color .2s ease, transform .15s ease, box-shadow .15s ease;
}
.expedite-bell > span:last-child { min-width: 0; }
.expedite-bell b {
  display: block;
  font-size: 9px;
  letter-spacing: .1em;
}
.expedite-bell small {
  display: block;
  margin-top: 2px;
  color: #405248;
  font-size: 7px;
  line-height: 1.3;
}
.expedite-bell:hover,
.expedite-bell:focus-visible { color: var(--red); background: var(--paper); box-shadow: 2px 2px 0 rgba(28,40,34,.18); transform: translateY(2px); }
.service-bell {
  position: relative;
  width: 50px;
  height: 42px;
  display: block;
}
.service-bell::before {
  content: '';
  position: absolute;
  left: 9px;
  bottom: 7px;
  width: 34px;
  height: 25px;
  border: 2px solid var(--ink);
  border-radius: 25px 25px 4px 4px;
  background: radial-gradient(circle at 62% 28%, #f8e7a9 0 8%, transparent 9%), linear-gradient(100deg, #7c6b42, #d9c582 47%, #79673f);
  box-shadow: inset -5px -4px 0 rgba(70,56,28,.2);
}
.service-bell::after {
  content: '';
  position: absolute;
  left: 5px;
  right: 3px;
  bottom: 2px;
  height: 7px;
  background: var(--green-dark);
  border-radius: 4px 4px 1px 1px;
}
.service-bell i {
  position: absolute;
  z-index: 2;
  left: 23px;
  top: 3px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--manila);
}
.expedite-bell.has-rung .service-bell { animation: bell-jolt .42s cubic-bezier(.36,.07,.19,.97); }
@keyframes bell-jolt {
  25% { transform: translateY(4px) rotate(-4deg); }
  55% { transform: translateY(-2px) rotate(3deg); }
}

.expedite-dispatch {
  position: fixed;
  inset: clamp(104px, 17vh, 160px) 0 auto;
  z-index: 120;
  height: 230px;
  visibility: hidden;
  overflow: hidden;
  pointer-events: none;
}
.expedite-dispatch.is-active { visibility: visible; }
.dispatch-canister {
  position: absolute;
  left: 0;
  top: 60px;
  width: 176px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: linear-gradient(180deg, #8c9a8b, #4a5d4f 45%, #293c33 48% 55%, #718071 58%, #44584b);
  border: 2px solid var(--ink);
  border-radius: 29px;
  box-shadow: 0 12px 18px rgba(20,31,25,.28), inset 9px 0 0 rgba(238,228,200,.12), inset -9px 0 0 rgba(28,40,34,.25);
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: .08em;
  opacity: 0;
  transform: translate3d(-210px,0,0) rotate(-8deg);
}
.dispatch-canister::before,
.dispatch-canister::after {
  content: '';
  position: absolute;
  top: 3px;
  bottom: 3px;
  width: 13px;
  border: 2px solid rgba(238,228,200,.48);
  border-radius: 50%;
}
.dispatch-canister::before { left: 5px; }
.dispatch-canister::after { right: 5px; }
.dispatch-canister i { position: absolute; inset: 9px 28px; border: 1px dashed rgba(238,228,200,.46); border-radius: 18px; }
.expedite-dispatch p {
  position: absolute;
  right: clamp(18px, 9vw, 136px);
  top: 12px;
  width: min(520px, calc(100vw - 36px));
  min-height: 164px;
  padding: 24px 28px 22px;
  color: var(--ink);
  background:
    repeating-linear-gradient(180deg, transparent 0 25px, rgba(50,86,109,.1) 25px 26px),
    var(--paper);
  border: 2px solid var(--ink);
  border-left: 10px solid var(--red);
  box-shadow: 13px 16px 0 rgba(28,40,34,.25);
  opacity: 0;
  transform: translate3d(0,-190px,0) rotate(3deg);
}
.expedite-dispatch small {
  display: block;
  color: var(--carbon);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .13em;
}
.expedite-dispatch strong {
  display: block;
  margin: 16px 0 8px;
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 38px);
  line-height: .92;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.expedite-dispatch em { font-size: 10px; font-style: normal; }
.expedite-dispatch.is-active .dispatch-canister { animation: tube-shot 1.05s cubic-bezier(.55,.02,.2,1) both; }
.expedite-dispatch.is-active p { animation: dispatch-return 3.45s .48s cubic-bezier(.16,.84,.22,1) both; }
@keyframes tube-shot {
  0% { opacity: 0; transform: translate3d(-210px,0,0) rotate(-8deg); }
  12% { opacity: 1; }
  72% { opacity: 1; transform: translate3d(calc(100vw - 90px),0,0) rotate(10deg); }
  100% { opacity: 0; transform: translate3d(calc(100vw + 190px),0,0) rotate(16deg); }
}
@keyframes dispatch-return {
  0% { opacity: 0; transform: translate3d(0,-190px,0) rotate(3deg); }
  12%, 84% { opacity: 1; transform: translate3d(0,0,0) rotate(-1.4deg); }
  100% { opacity: 0; transform: translate3d(0,24px,0) rotate(-1.4deg); }
}

@media (max-width: 760px) {
  .queue-machine::after { right: 24px; bottom: 46px; }
  .expedite-bell { width: calc(100% - 116px); grid-template-columns: 48px 1fr; }
  .service-bell { transform: scale(.9); transform-origin: center; }
  .expedite-dispatch { top: 112px; height: 270px; }
  .dispatch-canister { top: 22px; width: 142px; height: 50px; }
  .expedite-dispatch p { top: 76px; right: 18px; min-height: 150px; padding: 20px 20px 18px; }
  .expedite-dispatch strong { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .expedite-dispatch.is-active .dispatch-canister { display: none; }
  .expedite-dispatch.is-active p { animation: none; opacity: 1; transform: none; }
  .expedite-bell.has-rung .service-bell { animation: none; }
}
