/* Scout Mountain Landscaping: gallery first. Tokens and rules live in DESIGN.md. */
:root {
  --wall: #FCFCFA;
  --ink: #1A201C;
  --evergreen: #1D4030;
  --evergreen-deep: #142E22;
  --lichen: #56645B;
  --sage: #859795;
  --lilac: #B3A1C8;
  --lilac-deep: #6A5893;
  --stone: #EFF2EE;
  --call: #E3E9E3;
  --field: #7D8B83;
  --lb: #101915;
  --foot-text: #E8EEE9;
  --foot-muted: #B8C8BE;
  --danger: #9B2C2C;

  --sa-accent: #1D4030;
  --sa-accent-ink: #FFFFFF;

  --gutter: clamp(20px, 5vw, 80px);
  --max: 1520px;
  --gap: clamp(16px, 2.2vw, 36px);
  --row: clamp(56px, 7.5vw, 124px);
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 104px; --s7: 160px;

  --display: "Alegreya", Georgia, "Times New Roman", serif;
  --text: "Alegreya Sans", "Gill Sans", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.65;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--lilac); color: var(--ink); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0 0 1em; max-width: 66ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); text-decoration-color: var(--lilac); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--lilac-deep); text-decoration-color: var(--lilac-deep); }
:focus-visible { outline: 3px solid var(--lilac-deep); outline-offset: 4px; }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 50;
  background: var(--evergreen); color: #fff; padding: 12px 18px; text-decoration: none;
}
.skip:focus { top: 16px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons: rectangular, solid evergreen, no icons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 26px;
  background: var(--evergreen); color: #fff;
  font-family: var(--text); font-weight: 500; font-size: 1.0625rem; line-height: 1.2;
  border: 0; border-radius: 2px; cursor: pointer; text-decoration: none;
  transition: background-color 160ms ease;
}
.btn:hover { background: var(--evergreen-deep); color: #fff; }
.btn:focus-visible { outline: 3px solid var(--lilac-deep); outline-offset: 3px; }
.btn--small { min-height: 46px; padding: 10px 20px; font-size: 1rem; }
.btn--pale { background: var(--call); color: var(--ink); }
.btn--pale:hover { background: #D5DDD5; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: var(--s3); }
.tel { font-family: var(--text); font-weight: 500; white-space: nowrap; }
.or { color: var(--lichen); }

/* ---------- Masthead: logo left, three links right ---------- */
.masthead {
  max-width: var(--max); margin: 0 auto;
  padding: 26px var(--gutter) 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.masthead .brand { display: block; line-height: 0; }
.masthead .brand img { height: 96px; width: auto; }
.menu-btn, .nav .m-only { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(18px, 3vw, 44px); }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--text); font-weight: 500; font-size: 1.125rem;
  text-decoration: none; color: var(--ink);
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--lilac); color: var(--ink); }
.nav a[aria-current="page"] { border-bottom-color: var(--evergreen); }

/* ---------- The framed print that opens every page ---------- */
.print {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
}
.print figure { margin: 0; }
.print .frame { display: block; width: 100%; padding: 0; border: 0; background: var(--stone); cursor: zoom-in; overflow: hidden; }
.print .frame img {
  width: 100%; height: clamp(380px, 68vh, 860px); object-fit: cover;
  animation: mat 1000ms cubic-bezier(.2,.7,.1,1) both;
}
.print--pano .frame img { height: auto; aspect-ratio: 2.83; }
.print--wide .frame img { height: clamp(320px, 56vh, 720px); }
.print .diptych { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.4vw, 20px); }
.print .diptych .frame img { height: clamp(340px, 62vh, 780px); }
.label { display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: baseline; margin-top: 14px; }
.label .t { font-family: var(--display); font-weight: 500; font-size: 1.0625rem; }
.label .n { font-size: 0.9375rem; color: var(--lichen); }

.titling {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(40px, 5vw, 72px) var(--gutter) 0;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end;
  animation: rise 800ms 420ms cubic-bezier(.2,.7,.1,1) both;
}
.titling h1 { grid-column: 1 / span 7; font-size: clamp(3rem, 7.4vw, 7.25rem); line-height: 0.98; letter-spacing: -0.015em; }
.titling .lede { grid-column: 8 / span 5; padding-bottom: 8px; }
.titling .lede p { font-size: 1.1875rem; }
.titling--inner h1 { font-size: clamp(2.75rem, 6vw, 5.5rem); }
.crumbs { grid-column: 1 / -1; margin-bottom: 18px; font-size: 0.9375rem; color: var(--lichen); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--sage); }
.crumbs a { color: var(--lichen); }
.crumbs [aria-current] { color: var(--ink); }

@keyframes mat { from { clip-path: inset(6% 6% 6% 6%); opacity: 0.35; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- The hang: an asymmetric editorial gallery on 12 columns ---------- */
.hang { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.row {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap); align-items: start; margin-top: var(--row);
}
.row > *[style] { grid-row: 1; grid-column: var(--at, 1) / span var(--w, 12); margin-top: calc(var(--drop, 0) * clamp(24px, 4.4vw, 72px)); min-width: 0; }
.row--end { align-items: end; }
.row--center { align-items: center; }

.plate { margin: 0; }
.plate .open {
  display: block; width: 100%; padding: 0; border: 0; background: var(--stone);
  cursor: zoom-in; overflow: hidden; line-height: 0;
}
.plate .open img { width: 100%; height: auto; transition: transform 700ms cubic-bezier(.2,.7,.1,1), opacity 400ms ease; }
.plate .open:hover img { transform: scale(1.018); }
.plate .open:focus-visible { outline: 3px solid var(--lilac-deep); outline-offset: 5px; }
.plate figcaption { margin-top: 12px; }
.plate .t { display: block; font-family: var(--display); font-weight: 500; font-size: 1.125rem; line-height: 1.3; }
.plate .n { display: block; font-size: 0.9375rem; line-height: 1.5; color: var(--lichen); margin-top: 2px; max-width: 52ch; }
.plate--crop .open img { aspect-ratio: var(--ratio, 4/3); object-fit: cover; }

/* Wall text between groups */
.wall h2 { font-size: clamp(2rem, 3.3vw, 3rem); margin-bottom: 18px; }
.wall p { font-size: 1.125rem; }
.wall .more { display: inline-block; margin-top: 14px; font-weight: 500; }
.wall--intro h2 { font-size: clamp(2.25rem, 4vw, 3.75rem); }
.wall--intro p { font-size: 1.25rem; line-height: 1.6; }

/* A review set large, like a quotation on a gallery wall */
.wallquote { margin: 0; }
.wallquote blockquote { margin: 0; }
.wallquote blockquote p {
  font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 2.5vw, 2.35rem);
  line-height: 1.32; max-width: 34ch; text-wrap: pretty;
}
.wallquote figcaption { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 1rem; }
.stars { color: var(--evergreen); letter-spacing: 2px; font-size: 1rem; }
.who { font-weight: 500; }
.src { color: var(--lichen); }

/* ---------- Proof: the Google rating and reviews ---------- */
.proof { max-width: var(--max); margin: var(--s7) auto 0; padding: 0 var(--gutter); }
.proof .grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s5); align-items: start; }
.proof .score { grid-column: 1 / span 5; }
.score .num { font-variant-numeric: lining-nums; font-family: var(--display); font-weight: 500; font-size: clamp(6rem, 13vw, 11.5rem); line-height: 0.86; letter-spacing: -0.02em; display: block; }
.score .of { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 2.2vw, 2rem); margin-top: 18px; line-height: 1.2; }
.score .stars { font-size: 1.25rem; display: block; margin-top: 14px; }
.proof .quotes { grid-column: 7 / span 6; }
.quotes .q { margin: 0 0 var(--s4); }
.quotes .q blockquote { margin: 0; }
.quotes .q p { font-family: var(--display); font-weight: 500; font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.35; }
.quotes .q figcaption { margin-top: 10px; font-size: 0.9375rem; color: var(--lichen); }
.also { font-size: 1.0625rem; color: var(--ink); }
.also .names { font-weight: 500; }

/* Review list (reviews.html) */
.review {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px 24px;
  padding: var(--s4) 0; border-top: 1px solid var(--sage);
}
.review:last-child { border-bottom: 1px solid var(--sage); }
.mono {
  width: 64px; height: 64px; display: grid; place-items: center;
  background: var(--stone); color: var(--evergreen);
  font-family: var(--display); font-weight: 500; font-size: 1.5rem; border-radius: 2px;
}
.review .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin-bottom: 12px; }
.review .meta .who { font-family: var(--display); font-size: 1.3125rem; }
.review .body p { font-family: var(--display); font-weight: 500; font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.4; max-width: 44ch; }
.review .body.clamped p { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.review .toggle { margin-top: 12px; }
.reply { margin-top: 18px; padding: 16px 20px; background: var(--stone); border-radius: 2px; }
.reply .by { font-weight: 500; display: block; margin-bottom: 4px; }
.starwall { list-style: none; margin: var(--s3) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.starwall li { display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; background: var(--stone); border-radius: 2px; }
.starwall .mono { width: 44px; height: 44px; font-size: 1.125rem; background: var(--wall); }
.starwall .who { display: block; font-weight: 500; line-height: 1.3; }
.starwall .when { display: block; font-size: 0.9375rem; color: var(--lichen); }

/* ---------- Location, story and closing blocks ---------- */
.band { max-width: var(--max); margin: var(--s7) auto 0; padding: 0 var(--gutter); }
.band .grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s4); align-items: start; }
.band h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); margin-bottom: 18px; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 14px 0; border-top: 1px solid var(--sage); display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; }
.facts li:last-child { border-bottom: 1px solid var(--sage); }
.facts .k { color: var(--lichen); font-size: 0.9375rem; padding-top: 2px; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; background: var(--stone); display: block; }
.closing h2 { font-size: clamp(2.5rem, 5.2vw, 4.75rem); line-height: 1.02; }
.bignum { font-variant-numeric: lining-nums; font-family: var(--display); font-weight: 500; font-size: clamp(4rem, 10vw, 9rem); line-height: 0.9; letter-spacing: -0.02em; display: block; }
.bignum-cap { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 2vw, 1.75rem); margin-top: 14px; line-height: 1.25; max-width: 22ch; }

/* Q and A (xeriscape) */
.qa h2 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); margin-bottom: 16px; }

/* Services sections */
.svc { scroll-margin-top: 24px; }
.svc-title { font-size: clamp(2.25rem, 4vw, 3.5rem); margin-bottom: 18px; }

/* Before and after labels */
.ba .t { display: flex; align-items: baseline; gap: 10px; }
.ba .tag { font-family: var(--text); font-weight: 500; font-size: 0.9375rem; color: var(--lichen); }

/* ---------- Form ---------- */
.form { display: grid; gap: 20px; max-width: 620px; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: #fff; border: 1px solid var(--field); border-radius: 2px;
  padding: 13px 14px; min-height: 52px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--lilac-deep); outline-offset: 1px; border-color: var(--ink); }
.status { min-height: 1.6em; font-weight: 500; }
.status.ok { color: var(--evergreen); }
.status.err { color: var(--danger); }

/* ---------- Footer: evergreen, one contour line ---------- */
.foot { margin-top: var(--s7); background: var(--evergreen); color: var(--foot-text); position: relative; overflow: hidden; }
.foot .contour { position: absolute; left: 0; top: 18px; width: 100%; height: 180px; pointer-events: none; }
.foot .contour path { fill: none; stroke: var(--lilac); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.foot .inner { position: relative; max-width: var(--max); margin: 0 auto; padding: 200px var(--gutter) 40px; }
.foot .top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s4); }
.foot .mark { grid-column: 1 / span 3; }
.foot .mark img { width: 150px; height: auto; }
.foot .col { grid-column: span 2; }
.foot .col--wide { grid-column: span 3; }
.foot h2 { font-family: var(--display); font-size: 1.25rem; margin-bottom: 12px; color: #fff; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0 0 6px; }
.foot a { color: var(--foot-text); text-decoration-color: var(--lilac); overflow-wrap: anywhere; }
.foot li a { text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--lilac); }
.foot p { color: var(--foot-text); font-size: 1rem; }
.foot .muted { color: var(--foot-muted); }
.foot .base { margin-top: var(--s5); padding-top: 22px; border-top: 1px solid rgba(232, 238, 233, 0.28); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; font-size: 0.9375rem; }
.foot .concept { font-size: 0.8125rem; color: var(--foot-muted); margin: 14px 0 0; max-width: none; }
.foot .concept a { color: var(--foot-text); }
.foot :focus-visible { outline-color: var(--lilac); }

/* ---------- Mobile dock ---------- */
.dock { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0;
  background: var(--lb); color: #F1F4F1;
}
.lightbox::backdrop { background: rgba(16, 25, 21, 0.92); }
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lightbox .stage { display: grid; place-items: center; padding: clamp(16px, 3vw, 40px) clamp(16px, 3vw, 40px) 0; min-height: 0; }
.lightbox .stage img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; transition: opacity 220ms ease; }
.lightbox .stage img.loading { opacity: 0.2; }
.lightbox .bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  padding: 18px clamp(16px, 3vw, 40px) 22px;
}
.lightbox .cap { min-width: 0; flex: 1 1 320px; }
.lightbox .cap .t { font-family: var(--display); font-weight: 500; font-size: 1.25rem; display: block; line-height: 1.3; }
.lightbox .cap .n { font-size: 0.9375rem; color: #AEBBB3; display: block; }
.lightbox .count { font-size: 0.9375rem; color: #AEBBB3; font-variant-numeric: tabular-nums; }
.lightbox .ctl { display: flex; gap: 10px; }
.lightbox .ctl button {
  min-height: 46px; padding: 10px 18px; border: 0; border-radius: 2px;
  background: #F1F4F1; color: var(--ink); font: 500 1rem/1.2 var(--text); cursor: pointer;
}
.lightbox .ctl button:hover { background: #fff; }
.lightbox .ctl button:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 980px) {
  .titling h1 { grid-column: 1 / -1; }
  .titling .lede { grid-column: 1 / -1; padding-top: 22px; }
  .proof .score, .proof .quotes { grid-column: 1 / -1; }
  .foot .mark { grid-column: 1 / -1; }
  .foot .col, .foot .col--wide { grid-column: span 6; }
}

@media (max-width: 760px) {
  body { font-size: 1.0625rem; padding-bottom: 76px; }
  .masthead { padding-top: 14px; padding-bottom: 12px; gap: 12px; flex-wrap: wrap; }
  .masthead .brand img { height: 60px; }
  .js .menu-btn { display: inline-flex; min-height: 48px; padding: 10px 22px; }
  .js .nav { display: none; width: 100%; }
  .js .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; border-top: 1px solid var(--sage); margin-top: 4px; }
  .nav li { border-bottom: 1px solid var(--sage); }
  .nav .m-only { display: block; }
  .nav a { display: flex; width: 100%; min-height: 56px; font-family: var(--display); font-weight: 500; font-size: 1.375rem; border-bottom: 0; }
  .nav a:hover { border-bottom: 0; color: var(--lilac-deep); }
  .nav a[aria-current="page"] { border-bottom: 0; text-decoration: underline; text-decoration-color: var(--lilac); text-decoration-thickness: 2px; text-underline-offset: 6px; }
  .print .frame img { height: min(46vh, 420px); }
  .print--pano .frame img { height: 230px; aspect-ratio: auto; }
  .print--wide .frame img { height: min(40vh, 340px); }
  .print .diptych .frame img { height: min(40vh, 340px); }
  .row { display: block; margin-top: 52px; }
  .row > *[style] { margin-top: 0; }
  .row > *[style] + *[style] { margin-top: 52px; }
  .row > .m-l { width: 84%; margin-right: auto; }
  .row > .m-r { width: 84%; margin-left: auto; }
  .row > .m-s { width: 70%; }
  .row > .m-s.m-r { margin-left: auto; }
  .wall--intro p { font-size: 1.125rem; }
  .proof, .band { margin-top: 104px; }
  .band .grid > * { grid-column: 1 / -1 !important; }
  .facts li { grid-template-columns: 92px minmax(0, 1fr); }
  .foot .inner { padding-top: 150px; }
  .foot .contour { height: 130px; }
  .foot .col { grid-column: span 6; }
  .foot .col--wide { grid-column: 1 / -1; }
  .review { grid-template-columns: 48px minmax(0, 1fr); gap: 14px 16px; }
  .review .mono { width: 48px; height: 48px; font-size: 1.2rem; }
  .dock {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(252, 252, 250, 0.97); border-top: 1px solid var(--sage);
  }
  .dock .btn { min-height: 50px; padding: 10px 12px; font-size: 1rem; }
  .lightbox .ctl { width: 100%; }
  .lightbox .ctl button { flex: 1; }
  .lightbox .stage img { max-height: calc(100vh - 230px); }
}

@media (max-width: 380px) {
  .masthead .brand img { height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .plate .open:hover img { transform: none; }
}
