/* Stalcup Construction & Design (stalcupcd.com). Shop-drawing look: drafting navy on galvanized white,
   safety yellow only for the call to action. One family, Archivo, used across its width axis. */
:root {
  --ink: #14233b;      /* drafting navy: text, linework */
  --steel: #55657a;    /* secondary text */
  --line: #c6d0da;     /* rules, gridlines */
  --zinc: #e7ecf0;     /* galvanized panels */
  --paper: #f8fafb;    /* page */
  --signal: #f2b705;   /* safety yellow: calls only */
  --signal-ink: #1b1600;
  --ok: #1f6f4a;
  --err: #a3271b;
  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 40px);
  --narrow: 'wdth' 72;
  --wide: 'wdth' 118;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 17px; line-height: 1.6; font-variation-settings: 'wdth' 100;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* type */
h1, h2, h3 { line-height: 1.04; margin: 0 0 .4em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(40px, 7.2vw, 92px); font-variation-settings: var(--narrow); text-transform: none; }
h2 { font-size: clamp(30px, 4.4vw, 54px); font-variation-settings: var(--narrow); }
h3 { font-size: 21px; font-variation-settings: var(--wide); font-weight: 700; letter-spacing: 0; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: clamp(19px, 2vw, 22px); line-height: 1.5; color: var(--ink); max-width: 56ch; }
.muted { color: var(--steel); }
.small { font-size: 14.5px; }
.wide { font-variation-settings: var(--wide); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(248, 250, 251, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.top .btn { white-space: nowrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand b { display: block; white-space: nowrap; font-size: 17px; line-height: 1.05; font-variation-settings: var(--wide); font-weight: 800; }
.brand span { display: block; white-space: nowrap; font-size: 12.5px; color: var(--steel); font-variation-settings: var(--wide); }
.nav { display: flex; gap: 18px; font-size: 15px; white-space: nowrap; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--ink); }
.tel { font-weight: 800; font-variation-settings: var(--wide); text-decoration: none; white-space: nowrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; font: inherit; font-weight: 800; font-variation-settings: var(--wide); font-size: 16px; border-radius: 3px; border: 2px solid var(--ink); background: transparent; color: var(--ink); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ink); color: #fff; }
.btn.call { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.btn.call:hover { background: #ffc81f; color: var(--signal-ink); }
.btn.solid { background: var(--ink); color: #fff; }
.btn.solid:hover { background: #22375a; }
.menu { display: none; }
@media (max-width: 1180px) { .top .tel { display: none; } }
@media (max-width: 960px) {
  .nav, .top .tel { display: none; }
  .menu { display: inline-flex; min-height: 44px; }
  .top.open .nav { display: flex; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gut) 16px; }
  .top.open .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .top .btn.bid { display: none; }
}

/* sections */
section { padding: clamp(56px, 8vw, 104px) 0; border-bottom: 1px solid var(--line); }
section.tight { padding: clamp(40px, 5vw, 64px) 0; }
.grid2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.grid2.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 860px) { .grid2, .grid2.even { grid-template-columns: minmax(0, 1fr); } }
.zinc { background: var(--zinc); }
.ink { background: var(--ink); color: #eef2f6; }
.ink .muted { color: #a9b6c6; }
.ink a { color: #fff; }

/* hero */
.hero { padding: clamp(36px, 6vw, 72px) 0 0; border-bottom: 1px solid var(--line); }
.hero .grid2 { align-items: end; }
.hero p.lead { margin-top: 18px; }
.hero .acts { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.where { font-size: 15px; color: var(--steel); font-variation-settings: var(--wide); margin: 0 0 14px; }

/* the drawing */
.sheet { position: relative; border: 1.5px solid var(--ink); background:
  linear-gradient(var(--paper), var(--paper)) padding-box,
  var(--ink); margin-top: 8px; }
.sheet .canvas { background-image: linear-gradient(var(--zinc) 1px, transparent 1px), linear-gradient(90deg, var(--zinc) 1px, transparent 1px); background-size: 24px 24px; padding: 8px; }
.sheet svg { width: 100%; height: auto; }
.titleblock { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-top: 1.5px solid var(--ink); font-size: 13.5px; }
.titleblock > div { padding: 8px 12px; }
.titleblock > div + div { border-left: 1.5px solid var(--ink); }
.titleblock b { font-variation-settings: var(--wide); }
.layers { display: flex; flex-wrap: wrap; gap: 0; border-top: 1.5px solid var(--ink); }
.layers button { flex: 1 1 33%; min-height: 48px; font: inherit; font-size: 15px; font-weight: 700; font-variation-settings: var(--wide); background: var(--paper); color: var(--ink); border: 0; border-right: 1.5px solid var(--ink); cursor: pointer; padding: 8px 10px; }
.layers button:last-child { border-right: 0; }
.layers button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.layers-note { min-height: 3.2em; margin: 14px 0 0; font-size: 15.5px; }
#bldg .shell, #bldg .units, #bldg .dims { transition: opacity .35s ease; }
#bldg[data-show="shell"] .units { opacity: .1; }
#bldg[data-show="units"] .shell { opacity: .12; }
@media (prefers-reduced-motion: reduce) { #bldg .shell, #bldg .units { transition: none; } }

/* facts strip */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); margin-top: clamp(36px, 5vw, 60px); }
.facts div { padding: 18px 16px 22px 0; }
.facts div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.facts b { display: block; font-size: clamp(30px, 4vw, 46px); line-height: 1; font-variation-settings: var(--narrow); font-weight: 800; }
.facts span { display: block; margin-top: 8px; font-size: 14.5px; color: var(--steel); }
@media (max-width: 640px) { .facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .facts div:nth-child(3) { padding-left: 0; border-left: 0; } .facts div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* systems */
.systems { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1.5px solid var(--ink); margin-top: 28px; }
.systems > a { display: block; padding: clamp(20px, 3vw, 34px); text-decoration: none; }
.systems > a + a { border-left: 1.5px solid var(--ink); }
.systems > a:hover { background: var(--zinc); }
.systems .tag { font-size: 14px; color: var(--steel); font-variation-settings: var(--wide); }
.systems ul { margin: 14px 0 18px; padding-left: 18px; }
.systems .go { font-weight: 800; font-variation-settings: var(--wide); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .systems { grid-template-columns: minmax(0, 1fr); } .systems > a + a { border-left: 0; border-top: 1.5px solid var(--ink); } }

/* projects */
.jobs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); margin-top: 28px; }
.job { padding: 24px 24px 28px 0; border-bottom: 1px solid var(--line); }
.job:nth-child(2n) { padding-left: 24px; padding-right: 0; border-left: 1px solid var(--line); }
.job .loc { font-size: 14px; font-variation-settings: var(--wide); color: var(--steel); }
.job .num { display: flex; align-items: baseline; gap: 10px; margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); }
.job .num b { font-size: 34px; line-height: 1; font-variation-settings: var(--narrow); }
.job .num span { font-size: 14px; color: var(--steel); }
.live { display: inline-block; font-size: 12.5px; font-weight: 800; font-variation-settings: var(--wide); background: var(--signal); color: var(--signal-ink); padding: 2px 8px; border-radius: 2px; margin-left: 6px; vertical-align: 2px; }
@media (max-width: 760px) { .jobs { grid-template-columns: minmax(0, 1fr); } .job, .job:nth-child(2n) { padding: 22px 0; border-left: 0; } }

/* stacks (Eugene floor drawing) */
.stack { border: 1.5px solid var(--ink); }
.stack button { display: grid; grid-template-columns: 74px minmax(0, 1fr); width: 100%; text-align: left; font: inherit; background: var(--paper); color: var(--ink); border: 0; border-bottom: 1px solid var(--ink); padding: 0; cursor: pointer; min-height: 52px; }
.stack button > span:first-child { display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--ink); font-weight: 800; font-variation-settings: var(--wide); font-size: 14px; }
.stack button > span:last-child { padding: 13px 14px; }
.stack button.cfs > span:last-child { background-image: repeating-linear-gradient(90deg, transparent 0 22px, var(--line) 22px 24px); }
.stack button.red > span:last-child { background: #e9dcd8; background-image: repeating-linear-gradient(90deg, transparent 0 58px, #b9a29b 58px 64px); }
.stack button[aria-pressed="true"] > span:last-child { outline: 3px solid var(--ink); outline-offset: -3px; }
.stack .slab { padding: 10px 14px; font-size: 14px; background: repeating-linear-gradient(45deg, var(--zinc) 0 6px, var(--paper) 6px 12px); }
.stack-note { margin-top: 14px; min-height: 4.5em; }

/* building types */
.types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); margin-top: 28px; }
.types > div { padding: 20px 20px 24px 0; border-bottom: 1px solid var(--line); }
.types > div:not(:nth-child(3n+1)) { padding-left: 20px; border-left: 1px solid var(--line); }
.types .kind { font-size: 13.5px; color: var(--steel); font-variation-settings: var(--wide); }
.types .done { font-size: 13px; font-weight: 700; color: var(--ok); }
.types .cap { font-size: 13px; font-weight: 700; color: var(--steel); }
@media (max-width: 860px) { .types { grid-template-columns: minmax(0, 1fr); } .types > div, .types > div:not(:nth-child(3n+1)) { padding: 18px 0; border-left: 0; } }

/* estimator */
.est { border: 1.5px solid var(--ink); background: var(--paper); }
.est form { padding: clamp(18px, 3vw, 28px); display: grid; gap: 18px; }
.est fieldset { border: 0; padding: 0; margin: 0; }
.est legend, .est label.lbl { display: block; font-weight: 700; font-variation-settings: var(--wide); font-size: 15px; margin-bottom: 8px; }
.seg { display: flex; flex-wrap: wrap; border: 1.5px solid var(--ink); border-radius: 3px; overflow: hidden; }
.seg label { flex: 1 1 auto; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; text-align: center; padding: 11px 10px; min-height: 44px; font-size: 15px; cursor: pointer; border-right: 1.5px solid var(--ink); }
.seg label:last-child span { border-right: 0; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: -3px; }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input[type=range] { flex: 1; accent-color: var(--ink); min-height: 32px; }
.range-row output { min-width: 112px; text-align: right; font-weight: 800; font-variation-settings: var(--wide); }
.est .out { border-top: 1.5px solid var(--ink); padding: clamp(18px, 3vw, 28px); background: var(--zinc); }
.est .out .big { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.02; font-weight: 800; font-variation-settings: var(--narrow); margin: 4px 0 8px; }
.est .out ul { margin: 10px 0 0; padding-left: 18px; font-size: 15px; }

/* states */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; max-width: 520px; }
.tiles button { aspect-ratio: 1 / .86; font: inherit; font-weight: 800; font-variation-settings: var(--wide); font-size: 18px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 2px; cursor: pointer; }
.tiles button.pending { border-style: dashed; color: var(--steel); }
.tiles button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.tiles .gap { visibility: hidden; }
.tiles .home::after { content: ''; display: block; width: 8px; height: 8px; background: var(--signal); border-radius: 50%; margin: 4px auto 0; }
.state-card { border-top: 1.5px solid var(--ink); padding-top: 16px; min-height: 13em; }
.state-card .st { font-size: 14px; font-variation-settings: var(--wide); color: var(--steel); }

/* faq */
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-variation-settings: var(--wide); padding: 14px 32px 14px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 10px; font-size: 24px; font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details > div { padding: 0 0 14px; }

/* lists that are really sequences */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.steps li { counter-increment: s; padding: 18px 18px 8px 0; }
.steps li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(s); display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border: 1.5px solid var(--ink); border-radius: 50%; font-weight: 800; font-size: 14px; margin-bottom: 10px; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } .steps li, .steps li + li { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); } }

.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 12px 0; border-top: 1px solid var(--line); }
.plain li b { font-variation-settings: var(--wide); }

/* bid form */
.bid { display: grid; gap: 16px; }
.bid .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 640px) { .bid .row { grid-template-columns: minmax(0, 1fr); } }
.bid label { display: block; font-weight: 700; font-variation-settings: var(--wide); font-size: 15px; }
.bid label small { font-weight: 400; color: var(--steel); font-variation-settings: 'wdth' 100; }
.bid input, .bid select, .bid textarea { display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 16px; padding: 11px 12px; border: 1.5px solid var(--ink); border-radius: 3px; background: #fff; color: var(--ink); }
.bid textarea { min-height: 140px; resize: vertical; }
.bid .hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.bid .msg { padding: 14px 16px; border-left: 4px solid var(--ink); background: var(--zinc); }
.bid .msg.ok { border-color: var(--ok); }
.bid .msg.err { border-color: var(--err); }
.card-ink { border: 1.5px solid var(--ink); padding: clamp(18px, 3vw, 28px); background: var(--paper); }

/* page head (inner pages) */
.phead { padding: clamp(36px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.crumb { font-size: 14px; color: var(--steel); margin: 0 0 16px; font-variation-settings: var(--wide); }
.crumb a { color: var(--steel); }

/* closing call */
.close { background: var(--ink); color: #eef2f6; padding: clamp(56px, 8vw, 96px) 0; }
.close h2 { color: #fff; max-width: 18ch; }
.close .acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.close .btn:not(.call) { border-color: #eef2f6; color: #eef2f6; }
.close .btn:not(.call):hover { background: #eef2f6; color: var(--ink); }

/* footer */
footer { background: var(--ink); color: #b9c5d3; font-size: 15px; padding: 0 0 96px; }
footer .wrap { border-top: 1px solid #2c3f5c; padding-top: 32px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
footer a { color: #eef2f6; }
footer b { color: #fff; font-variation-settings: var(--wide); }
footer .ver { grid-column: 1 / -1; font-size: 13px; color: #8193a9; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: minmax(0, 1fr); } }

/* phone call bar */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; border-top: 1.5px solid var(--ink); background: var(--paper); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
  .callbar .btn { min-height: 50px; padding: 0 10px; font-size: 15.5px; }
}
@media print { .top, .callbar, .close .acts, .layers { display: none; } }
@media (max-width: 640px) {
  .seg { flex-direction: column; }
  .seg span { border-right: 0; border-bottom: 1.5px solid var(--ink); text-align: left; padding-left: 14px; }
  .seg label:last-child span { border-bottom: 0; }
}
