/* See It Built — "lines to lumber"
   Dark ground, chalk type, cedar accent, blueprint-blue wireframe. */
:root {
  --ink: #0e1013;
  --ink-2: #15181d;
  --ink-3: #1d2128;
  --chalk: #f0eade;
  --muted: #a49f95;
  --dim: #6f6b64;
  --line: rgba(240, 234, 222, .12);
  --cedar: #d6884a;
  --cedar-2: #f0a666;
  --blue: #6fa3ff;
  --radius: 18px;
  --wrap: 1200px;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  font: 16px/1.6 var(--body);
  color: var(--chalk);
  background: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--cedar); color: var(--ink); }
a { color: inherit; }
img, svg, canvas, iframe { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: 1; letter-spacing: -.025em; font-weight: 800; }
h1 { font-size: clamp(2.8rem, 8.5vw, 7.4rem); }
h2 { font-size: clamp(2.2rem, 5.6vw, 4.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -.01em; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--cedar); }
.hollow { color: transparent; -webkit-text-stroke: 1.5px var(--chalk); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: clamp(20px, 4vw, 48px); }

.kicker {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--cedar); margin-bottom: 22px;
}
.kicker::before { content: ""; width: 38px; height: 1px; background: var(--cedar); }
.lede { color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 34em; }
.mono { font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--chalk); color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: .95rem; line-height: 1;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background .25s, color .25s, border-color .25s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); background: var(--cedar-2); }
.btn.cedar { background: var(--cedar); color: var(--ink); }
.btn.cedar:hover { background: var(--cedar-2); }
.btn.ghost { background: transparent; color: var(--chalk); border-color: rgba(240,234,222,.35); }
.btn.ghost:hover { border-color: var(--chalk); background: rgba(240,234,222,.06); }
.btn.small { padding: 10px 18px; font-size: .85rem; }

/* ---------- preloader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 1000; background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
}
#loader svg { width: min(360px, 70vw); height: auto; }
#loader path { fill: none; stroke: var(--blue); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; }
#loader .word { font-family: var(--display); font-weight: 800; letter-spacing: .32em; text-indent: .32em; font-size: .95rem; color: var(--chalk); }
#loader .pct { font-family: var(--mono); font-size: .78rem; letter-spacing: .24em; color: var(--muted); }

/* ---------- nav ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px clamp(20px, 4vw, 48px);
  transition: background .4s, padding .4s, backdrop-filter .4s;
}
.top.solid { background: rgba(14,16,19,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding-block: 14px; }
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 800; letter-spacing: -.01em; font-size: 1.15rem; }
.mark svg { width: 34px; height: 34px; }
.top nav { display: flex; align-items: center; gap: 28px; }
.top nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: .88rem; font-weight: 500; position: relative; }
.top nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1.5px; background: var(--cedar); transition: right .3s; }
.top nav a:not(.btn):hover { color: var(--chalk); }
.top nav a:not(.btn):hover::after { right: 0; }
@media (max-width: 820px) { .top nav a:not(.btn) { display: none; } }

/* ---------- 3D stage ---------- */
#stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#stage canvas { display: block; width: 100%; height: 100%; }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 40%, rgba(14,16,19,.7) 100%); }

/* ---------- hero ---------- */
#hero { position: relative; z-index: 2; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 clamp(20px, 4vw, 48px) 9svh; }
#hero h1 .line { display: block; overflow: hidden; }
#hero h1 .line span { display: inline-block; transform: translateY(110%); }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 22px; margin-top: 4svh; }
.hero-sub { max-width: 30em; color: var(--muted); font-size: 1.05rem; opacity: 0; }
.hero-sub b { color: var(--chalk); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; }
.hero-scroll { position: absolute; right: clamp(20px, 4vw, 48px); bottom: 34px; display: flex; align-items: center; gap: 10px;
  writing-mode: vertical-rl; font-family: var(--mono); font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.hero-scroll::after { content: ""; width: 1px; height: 52px; background: linear-gradient(var(--cedar), transparent); animation: drop 1.8s ease-in-out infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.hero-tag { position: absolute; top: 15svh; right: clamp(20px, 4vw, 48px); font-family: var(--mono); font-size: .7rem; letter-spacing: .18em; color: var(--blue); text-align: right; line-height: 1.8; opacity: 0; }
@media (max-width: 820px) { .hero-tag { display: none; } }

/* ---------- scroll story ---------- */
#story { position: relative; z-index: 2; height: 520vh; }
.story-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.story-cap { position: absolute; left: clamp(20px, 4vw, 48px); bottom: 14svh; max-width: 560px; pointer-events: none; }
.story-cap .cap { position: absolute; left: 0; bottom: 0; opacity: 0; width: min(560px, 88vw); }
.story-cap .cap .n { font-family: var(--mono); font-size: .72rem; letter-spacing: .24em; color: var(--blue); margin-bottom: 14px; }
.story-cap .cap h2 { font-size: clamp(2.4rem, 6.4vw, 5.6rem); }
.story-cap .cap p { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.15rem); margin-top: 16px; max-width: 28em; }
.story-progress { position: absolute; right: clamp(20px, 4vw, 48px); bottom: 34px; display: flex; gap: 8px; }
.story-progress i { width: 40px; height: 2px; background: rgba(240,234,222,.15); border-radius: 2px; overflow: hidden; position: relative; }
.story-progress i::after { content: ""; position: absolute; inset: 0; background: var(--cedar); transform: scaleX(0); transform-origin: left; transition: transform .45s; }
.story-progress i.on::after { transform: scaleX(1); }
.story-counts { position: absolute; right: clamp(20px, 4vw, 48px); top: 16svh; display: grid; gap: 10px; text-align: right; opacity: 0; pointer-events: none; }
.story-counts div { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1; letter-spacing: -.02em; }
.story-counts span { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
@media (max-width: 820px) { .story-counts { top: 10svh; } .story-counts div { font-size: 1.3rem; } }

/* ---------- marquee ---------- */
.marquee { position: relative; z-index: 3; background: var(--cedar); color: var(--ink); padding: 18px 0; overflow: hidden; white-space: nowrap; transform: rotate(-1.4deg) scale(1.03); }
.marquee .track { display: inline-flex; will-change: transform; }
.marquee span { font-family: var(--display); font-weight: 800; font-size: clamp(1.1rem, 2.4vw, 1.9rem); letter-spacing: -.01em; padding-right: 48px; }
.marquee span.o { color: transparent; -webkit-text-stroke: 1.2px var(--ink); }

/* ---------- generic sections ---------- */
section.block { position: relative; z-index: 3; background: var(--ink); padding: clamp(80px, 14vh, 160px) 0; }
section.block.alt { background: var(--ink-2); }
section.block.clear { background: transparent; }
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.ticks li { padding-left: 30px; position: relative; color: var(--chalk); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 16px; height: 1.5px; background: var(--cedar); }
.ticks li small { display: block; color: var(--muted); font-size: .92rem; }
.card { background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); }
.card.cedar { background: linear-gradient(160deg, rgba(214,136,74,.18), rgba(214,136,74,.04)); border-color: rgba(214,136,74,.45); }
.reveal { opacity: 0; transform: translateY(40px); }

/* ---------- finishes ---------- */
#finishes { min-height: 100svh; display: flex; align-items: center; }
#finishes .panel { max-width: 520px; margin-left: auto; padding: 28px; border-radius: var(--radius); background: rgba(14,16,19,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); }
@media (max-width: 900px) { #finishes .panel { margin-left: 0; } }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.swatch { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 9px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(14,16,19,.6); backdrop-filter: blur(10px); color: var(--chalk);
  font-size: .9rem; font-weight: 500; cursor: pointer; transition: border-color .25s, transform .25s; }
.swatch i { width: 24px; height: 24px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.swatch:hover { transform: translateY(-2px); border-color: rgba(240,234,222,.4); }
.swatch.on { border-color: var(--cedar); }
.swatch-group { margin-top: 18px; }
.swatch-group .mono { display: block; margin-bottom: 8px; }
#finishes .panel .note { margin-top: 24px; }

/* ---------- how it works (horizontal) ---------- */
#how { position: relative; z-index: 3; background: var(--ink-2); }
#how .how-head { position: absolute; top: 9svh; left: clamp(20px, 4vw, 48px); z-index: 2; }
.how-pin { position: relative; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.how-track { display: flex; gap: 3vw; padding: 0 clamp(20px, 6vw, 80px); will-change: transform; }
.how-card { flex: 0 0 min(520px, 80vw); background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 3vw, 48px); position: relative; overflow: hidden; min-height: 380px; display: flex; flex-direction: column; }
.how-card .idx { font-family: var(--mono); font-size: .72rem; letter-spacing: .24em; color: var(--cedar); }
.how-card h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); margin: 18px 0 12px; }
.how-card p { color: var(--muted); max-width: 26em; }
.how-card .ghost { position: absolute; right: -14px; top: -34px; font-family: var(--display); font-weight: 800; font-size: 12rem; line-height: 1; color: rgba(214,136,74,.08); pointer-events: none; }
.how-card svg { margin-top: auto; width: 100%; max-width: 330px; padding-top: 24px; }
@media (max-width: 820px) { #how .how-head { position: static; padding: 60px clamp(20px,4vw,48px) 0; } .how-pin { height: auto; padding: 30px 0 70px; } .how-track { flex-direction: column; padding: 0 clamp(20px,4vw,48px); } .how-card { flex-basis: auto; min-height: 0; } }

/* ---------- what you get ---------- */
.deliver { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; margin-top: 40px; }
@media (max-width: 900px) { .deliver { grid-template-columns: 1fr; } }
.deliver-side { display: grid; gap: 16px; }
.deliver-side .card p { color: var(--muted); font-size: .95rem; margin-top: 8px; }
.takeoff .mono b { color: var(--cedar); font-size: 1rem; }
.table-wrap { overflow-x: auto; margin-top: 16px; }
.takeoff table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.takeoff th { text-align: left; font-family: var(--mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 10px; border-bottom: 1px solid var(--line); }
.takeoff td { padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.takeoff td:first-child { font-family: var(--display); font-weight: 800; color: var(--cedar); font-size: 1.15rem; width: 3.5em; }
.takeoff .note { color: var(--dim); font-size: .82rem; margin-top: 14px; }

/* ---------- contractors ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr; } }
.grid3 .card h3 { margin-bottom: 10px; }
.grid3 .card p { color: var(--muted); font-size: .95rem; }
.grid3 .card .big { font-family: var(--display); font-weight: 800; font-size: 2.6rem; color: var(--cedar); line-height: 1; margin-bottom: 14px; }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--chalk); font: 500 .92rem var(--body); cursor: pointer; transition: all .22s; }
.chip:hover { border-color: rgba(240,234,222,.4); }
.chip.on { background: var(--chalk); color: var(--ink); border-color: var(--chalk); }
.price-card label.row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; }
.price-card label.row span small { display: block; color: var(--muted); font-size: .85rem; }
.toggle { position: relative; width: 46px; height: 26px; flex: none; }
.toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.toggle i { position: absolute; inset: 0; border-radius: 999px; background: var(--ink); border: 1px solid rgba(240,234,222,.3); transition: background .25s, border-color .25s; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--chalk); transition: transform .25s; }
.toggle input:checked + i { background: var(--cedar); border-color: var(--cedar); }
.toggle input:checked + i::after { transform: translateX(20px); background: var(--ink); }
.price-out { text-align: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.price-out .amt { font-family: var(--display); font-weight: 800; font-size: clamp(3.4rem, 7vw, 6rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price-out .amt .cur { color: var(--cedar); font-size: .5em; vertical-align: top; margin-right: .1em; }
.price-out .amt .from { font-size: .3em; color: var(--muted); font-family: var(--mono); letter-spacing: .1em; vertical-align: middle; margin-right: .5em; }
.price-out .lab { font-family: var(--mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.pl { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.pl b { color: var(--chalk); font-weight: 600; text-align: right; }
.price-note { color: var(--dim); font-size: .85rem; margin-top: 18px; }
.price-card .btn { width: 100%; justify-content: center; margin-top: 22px; }

/* ---------- work ---------- */
.work { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 40px; }
@media (max-width: 900px) { .work { grid-template-columns: 1fr; } }
.work .live { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--ink-3); aspect-ratio: 4/3; }
.work .live iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.work .live .open { position: absolute; right: 14px; bottom: 14px; z-index: 2; background: var(--cedar); color: var(--ink); font-weight: 600; font-size: .85rem; padding: 10px 16px; border-radius: 999px; transition: transform .25s; }
.work .live:hover .open { transform: translateY(-2px); }
.work .live .tag { position: absolute; top: 14px; left: 14px; z-index: 2; font-family: var(--mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; background: var(--ink); color: var(--cedar); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); }
.work .soon { display: grid; gap: 16px; }
.work .soon .card { display: flex; flex-direction: column; justify-content: flex-end; min-height: 160px; background: var(--ink-3); }
.work .soon .card .mono { margin-top: 8px; }
.work .soon .card.bath { background: linear-gradient(160deg, #1d2a30, var(--ink-3) 70%); }
.work .soon .card.kitchen { background: linear-gradient(160deg, #2a241c, var(--ink-3) 70%); }

/* ---------- start a job ---------- */
.qform { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; max-width: 900px; }
@media (max-width: 720px) { .qform { grid-template-columns: 1fr; } }
.qf { position: relative; }
.qf.full { grid-column: 1 / -1; }
.qf input, .qf textarea, .qf select {
  width: 100%; background: transparent; border: 0; border-bottom: 1.5px solid rgba(240,234,222,.22);
  padding: 14px 2px; font: 1.1rem var(--body); color: var(--chalk); border-radius: 0; transition: border-color .3s;
}
.qf select option { background: var(--ink); }
.qf input:focus, .qf textarea:focus, .qf select:focus { outline: none; border-color: var(--cedar); }
.qf label { position: absolute; left: 2px; top: 14px; font-size: 1.02rem; color: var(--dim); pointer-events: none; transition: all .25s; }
.qf input:focus ~ label, .qf input:not(:placeholder-shown) ~ label,
.qf textarea:focus ~ label, .qf textarea:not(:placeholder-shown) ~ label,
.qf select:focus ~ label, .qf.filled label { top: -12px; font-family: var(--mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cedar); }
.qphoto { grid-column: 1 / -1; border: 1.5px dashed rgba(240,234,222,.25); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .3s; }
.qphoto:hover { border-color: var(--cedar); }
.qphoto b { color: var(--cedar); }
.qconsent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: .9rem; }
.qconsent input { width: 20px; height: 20px; accent-color: var(--cedar); flex: none; margin-top: 2px; }
.qsubmit { grid-column: 1 / -1; justify-content: center; font-size: 1.05rem; padding: 20px; }
.qnote { grid-column: 1 / -1; text-align: center; color: var(--dim); font-size: .8rem; }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 3; background: #090b0d; padding: clamp(60px, 10vh, 120px) 0 40px; overflow: hidden; }
.foot .giant { font-family: var(--display); font-weight: 800; font-size: clamp(3.4rem, 13vw, 12.5rem); line-height: .95; letter-spacing: -.04em; text-align: center; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px rgba(240,234,222,.18); transition: color .4s, -webkit-text-stroke .4s; }
.foot .giant:hover { color: var(--cedar); -webkit-text-stroke: 1.5px var(--cedar); }
.foot .frow { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 30px; margin-top: 7vh; color: var(--muted); font-size: .85rem; }
.foot .frow a { color: var(--chalk); text-decoration: none; }
.foot .frow a:hover { color: var(--cedar); }

/* ---------- inner pages (terms, portal, 404) ---------- */
.page { position: relative; z-index: 3; padding: 140px 0 80px; min-height: 80svh; }
.page h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); margin-bottom: 20px; }
.page h2 { font-size: 1.3rem; margin: 34px 0 10px; }
.page p { color: var(--muted); max-width: 46em; }
.page p b { color: var(--chalk); }
.page .note { color: var(--dim); font-size: .9rem; }
.status { padding: 18px; border-radius: var(--radius); background: var(--ink-3); border: 1px solid var(--line); color: var(--muted); }
.status.bad { border-color: #b3412f; color: #f0a08f; }
.projects { display: grid; gap: 14px; margin-top: 24px; }
.project { background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; }
.project h3 { margin: 0; }
.project .meta { color: var(--muted); font-size: .9rem; }
.project .actions { display: flex; flex-wrap: wrap; gap: 8px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal, .hero-sub, .hero-cta, .hero-tag { opacity: 1 !important; transform: none !important; }
  #hero h1 .line span { transform: none !important; }
}
