/* Protech Building Solutions: site styles.
   Colours are theirs: logo black and logo yellow, the espresso and cream of their website,
   with timber tones from the boards they lay. Layout: a ledger, numbered and ruled like a quote. */

:root {
  --ink: #101010;          /* logo black, measured from their logo file */
  --espresso: #1D0E03;     /* their website's dark brown */
  --paper: #FAECE1;        /* their website's cream */
  --paper-2: #F2E0D0;      /* the cream, a shade down */
  --card: #FFF8F1;
  --yellow: #F1EC40;       /* logo yellow: on dark, or behind dark text only */
  --merbau: #8A3F23;
  --gum: #A8733F;
  --slate: #5F5A54;
  --muted: #5B4535;        /* body text on cream, 8:1 */
  --rule: rgba(29, 14, 3, .2);
  --rule-strong: rgba(29, 14, 3, .55);
  --on-dark: #F6EDE3;
  --on-dark-muted: #CDBFB1;
  --radius: 12px;
  --gutter: 16px;
  --head: 60px;
  --sans: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 12px); }
body {
  margin: 0; background: var(--paper); color: var(--espresso);
  font: 400 1.0625rem/1.55 var(--sans); font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.02; letter-spacing: -.03em; font-weight: 800; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 10px 16px; font-weight: 700; border-radius: 0 0 10px 10px; text-decoration: none; }
.skip:focus { top: 0; }
.needs-js { display: none; }
html.js .needs-js { display: revert; }
html.js .no-js-only { display: none; }

/* ---------- the gable: their logo's house outline, used as the frame for every number ---------- */
.no {
  display: inline-grid; place-items: end center; width: 2.6rem; height: 2.5rem; padding-bottom: .32rem;
  background: var(--ink); color: var(--yellow); font-weight: 800; font-size: .86rem; letter-spacing: .04em;
  clip-path: polygon(50% 0, 100% 42%, 100% 100%, 0 100%, 0 42%); flex: none;
}
.on-dark .no, .dark .no, .espresso .no, .no.inv { background: var(--yellow); color: var(--ink); }

/* ---------- board rule: a divider laid like decking, five boards with their gaps ---------- */
.boards {
  height: 22px; margin: 0; border: 0;
  background: repeating-linear-gradient(180deg, var(--rule-strong) 0 1px, transparent 1px 4.4px);
  mask-image: linear-gradient(90deg, #000 0 70%, transparent);
}
.on-dark .boards { background: repeating-linear-gradient(180deg, rgba(246, 237, 227, .45) 0 1px, transparent 1px 4.4px); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .8rem 1.3rem; border: 2px solid var(--bg); border-radius: 999px;
  background: var(--bg); color: var(--fg); font: 700 1rem/1.1 var(--sans); letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn.call { --bg: var(--yellow); --fg: var(--ink); }
.btn.ghost { background: transparent; color: var(--bg); }
.on-dark .btn.ghost, .hero .btn.ghost, .dark .btn.ghost, .espresso .btn.ghost { --bg: var(--on-dark); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- header ---------- */
.hd {
  position: sticky; top: 0; z-index: 40; background: var(--ink); color: var(--on-dark);
  border-bottom: 1px solid rgba(241, 236, 64, .0); transition: border-color .3s, box-shadow .3s;
}
.hd-in { display: flex; align-items: center; gap: 12px; height: var(--head); transition: height .3s var(--ease); }
.hd-logo { flex: none; display: block; }
.hd-logo img { height: 42px; width: auto; transition: height .3s var(--ease); }
.hd-nav { display: none; }
.hd-tel { margin-left: auto; color: var(--yellow); font-weight: 800; text-decoration: none; letter-spacing: .01em; white-space: nowrap; font-size: .98rem; }
.hd-quote { display: none; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1.5px solid rgba(246, 237, 227, .35); }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary span { width: 18px; height: 2px; background: var(--on-dark); position: relative; transition: background .2s; }
.menu > summary span::before, .menu > summary span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--on-dark); transition: transform .25s var(--ease); }
.menu > summary span::before { top: -6px; } .menu > summary span::after { top: 6px; }
.menu[open] > summary span { background: transparent; }
.menu[open] > summary span::before { transform: translateY(6px) rotate(45deg); }
.menu[open] > summary span::after { transform: translateY(-6px) rotate(-45deg); }
.menu-panel {
  position: fixed; left: 0; right: 0; top: var(--head); bottom: 0; background: var(--ink); padding: 8px var(--gutter) 120px; overflow-y: auto;
  border-top: 1px solid rgba(246, 237, 227, .15);
}
.menu-panel a { display: grid; grid-template-columns: 2.4rem 1fr; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(246, 237, 227, .14); color: var(--on-dark); text-decoration: none; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.menu-panel a small { color: var(--yellow); font-size: .8rem; font-weight: 700; letter-spacing: .06em; }
.menu-panel a[aria-current="page"] { color: var(--yellow); }
.menu-panel .menu-foot { margin-top: 20px; color: var(--on-dark-muted); font-size: .95rem; }
.hd.is-stuck { border-bottom-color: rgba(241, 236, 64, .35); box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.hd.is-stuck .hd-in { height: 52px; }
.hd.is-stuck .hd-logo img { height: 34px; }
.hd.is-stuck ~ * .menu-panel, .hd.is-stuck .menu-panel { top: 52px; }

@media (min-width: 1000px) {
  :root { --head: 76px; --gutter: 32px; }
  .hd-logo img { height: 52px; }
  .hd.is-stuck .hd-in { height: 60px; }
  .hd.is-stuck .hd-logo img { height: 40px; }
  .hd-quote { display: inline-flex; min-height: 42px; padding: .5rem 1rem; margin-left: 4px; }
  .hd-tel { font-size: 1.05rem; }
}
@media (min-width: 1180px) {
  .menu { display: none; }
  .hd-nav { display: flex; gap: 0; margin-left: 14px; }
  .hd-nav a { color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: .93rem; padding: 8px 9px; border-radius: 8px; white-space: nowrap; }
  .hd-nav a:hover { background: rgba(246, 237, 227, .08); }
  .hd-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--yellow); border-radius: 0; }
  .hd-quote { margin-left: 14px; }
}

/* ---------- call bar: phones only; slims to the Call button while reading down ---------- */
.cb {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(20, 20, 20, .96);
  border-top: 1px solid rgba(241, 236, 64, .35); transition: padding .3s var(--ease);
}
.cb .btn { flex: 0 0 auto; min-height: 50px; padding: .6rem 1rem; font-size: .96rem; white-space: nowrap; transition: flex-basis .35s var(--ease), opacity .25s, padding .3s, min-height .3s; }
.cb .btn.call { flex: 1 1 auto; }
.cb .btn svg { width: 16px; height: 16px; }
.cb .btn.ghost { --bg: var(--on-dark); }
.cb.is-down { padding-top: 7px; padding-bottom: calc(7px + env(safe-area-inset-bottom)); }
.cb.is-down .btn { min-height: 44px; }
.cb.is-down .btn.ghost { width: 0; padding-inline: 0; margin-left: -8px; opacity: 0; border-width: 0; overflow: hidden; pointer-events: none; }
.cb .btn.ghost { width: 8.6rem; transition: width .35s var(--ease), opacity .25s, padding .3s, margin .35s, min-height .3s; }
@media (min-width: 1000px) { .cb { display: none; } }
body { padding-bottom: 76px; }
@media (min-width: 1000px) { body { padding-bottom: 0; } }

/* ---------- sections, the ledger ---------- */
.sec { padding-block: 44px; border-top: 1px solid var(--rule); }
.sec.alt { background: var(--paper-2); }
.sec.dark, .on-dark { background: var(--ink); color: var(--on-dark); border-top-color: transparent; }
.sec.espresso { background: var(--espresso); color: var(--on-dark); border-top-color: transparent; }
.sec-head { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 10px; align-items: end; margin-bottom: 22px; }
.sec-head h2 { font-size: clamp(2rem, 8.4vw, 3.9rem); }
.sec-head p { grid-column: 1 / -1; max-width: 40rem; margin: 0; color: var(--muted); font-size: 1.08rem; }
.on-dark .sec-head p, .dark .sec-head p, .espresso .sec-head p { color: var(--on-dark-muted); }
.kicker { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.on-dark .kicker, .dark .kicker, .espresso .kicker { color: var(--yellow); }
@media (min-width: 1000px) {
  .sec { padding-block: 96px; }
  .sec-head { grid-template-columns: 5rem 1fr; margin-bottom: 44px; }
  .sec-head .no { width: 3.4rem; height: 3.2rem; font-size: 1rem; }
  .sec-head p { grid-column: 2; }
}

/* ---------- hero: the promise, flat, over their own deck ---------- */
.hero { background: var(--ink); color: var(--on-dark); }
.hero-in { display: grid; }
.hero-ph { position: relative; aspect-ratio: 4 / 3; max-height: 42vh; width: 100%; overflow: hidden; background: #2a2a2a; margin-inline: auto; }
.hero-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-ph figcaption { position: absolute; left: 10px; bottom: 10px; z-index: 3; background: rgba(20, 20, 20, .78); color: var(--on-dark); font-size: .74rem; font-weight: 600; letter-spacing: .04em; padding: 5px 9px; border-radius: 6px; }
.hero-copy { padding: 20px var(--gutter) 30px; }
.hero .kicker { color: var(--on-dark-muted); margin-bottom: 8px; }
.hero h1 { font-size: clamp(2.7rem, 13.2vw, 7.2rem); letter-spacing: -.045em; line-height: .92; }
.hero h1 .promise { display: block; color: var(--on-dark); }
.hero h1 .promise em { font-style: normal; color: var(--yellow); }
.hero h1 .what { display: block; margin-top: 14px; font-size: clamp(1.12rem, 4.6vw, 1.6rem); line-height: 1.22; letter-spacing: -.012em; font-weight: 700; color: var(--on-dark); max-width: 26ch; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 16px 0 22px; font-size: .9rem; color: var(--on-dark-muted); }
.hero-facts li { padding-right: 12px; margin-right: 12px; border-right: 1px solid rgba(246, 237, 227, .25); }
.hero-facts li:last-child { border-right: 0; }
.hero .btn-row .btn { flex: 1 1 auto; }
@media (min-width: 760px) { .hero-ph { max-height: 56vh; } }
@media (min-width: 1000px) {
  .hero-in { grid-template-columns: 5fr 6fr; min-height: calc(92vh - var(--head)); align-items: stretch; }
  .hero-copy { padding: 56px 44px 56px var(--gutter); align-self: center; max-width: 640px; justify-self: end; }
  .hero h1 { font-size: clamp(3.4rem, 7.2vw, 6.6rem); }
  .hero-ph { aspect-ratio: auto; max-height: none; height: 100%; order: 2; }
  .hero .btn-row .btn { flex: 0 0 auto; }
}

/* The opening: the deck is first shown as an engraving pulled from the photo, then oiled in, board by board, from the house out. */
.oil img { --n: 9; clip-path: inset(calc(var(--i) * 100% / var(--n)) 0 calc(100% - (var(--i) + 1) * 100% / var(--n) - .4%) 0); }
.oil img:nth-child(1) { --i: 0; } .oil img:nth-child(2) { --i: 1; } .oil img:nth-child(3) { --i: 2; }
.oil img:nth-child(4) { --i: 3; } .oil img:nth-child(5) { --i: 4; } .oil img:nth-child(6) { --i: 5; }
.oil img:nth-child(7) { --i: 6; } .oil img:nth-child(8) { --i: 7; } .oil img:nth-child(9) { --i: 8; }
@media (prefers-reduced-motion: no-preference) {
  .oil img { animation: oil-in 1.05s var(--ease) both, wet .1s linear both; animation-delay: calc(.75s + var(--i) * .16s), calc(.75s + var(--i) * .16s); }
  .oil img { animation-name: oil-in, wet-off; animation-duration: 1.05s, 2.4s; }
  .hero-ph .plate { animation: plate-in .7s ease-out both; }
}
@keyframes oil-in {
  from { clip-path: inset(calc(var(--i) * 100% / var(--n)) 100% calc(100% - (var(--i) + 1) * 100% / var(--n) - .4%) 0); }
  to { clip-path: inset(calc(var(--i) * 100% / var(--n)) 0 calc(100% - (var(--i) + 1) * 100% / var(--n) - .4%) 0); }
}
@keyframes wet-off { from { filter: brightness(1.28) saturate(1.35) contrast(1.05); } to { filter: none; } }
@keyframes plate-in { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }

/* ---------- the work: a row to swipe ---------- */
.row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; padding: 2px var(--gutter) 16px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: thin;
}
.row > * { scroll-snap-align: start; scroll-margin-left: var(--gutter); }
@media (min-width: 700px) { .row { grid-auto-columns: 44%; } }
@media (min-width: 1000px) { .row { grid-auto-columns: calc((100% - 36px) / 3.3); } }
.job { margin: 0; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.job a { text-decoration: none; display: block; }
.job img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.job figcaption { padding: 12px 14px 14px; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; }
.job .n { grid-row: span 2; font-weight: 800; font-size: .8rem; color: var(--muted); padding-top: 3px; }
.job b { font-size: 1.05rem; letter-spacing: -.01em; }
.job span { color: var(--muted); font-size: .92rem; line-height: 1.4; }
.row-note { font-size: .92rem; color: var(--muted); margin: 6px 0 0; max-width: 46rem; }

/* ---------- what we build: ledger rows with an engraving each ---------- */
.ledger { border-top: 2px solid var(--espresso); }
.ledger a {
  display: grid; grid-template-columns: 2rem 1fr 92px; align-items: center; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid var(--rule); text-decoration: none;
}
.ledger .n { font-weight: 800; font-size: .82rem; color: var(--muted); align-self: start; padding-top: 6px; }
.ledger h3 { font-size: clamp(1.35rem, 5.4vw, 2.2rem); letter-spacing: -.025em; }
.ledger p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; line-height: 1.4; }
.ledger img { width: 92px; height: 72px; object-fit: contain; transition: transform .35s var(--ease); }
.ledger a:hover img { transform: scale(1.06) rotate(-1deg); }
.ledger a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
@media (min-width: 1000px) {
  .ledger a { grid-template-columns: 5rem 1fr 200px; padding: 18px 0; }
  .ledger img { width: 200px; height: 130px; }
}

/* ---------- proof ---------- */
.proof-quote { margin: 0 0 26px; font-size: clamp(1.4rem, 5.6vw, 2.5rem); line-height: 1.18; letter-spacing: -.02em; font-weight: 700; max-width: 26ch; }
.proof-quote::before { content: "“"; display: block; font-size: 3.2em; line-height: .6; color: var(--yellow); height: .42em; }
.proof-by { font-size: .92rem; color: var(--on-dark-muted); margin-bottom: 28px; }
.proof-by a { color: var(--on-dark); }
.scores { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid rgba(246, 237, 227, .25); border-bottom: 1px solid rgba(246, 237, 227, .25); margin-bottom: 26px; }
.scores div { padding: 14px 12px 14px 0; }
.scores div + div { border-left: 1px solid rgba(246, 237, 227, .25); padding-left: 14px; }
.scores b { display: block; font-size: clamp(2.2rem, 9vw, 3.4rem); color: var(--yellow); letter-spacing: -.04em; line-height: 1; }
.scores span { font-size: .88rem; color: var(--on-dark-muted); }
.reviews .rev { background: rgba(246, 237, 227, .06); border: 1px solid rgba(246, 237, 227, .16); border-radius: var(--radius); padding: 18px; margin: 0; display: flex; flex-direction: column; }
.reviews .rev p { font-size: 1rem; line-height: 1.5; }
.reviews .rev footer { margin-top: auto; font-size: .86rem; color: var(--on-dark-muted); }
.reviews .rev footer b { color: var(--on-dark); }
.light .rev { background: var(--card); border-color: var(--rule); }
.light .rev footer { color: var(--muted); }
.light .rev footer b { color: var(--espresso); }

/* ---------- steps (teaser and page) ---------- */
.steps-row li { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; }
.steps-row h3 { font-size: 1.25rem; margin: 12px 0 6px; letter-spacing: -.015em; }
.steps-row p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.45; }

/* ---------- close: the number, big ---------- */
.close-tel { display: inline-block; font-size: clamp(2.5rem, 12vw, 6rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; color: var(--yellow); text-decoration: none; margin: 4px 0 18px; }
.close-tel:hover { text-decoration: underline; text-decoration-thickness: 4px; }
.facts { display: grid; gap: 0; border-top: 1px solid rgba(246, 237, 227, .22); margin: 18px 0 24px; }
.facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(246, 237, 227, .22); font-size: .98rem; }
.facts dt { color: var(--on-dark-muted); }
.facts dd { margin: 0; }
.light .facts, .light .facts div { border-color: var(--rule); }
.light .facts dt { color: var(--muted); }

/* ---------- footer ---------- */
.ft { background: var(--espresso); color: var(--on-dark-muted); padding: 48px 0 32px; font-size: .94rem; }
.ft a { color: var(--on-dark); }
.ft-grid { display: grid; gap: 22px 18px; grid-template-columns: 1fr 1fr; }
.ft-grid > div:first-child { grid-column: 1 / -1; }
.ft-grid > div:last-child { grid-column: 1 / -1; }
.ft-grid > div:last-child ul { display: flex; flex-wrap: wrap; gap: 0 12px; }
.ft p { margin-bottom: .5em; }
.ft-name { color: var(--on-dark); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; margin-bottom: 4px; }
.ft h2 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 10px; font-weight: 700; }
.ft li { padding: 3px 0; }
.ft-base { margin-top: 34px; padding-top: 16px; border-top: 1px solid rgba(246, 237, 227, .18); display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; font-size: .82rem; }
.credit a { color: var(--on-dark-muted); text-decoration-thickness: 1px; }
@media (min-width: 800px) {
  .ft-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .ft-grid > div:first-child, .ft-grid > div:last-child { grid-column: auto; }
  .ft-grid > div:last-child ul { display: block; }
}

/* ---------- inner pages ---------- */
.page-hero { background: var(--paper); padding: 30px 0 34px; border-bottom: 1px solid var(--rule); }
.page-hero .crumb { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.page-hero .crumb a { color: var(--muted); }
.page-hero h1 { font-size: clamp(2.3rem, 10.5vw, 5.4rem); letter-spacing: -.045em; line-height: .95; max-width: 16ch; }
.page-hero .lede { font-size: clamp(1.1rem, 4.4vw, 1.35rem); line-height: 1.45; margin: 16px 0 22px; max-width: 38rem; color: var(--espresso); }
.page-hero .art { margin: 18px auto 0; max-width: 560px; }
.page-hero .art img { width: 100%; }
@media (min-width: 1000px) {
  .page-hero { padding: 56px 0 64px; }
  .page-hero .wrap.split { display: grid; grid-template-columns: 6fr 5fr; gap: 48px; align-items: center; }
  .page-hero .art { margin: 0; }
}
.prose { max-width: 42rem; }
.prose h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); margin: 36px 0 12px; }
.prose h3 { font-size: 1.3rem; margin: 26px 0 8px; letter-spacing: -.015em; }
.prose p, .prose li { color: var(--espresso); }
.prose ul { margin: 0 0 1em; }
.prose ul li { padding: 8px 0 8px 22px; border-bottom: 1px solid var(--rule); position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 10px; height: 9px; background: var(--espresso); clip-path: polygon(50% 0, 100% 42%, 100% 100%, 0 100%, 0 42%); }
.two { display: grid; gap: 28px; }
@media (min-width: 1000px) { .two { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* a spec ledger: what a job is made of, line by line */
.spec { border-top: 2px solid var(--espresso); margin: 0 0 1.5em; }
.spec div { display: grid; grid-template-columns: 2.2rem 1fr; gap: 4px 10px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.spec dt { font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; grid-column: 2; }
.spec dt .n { position: absolute; }
.spec .n { grid-row: span 2; font-weight: 800; font-size: .8rem; color: var(--muted); padding-top: 4px; }
.spec dd { margin: 0; grid-column: 2; color: var(--muted); line-height: 1.45; }

/* materials: three boards side by side */
.mats { display: grid; gap: 12px; }
@media (min-width: 760px) { .mats { grid-template-columns: repeat(3, 1fr); } }
.mat { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.mat .sw { height: 64px; background: repeating-linear-gradient(180deg, var(--c1) 0 26px, var(--c2) 26px 27px); }
.mat.gum { --c1: #B98A57; --c2: #6E4A27; }
.mat.merbau { --c1: #8E4429; --c2: #4E2312; }
.mat.composite { --c1: #8C857C; --c2: #4F4A44; }
.mat div { padding: 14px 16px 16px; }
.mat h3 { font-size: 1.3rem; margin-bottom: 6px; }
.mat p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.45; }

/* FAQ: short lists that open */
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 1fr 28px; gap: 12px; align-items: center; padding: 16px 0; font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; text-align: center; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--muted); max-width: 40rem; }
.faq { border-top: 2px solid var(--espresso); }

/* ---------- drawn / built slider (each job) ---------- */
.db { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); --pos: 50%; touch-action: pan-y; user-select: none; }
.db img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.db .drawn { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.db .bar { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--yellow); box-shadow: 0 0 0 1px var(--ink); pointer-events: none; }
.db .bar::after { content: "↔"; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 800; box-shadow: 0 0 0 2px var(--ink); }
.db .tag { position: absolute; top: 10px; z-index: 2; background: rgba(20, 20, 20, .82); color: var(--on-dark); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; pointer-events: none; }
.db .tag.l { left: 10px; } .db .tag.r { right: 10px; }
.db input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.db:focus-within { outline: 3px solid var(--yellow); outline-offset: 3px; }
.project { display: grid; gap: 16px; padding: 28px 0; border-top: 1px solid var(--rule); }
.project h2 { font-size: clamp(1.6rem, 6.4vw, 2.6rem); }
.project .meta { font-size: .84rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.project p { color: var(--muted); margin: 10px 0 0; max-width: 36rem; }
@media (min-width: 1000px) { .project { grid-template-columns: 7fr 5fr; gap: 40px; align-items: center; padding: 44px 0; } .project:nth-of-type(even) .db { order: 2; } }
.smalls { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.smalls figure { margin: 0; }
.smalls img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.smalls figcaption { font-size: .88rem; color: var(--muted); margin-top: 6px; }

/* ---------- the build story (how it works) ---------- */
.story { display: grid; gap: 0; }
.story-fig { position: sticky; top: calc(var(--head) - 8px); z-index: 3; background: var(--paper); margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter) 8px; border-bottom: 1px solid var(--rule); }
.story-fig svg { max-height: 34vh; width: 100%; margin: 0 auto; }
.story-fig figcaption { text-align: center; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.story-steps li { padding: 30px 0; border-bottom: 1px solid var(--rule); min-height: 46vh; }
.story-steps .when { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.story-steps .when span:not(.no) { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.story-steps h2 { font-size: clamp(1.7rem, 7vw, 2.8rem); margin-bottom: 10px; }
.story-steps p { max-width: 36rem; color: var(--espresso); }
.story-steps .check { font-size: .92rem; color: var(--muted); border-left: 3px solid var(--yellow); padding-left: 12px; }
@media (min-width: 1000px) {
  .story { grid-template-columns: 6fr 5fr; gap: 56px; align-items: start; }
  .story-fig { order: 2; top: calc(var(--head) + 24px); border: 0; margin: 0; padding: 0; background: none; }
  .story-fig svg { max-height: 70vh; }
  .story-steps li { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; }
}
.eg .eg-stage { transition: opacity .55s var(--ease), transform .55s var(--ease); }
html.js .story[data-step="0"] .eg-stage,
html.js .story[data-step="1"] :is(.eg-s2, .eg-s3, .eg-s4, .eg-s5, .eg-s6, .eg-s7),
html.js .story[data-step="2"] :is(.eg-s3, .eg-s4, .eg-s5, .eg-s6, .eg-s7),
html.js .story[data-step="3"] :is(.eg-s4, .eg-s5, .eg-s6, .eg-s7),
html.js .story[data-step="4"] :is(.eg-s5, .eg-s6, .eg-s7),
html.js .story[data-step="5"] :is(.eg-s6, .eg-s7),
html.js .story[data-step="6"] .eg-s7 { opacity: 0; transform: translateY(-14px); }

/* ---------- the quote drawer: rises over the page ---------- */
.qd {
  position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: none; max-height: 92vh; overflow-y: auto;
  border: 0; border-radius: 20px 20px 0 0; padding: 0; background: var(--paper); color: var(--espresso);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .35);
  transition: transform .42s var(--ease), opacity .3s, display .42s allow-discrete, overlay .42s allow-discrete;
  transform: translateY(104%);
}
.qd:popover-open { transform: none; }
@starting-style { .qd:popover-open { transform: translateY(104%); } }
.qd::backdrop { background: rgba(20, 20, 20, .55); transition: background .3s, display .3s allow-discrete, overlay .3s allow-discrete; }
@starting-style { .qd:popover-open::backdrop { background: rgba(20, 20, 20, 0); } }
.qd-head { position: sticky; top: 0; z-index: 2; background: var(--ink); color: var(--on-dark); padding: 16px var(--gutter) 14px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.qd-head h2 { font-size: 1.5rem; letter-spacing: -.02em; }
.qd-head p { grid-column: 1; margin: 2px 0 0; font-size: .9rem; color: var(--on-dark-muted); }
.qd-head p a { color: var(--yellow); font-weight: 700; }
.qd-x { grid-row: 1 / span 2; grid-column: 2; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(246, 237, 227, .4); background: none; color: var(--on-dark); font-size: 1.3rem; cursor: pointer; }
.qd-body { padding: 18px var(--gutter) 26px; }
.qd::before { content: ""; display: block; width: 44px; height: 4px; border-radius: 4px; background: rgba(246, 237, 227, .45); position: absolute; top: 6px; left: 50%; margin-left: -22px; z-index: 3; }
@media (min-width: 1000px) {
  .qd { inset: auto 28px 28px auto; width: 440px; border-radius: 18px; max-height: calc(100vh - 56px); transform: translateY(24px); opacity: 0; }
  .qd:popover-open { opacity: 1; }
  @starting-style { .qd:popover-open { transform: translateY(24px); opacity: 0; } }
  .qd::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { .qd, .qd::backdrop { transition: none; } }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
.form label span { font-weight: 400; color: var(--muted); font-size: .86rem; }
.form input, .form textarea, .form select {
  width: 100%; font: inherit; color: var(--espresso); background: var(--card); border: 1.5px solid var(--rule-strong); border-radius: 10px;
  padding: 12px 13px; min-height: 50px; font-weight: 400;
}
.form textarea { min-height: 130px; resize: vertical; line-height: 1.45; }
.form input:focus, .form textarea:focus { border-color: var(--ink); outline: 3px solid var(--yellow); outline-offset: 1px; }
.form .pair { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.form .fine { font-size: .84rem; color: var(--muted); margin: 0; }
.form .btn { width: 100%; }
.carried { display: none; background: var(--card); border: 1px dashed var(--rule-strong); border-radius: 10px; padding: 10px 12px; font-size: .9rem; }
.carried.on { display: block; }
.carried b { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

/* ---------- arrivals: sections settle in as they are reached ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  html.js .rv.in { opacity: 1; transform: none; }
  @view-transition { navigation: auto; }
  ::view-transition-group(*) { animation-duration: .5s; animation-timing-function: cubic-bezier(.3, .7, .2, 1); }
}
/* a job's picture grows into the top of its own page */
.vt-decks { view-transition-name: vt-decks; }
.vt-patios { view-transition-name: vt-patios; }
.vt-sheds { view-transition-name: vt-sheds; }
.vt-renos { view-transition-name: vt-renos; }
.vt-work { view-transition-name: vt-work; }
::view-transition-old(vt-decks), ::view-transition-new(vt-decks),
::view-transition-old(vt-patios), ::view-transition-new(vt-patios),
::view-transition-old(vt-sheds), ::view-transition-new(vt-sheds),
::view-transition-old(vt-renos), ::view-transition-new(vt-renos),
::view-transition-old(vt-work), ::view-transition-new(vt-work) { height: 100%; object-fit: contain; }

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

/* ---------- 404 ---------- */
.lost { min-height: 60vh; display: grid; align-content: center; padding-block: 48px; }
.lost h1 { font-size: clamp(2.6rem, 12vw, 6rem); letter-spacing: -.045em; line-height: .95; margin-bottom: 16px; }
.lost img { width: min(420px, 100%); margin: 0 0 22px; }
.lost .lede { font-size: 1.15rem; margin-bottom: 22px; }
