/* White Hill — shared editorial system.
   Type: Helvetica Neue / Helvetica / Arial only. No webfonts.
   Motion: none in CSS beyond colour hover transitions. The only moving thing on
   the site is the topographic canvas (script.js), and it stops under
   prefers-reduced-motion. scripts/test_website.py enforces both. */

:root {
  --ink: #15221d;
  --forest: #193d31;
  --forest-deep: #102b22;
  --moss: #4b6f60;
  --sage: #96a98f;
  --sage-soft: #dfe5d8;
  --cream: #f4f0e7;
  --paper: #fbfaf6;
  --rust: #c65f39;
  --rust-deep: #a64a2b;
  --stone: #5d6862;
  --line: rgba(21, 34, 29, .18);
  --line-soft: rgba(21, 34, 29, .09);
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gut: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --measure: 62ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
p a, li a, dd a { text-decoration-color: var(--rust); }
p a:hover, li a:hover, dd a:hover { color: var(--rust-deep); }
::selection { background: var(--forest); color: var(--paper); }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; border-radius: 1px; }
h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 700; }

.skip-link { position: fixed; left: -999px; top: 12px; z-index: 100; padding: 12px 18px; background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none; }
.skip-link:focus { left: 12px; }

/* ---------- topographic ground ---------- */
#terrain { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; display: block; }
#terrain.static { background-image: repeating-radial-gradient(ellipse 120% 90% at 30% 20%, rgba(25, 61, 49, .10) 0 1px, transparent 1px 46px); }
#veil { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, rgba(251, 250, 246, .15), rgba(251, 250, 246, .5)); }
.site-header, main, .site-footer { position: relative; z-index: 1; }

/* ---------- type ---------- */
.label { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--moss); font-variant-numeric: tabular-nums; }
.label .tick { display: inline-block; width: 22px; height: 1px; background: var(--rust); vertical-align: middle; margin-right: 12px; }
h1 { font-size: clamp(42px, 7.4vw, 104px); font-weight: 700; letter-spacing: -.045em; line-height: .96; text-wrap: balance; }
h1 .soft, h2 .soft { color: var(--moss); }
h2 { font-size: clamp(30px, 4.2vw, 56px); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
h3 { font-size: clamp(19px, 1.7vw, 23px); font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
h1 a, h2 a, h3 a { text-decoration: none; transition: color .15s; }
h1 a:hover, h2 a:hover, h3 a:hover { color: var(--rust-deep); }
h4 { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--moss); }
.lede { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.45; letter-spacing: -.01em; max-width: 40em; color: var(--ink); }
.prose { max-width: var(--measure); }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 1.1em; }
.prose ul li { position: relative; padding-left: 1.3em; margin-top: .45em; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 9px; height: 1px; background: var(--rust); }
.muted { color: var(--stone); }
.small { font-size: 14.5px; line-height: 1.55; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.section { padding: clamp(64px, 9vw, 128px) 0; border-top: 1px solid var(--line); }
.section.flush { border-top: 0; }
.section.tint { background: rgba(244, 240, 231, .82); }
.section.dark { background: var(--forest-deep); color: var(--paper); border-top: 0; }
.section.dark .label, .section.dark h4 { color: var(--sage); }
.section.dark .muted { color: #c3cfc4; }
.section.dark h2 .soft { color: var(--sage); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .lede { margin-top: 6px; }
.split { display: grid; gap: clamp(28px, 5vw, 72px); }
.cols-2, .cols-3, .cols-4 { display: grid; gap: clamp(24px, 3vw, 40px); }
@media (min-width: 860px) {
  .section-head { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); align-items: start; }
  .section-head.stack { grid-template-columns: 1fr; }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); }
  .split.even { grid-template-columns: 1fr 1fr; }
  .cols-2 { grid-template-columns: 1fr 1fr; }
  .cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cols-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 620px) and (max-width: 859px) { .cols-3, .cols-4 { grid-template-columns: 1fr 1fr; } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(251, 250, 246, .94); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(251, 250, 246, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--forest); padding: 6px 0; }
.brand-mark { width: 50px; height: 18px; flex: none; }
.brand strong { font-size: 14px; letter-spacing: .2em; font-weight: 700; white-space: nowrap; }
.site-nav { display: none; align-items: center; gap: clamp(16px, 2vw, 30px); }
.site-nav a { font-size: 14.5px; font-weight: 500; text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
.site-nav a:hover { color: var(--rust-deep); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--rust); }
.site-nav a.button { border-bottom: 1px solid var(--forest); padding: 10px 18px; }
.menu-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 700 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.mobile-menu { border-top: 1px solid var(--line); background: var(--paper); padding: 8px 0 28px; max-height: calc(100vh - 68px); overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line-soft); font-size: 22px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
.mobile-menu a span { font-size: 11px; letter-spacing: .16em; color: var(--moss); font-weight: 700; }
.mobile-menu a.button { justify-content: center; margin-top: 22px; font-size: 13px; letter-spacing: .12em; padding: 16px; }
@media (min-width: 1180px) { .site-nav { display: flex; } .menu-toggle, .mobile-menu { display: none !important; } }

/* ---------- buttons and links ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 13px 24px; border: 1px solid var(--forest); background: var(--forest); color: var(--paper); font: 700 12.5px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.button:hover { background: var(--rust-deep); border-color: var(--rust-deep); color: #fff; }
.button.ghost { background: transparent; color: var(--forest); }
.button.ghost:hover { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.section.dark .button { background: var(--paper); color: var(--forest-deep); border-color: var(--paper); }
.section.dark .button:hover { background: var(--rust); border-color: var(--rust); color: #fff; }
.section.dark .button.ghost { background: transparent; color: var(--paper); border-color: rgba(251, 250, 246, .5); }
.section.dark .button.ghost:hover { background: var(--paper); color: var(--forest-deep); }
.arrow-link { display: inline-flex; gap: 8px; align-items: baseline; font-weight: 700; font-size: 15px; text-decoration: underline; text-decoration-color: var(--rust); text-underline-offset: .3em; transition: color .15s; }
.arrow-link:hover { color: var(--rust-deep); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: clamp(26px, 3vw, 40px); }

/* ---------- page hero ---------- */
.hero { padding: clamp(56px, 9vw, 132px) 0 clamp(52px, 7vw, 96px); }
.hero .label { margin-bottom: clamp(20px, 3vw, 34px); }
.hero .lede { margin-top: clamp(22px, 3vw, 36px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--stone); margin-bottom: 26px; }
.crumbs a { text-decoration-color: var(--line); }
.facts { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--ink); margin-top: clamp(36px, 5vw, 64px); }
.facts > div { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.facts dt { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--moss); }
.facts dd { margin: 0; font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(var(--fact-cols, 4), 1fr); column-gap: 28px; } .facts > div { border-bottom: 0; padding: 18px 0 0; } }

/* ---------- index rows ---------- */
.rows { border-top: 1px solid var(--ink); }
.rows > li { display: grid; gap: 6px 28px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.rows .n { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--rust-deep); font-variant-numeric: tabular-nums; padding-top: 4px; }
.rows .v { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--moss); padding-top: 4px; }
.rows p { color: var(--stone); font-size: 16px; }
.section.dark .rows { border-top-color: rgba(251, 250, 246, .6); }
.section.dark .rows > li { border-bottom-color: rgba(251, 250, 246, .18); }
.section.dark .rows p { color: #c3cfc4; }
.section.dark .rows .n { color: var(--rust); }
.section.dark .rows .v { color: var(--sage); }
@media (min-width: 860px) { .rows > li { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.6fr) auto; align-items: start; } .rows.no-v > li { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.9fr); } }

.kv { border-top: 1px solid var(--ink); }
.kv li { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.kv li span:last-child { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--moss); text-align: right; flex: none; max-width: 50%; }

.card { border: 1px solid var(--line); background: rgba(251, 250, 246, .9); padding: clamp(22px, 2.6vw, 34px); display: flex; flex-direction: column; gap: 12px; }
.card p { color: var(--stone); font-size: 16px; }
.card p.label, .card p.status { font-size: 11.5px; color: var(--moss); }
.card p.status { color: var(--forest); }
.card .arrow-link { margin-top: auto; padding-top: 10px; }
.note { border-left: 2px solid var(--rust); padding: 4px 0 4px 18px; color: var(--stone); font-size: 15.5px; max-width: var(--measure); }
.note strong { color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid var(--line); padding: 7px 13px; font-size: 13.5px; color: var(--stone); background: rgba(251, 250, 246, .8); }

/* ---------- work ---------- */
.shot { border: 1px solid var(--line); background: var(--cream); display: block; }
.shot img { width: 100%; }
a.shot { transition: border-color .15s; }
a.shot:hover { border-color: var(--rust); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--forest); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rust); flex: none; }
.work-grid { display: grid; gap: clamp(36px, 4vw, 64px) clamp(24px, 3vw, 40px); }
@media (min-width: 760px) { .work-grid { grid-template-columns: 1fr 1fr; } }
.work-card { display: grid; gap: 12px; align-content: start; }
.work-card .shot { margin-bottom: 8px; }
.work-card .shot img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.work-card h2 { font-size: clamp(26px, 2.6vw, 36px); }
.work-card h3 { font-size: clamp(22px, 2vw, 28px); }
.work-card p { color: var(--stone); max-width: 34em; }
.work-card p.status { color: var(--forest); }
.work-card .links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 4px; }
.work-list { display: grid; gap: clamp(48px, 7vw, 96px); }
.work-entry { display: grid; gap: clamp(22px, 3vw, 44px); align-items: start; }
.work-entry .meta { display: grid; gap: 14px; align-content: start; }
.work-entry .meta p { color: var(--stone); }
.work-entry .links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 6px; }
@media (min-width: 900px) { .work-entry { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } .work-entry:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); } .work-entry:nth-child(even) .shot { order: 2; } }
.pair { display: grid; gap: clamp(18px, 3vw, 36px); align-items: end; }
.pair .phone { max-width: 300px; justify-self: center; width: 100%; }
@media (min-width: 760px) { .pair { grid-template-columns: minmax(0, 3.2fr) minmax(0, 1fr); } .pair .phone { max-width: none; } }
figcaption { margin-top: 10px; font-size: 13.5px; color: var(--stone); }
.next-project { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 14px; }

/* ---------- price ---------- */
.price { font-size: clamp(64px, 11vw, 148px); font-weight: 700; letter-spacing: -.055em; line-height: .9; font-variant-numeric: tabular-nums; color: var(--forest); }
.price sup { font-size: .38em; vertical-align: top; position: relative; top: .18em; margin-right: .05em; letter-spacing: 0; }
.price-sub { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--moss); margin-top: 14px; }
.pay { display: grid; gap: 0; border-top: 1px solid var(--ink); margin-top: 28px; }
.pay li { display: grid; grid-template-columns: 1fr auto; gap: 4px 18px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.pay .amt { font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pay small { grid-column: 1 / -1; color: var(--stone); font-size: 14.5px; }
.checkout { border: 1px solid var(--ink); padding: clamp(20px, 2.6vw, 32px); background: rgba(251, 250, 246, .92); }
.checkout .pay { margin-top: 18px; }
.ck-btn { grid-column: 1 / -1; margin-top: 8px; padding: 11px; text-align: center; border: 1px dashed var(--stone); color: var(--stone); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; cursor: not-allowed; user-select: none; }

/* ---------- about ---------- */
.timeline { border-top: 1px solid var(--ink); }
.timeline li { display: grid; gap: 6px 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.timeline .n { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--rust-deep); padding-top: 5px; }
.timeline p { color: var(--stone); max-width: var(--measure); }
@media (min-width: 860px) { .timeline li { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.9fr); } }

/* ---------- sample report (synthetic) ---------- */
.sample { border: 1px solid var(--ink); background: rgba(251, 250, 246, .95); }
.sample-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; padding: 14px clamp(16px, 2.4vw, 28px); border-bottom: 1px solid var(--line); }
.sample-body { padding: clamp(16px, 2.4vw, 28px); display: grid; gap: 22px; }
.sample table { width: 100%; border-collapse: collapse; font-size: 15px; }
.sample th { text-align: left; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--moss); padding: 0 12px 10px 0; border-bottom: 1px solid var(--ink); }
.sample td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.sample td:last-child, .sample th:last-child { text-align: right; padding-right: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border: 1px solid var(--line); }
.stat-row div { padding: 16px; border-right: 1px solid var(--line-soft); }
.stat-row strong { display: block; font-size: 28px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-row span { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.4; color: var(--stone); }

/* ---------- calculator + form ---------- */
.calc, .form { display: grid; gap: 18px; }
label { display: grid; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
label small { font-weight: 400; color: var(--stone); letter-spacing: 0; font-size: 13.5px; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-bottom-color: var(--ink); background: #fff; color: var(--ink); font: 400 17px/1.4 var(--sans); padding: 13px 14px; border-radius: 0; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--rust); outline-offset: 1px; }
textarea { resize: vertical; min-height: 120px; }
.calc-out { border-top: 1px solid var(--ink); padding-top: 18px; display: grid; gap: 16px; }
.calc-out strong { display: block; font-size: clamp(34px, 5vw, 56px); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--forest); }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--ink); }
summary { cursor: pointer; padding: 20px 28px 20px 0; font-size: clamp(18px, 1.6vw, 21px); font-weight: 700; letter-spacing: -.015em; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 2px; top: 18px; font-weight: 400; font-size: 22px; color: var(--rust-deep); }
details[open] summary::after { content: "–"; }
details > div { padding: 0 0 24px; max-width: var(--measure); color: var(--stone); }
details > div p + p { margin-top: 1em; }

/* ---------- closing CTA + footer ---------- */
.cta h2 { max-width: 16em; }
.cta .lede { color: #d9e1d8; margin-top: 22px; }
.site-footer { background: var(--forest-deep); color: var(--paper); border-top: 1px solid rgba(251, 250, 246, .16); padding: clamp(44px, 6vw, 72px) 0 32px; }
.site-footer .brand { color: var(--paper); }
.footer-grid { display: grid; gap: 34px; grid-template-columns: 1fr 1fr; }
.footer-grid > div:first-child { grid-column: 1 / -1; }
.footer-grid h4 { color: var(--sage); margin-bottom: 14px; }
.footer-grid li a { display: inline-block; padding: 5px 0; font-size: 15px; text-decoration: none; color: #e6ebe4; transition: color .15s; overflow-wrap: anywhere; }
.footer-grid li a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--rust); }
.footer-grid p { color: #c3cfc4; font-size: 15px; max-width: 30em; margin-top: 16px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(36px, 5vw, 60px); padding-top: 20px; border-top: 1px solid rgba(251, 250, 246, .16); font-size: 13px; color: #aebbb0; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1fr 1.1fr; } .footer-grid > div:first-child { grid-column: auto; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print { #terrain, #veil, .site-header, .cta, .site-footer { display: none; } }
