/* First Carpentry: site styles. Colours from their own site and logo (see DEMO-NOTES.md). */
@font-face { font-family: "Outfit"; src: url("/fonts/outfit.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --navy: #000054;          /* their header bar and headings */
  --navy-deep: #00003a;     /* their hero overlay */
  --orange: #f25b3a;        /* their buttons */
  --orange-ink: #b8391b;    /* the same orange, deepened for text on paper */
  --brown: #411e09;         /* their logo ring */
  --grey: #6a5d55;          /* their logo figure, deepened for text */
  --paper: #f7f3ec;
  --paper-2: #efe8dc;
  --line: #ddd2c1;
  --ink: #1a1a3d;
  --timber: #a9502c;        /* the oiled deck in their photos */
  --white: #fff;
  --radius: 4px;
  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 40px);
  --hd: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hd) + 12px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--orange-ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-weight: 650; line-height: 1.08; letter-spacing: -.02em; color: var(--navy); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 7.4vw, 4.25rem); font-weight: 700; letter-spacing: -.03em; }
h2 { font-size: clamp(1.7rem, 4.8vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 42rem; }
.wrap.narrow, .page-hero .wrap.prose { max-width: none; width: min(100% - 2 * var(--gut), var(--wrap)); }
.wrap.narrow > *, .page-hero .wrap.prose > * { max-width: 46rem; }
.lost .wrap.narrow > * { margin-inline: auto; }
.kicker { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-ink); margin: 0 0 .9rem; }
.lede { font-size: clamp(1.1rem, 2.6vw, 1.3rem); color: #34344f; }
.muted { color: var(--grey); }
.small { font-size: .9rem; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* skip link */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius); font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; color: #fff; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 52px; padding: .8em 1.35em; border-radius: var(--radius); border: 2px solid transparent; font: inherit; font-weight: 650; font-size: 1.02rem; letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background-color .2s, color .2s, box-shadow .2s; }
.btn:active { transform: translateY(1px); }
.btn-call { background: var(--orange); color: var(--navy); }
.btn-call:hover { background: #ff6d4d; color: var(--navy); box-shadow: 0 6px 18px -8px rgba(242, 91, 58, .8); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.on-dark .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .7); }
.on-dark .btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn .scr { width: 10px; height: 18px; flex: none; background: radial-gradient(circle at 50% 4px, currentColor 2.3px, transparent 2.8px), radial-gradient(circle at 50% 14px, currentColor 2.3px, transparent 2.8px); opacity: .55; }
.arrow { font-weight: 650; text-decoration: none; display: inline-flex; gap: .4em; align-items: center; }
.arrow::after { content: "→"; transition: transform .2s var(--ease); }
.arrow:hover::after { transform: translateX(4px); }

/* ---------- the motif: a deck board with a screw pair at every joist ---------- */
.board {
  height: 12px; border-radius: 1px;
  background:
    radial-gradient(circle at 22px 3.5px, #4a2412 1.4px, transparent 1.9px) 0 0 / 45px 12px repeat-x,
    radial-gradient(circle at 22px 8.5px, #4a2412 1.4px, transparent 1.9px) 0 0 / 45px 12px repeat-x,
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(0,0,0,.12)),
    repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 1px, transparent 1px 13px, rgba(255,255,255,.05) 13px 14px, transparent 14px 29px),
    var(--timber);
}
.board-wrap { padding-block: 0; }
.board-wrap .board { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }

/* scroll progress: the board being laid along the top of the screen */
.pl { position: fixed; left: 0; right: 0; top: var(--hd); height: 5px; z-index: 39; pointer-events: none; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.pl .board { height: 5px; background-size: 45px 5px, 45px 5px, auto, auto, auto; background-image:
  radial-gradient(circle at 22px 2.5px, #4a2412 1.1px, transparent 1.5px), radial-gradient(circle at 26px 2.5px, #4a2412 1.1px, transparent 1.5px),
  linear-gradient(180deg, rgba(255,255,255,.2), rgba(0,0,0,.15)), none, none; background-color: var(--timber); }

/* ---------- header ---------- */
.hd { position: sticky; top: 0; z-index: 40; background: rgba(247, 243, 236, .94); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .hd { background: rgba(247, 243, 236, .82); backdrop-filter: saturate(1.4) blur(10px); } }
.hd-in { display: flex; align-items: center; gap: 12px; height: var(--hd); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); margin-right: auto; min-width: 0; }
.brand img { width: 62px; height: auto; transition: width .3s var(--ease); }
.brand b { display: block; font-size: 1.12rem; font-weight: 700; letter-spacing: .02em; line-height: 1.05; text-transform: uppercase; white-space: nowrap; }
.brand small { display: block; font-size: .72rem; font-weight: 500; color: var(--grey); letter-spacing: .06em; transition: opacity .25s, height .25s; height: 1.2em; overflow: hidden; }
.hd.slim .brand img { width: 50px; }
.hd.slim .brand small { opacity: 0; height: 0; }
.hd-call { display: none; font-weight: 700; text-decoration: none; color: var(--navy); white-space: nowrap; }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--navy); font: inherit; font-weight: 600; cursor: pointer; }
.menu-btn .bars { width: 16px; height: 10px; background: linear-gradient(currentColor 0 0) 0 0 / 100% 2px no-repeat, linear-gradient(currentColor 0 0) 0 100% / 70% 2px no-repeat; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; color: var(--navy); font-weight: 550; }
.nav a[aria-current="page"] { color: var(--orange-ink); }
@media (max-width: 959px) {
  .nav ul { position: fixed; inset: var(--hd) 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gut) 20px; display: none; box-shadow: 0 20px 40px -20px rgba(0, 0, 84, .35); max-height: calc(100dvh - var(--hd)); overflow: auto; }
  .nav.open ul { display: block; }
  .nav li a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav li:last-child a { border-bottom: 0; }
  .no-js .nav ul { display: block; position: static; box-shadow: none; }
}
@media (min-width: 960px) {
  :root { --hd: 76px; }
  .menu-btn { display: none; }
  .nav ul { display: flex; gap: 22px; }
  .nav a { font-size: .98rem; }
  .nav a:hover { color: var(--orange-ink); }
  .hd-call { display: inline-flex; margin-left: 18px; padding: 10px 16px; background: var(--orange); border-radius: var(--radius); }
  .hd-call:hover { color: var(--navy); background: #ff6d4d; }
  .brand img { width: 74px; }
  .hd.slim .brand img { width: 58px; }
}

/* ---------- phone bar (phones) ---------- */
.cb { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--navy); box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .5); transition: transform .3s var(--ease); }
.cb .btn { flex: 1 1 0; min-height: 50px; font-size: .98rem; padding: .6em .6em; white-space: nowrap; transition: flex-grow .3s var(--ease), opacity .2s, padding .3s; }
.cb .btn-call { flex-grow: 1.7; }
@media (max-width: 359px) { .cb .btn-call .scr { display: none; } }
.cb .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
.cb.slim .btn-ghost { flex-grow: 0; padding-inline: 0; width: 0; opacity: 0; border-width: 0; overflow: hidden; }
.cb.slim .btn-call { min-height: 46px; }
@media (min-width: 960px) { .cb { display: none; } }
@media (max-width: 959px) { .ft { padding-bottom: 96px !important; } }

/* ---------- sections ---------- */
.sec { padding-block: clamp(56px, 9vw, 112px); }
.sec-tight { padding-block: clamp(40px, 6vw, 72px); }
.sec-dark { background: var(--navy); color: #e8e6f4; }
.sec-dark h2, .sec-dark h3 { color: #fff; }
.sec-dark a:not(.btn) { color: #fff; }
.sec-dark .kicker { color: var(--orange); }
.sec-dark .muted { color: #b9b6d6; }
.sec-paper2 { background: var(--paper-2); }
.sec-head { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: end; justify-content: space-between; margin-bottom: clamp(22px, 4vw, 40px); }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; max-width: 36rem; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--paper); padding-top: clamp(18px, 4vw, 48px); padding-bottom: clamp(28px, 6vw, 72px); }
.hero-in { display: grid; gap: 10px; }
.hero h1 { margin-bottom: .3em; }
.hero h1 em { font-style: normal; color: var(--orange-ink); }
.hero .lede { margin-bottom: 1.1em; max-width: 34rem; }
.hero-art { margin: 0 -6px; position: relative; }
.hero-art::after { content: ""; position: absolute; inset: auto 6% 4% 6%; height: 14%; background: radial-gradient(closest-side, rgba(0, 0, 84, .16), transparent); z-index: -1; }
.trust { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; padding: 0; margin: 16px 0 0; font-size: .9rem; color: var(--grey); }
.trust li { display: flex; align-items: center; gap: 7px; }
.trust li::before { content: ""; width: 7px; height: 7px; background: var(--orange); transform: rotate(45deg) skew(-8deg, -8deg); }
@media (max-width: 719px) {
  .hero-in { grid-template-areas: "copy" "art" "cta"; }
  .hero-copy { grid-area: copy; }
  .hero-art { grid-area: art; margin: -6px auto 0; width: min(100%, 340px); }
  .hero-cta { grid-area: cta; }
  .hero h1 { font-size: clamp(2.1rem, 10vw, 2.7rem); }
  .hero .lede { font-size: 1.05rem; margin-bottom: 0; }
  .hero-cta .btn { flex: 1 1 100%; }
}
@media (min-width: 720px) {
  .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 24px 40px; grid-template-areas: "copy art" "cta art"; }
  .hero-copy { grid-area: copy; align-self: end; }
  .hero-cta { grid-area: cta; align-self: start; }
  .hero-art { grid-area: art; }
}

/* the isometric yard */
.iso { overflow: visible; }
.iso-s polygon { stroke: rgba(40, 20, 8, .3); stroke-width: .7; stroke-linejoin: round; }
.yard { width: 100%; height: auto; }
/* built in stages: shown by the play animation on the home page, or by the stage tool */
.yard .s1, .yard .s2, .yard .s3, .yard .s4, .yard .s5, .yard .s6, .yard .s7 { transform-box: fill-box; }
@media (prefers-reduced-motion: no-preference) {
  .yard.play .s1, .yard.play .s2, .yard.play .s3, .yard.play .s4, .yard.play .s5, .yard.play .s6, .yard.play .s7 { animation: drop .55s var(--ease) both; }
  .yard.play .s1 { animation-delay: .25s; }
  .yard.play .s2 { animation-delay: .7s; }
  .yard.play .s3 { animation-delay: 1.1s; }
  .yard.play .s4 { animation-delay: 1.55s; }
  .yard.play .s6 { animation-delay: 3.05s; }
  .yard.play .s7 { animation-delay: 3.55s; }
  .yard.play .s1.e3 { animation: drop .55s var(--ease) .25s both, gone .4s ease 1.3s forwards; }
  .yard.play .s3.e8 { animation: drop .55s var(--ease) 1.1s both, gone .5s ease 4.3s forwards; }
}
@media (prefers-reduced-motion: reduce) { .yard.play .e3, .yard.play .e8 { display: none; } }
.no-anim .yard.play .e3, .no-anim .yard.play .e8 { display: none; }
@keyframes drop { from { opacity: 0; transform: translateY(-14px); } }
@keyframes gone { to { opacity: 0; } }

/* ---------- photo stage slider ("drag the job") ---------- */
.stg { margin: 0; }
.stg-frame { position: relative; overflow: hidden; border-radius: var(--radius); background: #d9d0c1; aspect-ratio: 4 / 3; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; box-shadow: 0 24px 48px -28px rgba(0, 0, 84, .55); }
.stg-frame.p34 { aspect-ratio: 3 / 4; }
.stg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stg-img + .stg-img { clip-path: inset(0 100% 0 0); }
.no-js .stg-img + .stg-img { display: none; }
.stg-line { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); opacity: 0; pointer-events: none; }
.stg-line::after { content: ""; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.stg-line::before { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -52%); z-index: 1; font-weight: 700; color: var(--navy); font-size: 1.05rem; letter-spacing: .05em; white-space: nowrap; }
.stg-tag { position: absolute; left: 12px; top: 12px; padding: 5px 10px; background: rgba(0, 0, 58, .82); color: #fff; font-size: .82rem; font-weight: 600; border-radius: 3px; letter-spacing: .02em; }
.stg-ctrl { margin-top: 14px; }
.stg-ctrl input[type="range"] { width: 100%; margin: 0; accent-color: var(--orange); height: 28px; cursor: pointer; }
.stg-ticks { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; list-style: none; padding: 0; margin: 4px 0 0; gap: 4px; }
.stg-ticks li:first-child { text-align: left; }
.stg-ticks li:last-child { text-align: right; }
.stg-ticks li { text-align: center; }
.stg-ticks button { font: inherit; font-size: .86rem; font-weight: 550; color: var(--grey); background: none; border: 0; padding: 6px 2px; cursor: pointer; line-height: 1.2; }
.stg-ticks button[aria-current="step"] { color: var(--navy); font-weight: 700; }
.stg figcaption { margin-top: 10px; font-size: .92rem; color: var(--grey); }
.no-js .stg-ctrl { display: none; }

/* job tabs on the home page */
.tabs { display: flex; gap: 6px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; font: inherit; font-weight: 600; font-size: .95rem; padding: 10px 14px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.jobs-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .jobs-home { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; } }

/* ---------- swipe rows ---------- */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 300px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gut) 16px; margin-inline: calc(var(--gut) * -1); scroll-padding-inline: var(--gut); scrollbar-width: thin; }
.row > * { scroll-snap-align: start; }
@media (min-width: 960px) {
  .row { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; gap: 20px; }
  .row.r2 { grid-template-columns: repeat(2, 1fr); }
}
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 20px; text-decoration: none; color: var(--ink); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(0, 0, 84, .55); border-color: #cbbfa9; color: var(--ink); }
.card h3 { margin: 12px 0 6px; }
.card p { margin: 0; font-size: .97rem; color: #45455e; }
.card .ico { width: 100%; max-width: 200px; height: 120px; object-fit: contain; margin: 0 auto; }
.card .go { margin-top: auto; padding-top: 14px; font-weight: 650; color: var(--navy); }
.card .go::after { content: " →"; }
.card-dark { background: var(--navy-deep); border-color: transparent; color: #e8e6f4; }
.card-dark h3 { color: #fff; }
.card-dark p { color: #c9c7e4; }
.card-dark .go { color: var(--orange); }

/* ---------- proof ---------- */
.proof { display: grid; gap: 32px; }
@media (min-width: 900px) { .proof { grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; } }
.quote { margin: 0; position: relative; padding-top: 34px; }
.quote::before { content: ""; position: absolute; top: 0; left: 0; width: 96px; }
.quote blockquote { margin: 0; font-size: clamp(1.25rem, 3.4vw, 1.75rem); line-height: 1.35; font-weight: 450; color: #fff; letter-spacing: -.01em; }
.quote figcaption { margin-top: 14px; font-size: .9rem; color: #b9b6d6; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.facts li { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .16); display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: baseline; }
.facts b { font-size: 1.5rem; color: var(--orange); font-weight: 700; min-width: 3.2ch; }

/* ---------- contact strip ---------- */
.contact-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; } }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.dl dt { font-weight: 650; color: var(--navy); }
.dl dd { margin: 0; }
.area-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; }
.area-list li { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 550; font-size: .95rem; }

/* ---------- inner pages ---------- */
.page-hero { padding-block: clamp(28px, 6vw, 72px) clamp(28px, 5vw, 56px); }
.page-hero .wrap { display: grid; gap: 24px; }
@media (min-width: 900px) { .page-hero .wrap.split { grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; } }
.crumbs { font-size: .86rem; color: var(--grey); margin-bottom: 14px; }
.crumbs a { color: var(--grey); }
.photo { margin: 0; }
.photo img { width: 100%; border-radius: var(--radius); background: #d9d0c1; box-shadow: 0 24px 48px -30px rgba(0, 0, 84, .6); }
.photo figcaption { margin-top: 8px; font-size: .9rem; color: var(--grey); }
.prose { max-width: 42rem; }
.prose h2 { margin-top: 1.4em; font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: .4em; }
.two { display: grid; gap: 32px; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } .two.center { align-items: center; } }
.gallery { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .gallery.g3 { grid-template-columns: repeat(3, 1fr); } }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: #d9d0c1; }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: .9rem; color: var(--grey); margin-top: 6px; }
.svc-list { display: grid; gap: 18px; }
@media (min-width: 760px) { .svc-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .svc-list { grid-template-columns: repeat(3, 1fr); } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 36px 18px 0; font-weight: 650; color: var(--navy); list-style: none; position: relative; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--orange-ink); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 0 18px; color: #3e3e58; }
.cta-band { background: var(--navy); color: #e8e6f4; border-radius: var(--radius); padding: clamp(24px, 5vw, 48px); display: grid; gap: 18px; }
.cta-band h2 { color: #fff; margin: 0; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; align-items: center; } }
.note { font-size: .9rem; color: var(--grey); border-left: 3px solid var(--orange); padding: 4px 0 4px 12px; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: st; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.steps .stp { width: 76px; height: 64px; }
.steps h3 { margin: 0 0 4px; font-size: 1.1rem; }
.steps h3::before { content: counter(st) ". "; color: var(--orange-ink); }
.steps p { margin: 0; font-size: .97rem; color: #45455e; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }

/* ---------- reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rv] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js [data-rv].in { opacity: 1; transform: none; }
  .js .row[data-rv] > * { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .js .row[data-rv].in > * { opacity: 1; transform: none; }
  .js .row[data-rv].in > :nth-child(2) { transition-delay: .08s; }
  .js .row[data-rv].in > :nth-child(3) { transition-delay: .16s; }
  .js .row[data-rv].in > :nth-child(4) { transition-delay: .24s; }
  .js .row[data-rv].in > :nth-child(5) { transition-delay: .32s; }
  .js .row[data-rv].in > :nth-child(6) { transition-delay: .4s; }
}

/* ---------- photo carry between pages ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(*) { animation-duration: .45s; animation-timing-function: var(--ease); }
}
.vt-deck { view-transition-name: job-deck; }
.vt-carport { view-transition-name: job-carport; }
.vt-fence { view-transition-name: job-fence; }

/* ---------- quote drawer ---------- */
.qd { border: 0; padding: 0; margin: 0; inset: auto 0 0 0; width: 100%; max-width: none; max-height: 92dvh; overflow: auto; background: var(--paper); color: var(--ink); border-radius: 14px 14px 0 0; box-shadow: 0 -20px 60px -10px rgba(0, 0, 40, .5); }
.qd::backdrop { background: rgba(0, 0, 40, .5); }
.qd-in { padding: 18px var(--gut) calc(24px + env(safe-area-inset-bottom)); }
.qd-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.qd-top h2 { font-size: 1.5rem; margin: 0; }
.qd-close { min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 50%; font-size: 1.4rem; line-height: 1; color: var(--navy); cursor: pointer; }
@media (prefers-reduced-motion: no-preference) {
  .qd { transition: transform .35s var(--ease), opacity .35s, display .35s allow-discrete, overlay .35s allow-discrete; }
  .qd:popover-open { transform: none; opacity: 1; }
  @starting-style { .qd:popover-open { transform: translateY(40px); opacity: 0; } }
}
@media (min-width: 760px) {
  .qd { inset: auto 24px 24px auto; width: 440px; border-radius: 10px; max-height: calc(100dvh - 48px); }
}

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; color: var(--navy); font-size: .97rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; color: var(--ink); background: #fff; border: 1.5px solid #c9bea9; border-radius: var(--radius); padding: 12px 13px; min-height: 50px; width: 100%; }
.form textarea { min-height: 96px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--navy); outline: 3px solid rgba(242, 91, 58, .45); outline-offset: 0; }
.form .opt { font-weight: 400; color: var(--grey); font-size: .88rem; }
.form .btn { width: 100%; }
.form-2 { display: grid; gap: 14px; }
@media (min-width: 560px) { .form-2 { grid-template-columns: 1fr 1fr; } }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.carried { background: #fff; border: 1px dashed #c9bea9; border-radius: var(--radius); padding: 10px 12px; font-size: .92rem; }
.carried[hidden] { display: none; }
.carried p { margin: 0 0 6px; font-weight: 650; color: var(--navy); }
.carried ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.carried li { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.carried button { border: 0; background: none; color: var(--orange-ink); font: inherit; font-size: .85rem; cursor: pointer; text-decoration: underline; padding: 0 2px; min-height: 24px; }
.qd-next { margin: 14px 0 0; padding-left: 1.2em; font-size: .9rem; color: var(--grey); }
.qd-next li { margin-bottom: 4px; }
.qd-or { font-size: .92rem; color: var(--grey); text-align: center; margin: 12px 0 0; }

/* ---------- price guide ---------- */
.guide { display: grid; gap: 24px; }
.guide > * { min-width: 0; }
@media (min-width: 960px) { .guide { grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; } .guide-out { position: sticky; top: calc(var(--hd) + 20px); } }
.guide fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.guide legend { font-weight: 700; color: var(--navy); font-size: 1.12rem; margin-bottom: 10px; padding: 0; }
.types { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 10px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
@media (min-width: 700px) { .types { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; } }
.types label { position: relative; display: grid; gap: 6px; justify-items: center; text-align: center; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 10px 8px 12px; cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--navy); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.types label:hover { transform: translateY(-2px); }
.types input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.types label:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.types label:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; }
.types svg { width: 100px; height: 74px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 550; color: var(--ink); }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips label:has(input:checked) { background: var(--navy); color: #fff; border-color: var(--navy); }
.chips label:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; }
.chips label:has(input[type="checkbox"]:checked)::before { content: "✓"; margin-right: 6px; }
.size-out { font-weight: 700; color: var(--navy); font-size: 1.3rem; }
.guide input[type="range"] { width: 100%; accent-color: var(--orange); height: 30px; }
.g-group { display: none; }
.guide:has(#t-deck:checked) .g-deck, .guide:has(#t-patio:checked) .g-patio, .guide:has(#t-carport:checked) .g-carport, .guide:has(#t-fence:checked) .g-fence, .guide:has(#t-wall:checked) .g-wall { display: block; }
.no-has .g-group { display: block; }
.guide-out { background: var(--navy); color: #e8e6f4; border-radius: var(--radius); padding: 22px; }
.guide-out h2 { color: #fff; font-size: 1.45rem; }
.meter { margin: 6px 0 18px; }
.meter-bar { position: relative; height: 12px; border-radius: 2px; background: linear-gradient(90deg, #3a3a8a, #6b4fa0 50%, var(--orange)); }
.meter-pin { position: absolute; top: -6px; width: 4px; height: 24px; margin-left: -2px; background: #fff; border-radius: 2px; left: var(--m, 30%); transition: left .45s var(--ease); box-shadow: 0 0 0 2px var(--navy); }
.meter-scale { display: flex; justify-content: space-between; font-size: .8rem; color: #b9b6d6; margin-top: 6px; }
.movers { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.movers li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: .95rem; }
.movers .lvl { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 3px 7px; border-radius: 3px; background: rgba(255, 255, 255, .12); color: #fff; white-space: nowrap; margin-top: 2px; }
.movers .lvl.l2 { background: #6b4fa0; }
.movers .lvl.l3 { background: var(--orange); color: var(--navy); }
.guide-sum { font-size: 1.05rem; color: #fff; font-weight: 550; }
.range-out { font-size: 1.6rem; font-weight: 700; color: var(--orange); }

/* ---------- backyard stage tool ---------- */
.byd { display: grid; gap: 20px; }
@media (min-width: 960px) { .byd { grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; } }
.byd .yard .s1, .byd .yard .s2, .byd .yard .s3, .byd .yard .s4, .byd .yard .s5, .byd .yard .s6, .byd .yard .s7 { opacity: 0; transform: translateY(-12px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.byd-ctrl { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin-top: 8px; }
.byd-ctrl input { width: 100%; accent-color: var(--orange); height: 30px; }
.byd-ctrl button { min-width: 48px; min-height: 48px; border-radius: 50%; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); font-size: 1.2rem; cursor: pointer; }
.byd-ctrl button:disabled { opacity: .35; cursor: default; }
.byd-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.byd-card .kicker { margin-bottom: 6px; }
.byd-card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.byd-big { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 14px; }
.byd-big div { border-radius: var(--radius); padding: 12px; background: var(--paper); }
.byd-big span { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.byd-big strong { display: block; font-size: 1.45rem; line-height: 1.1; color: var(--navy); margin: 4px 0 2px; }
.byd-big small { display: block; font-size: .88rem; color: #45455e; line-height: 1.35; }
.byd-big .yes strong { color: #2f6b2a; }
.byd-big .care strong { color: #9a5b00; }
.byd-big .no strong { color: var(--orange-ink); }
.byd-meta { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; font-size: .95rem; }
.byd-meta dt { font-weight: 650; color: var(--navy); }
.byd-meta dd { margin: 0; }
.byd-list { margin-top: 18px; }
.byd-list ol { padding-left: 1.3em; }

/* ---------- the bench (retaining wall samples) ---------- */
.bench { position: relative; border-radius: 6px; padding: clamp(18px, 4vw, 34px); background:
  linear-gradient(180deg, rgba(255,255,255,.16), rgba(0,0,0,.06)),
  repeating-linear-gradient(0deg, rgba(0,0,0,.06) 0 1px, transparent 1px 64px),
  repeating-linear-gradient(90deg, rgba(120,70,30,.05) 0 2px, transparent 2px 23px, rgba(255,255,255,.06) 23px 24px, transparent 24px 51px),
  #c99c66; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 30px 50px -36px rgba(0, 0, 40, .7); }
.bench-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .bench-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.bench h3 { color: #3a1f0c; margin: 0 0 12px; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; }
.bench h3 + .bench-grid { margin-bottom: 22px; }
.smp-btn { display: grid; justify-items: center; gap: 6px; padding: 12px 8px 10px; border: 0; border-radius: 6px; background: rgba(255, 255, 255, .0); font: inherit; font-weight: 650; font-size: .93rem; color: #2b1607; cursor: pointer; transition: transform .3s var(--ease), background-color .25s, box-shadow .3s var(--ease); }
.smp-btn svg { width: 100%; max-width: 150px; height: 70px; filter: drop-shadow(0 6px 4px rgba(60, 30, 5, .35)); transition: transform .35s var(--ease), filter .35s var(--ease); }
.smp-btn:hover svg { transform: translateY(-3px); }
.smp-btn[aria-pressed="true"] { background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 2px var(--navy); }
.smp-btn[aria-pressed="true"] svg { transform: translateY(-8px) rotate(-2deg); filter: drop-shadow(0 16px 10px rgba(60, 30, 5, .35)); }
.smp-btn:disabled { opacity: .4; cursor: not-allowed; }
.bench-card { margin-top: 18px; background: var(--paper); border-radius: var(--radius); padding: 16px 18px; }
.bench-card h4 { margin: 0 0 6px; font-size: 1.15rem; color: var(--navy); }
.bench-card p { margin: 0 0 10px; }

/* ---------- footer ---------- */
.ft { background: var(--navy-deep); color: #c9c7e4; padding-block: 56px 28px; font-size: .95rem; }
.ft a { color: #fff; }
.ft-grid { display: grid; gap: 32px; }
@media (min-width: 860px) { .ft-grid { grid-template-columns: 1.1fr 1fr 1fr; } }
.ft-logo { width: 150px; margin-bottom: 14px; }
.ft h2 { font-size: 1rem; color: #fff; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.ft ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ft-base { margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .86rem; color: #a9a6cf; }
.ft-base a { color: #c9c7e4; }
.credit { color: #a9a6cf; }

/* 404 */
.lost { text-align: center; padding-block: 64px 96px; }
.lost svg { width: min(360px, 90%); margin: 0 auto 18px; }
.lost .btn-row { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .card, .btn, .smp-btn svg, .meter-pin, .cb, .cb .btn { transition: none !important; }
}
@media print { .hd, .cb, .pl, .qd, .ft { display: none !important; } }

/* gen:start (written by src/build.mjs) */
@media (prefers-reduced-motion: no-preference) {
  .yard.play .b0 { animation-delay: 2.000s; }
  .yard.play .b1 { animation-delay: 2.045s; }
  .yard.play .b2 { animation-delay: 2.090s; }
  .yard.play .b3 { animation-delay: 2.135s; }
  .yard.play .b4 { animation-delay: 2.180s; }
  .yard.play .b5 { animation-delay: 2.225s; }
  .yard.play .b6 { animation-delay: 2.270s; }
  .yard.play .b7 { animation-delay: 2.315s; }
  .yard.play .b8 { animation-delay: 2.360s; }
  .yard.play .b9 { animation-delay: 2.405s; }
  .yard.play .b10 { animation-delay: 2.450s; }
  .yard.play .b11 { animation-delay: 2.495s; }
  .yard.play .b12 { animation-delay: 2.540s; }
  .yard.play .b13 { animation-delay: 2.585s; }
  .yard.play .b14 { animation-delay: 2.630s; }
  .yard.play .b15 { animation-delay: 2.675s; }
  .yard.play .b16 { animation-delay: 2.720s; }
  .yard.play .b17 { animation-delay: 2.765s; }
  .yard.play .b18 { animation-delay: 2.810s; }
  .yard.play .b19 { animation-delay: 2.855s; }
  .yard.play .b20 { animation-delay: 2.900s; }
  .yard.play .b21 { animation-delay: 2.945s; }
}
.no-js .byd .yard g { opacity: 1 !important; transform: none !important; }
.no-js .byd .yard .e3, .no-js .byd .yard .e8 { opacity: 0 !important; }
.no-js .byd-ctrl, .no-js .byd-card { display: none; }
.on-dark-h { color: #fff; }
.reno-art { width: 100%; max-width: 420px; margin: auto; }
.dl-gap { margin-top: 28px; }
.lost-links { margin-top: 24px; }
.lost-art { width: min(300px, 80%); margin: 0 auto 18px; }
.h3 { font-size: 1.35rem; }
/* gen:end */
