/* Ashlar & Fern — concept site by Rellan.
   Palette from the materials: spruce, limestone, lichen, moss, bark.
   Newsreader (display, italic for botanical names), Figtree (text and UI), Marcellus (wordmark only). */

@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-var.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-italic-var.woff2") format("woff2");
  font-weight: 300 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-var.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Marcellus";
  src: url("fonts/marcellus.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --spruce: #1e2c24;
  --spruce-2: #283a30;
  --limestone: #ecede6;
  --limestone-2: #e2e5dc;
  --lichen: #d6dccb;
  --moss: #5d6b3b;
  --moss-light: #b8c39b;
  --bark: #7a5636;
  --ink: #1e2c24;
  --ink-2: #4b5850;
  --rule: rgba(30, 44, 36, .2);
  --rule-strong: rgba(30, 44, 36, .45);
  --focus: #5d6b3b;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --joint: 6px;            /* the "mortar" between coursed images */
  --space-1: clamp(4rem, 3rem + 5vw, 8.5rem);   /* between sections */
  --space-2: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--limestone);
  color: var(--ink);
  font: 400 1.0625rem/1.62 var(--sans);
  font-feature-settings: "kern", "liga";
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
figure { margin: 0; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: var(--rule-strong); }
a:hover { color: var(--moss); text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: 12px; top: -100px; z-index: 50; padding: .7rem 1rem; background: var(--spruce); color: var(--limestone); font-weight: 600; text-decoration: none; }
.skip:focus { top: 52px; color: var(--limestone); }

/* ------------------------------------------------------------ type */
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.9rem, 1.3rem + 5.4vw, 6.6rem);
  line-height: .98;
  letter-spacing: -.028em;
}
.display--page { font-size: clamp(2.7rem, 1.6rem + 4.4vw, 5.6rem); line-height: 1; }
h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.05rem, 1.35rem + 2.6vw, 3.55rem);
  line-height: 1.06;
  letter-spacing: -.018em;
  text-wrap: balance;
}
h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.05rem);
  line-height: 1.15;
  letter-spacing: -.01em;
}
h4 { font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.4; }
.lede { font-family: var(--serif); font-weight: 300; font-size: clamp(1.3rem, 1.1rem + .7vw, 1.7rem); line-height: 1.38; max-width: 34ch; }
.bot { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.1em; letter-spacing: 0; }

/* the one label style: small, sentence case, a short stone rule before it */
.tag {
  display: inline-flex; align-items: center; gap: .6em;
  margin: 0 0 1.1rem;
  font: 600 .875rem/1.3 var(--sans);
  color: var(--moss);
}
.tag::before { content: ""; width: 1.6em; height: 2px; background: currentColor; }
.tag--inline { margin: 0 .4em 0 0; }

.link-strong { font-weight: 600; text-decoration-color: currentColor; text-decoration-thickness: 2px; text-underline-offset: .3em; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: .8rem 1.5rem;
  border: 1.5px solid var(--spruce); border-radius: 2px;
  background: var(--spruce); color: var(--limestone);
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--moss); border-color: var(--moss); color: #fff; }
.btn--small { min-height: 44px; padding: .55rem 1.1rem; font-size: .9375rem; }
.btn--light { background: var(--limestone); border-color: var(--limestone); color: var(--spruce); }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--spruce); }
.btn--ghost { background: transparent; color: var(--spruce); }
.btn--ghost:hover { background: var(--spruce); border-color: var(--spruce); color: var(--limestone); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ------------------------------------------------------------ header */
.site-head { position: relative; z-index: 20; }
.site-head__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--spruce); text-decoration: none; min-height: 44px; }
.brand:hover { color: var(--spruce); }
.mark { width: 26px; height: 26px; fill: currentColor; flex: none; }
.mark rect:last-child { fill: var(--moss); }
.wordmark { font-family: "Marcellus", var(--serif); font-size: 1.12rem; letter-spacing: .24em; text-transform: uppercase; line-height: 1; padding-top: 2px; white-space: nowrap; }

.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.site-nav ul { display: flex; gap: clamp(16px, 2.2vw, 32px); list-style: none; }
.site-nav ul a { display: inline-flex; align-items: center; min-height: 44px; font-size: .975rem; font-weight: 500; text-decoration: none; }
.site-nav ul a:hover { color: var(--moss); }
.site-nav ul a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .45em; text-decoration-color: var(--moss); }
.site-nav .btn[aria-current="page"] { background: var(--moss); border-color: var(--moss); }

.menu-btn {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; min-width: 44px; padding: 0 4px 0 10px;
  border: 0; background: none; cursor: pointer; font-weight: 600;
}
.menu-btn__lines { position: relative; width: 22px; height: 12px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.menu-btn[aria-expanded="true"] .menu-btn__lines { border-color: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__lines::before,
.menu-btn[aria-expanded="true"] .menu-btn__lines::after { content: ""; position: absolute; left: 0; right: 0; top: 4.5px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines::after { transform: rotate(-45deg); }

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .site-head__in { min-height: 72px; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 12px var(--gutter) 28px;
    background: var(--limestone);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 24px 40px -24px rgba(30, 44, 36, .35);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul li + li { border-top: 1px solid var(--rule); }
  .site-nav ul a { width: 100%; min-height: 54px; font-family: var(--serif); font-size: 1.45rem; font-weight: 400; }
  .site-nav .btn { align-self: flex-start; }
}
@media (max-width: 380px) {
  .wordmark { font-size: .98rem; letter-spacing: .2em; }
  .menu-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ------------------------------------------------------------ hero */
.hero { padding-top: clamp(1.25rem, .8rem + 2vw, 2.75rem); }
.hero__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; padding-bottom: clamp(2rem, 1.4rem + 2.6vw, 3.75rem); }
.hero__h { grid-column: 1 / span 8; }
.hero__h span { display: block; }
.hero__h span + span { padding-left: 1.05em; }
.hero__aside { grid-column: 9 / -1; max-width: 36ch; padding-bottom: .5rem; }
.hero__aside p:first-child { font-size: 1.08rem; color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin: 1.6rem 0 0; }
.hero__fig { margin-left: calc((100vw - min(100vw, calc(var(--max) + 2 * var(--gutter)))) / 2 + var(--gutter) + (min(100vw, calc(var(--max) + 2 * var(--gutter))) - 2 * var(--gutter)) / 12); height: clamp(380px, 66vh, 760px); overflow: hidden; }
.hero__fig img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 78%; }

@media (prefers-reduced-motion: no-preference) {
  .hero__fig { animation: unveil 1.4s cubic-bezier(.65, 0, .2, 1) .15s both; }
  .hero__img { animation: settle 2.2s cubic-bezier(.2, .6, .2, 1) .15s both; }
}
@keyframes unveil { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }

@media (max-width: 1023px) {
  .hero__h { grid-column: 1 / -1; }
  .hero__aside { grid-column: 1 / span 9; max-width: 46ch; padding-top: 1.75rem; }
  .hero__fig { margin-left: var(--gutter); }
}
@media (max-width: 640px) {
  .hero__top { display: block; }
  .hero__h span + span { padding-left: .6em; }
  .hero__fig { margin-left: 0; height: 58vh; min-height: 320px; max-height: 520px; }
  .hero__fig img { object-position: 72% 70%; }
}

/* ------------------------------------------------------------ intro */
.intro { padding-block: var(--space-1) 0; }
.intro__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 2.5rem; }
.intro__h { grid-column: 1 / span 7; font-size: clamp(1.85rem, 1.3rem + 2vw, 3rem); line-height: 1.12; }
.intro__body { grid-column: 2 / span 5; grid-row: 2; max-width: 60ch; }
.intro__fig { grid-column: 8 / -1; grid-row: 1 / span 2; align-self: end; }
.intro__fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% 50%; }
.intro__points { list-style: none; margin-top: 2rem; border-top: 1px solid var(--rule); }
.intro__points li { padding: .9rem 0 .9rem 2rem; border-bottom: 1px solid var(--rule); position: relative; font-weight: 500; }
.intro__points li::before { content: ""; position: absolute; left: 0; top: 1.45rem; width: 1.1rem; height: .5rem; background: var(--moss); }
@media (max-width: 900px) {
  .intro__h, .intro__body, .intro__fig { grid-column: 1 / -1; grid-row: auto; }
  .intro__fig img { aspect-ratio: 3 / 2; }
}

/* ------------------------------------------------------------ practice */
.practice { padding-top: var(--space-1); }
.practice__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; margin-bottom: var(--space-2); }
.practice__head::after { content: ""; grid-column: 1 / -1; margin-top: var(--space-2); border-top: 1px solid var(--rule-strong); }
.practice__head h2 { grid-column: 1 / span 6; }
.practice__head p { grid-column: 8 / -1; margin: 0; max-width: 40ch; color: var(--ink-2); }

.pa { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 2rem; padding-bottom: var(--space-1); }
.pa__text { max-width: 60ch; }
.pa__text h3 { font-size: clamp(2rem, 1.4rem + 2vw, 3.1rem); font-weight: 300; margin-bottom: 1.2rem; }
.pa__fig img { width: 100%; height: 100%; object-fit: cover; }
.pa__inc, .pa__price { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: .975rem; color: var(--ink-2); }
.pa__inc span, .pa__price span { display: block; font-weight: 600; color: var(--ink); margin-bottom: .2rem; }
.pa__price span { color: var(--moss); }

/* stone: image breaks out to the left edge of the viewport */
.pa--stone .pa__fig { grid-column: 1 / span 7; margin-left: calc(-1 * var(--gutter)); }
.pa--stone .pa__fig img { aspect-ratio: 4 / 3; object-position: 40% 60%; }
.pa--stone .pa__text { grid-column: 9 / -1; align-self: center; }

.pa--plant .pa__text { grid-column: 2 / span 6; align-self: start; padding-top: 2rem; }
.pa--plant .pa__fig { grid-column: 9 / span 4; }
.pa--plant .pa__fig img { aspect-ratio: 3 / 4; object-position: 50% 40%; }

.pa--care { padding-top: var(--space-1); }
.pa--care .pa__fig { grid-column: 1 / span 6; }
.pa--care .pa__fig img { aspect-ratio: 3 / 2; object-position: 60% 50%; }
.pa--care .pa__text { grid-column: 8 / -1; align-self: end; }

@media (max-width: 900px) {
  .practice__head h2, .practice__head p { grid-column: 1 / -1; }
  .practice__head p { margin-top: 1rem; }
  .pa > * { grid-column: 1 / -1 !important; }
  .pa--stone .pa__fig { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
  .pa--plant .pa__text { padding-top: 0; }
  .pa--plant .pa__fig { order: -1; max-width: 520px; }
  .pa--plant .pa__fig img { aspect-ratio: 4 / 3; }
}

/* evening spread: dark, two portrait images at different heights */
.evening { background: var(--spruce); color: var(--limestone); padding-block: var(--space-1); --focus: var(--moss-light); }
.evening a:not(.btn) { color: inherit; }
.evening__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 2rem; }
.evening__title { grid-column: 1 / span 5; font-size: clamp(2.3rem, 1.5rem + 3vw, 4.2rem); font-weight: 300; line-height: 1; }
.evening__intro { grid-column: 7 / span 5; align-self: end; margin: 0; max-width: 42ch; color: #c6ccc2; }
.ev h4 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.15rem); line-height: 1.15; margin: 1.5rem 0 .8rem; }
.ev p { color: #d3d8cf; max-width: 52ch; }
.ev__fig img { width: 100%; object-fit: cover; }
.ev--kitchen { grid-column: 1 / span 6; margin-top: 1.5rem; }
.ev--kitchen .ev__fig img { aspect-ratio: 4 / 5; object-position: 50% 40%; }
.ev--light { grid-column: 8 / span 5; margin-top: clamp(4rem, 12vw, 11rem); }
.ev--light .ev__fig img { aspect-ratio: 3 / 4; object-position: 50% 55%; }
@media (max-width: 900px) {
  .evening__title, .evening__intro { grid-column: 1 / -1; }
  .ev--kitchen { grid-column: 1 / span 6; }
  .ev--light { grid-column: 7 / -1; margin-top: 6rem; }
}
@media (max-width: 640px) {
  .ev--kitchen, .ev--light { grid-column: 1 / -1; }
  .ev--light { margin-top: 2rem; }
  .ev--kitchen .ev__fig img, .ev--light .ev__fig img { aspect-ratio: 4 / 3; }
}

/* ------------------------------------------------------------ case study */
.case { background: var(--lichen); padding-block: var(--space-1); }
.case__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding-bottom: var(--space-2); }
.case__head .tag { grid-column: 1 / -1; }
.case__head h2 { grid-column: 1 / span 7; font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.6rem); line-height: 1; }
.case__dek { grid-column: 8 / -1; align-self: end; margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); line-height: 1.38; }
.case__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 2.5rem; }
.case__fig img { width: 100%; height: 100%; object-fit: cover; }
.case__fig--a { grid-column: 1 / span 5; grid-row: 1 / span 2; }
.case__fig--a img { aspect-ratio: 3 / 4; object-position: 50% 70%; }
.case__part h3 { font-size: clamp(1.45rem, 1.2rem + .8vw, 1.85rem); margin-bottom: .9rem; }
.case__part p { max-width: 60ch; }
.case__part--site { grid-column: 7 / span 6; padding-top: .5rem; }
.case__part--moves { grid-column: 7 / span 6; }
.moves { margin: 0; border-top: 1px solid var(--rule-strong); }
.moves dt { font-weight: 600; padding-top: 1rem; }
.moves dd { margin: .25rem 0 0; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); max-width: 60ch; color: #33413a; }

.case__dwg { margin: var(--space-2) 0; padding: clamp(1.25rem, 1rem + 2vw, 2.75rem); background: var(--limestone); }
.section-dwg { width: 100%; height: auto; overflow: visible; }
.sx-earth { fill: #dfe2d6; }
.sx-profile { fill: none; stroke: var(--spruce); stroke-width: 2.2; stroke-linejoin: round; }
.sx-grade { fill: none; stroke: var(--bark); stroke-width: 1.6; stroke-dasharray: 7 6; }
.sx-house { fill: none; stroke: var(--spruce); stroke-width: 3; }
.sx-steps { fill: none; stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 2 3; }
.sx-stone { fill: #c9c7b4; stroke: var(--spruce); stroke-width: 1; }
.sx-gravel { fill: var(--ink-2); }
.sx-pipe { fill: var(--limestone); stroke: var(--spruce); stroke-width: 1.4; }
.sx-drain { fill: none; stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 1 4; stroke-linecap: round; }
.sx-trunk { fill: none; stroke: var(--spruce); stroke-width: 1.6; stroke-linecap: round; }
.sx-canopy { fill: rgba(93, 107, 59, .14); stroke: var(--moss); stroke-width: 1.3; }
.sx-plant { fill: none; stroke: var(--moss); stroke-width: 1.6; stroke-linecap: round; }
.sx-chair { fill: none; stroke: var(--spruce); stroke-width: 1.6; stroke-linejoin: round; }
.sx-water { fill: none; stroke: #5b7a86; stroke-width: 2; stroke-linecap: round; }
.sx-label { font: 500 14px var(--sans); fill: var(--ink-2); }
.sx-key circle { fill: var(--spruce); }
.sx-key text { font: 700 14px var(--sans); fill: var(--limestone); }
.case__dwg figcaption { margin-top: 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 1rem 2.5rem; }
.case__dwg-cap { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.4; }
.keys { columns: 2; column-gap: 2.5rem; padding-left: 1.6rem; font-size: .9375rem; color: #33413a; }
.keys li { break-inside: avoid; margin-bottom: .45rem; padding-left: .3rem; }
.keys li::marker { font-weight: 700; color: var(--spruce); }
@media (max-width: 900px) {
  .case__dwg figcaption { grid-template-columns: 1fr; }
  .keys { columns: 1; }
}
@media (max-width: 640px) {
  .case__dwg { margin-inline: calc(-1 * var(--gutter)); padding: 1rem var(--gutter) 1.5rem; }
  .sx-key circle { r: 24px; }
  .sx-key text { font-size: 28px; transform: translateY(4px); transform-box: fill-box; }
  .sx-label { font-size: 26px; }
}

/* coursed pair: equal-height course, joint between */
.case__course { display: flex; gap: var(--joint); }
.case__fig--b { flex: 1.5 1 0; }
.case__fig--c { flex: .667 1 0; }
.case__course img { height: clamp(260px, 36vw, 560px); }
.case__fig--c img { object-position: 50% 70%; }
.case__lists { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 2.5rem; margin-top: var(--space-2); }
.case__lists .case__part:first-child { grid-column: 1 / span 5; }
.case__lists .case__part:nth-child(2) { grid-column: 7 / -1; }
.case__more { grid-column: 7 / -1; margin: 0; }
@media (max-width: 900px) {
  .case__head h2, .case__dek, .case__fig--a, .case__part--site, .case__part--moves,
  .case__lists .case__part:first-child, .case__lists .case__part:nth-child(2), .case__more { grid-column: 1 / -1; grid-row: auto; }
  .case__dek { margin-top: 1.25rem; }
  .case__fig--a img { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .case__course { flex-direction: column; }
  .case__course img { height: auto; aspect-ratio: 4 / 3; }
}

/* lists */
.ticks { list-style: none; }
.ticks li { position: relative; padding: .55rem 0 .55rem 1.5rem; border-bottom: 1px solid var(--rule); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: .75rem; height: 2px; background: var(--moss); }
.plants { list-style: none; border-top: 1px solid var(--rule-strong); }
.plants li { padding: .8rem 0; border-bottom: 1px solid var(--rule); }
.plant__name { font-weight: 600; }
.plants .bot { color: var(--moss); }
.plant__note { display: block; color: var(--ink-2); font-size: .9375rem; margin-top: .15rem; }
.plants--compact li { padding: .65rem 0; }

/* ------------------------------------------------------------ process */
.process { padding-block: var(--space-1); }
.process__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 3rem; }
.process__side { grid-column: 1 / span 4; }
.process__side p { color: var(--ink-2); max-width: 40ch; margin-top: 1.25rem; }
.process__fig { margin-top: 2.5rem; }
.process__fig img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; }
.steps { grid-column: 6 / -1; list-style: none; counter-reset: step; }
.step { counter-increment: step; position: relative; display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); column-gap: 1.5rem; padding: 2.1rem 0 1.6rem; border-top: 1px solid var(--rule-strong); }
.step:last-child { border-bottom: 1px solid var(--rule-strong); }
.step::before { content: counter(step); grid-row: 1 / span 3; font-family: var(--serif); font-weight: 300; font-size: 4.2rem; line-height: .8; color: var(--moss); }
.step__h { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); margin-bottom: .8rem; }
.step p { max-width: 60ch; }
.step__meta { font-size: .9375rem; color: var(--ink-2); }
.step__meta span { font-weight: 600; color: var(--ink); }
@media (min-width: 1024px) {
  .process__side { position: sticky; top: 24px; align-self: start; }
}
@media (max-width: 900px) {
  .process__side, .steps { grid-column: 1 / -1; }
  .process__fig img { aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
  .step { grid-template-columns: 1fr; }
  .step::before { grid-row: auto; font-size: 3rem; margin-bottom: .6rem; }
}

/* ------------------------------------------------------------ seasons */
.seasons { background: var(--spruce); color: var(--limestone); padding-block: var(--space-1); --focus: var(--moss-light); }
.seasons a:not(.btn) { color: inherit; }
.seasons__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding-bottom: var(--space-2); }
.seasons__head h2 { grid-column: 1 / span 6; }
.seasons__head p { grid-column: 8 / -1; align-self: end; margin: 0; color: #c6ccc2; max-width: 46ch; }
.seasons__ui { display: grid; grid-template-columns: minmax(250px, 3.4fr) minmax(0, 8.6fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: start; }
.seasons__dial { position: sticky; top: 24px; }
.wheel { width: 100%; max-width: 280px; margin: 0 auto 1.75rem; }
.wheel__m path { fill: #33473b; transition: fill .3s ease; }
.wheel__m text { font: 600 13px var(--sans); fill: #a9b3a6; transition: fill .3s ease; }
.wheel__m.is-on path { fill: var(--moss-light); }
.wheel__m.is-on text { fill: var(--spruce); }
.wheel__season { font: 300 34px var(--serif); fill: var(--limestone); letter-spacing: -.5px; }
.wheel__months { font: 500 12.5px var(--sans); fill: #b9c1b5; }

.seasons__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid rgba(236, 237, 230, .25); }
.seasons__tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-height: 64px; padding: .75rem .25rem .75rem 0;
  border: 0; border-bottom: 1px solid rgba(236, 237, 230, .25); background: none; color: #c6ccc2;
  text-align: left; cursor: pointer;
}
.seasons__tab:nth-child(odd) { padding-right: 1rem; }
.seasons__tab-name { font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; }
.seasons__tab-months { font-size: .8125rem; }
.seasons__tab:hover { color: var(--limestone); }
.seasons__tab[aria-selected="true"] { color: var(--limestone); box-shadow: inset 0 -3px 0 var(--moss-light); }
.seasons__tab[aria-selected="true"] .seasons__tab-name { font-style: italic; }

.seasons__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem 3rem; }
.seasons__panel[hidden] { display: none; }
.seasons__panel:focus-visible { outline-offset: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .seasons__panel:not([hidden]) { animation: panel-in .45s ease both; }
}
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.seasons__garden { grid-column: 1 / -1; max-width: 68ch; }
.seasons__garden h3 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.8rem); font-weight: 300; margin-bottom: 1rem; }
.seasons__range { display: block; font: 500 .9375rem/1.4 var(--sans); color: var(--moss-light); margin-top: .5rem; letter-spacing: 0; }
.seasons__garden p { font-size: 1.125rem; color: #dfe3da; }
.seasons__good { margin: 1.25rem 0 0; padding: .9rem 1.1rem; background: var(--spruce-2); border-left: 3px solid var(--moss-light); font-size: 1rem !important; }
.seasons__good span { font-weight: 600; color: var(--limestone); }
.seasons h4 { color: var(--moss-light); margin-bottom: .75rem; }
.seasons .plants { border-color: rgba(236, 237, 230, .35); }
.seasons .plants li, .seasons .ticks li { border-color: rgba(236, 237, 230, .16); }
.seasons .plants .bot { color: var(--moss-light); }
.seasons .plant__note { color: #b9c1b5; }
.seasons .ticks li { color: #dfe3da; }
.seasons .ticks li::before { background: var(--moss-light); }
@media (max-width: 1023px) {
  .seasons__ui { grid-template-columns: 1fr; }
  .seasons__dial { position: static; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 2rem; align-items: center; }
  .wheel { margin: 0; }
}
@media (max-width: 900px) {
  .seasons__head h2, .seasons__head p { grid-column: 1 / -1; }
  .seasons__head p { margin-top: 1rem; }
}
@media (max-width: 700px) {
  .seasons__panel { grid-template-columns: 1fr; }
  .seasons__dial { grid-template-columns: 1fr; gap: 1.25rem; }
  .wheel { max-width: 190px; margin: 0 auto; }
  .seasons__tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .seasons__tab { align-items: center; text-align: center; padding: .7rem .1rem !important; }
  .seasons__tab-name { font-size: 1.15rem; }
  .seasons__tab-months { font-size: .75rem; }
}

/* ------------------------------------------------------------ area */
.area { padding-block: var(--space-1) 0; }
.area__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 2.5rem; align-items: start; }
.area__text { grid-column: 1 / span 5; }
.area__text > p { max-width: 46ch; margin-top: 1.25rem; color: var(--ink-2); }
.area__h { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 2rem 0 .6rem; }
.places { list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.5rem; border-top: 1px solid var(--rule-strong); }
.places li { padding: .55rem 0; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: 1.2rem; line-height: 1.3; }
.places li:last-child { grid-column: 1 / -1; }
.area__far { color: var(--ink-2); max-width: 46ch; }
.area__map { grid-column: 7 / -1; }
.map { width: 100%; height: auto; }
.map__core { fill: rgba(93, 107, 59, .12); stroke: var(--moss); stroke-width: 1.5; stroke-dasharray: 5 5; }
.map__river { fill: none; stroke: #7f9aa0; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.map__river--big { stroke-width: 8; }
.map__river--small { stroke-width: 2.5; }
.map__state { stroke: var(--bark); stroke-width: 1.5; stroke-dasharray: 10 6 2 6; }
.map__state-l { font: italic 300 22px var(--serif); fill: var(--bark); }
.map__water { font: italic 400 19px var(--serif); fill: #4f6a70; }
.map__ref path { stroke: var(--ink-2); stroke-width: 1.5; }
.map__ref text { font: 500 15px var(--sans); fill: var(--ink-2); }
.map__place circle { fill: var(--spruce); }
.map__place text { font: 600 17px var(--sans); fill: var(--spruce); paint-order: stroke; stroke: var(--limestone); stroke-width: 5px; stroke-linejoin: round; }
.map__place--far circle { fill: var(--limestone); stroke: var(--spruce); stroke-width: 2; }
.map__place--far text { font-weight: 500; fill: var(--ink-2); }
.map__zone { font: italic 400 19px var(--serif); fill: var(--moss); }
.area__key { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-top: 1rem; font-size: .875rem; color: var(--ink-2); }
.area__key-i { display: inline-flex; align-items: center; gap: .5rem; }
.area__key-i:last-child { font-style: italic; font-family: var(--serif); font-size: 1rem; }
.kdot { width: 10px; height: 10px; border-radius: 50%; background: var(--spruce); }
.kdot--ring { background: var(--limestone); box-shadow: inset 0 0 0 2px var(--spruce); }
.map__north path { fill: none; stroke: var(--spruce); stroke-width: 1.5; }
.map__north text { font: 400 18px "Newsreader", serif; fill: var(--spruce); }
@media (max-width: 900px) {
  .area__text, .area__map { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .map__place text { font-size: 22px; }
  .map__water { font-size: 22px; }
}

/* ------------------------------------------------------------ faq */
.faq { padding-block: var(--space-1); }
.faq__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 2rem; }
.faq__side { grid-column: 1 / span 4; }
.faq__side p { margin-top: 1.25rem; color: var(--ink-2); max-width: 36ch; }
.faq__list { grid-column: 6 / -1; border-top: 1px solid var(--rule-strong); }
.qa { border-bottom: 1px solid var(--rule); }
.qa summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  min-height: 64px; padding: 1rem 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); line-height: 1.3;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
              linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  transition: transform .2s ease;
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa summary:hover { color: var(--moss); }
.qa__a { padding: 0 0 1.4rem; max-width: 64ch; color: #33413a; }
@media (max-width: 900px) {
  .faq__side, .faq__list { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------ cta */
.cta { background: var(--spruce); color: var(--limestone); --focus: var(--moss-light); }
.cta a:not(.btn) { color: inherit; }
.cta__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 560px; }
.cta__fig img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.cta__text { align-self: center; padding: var(--space-2) var(--gutter); max-width: 640px; }
.cta__text h2 { font-size: clamp(2.2rem, 1.4rem + 2.8vw, 3.9rem); margin-bottom: 1.25rem; }
.cta__text p { color: #d3d8cf; max-width: 44ch; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 2rem; }
.cta__tel { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.cta__tel:hover { color: var(--moss-light); }
@media (max-width: 760px) {
  .cta__in { grid-template-columns: 1fr; min-height: 0; }
  .cta__fig img { aspect-ratio: 4 / 3; height: auto; }
}
.cta--slim { padding-block: var(--space-2); }
.cta__slim { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
.cta__slim h2 { grid-column: 1 / span 6; }
.cta__slim p { grid-column: 8 / -1; color: #d3d8cf; max-width: 44ch; }
.cta__slim .cta__actions { grid-column: 8 / -1; margin-top: .5rem; }
@media (max-width: 900px) {
  .cta__slim h2, .cta__slim p, .cta__slim .cta__actions { grid-column: 1 / -1; }
  .cta__slim h2 { margin-bottom: 1rem; }
}

/* ------------------------------------------------------------ footer */
.site-foot { background: #17231c; color: #c6ccc2; padding-top: var(--space-2); font-size: .975rem; --focus: var(--moss-light); }
.site-foot a { color: var(--limestone); text-decoration-color: rgba(236, 237, 230, .4); }
.site-foot a:hover { color: var(--moss-light); }
.site-foot__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 2.5rem; padding-bottom: var(--space-2); }
.site-foot__brand { grid-column: 1 / span 5; }
.site-foot__brand p { margin-top: 1.25rem; max-width: 42ch; }
.brand--foot { color: var(--limestone); }
.brand--foot:hover { color: var(--limestone); }
.brand--foot .mark rect:last-child { fill: var(--moss-light); }
.site-foot__col { grid-column: span 3; }
.site-foot__col:last-child { grid-column: 10 / -1; }
.site-foot__h { font: 600 1rem/1.4 var(--sans); color: var(--limestone); margin-bottom: .9rem; letter-spacing: 0; }
.site-foot__nav { list-style: none; }
.site-foot__nav a { display: inline-flex; min-height: 40px; align-items: center; text-decoration: none; }
.site-foot__nav a:hover { text-decoration: underline; }
.site-foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.5rem 2rem; border-top: 1px solid rgba(236, 237, 230, .16); font-size: .875rem; color: #aeb7ab; }
.site-foot__legal p { margin: 0; }
@media (max-width: 900px) {
  .site-foot__brand { grid-column: 1 / -1; }
  .site-foot__col, .site-foot__col:last-child { grid-column: span 6; }
}
@media (max-width: 520px) {
  .site-foot__col, .site-foot__col:last-child { grid-column: 1 / -1; }
}

/* ================================================================ projects page */
.ph-head { padding-block: clamp(2rem, 1.4rem + 3vw, 4.5rem) var(--space-2); }
.ph-head__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 2rem; align-items: end; }
.ph-head__text { grid-column: 1 / span 7; }
.ph-head__text .lede { margin-top: 1.75rem; }
.ph-head__note { margin: 2rem 0 0; max-width: 52ch; font-size: .975rem; color: var(--ink-2); }
.ph-head__note .tag { display: flex; margin-bottom: .5rem; }
.ph-head__fig { grid-column: 9 / -1; }
.ph-head__fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 35%; }
@media (max-width: 900px) {
  .ph-head__text { grid-column: 1 / -1; }
  .ph-head__fig { grid-column: 1 / -1; grid-row: 1; }
  .ph-head__fig img { aspect-ratio: 21 / 9; }
}

.gallery { padding-bottom: var(--space-1); }
.filter { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding-block: 1.25rem; margin-bottom: 2rem; border-block: 1px solid var(--rule-strong); }
.filter__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.filter__btn {
  min-height: 44px; padding: .5rem 1rem;
  border: 1px solid var(--rule-strong); border-radius: 2px; background: transparent;
  font-size: .9375rem; font-weight: 500; cursor: pointer;
}
.filter__btn:hover { border-color: var(--spruce); }
.filter__btn[aria-pressed="true"] { background: var(--spruce); border-color: var(--spruce); color: var(--limestone); }
.filter__count { margin: 0; min-width: 13.5em; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: .9375rem; }
@media (max-width: 1000px) {
  .filter__count { text-align: left; min-width: 0; flex-basis: 100%; }
}
@media (max-width: 700px) {
  .filter__btn { padding-inline: .8rem; }
}

/* Coursed ashlar: equal-height courses whose stones vary in width; joints are --joint wide. */
.course { list-style: none; display: flex; flex-wrap: wrap; column-gap: var(--joint); row-gap: 2.75rem; }
.proj { position: relative; min-width: 0; }
.proj--w { flex: 1.5 1 450px; max-width: 980px; }
.proj--t { flex: .8 1 240px; max-width: 560px; }
.proj[hidden] { display: none; }
.proj__fig { overflow: hidden; background: var(--limestone-2); }
.proj__fig img { width: 100%; height: clamp(300px, 30vw, 460px); object-fit: cover; transition: transform .6s cubic-bezier(.2, .6, .2, 1); }
.proj:hover .proj__fig img { transform: scale(1.025); }
.proj__title { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); line-height: 1.2; margin-top: 1rem; max-width: 26ch; }
.proj__open { padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.proj__open::after { content: ""; position: absolute; inset: 0; }
.proj:hover .proj__open { text-decoration-color: currentColor; }
.proj__open:focus-visible { outline: none; }
.proj:has(.proj__open:focus-visible) { outline: 3px solid var(--focus); outline-offset: 6px; }
.proj__meta { margin: .45rem 0 0; font-size: .9375rem; color: var(--ink-2); }
.proj__type { color: var(--moss); font-weight: 600; margin-left: .5rem; }
.proj__type::before { content: ""; display: inline-block; width: 1em; height: 1px; background: currentColor; vertical-align: middle; margin-right: .5rem; }
.proj .pd { display: none; }
.proj--w .proj__fig img { object-position: 50% 55%; }
.proj[data-type="lighting"] .proj__fig img { object-position: 50% 60%; }
@media (max-width: 1100px) {
  .proj--w { flex-basis: 330px; }
  .proj--t { flex-basis: 180px; }
}
@media (max-width: 900px) {
  .proj--w { flex-basis: 270px; }
  .proj--t { flex-basis: 145px; }
  .proj__title { font-size: 1.2rem; }
  .proj__meta { font-size: .875rem; }
  .proj__type { display: block; margin: .15rem 0 0; }
  .proj__type::before { display: none; }
}
@media (max-width: 640px) {
  .course { display: block; }
  .proj--w, .proj--t { max-width: none; }
  .proj + .proj { margin-top: 2.25rem; }
  .proj__fig img { height: auto; aspect-ratio: 4 / 3; }
  .proj--t .proj__fig img { aspect-ratio: 4 / 5; }
}

/* project dialog */
.pdlg {
  width: min(1240px, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100dvh - 48px);
  margin: auto; padding: 0;
  border: 0; border-radius: 2px;
  background: var(--limestone); color: var(--ink);
  box-shadow: 0 40px 90px -30px rgba(10, 18, 14, .6);
  overflow: hidden;
}
.pdlg[open] { display: flex; flex-direction: column; }
.pdlg::backdrop { background: rgba(18, 28, 22, .78); }
@media (prefers-reduced-motion: no-preference) {
  .pdlg[open] { animation: dlg-in .35s cubic-bezier(.2, .6, .2, 1) both; }
}
@keyframes dlg-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.pdlg__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 10px 12px 10px clamp(16px, 2.4vw, 32px); border-bottom: 1px solid var(--rule); flex: none; }
.pdlg__pos { margin: 0; font-size: .9375rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pdlg__nav { display: flex; gap: 6px; }
.pdlg__btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--rule-strong); border-radius: 2px; background: transparent; cursor: pointer; }
.pdlg__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pdlg__btn:hover { background: var(--spruce); color: var(--limestone); border-color: var(--spruce); }
.pdlg__close { margin-left: 8px; }
.pdlg__content { overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; }
.pdlg__hint { margin: 0; padding: .6rem clamp(16px, 2.4vw, 32px); border-top: 1px solid var(--rule); font-size: .8125rem; color: var(--ink-2); flex: none; }
@media (hover: none) { .pdlg__hint { display: none; } }
.pd { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.pd__media { display: flex; flex-direction: column; gap: var(--joint); background: var(--limestone); }
.pd__fig img { width: 100%; height: auto; max-height: 72vh; object-fit: cover; }
.pd__fig2 img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pd__body { padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.pd__title { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.8rem); line-height: 1.08; }
.pd__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: .25rem 2rem; margin: 1.25rem 0 1.5rem; padding: .9rem 0; border-block: 1px solid var(--rule); font-size: .9375rem; }
.pd__facts dt { color: var(--ink-2); font-size: .8125rem; }
.pd__facts dd { margin: 0; font-weight: 600; }
.pd__body h3 { font-family: var(--sans); font-weight: 600; font-size: 1rem; margin: 1.5rem 0 .4rem; letter-spacing: 0; }
.pd__body .ticks li { padding-block: .4rem; font-size: .975rem; }
.pd__body .ticks li::before { top: 1rem; }
@media (max-width: 860px) {
  .pd { grid-template-columns: 1fr; }
  .pd__fig img { max-height: 56vh; }
  .pd__facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .pdlg { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; }
}

/* materials board: swatches coursed like a wall */
.materials { padding-block: var(--space-1); background: var(--limestone-2); }
.materials__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 2.5rem; }
.materials__text { grid-column: 1 / span 5; }
.materials__text p { margin-top: 1.25rem; color: var(--ink-2); max-width: 46ch; }
.materials__fig { margin-top: 2rem; }
.materials__fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.swatches { grid-column: 7 / -1; list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2.25rem var(--joint); align-content: start; }
.sw { display: flex; flex-direction: column; }
.sw--w3 { grid-column: span 3; }
.sw--w2 { grid-column: span 2; }
.sw__chip { display: block; height: 104px; margin-bottom: .9rem; background-color: #ccc; }
.sw__name { font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; }
.sw__note { font-size: .9rem; color: var(--ink-2); margin-top: .3rem; padding-right: .75rem; }
/* each chip shows the material in the pattern we lay it */
.sw--limestone .sw__chip {   /* coursed ashlar */
  background-color: #cfc9b6;
  background-image:
    linear-gradient(#e2e5dc, #e2e5dc), linear-gradient(#e2e5dc, #e2e5dc),
    linear-gradient(90deg, transparent 0 46%, #e2e5dc 46% calc(46% + 3px), transparent 0),
    linear-gradient(90deg, transparent 0 22%, #e2e5dc 22% calc(22% + 3px), transparent 0 71%, #e2e5dc 71% calc(71% + 3px), transparent 0),
    linear-gradient(90deg, transparent 0 58%, #e2e5dc 58% calc(58% + 3px), transparent 0);
  background-size: 100% 3px, 100% 3px, 100% 30px, 100% 38px, 100% 30px;
  background-position: 0 30px, 0 71px, 0 0, 0 33px, 0 74px;
  background-repeat: no-repeat;
}
.sw--bluestone .sw__chip {
  background-color: #7d878b;
  background-image: linear-gradient(90deg, transparent 0 calc(100% - 3px), #e2e5dc 0), linear-gradient(transparent 0 calc(100% - 3px), #e2e5dc 0);
  background-size: 33.4% 100%, 100% 52px;
}
.sw--sandstone .sw__chip {
  background-color: #d4bf98;
  background-image: linear-gradient(90deg, transparent 0 calc(100% - 3px), #e2e5dc 0), linear-gradient(transparent 0 calc(100% - 3px), #e2e5dc 0);
  background-size: 25% 52px;
}
.sw--fieldstone .sw__chip {
  background-color: #e2e5dc;
  background-image:
    radial-gradient(ellipse 30px 20px at 22px 22px, #8e8472 96%, transparent),
    radial-gradient(ellipse 26px 18px at 70px 18px, #a69c86 96%, transparent),
    radial-gradient(ellipse 24px 22px at 46px 62px, #7b7464 96%, transparent),
    radial-gradient(ellipse 28px 18px at 100px 66px, #b4aa93 96%, transparent),
    radial-gradient(ellipse 18px 16px at 12px 82px, #9c917c 96%, transparent);
  background-size: 124px 104px;
}
.sw--brick .sw__chip {   /* stack bond */
  background-color: #6e6a68;
  background-image: linear-gradient(90deg, transparent 0 calc(100% - 2px), #e2e5dc 0), linear-gradient(transparent 0 calc(100% - 2px), #e2e5dc 0);
  background-size: 38px 100%, 100% 17.33px;
}
.sw--gravel .sw__chip {
  background-color: #d9d6c9;
  background-image:
    radial-gradient(circle at 20% 30%, #a9a594 1.8px, transparent 2.4px),
    radial-gradient(circle at 70% 60%, #bdb9a9 2.2px, transparent 2.8px),
    radial-gradient(circle at 40% 85%, #9d9987 1.4px, transparent 2px),
    radial-gradient(circle at 85% 15%, #c9c5b5 2.6px, transparent 3.2px);
  background-size: 13px 17px, 19px 13px, 23px 21px, 29px 25px;
}
.sw--steel .sw__chip { background-color: #6f4a32; background-image: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(0, 0, 0, .12)); }
.sw--oak .sw__chip {
  background-color: #b39a76;
  background-image: repeating-linear-gradient(90deg, transparent 0 7px, rgba(90, 64, 38, .18) 7px 8px, transparent 8px 15px, rgba(90, 64, 38, .1) 15px 16px);
}
@media (max-width: 900px) {
  .materials__text, .swatches { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .swatches { grid-template-columns: 1fr 1fr; }
  .sw--w3, .sw--w2 { grid-column: span 1; }
}

/* ================================================================ estimate page */
.est-head { padding-block: clamp(2rem, 1.4rem + 3vw, 4.5rem) var(--space-2); }
.est-head__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 1.5rem; align-items: end; }
.est-head h1 { grid-column: 1 / span 7; }
.est-head .lede { grid-column: 8 / -1; margin: 0; font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); }
@media (max-width: 900px) { .est-head h1, .est-head .lede { grid-column: 1 / -1; } }

.est-wrap { padding-bottom: var(--space-1); }
.est-wrap__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 3rem; align-items: start; }
.est-wrap__form { grid-column: 1 / span 7; }
.est-aside { grid-column: 9 / -1; position: sticky; top: 24px; font-size: .975rem; }
.est-aside__fig img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 60% 60%; margin-bottom: 1.75rem; }
.est-aside h2 { font-size: clamp(1.7rem, 1.4rem + .9vw, 2.2rem); margin-bottom: .8rem; }
.est-aside h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 2rem 0 .4rem; }
.est-aside p { color: var(--ink-2); }
.est-aside .ticks li { padding-block: .45rem; }
.est-aside .ticks li::before { top: 1.05rem; }
.est-aside__call { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid var(--rule-strong); color: var(--ink) !important; }
@media (max-width: 1023px) {
  .est-wrap__form { grid-column: 1 / span 12; }
  .est-aside { grid-column: 1 / -1; position: static; display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
  .est-aside > * { grid-column: 1; }
  .est-aside__fig { grid-column: 2; grid-row: 1 / span 6; }
  .est-aside__fig img { aspect-ratio: 4 / 5; }
}
@media (max-width: 700px) {
  .est-aside { display: block; }
}

.est { border-top: 2px solid var(--spruce); }
.est__progress { padding: 1.25rem 0 2rem; }
.est__count { margin: 0 0 .75rem; font-size: .9375rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.prog { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--joint); }
.prog__item { display: flex; flex-direction: column; gap: .5rem; font-size: .875rem; color: var(--ink-2); }
.prog__item::before { content: ""; height: 8px; background: var(--limestone-2); box-shadow: inset 0 0 0 1px var(--rule); }
.prog__item.is-done::before { background: var(--moss); box-shadow: none; }
.prog__item[aria-current="step"]::before { background: var(--spruce); box-shadow: none; }
.prog__item[aria-current="step"] { color: var(--ink); font-weight: 600; }
.prog__n { display: none; }
@media (max-width: 560px) {
  .prog__l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.est__step { margin: 0; padding: 0; border: 0; min-width: 0; }
.js .est__step:not(.is-current) { display: none; }
.est__legend { display: block; padding: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); line-height: 1.1; letter-spacing: -.012em; margin-bottom: .75rem; }
.est__legend:focus { outline: none; }
.est__legend:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.est__help { color: var(--ink-2); max-width: 60ch; margin-bottom: 1.5rem; }
.est__help .tag { display: inline-flex; }
.est__err { margin: .75rem 0 0; padding-left: .9rem; border-left: 3px solid #9b3b24; color: #8a3520; font-weight: 600; font-size: .9375rem; }

.sub { margin: 2rem 0 0; padding: 0; border: 0; min-width: 0; }
.sub legend { padding: 0; margin-bottom: .75rem; font-weight: 600; }
.opt-tag { font-weight: 400; color: var(--ink-2); font-size: .875rem; margin-left: .35rem; }

.opts { display: grid; gap: var(--joint); }
.opts--1 { grid-template-columns: 1fr; }
.opts--2 { grid-template-columns: 1fr 1fr; }
.opts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 700px) {
  .opts--4 { grid-template-columns: 1fr 1fr; }
  .opts--3 { grid-template-columns: 1fr; }
}
@media (max-width: 460px) { .opts--2 { grid-template-columns: 1fr; } .opts--4 { grid-template-columns: 1fr 1fr; } }

.opt { position: relative; display: flex; align-items: flex-start; gap: .85rem; min-height: 56px; padding: .9rem 1rem; background: #f4f5f0; box-shadow: inset 0 0 0 1px var(--rule); cursor: pointer; transition: box-shadow .15s ease, background-color .15s ease; }
.opt:hover { box-shadow: inset 0 0 0 1px var(--spruce); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt__box { flex: none; width: 20px; height: 20px; margin-top: 2px; border: 1.5px solid var(--ink-2); background: #fff; display: grid; place-items: center; }
.opt input[type="radio"] + .opt__box { border-radius: 50%; }
.opt input:checked + .opt__box { background: var(--spruce); border-color: var(--spruce); }
.opt input[type="checkbox"]:checked + .opt__box::after { content: ""; width: 10px; height: 5px; border: solid var(--limestone); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.opt input[type="radio"]:checked + .opt__box::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--limestone); }
.opt:has(input:checked) { background: #fff; box-shadow: inset 0 0 0 2px var(--spruce); }
.opt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.opt__text { display: flex; flex-direction: column; gap: .15rem; }
.opt__label { font-weight: 500; line-height: 1.35; }
.opt__desc { font-size: .9rem; color: var(--ink-2); line-height: 1.4; }
.opts--1 .opt__label { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; line-height: 1.2; }

.field { margin-top: 2rem; max-width: 560px; }
.field label { display: block; font-weight: 600; margin-bottom: .5rem; }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 50px; padding: .7rem .9rem;
  border: 1px solid var(--rule-strong); border-radius: 2px; background: #fbfbf8;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--spruce) 50%), linear-gradient(-45deg, transparent 50%, var(--spruce) 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--spruce); }
.field [aria-invalid="true"] { border-color: #9b3b24; box-shadow: inset 0 0 0 1px #9b3b24; }
.field__help { margin: .4rem 0 0; font-size: .9rem; color: var(--ink-2); }

.est__nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.est__nav [data-est="next"], .est__nav [data-est="send"] { margin-left: auto; }
.est__nav [hidden] { display: none; }

.review { border-top: 1px solid var(--rule-strong); }
.review__grp { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.review__grp h3 { font-family: var(--sans); font-weight: 600; font-size: 1rem; letter-spacing: 0; }
.review__grp dl { grid-column: 1; margin: .35rem 0 0; display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: .3rem 1.25rem; font-size: .975rem; }
.review__grp dd .opt-tag { margin-left: 0; }
.review__grp dt { color: var(--ink-2); }
.review__grp dd { margin: 0; overflow-wrap: anywhere; }
.review__edit { grid-column: 2; grid-row: 1 / span 2; align-self: start; min-height: 44px; padding: .4rem .9rem; border: 1px solid var(--rule-strong); border-radius: 2px; background: none; cursor: pointer; font-weight: 600; font-size: .9375rem; }
.review__edit:hover { background: var(--spruce); color: var(--limestone); border-color: var(--spruce); }
@media (max-width: 520px) { .review__grp dl { grid-template-columns: 1fr; gap: 0; } .review__grp dd { margin-bottom: .5rem; } }

.est-done { padding: 2.5rem 0 1rem; border-top: 2px solid var(--spruce); }
.est-done:focus { outline: none; }
.est-done h2 { margin-bottom: 1.25rem; }
.est-done__concept { padding: 1.1rem 1.25rem; background: var(--lichen); border-left: 3px solid var(--moss); font-weight: 500; max-width: 60ch; }
.est-done p { max-width: 60ch; }

a[href^="tel:"] { white-space: nowrap; }
