/* Groundline Web: a job site at dusk. Dark soil, sawdust-colored type, one work-light amber. */
:root {
  --soil: #16120F;
  --loam: #211A15;
  --timber: #2A221B;
  --fir: #EDE3D3;
  --concrete: #A99D8D;
  --worklight: #F0A83C;
  --glow: #F7C877;
  --line: rgba(237, 227, 211, .14);
  --line-strong: rgba(237, 227, 211, .28);
  /* drawing materials */
  --slab: #4B4239;
  --siding: #3A2E24;
  --siding-line: #4C3D30;
  --roof: #2A211A;
  --roof-alt: #30261E;
  --roof-seam: #45372A;
  --glass: #110D0A;
  --door: #2C2119;

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --nav-h: 64px;
  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); background: var(--soil); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--soil); color: var(--fir); font: 400 17px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--worklight); color: var(--soil); }
:focus-visible { outline: 3px solid var(--fir); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--worklight); color: var(--soil); font-weight: 600; border-radius: 6px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.todo { background: #fff3a8; color: #16120F; padding: 0 4px; border-radius: 3px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 6px; border: 1px solid transparent;
  background: var(--worklight); color: var(--soil);
  font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--glow); }
.btn-ghost { background: transparent; color: var(--fir); border-color: var(--line-strong); }
.btn-ghost:hover { background: transparent; border-color: var(--fir); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.text-link { color: var(--fir); text-decoration: underline; text-decoration-color: var(--worklight); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.text-link:hover { color: var(--glow); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; height: var(--nav-h); background: var(--soil); border-bottom: 1px solid var(--line); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; margin-right: auto; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand-name { font: 600 16px/1 var(--font-display); letter-spacing: .28em; text-transform: uppercase; }
.brand-name span { color: var(--concrete); }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--concrete); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--fir); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 6px; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after { display: block; width: 18px; height: 2px; background: var(--fir); position: relative; }
.menu summary span::before, .menu summary span::after { content: ""; position: absolute; left: 0; }
.menu summary span::before { top: -6px; }
.menu summary span::after { top: 6px; }
.menu ul { position: absolute; right: 0; top: 54px; min-width: 220px; list-style: none; margin: 0; padding: 8px; background: var(--loam); border: 1px solid var(--line-strong); border-radius: 8px; }
.menu li a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; color: var(--fir); text-decoration: none; border-radius: 6px; }
.menu li a:hover { background: var(--timber); }
@media (max-width: 859px) {
  .nav-links { display: none; }
  .menu { display: block; }
  .nav-inner { gap: 12px; }
  .nav-inner .btn-sm { padding: 0 14px; }
}
@media (max-width: 400px) { .brand-name span { display: none; } }

/* ---------- hero: the build ---------- */
main { padding-top: var(--nav-h); }
.build { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: clamp(24px, 4vw, 64px); max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.build-art { grid-column: 2; grid-row: 1; position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h)); display: flex; align-items: center; justify-content: center; padding: 24px 0; margin: 0; }
.build-art .art { max-height: 100%; }
.build-copy { grid-column: 1; grid-row: 1; }

.intro { min-height: calc(100svh - var(--nav-h)); display: flex; flex-direction: column; justify-content: center; padding: 40px 0 64px; }
.sheet { color: var(--concrete); margin: 0 0 22px; }
.sheet b { color: var(--worklight); font-weight: 500; }
h1 { margin: 0; font: 600 clamp(46px, 5.8vw, 88px)/.92 var(--font-display); letter-spacing: .005em; text-transform: uppercase; }
h1 .line { display: block; overflow: hidden; padding-bottom: .04em; white-space: nowrap; }
h1 .line > span { display: block; }
.h1-rule { height: 3px; margin: 18px 0 26px; background: var(--worklight); transform-origin: 0 50%; max-width: 520px; }
.lede { margin: 0; max-width: 36ch; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--concrete); }
.lede strong { color: var(--fir); font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.scroll-cue { margin: 44px 0 0; color: var(--concrete); display: flex; align-items: center; gap: 12px; }
.scroll-cue::before { content: ""; width: 40px; height: 1px; background: var(--line-strong); }

/* Load: the rule draws, then the headline rises from behind it. */
@media (prefers-reduced-motion: no-preference) {
  .js h1 .line > span { transform: translateY(105%); animation: rise .9s cubic-bezier(.2, .8, .2, 1) forwards; }
  .js h1 .line:nth-child(2) > span { animation-delay: .12s; }
  .js .h1-rule { transform: scaleX(0); animation: draw .8s cubic-bezier(.6, 0, .2, 1) .05s forwards; }
  .js .art .ground { animation: ground 1.1s cubic-bezier(.6, 0, .2, 1) forwards; }
}
@keyframes rise { to { transform: translateY(0); } }
@keyframes draw { to { transform: scaleX(1); } }
@keyframes ground { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.stages { list-style: none; margin: 0; padding: 0; }
.stage { min-height: 74vh; min-height: 74svh; display: flex; flex-direction: column; justify-content: center; padding: 48px 0; }
.stage-num { color: var(--worklight); margin: 0 0 14px; }
.stage h3 { margin: 0 0 14px; font: 600 clamp(38px, 4.2vw, 60px)/.95 var(--font-display); text-transform: uppercase; }
.stage p { margin: 0; max-width: 34ch; font-size: clamp(18px, 1.4vw, 20px); color: var(--concrete); }
.stage p strong { color: var(--fir); font-weight: 500; }
.js .stage { opacity: .55; transition: opacity .35s; }
.js .stage.is-active { opacity: 1; }
.done { min-height: 86vh; min-height: 86svh; display: flex; flex-direction: column; justify-content: center; padding: 48px 0 96px; }
.done h3 { margin: 0 0 18px; font: 600 clamp(52px, 6vw, 92px)/.92 var(--font-display); text-transform: uppercase; }
.done p { margin: 0 0 28px; max-width: 34ch; font-size: 20px; color: var(--concrete); }

/* Phones: headline first, then the sample site scrolls up, pins, and the steps build it below. */
@media (max-width: 959px) {
  .build { display: flex; flex-direction: column; }
  .build-copy { display: contents; }
  .intro { order: 1; }
  .build-art { order: 2; position: sticky; top: var(--nav-h); z-index: 2; height: 66svh; padding: 10px 0 14px;
    background: linear-gradient(var(--soil) 90%, rgba(22, 18, 15, 0)); margin: 0 calc(-1 * var(--gutter)); }
  .build-copy > h2, .stages, .done { order: 3; }
  .intro { min-height: calc(100svh - var(--nav-h)); padding: 32px 0 48px; }
  /* Text sits right under the pinned phone, so it reads while that step builds. */
  .stage { min-height: 52svh; justify-content: flex-start; padding: 12px 0 0; }
  .done { min-height: 70svh; justify-content: flex-start; padding: 12px 0 64px; }
}

/* ---------- sections ---------- */
.section { padding: clamp(88px, 11vw, 160px) 0; border-top: 1px solid var(--line); }
.eyebrow { color: var(--concrete); margin: 0 0 18px; }
.eyebrow b { color: var(--worklight); font-weight: 500; }
h2 { margin: 0; font: 600 clamp(42px, 5.4vw, 80px)/.94 var(--font-display); text-transform: uppercase; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head p { margin: 0; max-width: 46ch; color: var(--concrete); font-size: 18px; }
@media (max-width: 859px) { .section-head { grid-template-columns: 1fr; } }

/* work */
.work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); list-style: none; margin: 0; padding: 0; }
.work li:nth-child(2) { margin-top: 56px; }
.shot { margin: 0 0 20px; padding: 8px; background: var(--loam); border: 1px solid var(--line-strong); border-radius: 28px; }
.shot img { width: 100%; aspect-ratio: 390 / 640; object-fit: cover; object-position: top; border-radius: 20px; }
.work h3 { margin: 0 0 4px; font: 600 24px/1.1 var(--font-display); text-transform: uppercase; }
.work p { margin: 0; color: var(--concrete); font-size: 16px; }
.work .text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-size: 16px; }
@media (max-width: 859px) {
  .work { grid-template-columns: 1fr; max-width: 420px; }
  .work li:nth-child(2) { margin-top: 0; }
}

/* plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px 28px; background: var(--loam); border: 1px solid var(--line); border-radius: 12px; }
.plan.featured { border-color: var(--worklight); }
.plan-tag { position: absolute; top: -12px; left: 28px; padding: 5px 10px; background: var(--worklight); color: var(--soil); border-radius: 4px; }
.plan h3 { margin: 0 0 18px; font: 600 26px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.price b { font: 600 60px/1 var(--font-display); }
.price span { color: var(--concrete); }
.then { margin: 10px 0 0; font-size: 18px; }
.then small { display: block; color: var(--concrete); font-size: 14px; }
.includes { list-style: none; margin: 24px 0 28px; padding: 20px 0 0; border-top: 1px solid var(--line); flex: 1; }
.includes li { position: relative; padding: 6px 0 6px 22px; font-size: 16px; line-height: 1.45; }
.includes li::before { content: ""; position: absolute; left: 0; top: 16px; width: 10px; height: 2px; background: var(--worklight); }
.plan .btn { width: 100%; }
.plan .talk { display: flex; justify-content: center; align-items: center; min-height: 44px; margin-top: 8px; color: var(--concrete); font-size: 15px; }
.plan .talk:hover { color: var(--fir); }
.fine { margin: 32px 0 0; max-width: 80ch; color: var(--concrete); font-size: 15px; }
@media (max-width: 959px) { .plans { grid-template-columns: 1fr; max-width: 520px; } .plan.featured { order: -1; } }

/* split: check or build */
.split { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.split > div { padding: clamp(64px, 9vw, 128px) var(--gutter); display: flex; flex-direction: column; align-items: flex-start; }
.split > div:first-child { padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.split > div:last-child { background: var(--timber); padding-right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.split h2 { font-size: clamp(38px, 4.4vw, 64px); margin-bottom: 20px; }
.split p { margin: 0 0 32px; max-width: 40ch; color: var(--concrete); font-size: 18px; }
@media (max-width: 859px) { .split { grid-template-columns: 1fr; } .split > div:first-child, .split > div:last-child { padding-left: var(--gutter); padding-right: var(--gutter); } }

/* questions */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px 64px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding: 14px 0; cursor: pointer; font: 500 19px/1.35 var(--font-body); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; font: 400 26px/1 var(--font-mono); color: var(--worklight); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: 0 0 22px; max-width: 60ch; color: var(--concrete); }
@media (max-width: 859px) { .faq { grid-template-columns: 1fr; } }

/* footer */
.footer { border-top: 3px solid var(--worklight); padding: clamp(64px, 8vw, 104px) 0 40px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.footer .big { margin: 0 0 18px; color: var(--fir); font: 600 clamp(40px, 5vw, 72px)/.94 var(--font-display); text-transform: uppercase; }
.footer p { margin: 0; color: var(--concrete); }
.footer .footer-lede { margin-bottom: 28px; max-width: 40ch; }
.footer h2 { margin: 0 0 12px; line-height: 1.4; color: var(--concrete); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li a { display: inline-flex; align-items: center; min-height: 40px; color: var(--fir); text-decoration: none; }
.footer li a:hover { color: var(--glow); }
.footer .base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--concrete); font-size: 14px; }
@media (max-width: 859px) { .footer-grid { grid-template-columns: 1fr; } }

/* legal pages */
.legal { max-width: 760px; padding: calc(var(--nav-h) + 56px) var(--gutter) 96px; margin: 0 auto; }
.legal h1 { font-size: clamp(44px, 6vw, 72px); margin-bottom: 12px; }
.legal h2 { font-size: 28px; margin: 44px 0 12px; }
.legal p, .legal li { color: var(--concrete); }
.legal a { color: var(--fir); }
.legal h3 { font-size: 22px; margin: 32px 0 10px; }
.legal ul { padding-left: 1.25em; }
.legal ul ul { margin: 6px 0; }
.legal li + li { margin-top: 4px; }
.legal .table-wrap { overflow-x: auto; margin: 16px 0 8px; border: 1px solid var(--line); border-radius: 6px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; }
.legal table.wide { min-width: 600px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--concrete); }
.legal tr:last-child > * { border-bottom: 0; }
.legal thead th, .legal tbody th { color: var(--fir); font-weight: 600; }
.legal tbody th { width: 34%; }
.legal table.wide tbody th, .legal table.wide thead td { position: sticky; left: 0; z-index: 1; width: 132px; background: var(--soil); box-shadow: 1px 0 0 var(--line); }
