/* ============================================================
   SHARPBID ESTIMATING — Design System
   Concept: the takeoff sheet. Drafting paper, ink, highlighter.
   Type: Big Shoulders (display) · IBM Plex Sans (body) · IBM Plex Mono (data)
   ============================================================ */

:root {
  --sheet: #FAFBF9;        /* sheet white (cool) */
  --paper: #F0F3EE;        /* drafting paper */
  --ink: #16232B;          /* drafting ink */
  --ink-soft: #46575F;     /* secondary text */
  --line: #D7DDD5;         /* grid & hairlines */
  --line-soft: #E6EAE3;
  --hilite: #FFD84D;       /* takeoff highlighter yellow */
  --hilite-soft: rgba(255, 216, 77, 0.38);
  --hilite-ink: #7A6100;

  /* trade coding — the colors an estimator marks scopes with */
  --t-flooring: #2FA55F;
  --t-drywall: #3E8DE3;
  --t-glazing: #21A8BC;
  --t-metals: #E0701F;
  --t-painting: #C94B9B;
  --t-concrete: #74838F;
  --t-acoustic: #6E5BD0;
  --t-roofing: #B4342B;
  --t-framing: #8A6A3B;

  --font-display: "Big Shoulders", "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --maxw: 1180px;
  --radius: 2px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--sheet);
  /* drafting grid */
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.02; letter-spacing: 0.005em; text-transform: uppercase; }
h1 { font-size: clamp(44px, 7.2vw, 84px); font-weight: 800; }
h2 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; }
h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-soft); max-width: 60ch; }

.mono { font-family: var(--font-mono); }

/* highlighter mark — like a swipe of yellow over the word */
.mark {
  background-image: linear-gradient(0deg, var(--hilite-soft) 0%, var(--hilite-soft) 100%);
  background-repeat: no-repeat;
  background-size: 100% 0.42em;
  background-position: 0 78%;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- sheet strip: section header styled like a drawing title strip ---------- */
.sheet-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 26px;
}
.sheet-strip .no {
  background: var(--ink);
  color: var(--hilite);
  padding: 4px 10px;
  font-weight: 500;
}
/* dimension line with end ticks */
.sheet-strip .dim {
  flex: 1;
  height: 1px;
  background: var(--ink-soft);
  position: relative;
  opacity: 0.55;
}
.sheet-strip .dim::before,
.sheet-strip .dim::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 1px;
  height: 11px;
  background: var(--ink-soft);
}
.sheet-strip .dim::before { left: 0; }
.sheet-strip .dim::after { right: 0; }

section { padding: 92px 0; position: relative; }
section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 251, 249, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 25px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2px;
}
.logo em {
  font-style: normal;
  background: var(--hilite);
  padding: 0 6px;
  margin-left: 4px;
}
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  padding: 12px 22px;
  border-radius: var(--radius);
  color: var(--ink);
  background: transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(0, 0); box-shadow: none; }
.btn-hi { background: var(--hilite); }
.btn-ink { background: var(--ink); color: var(--sheet); }
.btn-ink:hover { box-shadow: 3px 3px 0 var(--hilite); }
.btn-block { width: 100%; justify-content: center; }

.menu-btn { display: none; background: none; border: 1.5px solid var(--ink); padding: 8px 12px; font-family: var(--font-mono); font-size: 13px; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 76px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
.hero .badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 6px 12px;
  margin-bottom: 26px;
  background: var(--sheet);
}
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; list-style: none; }
.chips li {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.chips li::before { content: "▮"; color: var(--hilite); font-size: 11px; }

/* hero drawing */
.hero-sheet {
  border: 1.5px solid var(--ink);
  background: var(--sheet);
  box-shadow: 8px 8px 0 var(--hilite);
  padding: 10px;
}
.hero-sheet svg { width: 100%; height: auto; }
.hero-sheet .tb {
  border-top: 1.5px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr auto auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-sheet .tb div { padding: 7px 10px; border-right: 1px solid var(--line); }
.hero-sheet .tb div:last-child { border-right: 0; }
.hero-sheet .tb b { display: block; font-weight: 600; color: var(--ink); }
.hero-sheet .tb span { color: var(--ink-soft); }

/* takeoff polygon sweep */
@keyframes sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.poly { transform-origin: left center; animation: sweep 1.1s cubic-bezier(0.7, 0, 0.2, 1) forwards; opacity: 0.55; }
.poly.p2 { animation-delay: 0.55s; }
.poly.p3 { animation-delay: 1.05s; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.dimtxt { font-family: var(--font-mono); font-size: 11px; fill: var(--ink); opacity: 0; animation: rise 0.5s ease forwards; }
.dimtxt.d1 { animation-delay: 1.0s; }
.dimtxt.d2 { animation-delay: 1.5s; }
.dimtxt.d3 { animation-delay: 2.0s; }

/* ---------- trades ticker ---------- */
.ticker {
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--sheet);
  overflow: hidden;
  padding: 12px 0;
}
.ticker-track {
  display: flex;
  gap: 46px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: ticker 34s linear infinite;
  width: max-content;
}
.ticker-track span::before { content: "＋ "; color: var(--hilite); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- trade cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.trade-card {
  --tc: var(--ink);
  display: block;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  background: var(--sheet);
  padding: 26px 24px 22px;
  position: relative;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.trade-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--tc);
  opacity: 0.85;
}
.trade-card:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--tc); }
.trade-card .code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.trade-card h3 { margin-bottom: 10px; }
.trade-card p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 16px; }
.trade-card .go { font-family: var(--font-mono); font-size: 13px; font-weight: 500; }
.trade-card .go::after { content: " →"; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { border: 1.5px solid var(--ink); background: var(--sheet); padding: 26px 24px; position: relative; }
.step .rev {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  background: var(--hilite);
  display: inline-block;
  padding: 3px 9px;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- deliverable ---------- */
.deliv { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: start; }
.speclist { list-style: none; display: grid; gap: 0; border: 1.5px solid var(--ink); background: var(--sheet); }
.speclist li {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.speclist li:last-child { border-bottom: 0; }
.speclist .tickbox {
  flex: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--ink);
  background: var(--hilite);
  margin-top: 3px;
  position: relative;
}
.speclist .tickbox::after {
  content: "";
  position: absolute;
  left: 4.5px; top: 1px;
  width: 5px; height: 9px;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}
.speclist b { font-weight: 600; }
.speclist span { color: var(--ink-soft); font-size: 14px; display: block; }

/* ---------- pricing ---------- */
.pricetable {
  width: 100%;
  border-collapse: collapse;
  border: 1.5px solid var(--ink);
  background: var(--sheet);
  font-size: 15px;
}
.pricetable caption {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 10px;
}
.pricetable th {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  background: var(--ink);
  color: var(--sheet);
  padding: 11px 16px;
  font-weight: 500;
}
.pricetable th:last-child, .pricetable td:last-child { text-align: right; white-space: nowrap; }
.pricetable td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.pricetable td small { color: var(--ink-soft); display: block; font-size: 13px; }
.pricetable td.amount { font-family: var(--font-mono); font-weight: 500; }
.pricetable tr.addon td { background: var(--paper); font-size: 14px; }

.minnote {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-soft);
  border-left: 4px solid var(--hilite);
  padding: 6px 0 6px 14px;
}

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; align-items: stretch; }
.plan { border: 1.5px solid var(--ink); background: var(--sheet); padding: 28px 24px; display: flex; flex-direction: column; position: relative; }
.plan.pop { box-shadow: 7px 7px 0 var(--hilite); }
.plan .flag {
  position: absolute;
  top: -13px; left: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--hilite);
  padding: 4px 10px;
}
.plan h3 { margin-bottom: 4px; }
.plan .price { font-family: var(--font-mono); font-size: 30px; font-weight: 600; margin: 8px 0 2px; }
.plan .per { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft); margin-bottom: 18px; }
.plan ul { list-style: none; display: grid; gap: 9px; margin-bottom: 24px; font-size: 14.5px; }
.plan li { padding-left: 20px; position: relative; }
.plan li::before { content: "▮"; position: absolute; left: 0; color: var(--hilite); font-size: 11px; top: 1px; }
.plan .btn { margin-top: auto; }
.plan-foot { margin-top: 18px; font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); }

/* ---------- compare ---------- */
.compare { width: 100%; border-collapse: collapse; border: 1.5px solid var(--ink); background: var(--sheet); font-size: 14.5px; }
.compare th, .compare td { padding: 13px 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--paper); font-weight: 600; }
.compare thead th.you { background: var(--hilite); }
.compare tbody th { font-weight: 600; font-size: 13.5px; background: var(--sheet); width: 18%; }
.compare td.you { background: rgba(255, 216, 77, 0.16); font-weight: 500; }

/* ---------- engagements ---------- */
.eng { border: 1.5px solid var(--ink); background: var(--sheet); padding: 24px; }
.eng .code { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; display: inline-block; padding: 3px 9px; margin-bottom: 14px; color: var(--ink); background: var(--sheet); border: 1.5px solid var(--ink); border-left-width: 8px; }
.eng h3 { margin-bottom: 10px; }
.eng p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review { border: 1.5px solid var(--ink); background: var(--sheet); padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; }
.review blockquote { font-size: 15.5px; line-height: 1.6; }
.review blockquote::before { content: "“"; font-family: var(--font-display); font-size: 40px; line-height: 0; display: block; margin-bottom: 14px; color: var(--hilite-ink); }
.review cite { font-family: var(--font-mono); font-size: 12.5px; font-style: normal; color: var(--ink-soft); margin-top: auto; }

/* ---------- faq ---------- */
.faq { max-width: 820px; }
.faq details { border: 1.5px solid var(--ink); background: var(--sheet); margin-bottom: 12px; }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 20px;
  font-weight: 600;
  font-size: 15.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; font-family: var(--font-mono); flex: none; }
.faq details[open] summary::after { content: "－"; }
.faq details[open] summary { background: var(--paper); border-bottom: 1px solid var(--line); }
.faq .a { padding: 16px 20px 20px; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- quote form ---------- */
.quote-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 52px; align-items: start; }
.form { border: 1.5px solid var(--ink); background: var(--sheet); padding: 30px 28px; box-shadow: 8px 8px 0 var(--hilite); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-field { margin-bottom: 16px; }
label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--sheet);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 11px 12px;
}
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--hilite); outline-offset: 0; border-color: var(--ink); }
.form .fine { font-size: 12.5px; color: var(--ink-soft); margin-top: 12px; text-align: center; font-family: var(--font-mono); }
.form-ok { text-align: center; padding: 34px 10px; display: none; }
.form-ok .bigtick { font-family: var(--font-mono); font-size: 34px; background: var(--hilite); display: inline-block; padding: 6px 18px; margin-bottom: 16px; }

.contact-lines { list-style: none; display: grid; gap: 10px; margin-top: 26px; font-family: var(--font-mono); font-size: 14.5px; }
.contact-lines a { text-decoration: none; border-bottom: 2px solid var(--hilite); }

/* ---------- footer: title block ---------- */
footer { border-top: 1.5px solid var(--ink); background: var(--sheet); }
.tblock {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
}
.tblock > div { padding: 26px 22px 30px; border-right: 1px solid var(--line); }
.tblock > div:first-child { padding-left: 0; }
.tblock > div:last-child { border-right: 0; padding-right: 0; }
.tblock h3.foot-h {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 12px;
}
.tblock ul { list-style: none; display: grid; gap: 8px; font-size: 14px; }
.tblock a { text-decoration: none; color: var(--ink-soft); }
.tblock a:hover { color: var(--ink); }
.foot-bar {
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}
.foot-bar .wrap { display: flex; justify-content: space-between; gap: 14px; padding-top: 14px; padding-bottom: 16px; flex-wrap: wrap; }

/* ---------- trade page ---------- */
.trade-hero { padding: 72px 0 60px; border-bottom: 1.5px solid var(--ink); }
.trade-hero .code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--sheet);
  border: 1.5px solid var(--ink);
  border-left-width: 10px;
  padding: 5px 12px;
  margin-bottom: 22px;
}
.trade-hero h1 { font-size: clamp(38px, 6vw, 68px); margin-bottom: 18px; }
.trade-hero .lede { margin-bottom: 28px; }
.trade-price {
  font-family: var(--font-mono);
  font-size: 14px;
  border: 1.5px solid var(--ink);
  background: var(--sheet);
  display: inline-flex;
  gap: 18px;
  padding: 12px 18px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.countlist { columns: 2; column-gap: 42px; list-style: none; }
.countlist li {
  break-inside: avoid;
  padding: 11px 0 11px 30px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  position: relative;
}
.countlist li::before {
  content: "";
  position: absolute;
  left: 0; top: 15px;
  width: 16px; height: 16px;
  border: 1.5px solid var(--ink);
  background: var(--tp, var(--hilite));
  opacity: 0.85;
}

/* scroll reveal — only hidden when JS is running, so the page is readable
   with JavaScript disabled (and for any crawler that does not execute it) */
html.js .rev-up { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
html.js .rev-up.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .rev-up { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .deliv, .quote-grid { grid-template-columns: 1fr; }
  .hero-sheet { max-width: 560px; }
  .grid-3, .plans, .reviews, .steps { grid-template-columns: 1fr 1fr; }
  .tblock { grid-template-columns: 1fr 1fr; }
  .tblock > div { border-right: 0; padding-left: 0; }
}
@media (max-width: 680px) {
  section { padding: 64px 0; }
  .grid-3, .grid-2, .plans, .reviews, .steps, .f-row { grid-template-columns: 1fr; }
  .countlist { columns: 1; }
  .nav-links {
    position: absolute;
    top: 66px; left: 0; right: 0;
    background: var(--sheet);
    border-bottom: 1.5px solid var(--ink);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 22px;
    gap: 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; }
  .nav-links .btn { width: 100%; justify-content: center; }
  .compare { font-size: 13px; }
  .compare th, .compare td { padding: 9px 10px; }
  .hero { padding: 56px 0 52px; }
}

/* ============================================================
   V3 ADDITIONS — live takeoff, dark section, bento, calc,
   stamp, traps, progressive form, sticky bar, nav shrink
   ============================================================ */

/* nav shrink */
.nav-inner { transition: height 0.2s ease; }
.nav.scrolled .nav-inner { height: 54px; }
.nav.scrolled .logo { font-size: 21px; }

/* live takeoff hero */
.room { cursor: pointer; }
.room .rm { fill: transparent; }
.room .ov { opacity: 0; transform: scaleX(0); transform-origin: left center; transition: transform 0.55s cubic-bezier(0.7,0,0.2,1), opacity 0.3s ease; transform-box: fill-box; }
.room.measured .ov { opacity: 0.55; transform: scaleX(1); }
.room .rlab { font-family: var(--font-mono); font-size: 8.5px; fill: var(--ink-soft); pointer-events: none; }
.room .rsf { font-family: var(--font-mono); font-size: 9px; font-weight: 600; fill: var(--ink); opacity: 0; transition: opacity 0.3s ease 0.3s; pointer-events: none; }
.room.measured .rsf { opacity: 1; }
.room:hover .rm, .room:focus-visible .rm { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 3 2; }
.room:focus-visible { outline: none; }
.tally-line { white-space: nowrap; }
#tally { color: var(--hilite-ink); font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  .room .ov { transition: none; }
  .room .rsf { transition: none; }
}

/* dark section */
.dark { background: var(--ink); color: var(--sheet); border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.dark h2 { color: var(--sheet); }
.dark h2.xl { font-size: clamp(34px, 5.4vw, 66px); }
.sheet-strip.inv { color: #9FB0B8; }
.sheet-strip.inv .no { background: var(--hilite); color: var(--ink); }
.sheet-strip.inv .dim { background: #9FB0B8; }
.sheet-strip.inv .dim::before, .sheet-strip.inv .dim::after { background: #9FB0B8; }
.inv-lede { color: #C4CFD4; margin-top: 20px; max-width: 68ch; }
.bigstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 54px; }
.bigstats > div { border-left: 3px solid var(--hilite); padding-left: 18px; }
.bignum { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(56px, 8vw, 104px); line-height: 0.95; color: var(--hilite); }
.biglab { display: block; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #C4CFD4; margin-top: 10px; }

/* bento deliverable */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(150px, auto); gap: 18px; }
.tile { border: 1.5px solid var(--ink); background: var(--sheet); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.tile.t-big { grid-column: span 2; grid-row: span 2; }
.tile.t-plan { grid-column: span 2; }
.tile.t-dl { grid-column: span 2; background: var(--ink); color: var(--sheet); box-shadow: 7px 7px 0 var(--hilite); }
.tile.t-dl p { font-size: 15px; color: #C4CFD4; }
.tile.t-dl .btn { align-self: flex-start; border-color: var(--hilite); }
.tile-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.tile-note { font-size: 13px; color: var(--ink-soft); margin-top: auto; }
.tile-list { list-style: none; display: grid; gap: 9px; font-size: 14.5px; }
.tile-list li { padding-left: 20px; position: relative; }
.tile-list li::before { content: "▮"; position: absolute; left: 0; color: var(--hilite); font-size: 11px; top: 1px; }
.mocktab { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mocktab th { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; background: var(--ink); color: var(--sheet); padding: 7px 8px; text-align: left; font-weight: 500; }
.mocktab td { padding: 8px; border: 1px solid var(--line); }
.mocktab td.yel, .mocktab th.yel { background: var(--hilite-soft); font-family: var(--font-mono); font-size: 11px; color: var(--hilite-ink); }
.mocktab th.yel { background: var(--hilite); color: var(--ink); }

/* scope check calculator */
.calc { border: 1.5px solid var(--ink); background: var(--sheet); padding: 30px 28px; box-shadow: 8px 8px 0 var(--hilite); }
.calc-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.pill { font-family: var(--font-mono); font-size: 13px; border: 1.5px solid var(--ink); background: var(--sheet); padding: 9px 16px; border-radius: var(--radius); }
.pill.on { background: var(--ink); color: var(--hilite); }
.calc-slider label { font-family: var(--font-mono); font-size: 13px; text-transform: none; letter-spacing: 0.03em; color: var(--ink); margin-bottom: 12px; }
.calc-note-inline { color: var(--ink-soft); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; background: var(--line); border: 0; padding: 0; margin: 6px 0 4px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; background: var(--hilite); border: 2px solid var(--ink); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; background: var(--hilite); border: 2px solid var(--ink); border-radius: 0; cursor: pointer; }
.calc-out { display: flex; flex-wrap: wrap; gap: 26px; align-items: flex-end; margin-top: 26px; }
.calc-lab { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.calc-price { font-size: clamp(38px, 5vw, 56px); font-weight: 600; line-height: 1; }
.calc-days { font-size: clamp(20px, 2.6vw, 26px); font-weight: 500; line-height: 1.3; }
.calc-out .btn { margin-left: auto; }
.calc-note { margin-top: 18px; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft); }

/* pricing head + stamp */
.pricing-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.stamp {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-align: center;
  line-height: 1.5;
  color: var(--ink);
  border: 3px double var(--ink);
  padding: 14px 20px;
  transform: rotate(-6deg);
  background: var(--sheet);
  box-shadow: 4px 4px 0 var(--hilite);
  flex: none;
}

/* bid traps */
.trap { border: 1.5px solid var(--ink); background: var(--sheet); padding: 30px 28px; box-shadow: 8px 8px 0 var(--ink); }
.trap-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.trap-tag { font-size: 12px; letter-spacing: 0.14em; background: var(--hilite); padding: 5px 12px; }
.trap-nav { display: flex; gap: 8px; }
.trap-btn { font-family: var(--font-mono); font-size: 15px; border: 1.5px solid var(--ink); background: var(--sheet); width: 40px; height: 36px; }
.trap-btn:hover { background: var(--hilite); }
.trap-text { font-size: clamp(19px, 2.6vw, 26px); line-height: 1.45; font-weight: 500; max-width: 60ch; }
.trap-foot { margin-top: 18px; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft); }

/* progressive form */
.more-toggle { display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px dashed var(--line); font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); padding: 14px 0 12px; margin-top: 4px; }
.more-toggle:hover { color: var(--ink); }
.more-fields { padding-top: 6px; }

/* FAQ open animation */
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.faq details[open] .a { animation: faqIn 0.25s ease; }

/* sticky mobile action bar */
.sticky-bar { display: none; }
@media (max-width: 680px) {
  body { padding-bottom: 66px; }
  .sticky-bar {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    border-top: 1.5px solid var(--ink);
    transition: transform 0.25s ease;
  }
  .sticky-bar.off { transform: translateY(110%); }
  .sticky-bar a {
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: 14.5px; font-weight: 500;
    text-decoration: none; padding: 16px 10px;
  }
  .sb-call { background: var(--sheet); color: var(--ink); border-right: 1.5px solid var(--ink); }
  .sb-quote { background: var(--hilite); color: var(--ink); }
  .bigstats { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr; }
  .tile.t-big, .tile.t-plan, .tile.t-dl { grid-column: span 1; grid-row: auto; }
  .calc-out .btn { margin-left: 0; width: 100%; justify-content: center; }
  .pricing-head { flex-direction: column; }
  .stamp { transform: rotate(-3deg); align-self: flex-start; }
}
@media (min-width: 681px) and (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile.t-big, .tile.t-plan, .tile.t-dl { grid-column: span 2; }
  .bigstats { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   V4 ADDITIONS — SEO structure: hero H1 + display headline,
   breadcrumbs, region cards, footer title block (5 columns)
   ============================================================ */

/* hero: the H1 carries the search term, the display line carries the voice */
.hero-h1 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
  max-width: 46ch;
  line-height: 1.5;
}
.hero-display {
  font-family: var(--font-display);
  font-size: clamp(44px, 7.2vw, 84px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

/* breadcrumb — every non-home page */
.crumbs {
  border-bottom: 1px solid var(--line);
  background: var(--sheet);
}
.crumbs ol {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 11px 24px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "›"; color: var(--line); }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--ink); border-bottom: 2px solid var(--hilite); }
.crumbs [aria-current="page"] { color: var(--ink); }

/* where we work */
.regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.region-card {
  display: block;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  background: var(--sheet);
  padding: 22px 22px 20px;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.region-card:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--hilite); }
.region-card .code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 8px;
}
.region-card h3 { margin-bottom: 8px; }
.region-card p { font-size: 14.5px; color: var(--ink-soft); }
.region-foot { margin-top: 22px; font-family: var(--font-mono); font-size: 13.5px; color: var(--ink-soft); }

/* resource teasers — guides + bid traps */
.teasers { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 34px; }
.teaser {
  display: block;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  background: var(--sheet);
  border-left-width: 8px;
  padding: 24px 24px 22px;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.teaser:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--ink); }
.teaser h3 { margin-bottom: 10px; }
.teaser p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 14px; }
.teaser .go { font-family: var(--font-mono); font-size: 13px; font-weight: 500; }
.teaser .go::after { content: " →"; }

/* footer title block — 5 columns in v4 */
.tblock { grid-template-columns: 1.25fr 1fr 1fr 1fr 0.9fr; }
.tblock h3.foot-h.h4-gap { margin-top: 22px; }
.foot-name { font-family: var(--font-display); font-size: 22px; font-weight: 800; text-transform: uppercase; }
.foot-nap { font-size: 13.5px; color: var(--ink-soft); margin-top: 8px; }
.foot-nap a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line); }
.foot-nap a:hover { color: var(--ink); }
.foot-blurb { font-size: 13.5px; color: var(--ink-soft); margin-top: 10px; }

/* related-trade links on trade + region pages */
.related { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.related a {
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  background: var(--sheet);
  border-left-width: 7px;
  padding: 9px 14px;
}
.related a:hover { background: var(--hilite); }

/* 404 */
.notfound { padding: 96px 0 84px; text-align: left; }
.notfound .big { font-family: var(--font-display); font-size: clamp(90px, 18vw, 190px); font-weight: 800; line-height: 0.9; color: var(--hilite); -webkit-text-stroke: 2px var(--ink); }

/* tables never push the page sideways */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 960px) {
  .tblock { grid-template-columns: 1fr 1fr; }
  .regions { grid-template-columns: 1fr; }
  .teasers { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .hero-h1 { font-size: 12px; letter-spacing: 0.12em; }
  .crumbs ol { font-size: 11px; }
}

/* the sample workbook table scrolls inside its tile on small screens.
   grid/flex children need min-width:0 or they refuse to shrink. */
.bento .tile, .tile > * { min-width: 0; }
.tile .table-scroll { max-width: 100%; }
.tile .mocktab { min-width: 340px; }

/* ============================================================
   V4 TRADE PAGES — measurement method, scope gaps, count units
   ============================================================ */

/* "How we measure it" — one convention per row */
.method { border: 1.5px solid var(--ink); background: var(--sheet); }
.method > div { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.method > div:last-child { border-bottom: 0; }
.method .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--hilite);
  padding: 3px 9px;
  margin-bottom: 12px;
}
.method h3 { font-size: clamp(18px, 2vw, 22px); margin-bottom: 9px; }
.method p { font-size: 15px; color: var(--ink-soft); max-width: 78ch; }
.method p + p { margin-top: 10px; }

/* count list: the unit an item is measured in */
.countlist .u {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 1px 6px;
  margin-left: 8px;
  white-space: nowrap;
}
.countlist li b { font-weight: 600; }
.countlist li span.note { display: block; font-size: 13.5px; color: var(--ink-soft); margin-top: 3px; }

/* trade page section intro — the short answer under each H2 */
.answer { font-size: 17px; max-width: 72ch; margin-bottom: 30px; }
.answer strong { font-weight: 600; }

/* ============================================================
   V4 REGION / SERVICE / GUIDE PAGES
   ============================================================ */

/* nine-trade list with a region-relevant line each */
.tradelist { list-style: none; border: 1.5px solid var(--ink); background: var(--sheet); }
.tradelist li { display: flex; gap: 0; border-bottom: 1px solid var(--line); }
.tradelist li:last-child { border-bottom: 0; }
.tradelist .sw { flex: none; width: 8px; background: var(--tc, var(--ink)); }
.tradelist .tl-body { padding: 15px 18px; }
.tradelist a { font-weight: 600; font-size: 15.5px; text-decoration: none; border-bottom: 2px solid var(--hilite); }
.tradelist p { color: var(--ink-soft); font-size: 14.5px; margin-top: 4px; }

/* guide index cards + article body */
.guidegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.guidecard {
  display: block; text-decoration: none;
  border: 1.5px solid var(--ink); border-left-width: 8px; background: var(--sheet);
  padding: 26px 24px 22px;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.guidecard:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--ink); }
.guidecard .code { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); display: block; margin-bottom: 8px; }
.guidecard h3 { margin-bottom: 10px; }
.guidecard p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 14px; }
.guidecard .go { font-family: var(--font-mono); font-size: 13px; font-weight: 500; }
.guidecard .go::after { content: " →"; }

/* long-form article body */
.prose { max-width: 74ch; }
.prose h2 { margin: 52px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 32px 0 10px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; }
.prose a { border-bottom: 2px solid var(--hilite); text-decoration: none; }
.prose .lead { font-size: 17.5px; border-left: 4px solid var(--hilite); padding: 4px 0 4px 16px; margin-bottom: 26px; }
.prose table { width: 100%; border-collapse: collapse; border: 1.5px solid var(--ink); background: var(--sheet); font-size: 14.5px; margin-bottom: 20px; }
.prose th { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; text-align: left; background: var(--ink); color: var(--sheet); padding: 10px 14px; font-weight: 500; }
.prose td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.article-meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft); margin-bottom: 30px; }

/* checklist blocks inside guides */
.checkbox-list { list-style: none; margin-left: 0 !important; }
.checkbox-list li { padding-left: 30px; position: relative; margin-bottom: 11px; }
.checkbox-list li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 16px; height: 16px; border: 1.5px solid var(--ink); background: var(--sheet);
}
.checkbox-list li b { font-weight: 600; }

/* bid traps */
.trapgroup { border: 1.5px solid var(--ink); background: var(--sheet); border-left-width: 8px; padding: 26px 26px 20px; margin-bottom: 22px; }
.trapgroup > .code { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); display: block; margin-bottom: 6px; }
.trapgroup h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 8px; }
.trapgroup > p.tg-link { font-size: 14px; margin-bottom: 20px; }
.trapgroup h3 { font-size: clamp(17px, 1.9vw, 20px); margin: 22px 0 8px; }
.trapgroup h3:first-of-type { margin-top: 0; }
.trapgroup .tnum { font-family: var(--font-mono); font-size: 12px; background: var(--hilite); padding: 2px 8px; margin-right: 8px; }
.trapgroup p { font-size: 15px; color: var(--ink-soft); }

@media (max-width: 680px) {
  .guidegrid { grid-template-columns: 1fr; }
}
