/* ============================================================
   SNT COMMERCIAL CLEANING — "BUILT TO SPEC"
   One immaculate construction drawing sheet, in SNT brand colors.
   Tokens: Bond / Brand Navy Ink / Brand Royal Blue / Graphite / Grid Trace
   ============================================================ */

:root {
  --bond: #F1F3F2;          /* drafting paper — silver-white, matches the logo ring */
  --ink: #10233D;           /* deep brand navy — drawing ink */
  --blue: #1565C0;          /* SNT brand royal blue — pen, actions, and inspector's marks */
  --graphite: #5A6C7E;      /* muted blue-gray spec metadata */
  --trace: #D9DFDD;         /* faint engineering grid */
  --trace-strong: #C7CFCC;  /* zone dividers */
  --box: #fff;              /* raised white surfaces: checkboxes, icon chips */
  --btn-text: #fff;         /* text on brand-blue fills */
  --grid-minor: #EBEFED;    /* sheet grid, fine lines */
  --grid-major: rgba(16, 35, 61, 0.025); /* sheet grid, major lines */

  color-scheme: light;

  --font-display: "Big Shoulders", "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-stencil: "Big Shoulders Stencil", "Big Shoulders Stencil Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Martian Mono", "SF Mono", Menlo, Consolas, monospace;

  --topbar-h: 64px;
  --strip-h: 38px;
}

/* ---------- Blueprint (dark) theme: white linework on Prussian navy ---------- */

[data-theme="dark"] {
  color-scheme: dark;
  --bond: #0D2137;
  --ink: #E6EFF8;
  --blue: #5FA6EC;
  --graphite: #8CA3B9;
  --trace: #17324E;
  --trace-strong: #27476B;
  --box: #081827;
  --btn-text: #0D2137;
  --grid-minor: rgba(122, 170, 220, 0.05);
  --grid-major: rgba(122, 170, 220, 0.09);
}

/* ---------- Reset ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 24px);
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bond);
  padding-top: var(--topbar-h);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: var(--blue); }

::selection { background: var(--blue); color: var(--bond); }

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

/* ---------- Drafting grid layer ---------- */

.grid-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* ---------- Sheet frame (viewport = drawing sheet) ---------- */

.frame { pointer-events: none; }

.frame-bar {
  position: fixed;
  background: var(--ink);
  z-index: 55;
}
.frame-left  { left: 10px;  top: calc(var(--topbar-h) + 10px); bottom: 10px; width: 3px; transform-origin: top; }
.frame-right { right: 10px; top: calc(var(--topbar-h) + 10px); bottom: 10px; width: 3px; transform-origin: top; }
.frame-bottom { left: 10px; right: 10px; bottom: 10px; height: 3px; transform-origin: left; }

.reg {
  position: fixed;
  width: 16px;
  height: 16px;
  z-index: 55;
}
.reg::before, .reg::after {
  content: "";
  position: absolute;
  background: var(--ink);
}
.reg::before { left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-50%); }
.reg::after  { top: 50%; left: 0; height: 2px; width: 100%; transform: translateY(-50%); }
.reg-tl { left: 22px;  top: calc(var(--topbar-h) + 22px); }
.reg-tr { right: 22px; top: calc(var(--topbar-h) + 22px); }
.reg-bl { left: 22px;  bottom: 22px; }
.reg-br { right: 22px; bottom: 22px; }

@media (max-width: 1199px) {
  .reg { display: none; }
  .frame-left { left: 6px; width: 2px; }
  .frame-right { right: 6px; width: 2px; }
  .frame-bottom { left: 6px; right: 6px; bottom: 6px; height: 2px; }
}

/* ---------- Top bar ---------- */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 28px;
  background: var(--bond);
  border-bottom: 3px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-logo {
  width: 42px;
  height: 42px;
  display: block;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  background: transparent;
  border: 2px solid var(--ink);
  padding: 6px 9px;
  cursor: pointer;
}
.theme-toggle:hover { color: var(--blue); border-color: var(--blue); }
.theme-toggle svg { width: 11px; height: 11px; }

@media (max-width: 480px) {
  .theme-toggle #tt-label { display: none; }
}

.topbar-phone {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
  padding-bottom: 2px;
  white-space: nowrap;
}
.topbar-phone em { font-style: normal; color: var(--graphite); }
.topbar-phone:hover { color: var(--ink); border-color: var(--ink); }

@media (max-width: 640px) {
  .topbar { padding: 0 16px; }
  .brand-name { display: none; }
}

/* ---------- Punch list rail (desktop) ---------- */

.punch {
  position: fixed;
  right: 34px;
  top: 50%;
  transform: translateY(-50%);
  width: 218px;
  z-index: 50;
  background: var(--bond);
  border: 2.5px solid var(--ink);
}

.punch-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border-bottom: 2px solid var(--ink);
}
.punch-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.punch-meta {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite);
}

.punch-item {
  display: grid;
  grid-template-columns: 24px 30px 1fr;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--ink);
  border-left: 3px solid transparent;
}
.punch-item:hover { background: rgba(21, 101, 192, 0.08); }
.punch-items li + li .punch-item { border-top: 2px solid var(--trace-strong); }
.punch-item.active { border-left-color: var(--blue); }
.punch-item.active .punch-ref { color: var(--blue); }

.punch-box {
  width: 17px;
  height: 17px;
  border: 2px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--box);
}
.punch-box svg { width: 13px; height: 11px; overflow: visible; }
.punch-box path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.35s ease 0.05s;
}

.punch-ref {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--graphite);
}

.punch-label {
  position: relative;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
  transition: color 0.25s ease;
}
.punch-label::after {
  content: "";
  position: absolute;
  left: -2px;
  top: 50%;
  width: 0;
  height: 2px;
  background: var(--ink);
  transition: width 0.3s ease 0.25s;
}

li.done .punch-box path { stroke-dashoffset: 0; }
li.done .punch-label { color: var(--graphite); }
li.done .punch-label::after { width: calc(100% + 4px); }

.punch-foot {
  padding: 9px 14px;
  border-top: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite);
}

@media (max-width: 1199px) { .punch { display: none; } }

/* ---------- Punch strip (mobile) ---------- */

.punch-strip {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  height: var(--strip-h);
  z-index: 58;
  display: none;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  background: var(--bond);
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.strip-title { color: var(--ink); font-weight: 500; }
.strip-boxes { display: flex; gap: 6px; flex: 1; }
.strip-boxes i {
  width: 13px;
  height: 13px;
  border: 2px solid var(--ink);
  background: var(--box);
  transition: background 0.25s ease;
}
.strip-boxes i.done { background: var(--blue); }
.strip-count { color: var(--graphite); }

@media (max-width: 1199px) {
  .punch-strip { display: flex; }
  body { padding-top: calc(var(--topbar-h) + var(--strip-h)); }
  html { scroll-padding-top: calc(var(--topbar-h) + var(--strip-h) + 16px); }
}

/* ---------- Layout ---------- */

.wrap {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: clamp(22px, 4.5vw, 52px);
  position: relative;
  z-index: 1;
}

@media (min-width: 1200px) {
  main, .titleblock-zone { padding-right: 268px; }
}

.zone {
  padding-block: clamp(76px, 9.5vw, 122px);
  position: relative;
}
.zone + .zone { border-top: 2px solid var(--trace-strong); }

.zone-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: clamp(44px, 6vw, 68px);
}

.zone-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 7px 12px;
  display: inline-block;
  width: max-content;
  max-width: 100%;
}
.zone-tag--blue { color: var(--blue); border-color: var(--blue); }

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 5.4vw, 4.1rem);
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.zone-lede {
  font-size: 1.15rem;
  color: var(--graphite);
  max-width: 56ch;
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--btn-text);
  background: var(--blue);
  border: 2.5px solid var(--ink);
  padding: 16px 30px 17px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 0 var(--ink);
}
.btn:active {
  transform: translate(0, 0);
  box-shadow: 0 0 0 0 var(--ink);
}
.btn:focus-visible { outline-color: var(--ink); }

.annot-link {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.annot-link:hover { color: var(--ink); }

.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 44px;
}

/* ---------- A0 · Hero ---------- */

.hero {
  min-height: calc(100vh - var(--topbar-h));
  min-height: calc(100svh - var(--topbar-h));
  display: flex;
  align-items: center;
  padding-block: 64px;
}
/* flex item: don't let max-content children set the minimum width */
.hero .wrap { min-width: 0; width: 100%; }

.hero .zone-tag--blue { margin-bottom: 34px; }

.hl {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(2.6rem, 8vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
/* the punch rail narrows the sheet above 1200px */
@media (min-width: 1200px) {
  .hl { font-size: clamp(4rem, 6.4vw, 6.2rem); }
}
.hl-line {
  display: block;
  width: max-content;
  max-width: 100%;
}

.hero-body {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  max-width: 58ch;
  margin-top: 38px;
}

.hero-photo {
  border: 2.5px solid var(--ink);
  background: var(--bond);
  padding: 10px;
}
.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-photo-plate {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 2px solid var(--trace-strong);
}
.hero-photo-cap {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite);
}

@media (max-width: 1023px) {
  .hero-body { grid-template-columns: 1fr; }
  .hero-photo { max-width: 460px; }
}

.hero-phone {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--graphite);
}
.hero-phone a {
  color: var(--blue);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid var(--blue);
}
.hero-phone a:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Dimension lines ---------- */

.dim {
  position: relative;
  height: 30px;
  width: 0;
  margin: 10px 0 16px;
  transform-origin: left center;
}
.dim--below { margin: 18px 0 0; }

.dim::before, .dim::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 2px;
  height: 22px;
  background: var(--blue);
}
.dim::before { left: 0; }
.dim::after { right: 0; }

.dim-rule {
  position: absolute;
  left: 0;
  right: 0;
  top: 19px;
  height: 2px;
  background: var(--blue);
}
.dim-rule::before, .dim-rule::after {
  content: "";
  position: absolute;
  top: -3.5px;
  width: 9px;
  height: 9px;
}
.dim-rule::before {
  left: 1px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
}
.dim-rule::after {
  right: 1px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(225deg);
}

.dim-label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bond);
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  white-space: nowrap;
}

html.no-js .dim { display: none; }

/* ---------- B1 · Record of work ---------- */

.records {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3.5vw, 44px);
}

.record-card {
  border: 2.5px solid var(--ink);
  padding: clamp(18px, 2.5vw, 28px);
  background: var(--bond);
}
.record-card figure { margin-bottom: 20px; }
.elevation { color: var(--blue); width: 100%; height: auto; }

.record-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.05;
}
.record-addr {
  font-size: 0.92rem;
  color: var(--graphite);
  margin-top: 7px;
}
.record-note {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 16px;
  padding-top: 13px;
  border-top: 2px solid var(--trace-strong);
}

.record-close {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-align: center;
  margin-top: clamp(56px, 7vw, 88px);
}

@media (max-width: 900px) {
  .records { grid-template-columns: 1fr; max-width: 440px; }
  .record-card { display: grid; grid-template-columns: 132px 1fr; gap: 0 18px; align-items: center; }
  .record-card figure { grid-row: 1 / 5; margin: 0; }
  .record-close br { display: none; }
}

/* ---------- C2 · Scope of work ---------- */

.spec-rows { border-top: 2.5px solid var(--ink); }

.spec-row {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr 1.35fr;
  gap: clamp(20px, 3.5vw, 48px);
  align-items: start;
  padding: clamp(34px, 4.5vw, 50px) 10px;
  border-bottom: 2.5px solid var(--ink);
}

.spec-no {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  line-height: 1.7;
  padding-top: 7px;
}

.spec-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.spec-body { max-width: 46ch; padding-top: 5px; }

.cloud {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.cloud path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  transition: stroke-dashoffset 0.55s ease, opacity 0.2s ease;
}
.spec-row:hover .cloud path,
.spec-row:focus-visible .cloud path {
  stroke-dashoffset: 0;
  opacity: 1;
}

@media (max-width: 820px) {
  .spec-row { grid-template-columns: 1fr; gap: 14px; }
  .spec-no { padding-top: 0; line-height: 1.5; }
  .spec-no br, .spec-title br { display: none; }
  .spec-body { padding-top: 0; }
}

/* ---------- D3 · Inspection criteria ---------- */

.insp-table { border-top: 2.5px solid var(--ink); }

.insp-row {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
  padding: 24px 10px;
  border-bottom: 2px solid var(--ink);
}

.insp-crit {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.insp-desc { max-width: 62ch; }

.pass {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--btn-text);
  background: var(--blue);
  border: 2px solid var(--ink);
  padding: 5px 10px;
  transform: rotate(-3deg);
}

@media (max-width: 720px) {
  .insp-row { grid-template-columns: 1fr auto; }
  .insp-crit { grid-column: 1 / -1; }
}

/* ---------- D4 · Field photo log ---------- */

.photolog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
}

.photo-card {
  border: 2.5px solid var(--ink);
  background: var(--bond);
  padding: 10px;
}
.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

/* cold grade on all field photography */
.photo-card img,
.hero-photo img {
  filter: url(#cold) saturate(0.85) contrast(1.05);
}
[data-theme="dark"] .photo-card img,
[data-theme="dark"] .hero-photo img {
  filter: url(#cold) saturate(0.85) contrast(1.05) brightness(0.9);
}

.photo-plate {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 12px;
  row-gap: 3px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 2px solid var(--trace-strong);
}
.photo-no {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}
.photo-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.photo-note {
  flex-basis: 100%;
  font-size: 0.88rem;
  color: var(--graphite);
}

@media (max-width: 900px) {
  .photolog { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .photolog { grid-template-columns: 1fr; max-width: 440px; }
}

/* ---------- E5 · Area of work ---------- */

.area-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.8fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.site-plan { width: 100%; height: auto; }

.plan-label text, text.plan-label {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  fill: var(--ink);
  font-weight: 500;
}
.plan-label--sm { font-size: 13px !important; }

.plan-water path {
  fill: none;
  stroke: var(--graphite);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.75;
}
.plan-water-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  fill: var(--graphite);
}
.plan-leader path { stroke: var(--blue); stroke-width: 1.5; }
.plan-leader circle { fill: var(--blue); }

.plan-legend-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  fill: var(--ink);
}
.plan-legend-item {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  fill: var(--graphite);
}

.area-list li {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 15px 2px;
  border-bottom: 2px solid var(--trace-strong);
  display: flex;
  align-items: center;
  gap: 14px;
}
.area-list li::before {
  content: "";
  width: 11px;
  height: 11px;
  background: var(--blue);
  border: 2px solid var(--ink);
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .area-grid { grid-template-columns: 1fr; }
  .area-list { max-width: 380px; }
}

/* ---------- F6 · Final inspection ---------- */

.final-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.zone--final h2 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
.zone--final .zone-lede { margin-top: 26px; }

.stamp-wrap {
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  overflow: clip;
  overflow-clip-margin: 64px;
}

.stamp {
  width: 100%;
  height: auto;
  transform: rotate(-8deg);
}
.stamp-ink { stroke: var(--blue); }
.stamp-ink text { stroke: none; fill: var(--blue); }

.stamp-arc {
  font-family: var(--font-stencil);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.stamp-code {
  font-family: var(--font-stencil);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.stamp-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

/* Stamp is invisible until the punch list closes out (JS only) */
html.js .stamp-wrap:not(.stamped) .stamp { opacity: 0; }
html.js .stamp-wrap.stamped .stamp {
  animation: stamp-in 0.3s cubic-bezier(0.2, 1.4, 0.35, 1) forwards;
}
@keyframes stamp-in {
  from { opacity: 0; transform: scale(1.6) rotate(-20deg); }
  60%  { opacity: 1; }
  to   { opacity: 1; transform: scale(1) rotate(-8deg); }
}

main.thud { animation: sheet-thud 0.18s ease-out 0.22s; }
@keyframes sheet-thud {
  0% { transform: translateY(0); }
  40% { transform: translateY(3px); }
  100% { transform: translateY(0); }
}

@media (max-width: 780px) {
  .final-grid { grid-template-columns: 1fr; }
  .stamp-wrap { margin-inline: 0; max-width: 240px; }
}

/* ---------- Title block footer ---------- */

.titleblock-zone {
  border-top: 2px solid var(--trace-strong);
  padding-block: clamp(56px, 7vw, 88px) 64px;
}

.titleblock {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.5px;
  background: var(--ink);
  border: 3px solid var(--ink);
}

.tb-cell {
  background: var(--bond);
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  grid-column: span 4;
}
.tb-cell--sm { grid-column: span 3; }
.tb-firm {
  grid-column: span 4;
  grid-row: span 2;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  justify-content: flex-start;
}
.tb-logo { width: 64px; height: 64px; flex-shrink: 0; }
.tb-firm-text { display: flex; flex-direction: column; gap: 5px; }

.tb-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite);
}

.tb-value {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.6;
}
.tb-value a { color: var(--blue); text-decoration: none; border-bottom: 2px solid var(--blue); }
.tb-value a:hover { color: var(--ink); border-color: var(--ink); }

.tb-firm-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.tb-firm-dba {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite);
}

.tb-email { text-transform: none; letter-spacing: 0.02em; word-break: break-all; }

.tb-social { display: flex; gap: 8px; margin-top: 10px; }
.soc {
  width: 26px;
  height: 26px;
  border: 2px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: var(--box);
  transition: background 0.15s ease, color 0.15s ease;
}
.soc svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}
.soc svg .soc-fill { fill: currentColor; stroke: none; }
.soc:hover { background: var(--blue); color: var(--btn-text); }

.tb-micro {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite);
}

@media (max-width: 900px) {
  .tb-cell, .tb-cell--sm { grid-column: span 6; }
  .tb-firm { grid-column: span 12; grid-row: auto; }
}
@media (max-width: 520px) {
  .tb-cell, .tb-cell--sm, .tb-firm { grid-column: span 12; }
}

/* ---------- Load sequence: the sheet prints ---------- */

html.js body:not(.booted) .grid-layer { opacity: 0; }
html.js body:not(.booted) .frame-left,
html.js body:not(.booted) .frame-right { transform: scaleY(0); }
html.js body:not(.booted) .frame-bottom { transform: scaleX(0); }
html.js body:not(.booted) .dim { transform: scaleX(0); }

.frame-left  { transition: transform 0.4s cubic-bezier(0.3, 0.7, 0.2, 1) 0.15s; }
.frame-right { transition: transform 0.4s cubic-bezier(0.3, 0.7, 0.2, 1) 0.3s; }
.frame-bottom { transition: transform 0.4s cubic-bezier(0.3, 0.7, 0.2, 1) 0.45s; }
.dim { transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.75s; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
