/* 21, 33 & 41 Adams Gulch Road - single listing page.
   Kit: San Felice (estate pace: one wide needle-serif display face, hairlines, small rectangular buttons, one long-glide
   curve), transformed for this property. Fonts: Ninna (display, banked from the San Felice teardown) + Söhne Buch /
   Kräftig (text and labels). Palette from the place: aspen-bark white, aspen-shade green, the amber of the chinked log
   walls (photo p03), weathered barn umber, galvanized-roof grey. */

@font-face { font-family: "Ninna"; src: url(fonts/Ninna-Regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Sohne"; src: url(fonts/Sohne-Buch.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Sohne"; src: url(fonts/Sohne-Kraftig.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* paper: aspen bark */
  --bark: #ecebe2;
  --bark-hi: #f4f3ec;
  --bark-lo: #e1e0d4;
  /* the aerial section: aspen shade */
  --shade: #121f18;
  --shade-2: #1a2a21;
  --shade-ink: #e9e8de;
  --shade-ink-2: #b4b9ae;
  /* type: weathered barn umber */
  --umber: #39291f;
  --umber-2: #65564a;
  --rule: rgba(57, 41, 31, .2);
  --rule-strong: rgba(57, 41, 31, .42);
  /* the one warm accent: chinked log walls */
  --amber: #b4602d;
  --amber-btn: #9b4d21;
  --amber-btn-hi: #8a431b;
  --amber-btn-lo: #793a16;
  /* galvanized roof */
  --galv: #a3a79f;
  /* the drawn white line */
  --wl: rgba(240, 238, 229, .9);

  --serif: "Ninna", "Bodoni 72", Didot, Georgia, serif;
  --sans: "Sohne", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.12, 0, .48, 1);       /* San Felice long glide */
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  --g-nav: 28px;           /* nav gutter */
  --g-hero: 5vw;           /* hero gutter */
  --g: 8vw;                /* body gutter */
  --wrap: min(100% - 2 * var(--g), 1480px);
  --sec-y: clamp(80px, 9vw, 150px);
  --nav-h: 72px;
  --dock-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bark); color: var(--umber);
  font: 400 17px/1.55 var(--sans); font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
figure { margin: 0; }
p, h1, h2, h3, dl, dd, ol, ul, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
q { quotes: "\201C" "\201D" "\2018" "\2019"; }

/* LINE LENGTHS: every short block is balanced; long ones are switched to "pretty" by site.js */
h1, h2, h3, p, li, dt, dd, figcaption, blockquote { text-wrap: balance; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nw { white-space: nowrap; }
@media (min-width: 1024px) { .nw-d { white-space: nowrap; } }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--shade); color: var(--bark); padding: 10px 16px; font: 600 14px var(--sans); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.wrap { width: var(--wrap); margin-inline: auto; }

/* ---------- type ---------- */
.label { font: 600 12px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--umber-2); display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.label__n { color: var(--amber); font-feature-settings: "tnum" 1; padding-right: 14px; border-right: 1px solid var(--rule-strong); }
.h2 { font: 400 clamp(36px, 3.7vw, 64px)/1.06 var(--serif); letter-spacing: -.012em; }
.body { font-size: 18px; line-height: 1.55; color: var(--umber-2); max-width: 44ch; }

/* ---------- buttons: small rectangles, they press in ---------- */
.btn {
  --r: 2px;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 17px 26px 16px; border-radius: var(--r); border: 1px solid transparent;
  font: 600 15px/1.1 var(--sans); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: background-color .16s ease, box-shadow .16s ease, transform .12s ease, color .16s ease, border-color .16s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn__arrow { width: 20px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .3s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--amber {
  background: var(--amber-btn); color: var(--bark-hi);
  border-color: color-mix(in oklab, #fff 14%, var(--amber-btn));
  box-shadow: 0 1px 0 rgba(255, 236, 214, .22) inset, 0 2px 3px rgba(74, 34, 10, .22), 0 8px 18px rgba(74, 34, 10, .16);
}
.btn--amber:hover { background: var(--amber-btn-hi); transform: translateY(1px); box-shadow: 0 1px 0 rgba(255, 236, 214, .18) inset, 0 1px 2px rgba(74, 34, 10, .26), 0 4px 10px rgba(74, 34, 10, .14); }
.btn--amber:active { background: var(--amber-btn-lo); transform: translateY(3px); box-shadow: 0 1px 1px rgba(74, 34, 10, .3) inset; transition-duration: .07s; }
.btn--line { background: transparent; color: var(--umber); border-color: var(--rule-strong); }
.btn--line:hover { border-color: var(--umber); transform: translateY(1px); background: rgba(57, 41, 31, .04); }
.btn--line:active { transform: translateY(3px); background: rgba(57, 41, 31, .08); transition-duration: .07s; }
.btn--sm { padding: 12px 18px 11px; font-size: 14px; }
.btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.cta-tel { display: none; }
@media (max-width: 720px) and (pointer: coarse), (max-width: 600px) {
  .cta-tel { display: inline-flex; }
  .cta-mail { display: none; }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: 28px; padding: 0 var(--g-nav);
  background: var(--bark); border-bottom: 1px solid transparent;
  transition: transform .5s var(--ease-out), border-color .3s ease, box-shadow .3s ease;
}
.nav.is-solid { border-bottom-color: var(--rule); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset; }
.nav.is-hidden { transform: translateY(-101%); }
.nav:has(:focus-visible) { transform: none; }
@media (prefers-reduced-motion: reduce) { .nav { transition: none; } }
.nav__mark { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; }
.nav__plate { display: inline-grid; grid-template-columns: repeat(3, auto); border-block: 1px solid currentColor; font: 400 15px/1 var(--serif); }
.nav__plate i { font-style: normal; padding: 5px 7px 4px; }
.nav__plate i + i { border-left: 1px solid currentColor; }
.nav__name { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.nav__links { display: flex; gap: 30px; }
.nav__links a, .nav__photos { position: relative; font: 400 15px/1 var(--sans); text-decoration: none; color: var(--umber); padding: 8px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.nav__links a:hover::after, .nav__links a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav__photos { display: none; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
  min-height: max(min(100svh, 1040px), 720px); padding-top: var(--nav-h);
}
.hero__text {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: clamp(24px, 4vh, 56px) 4vw clamp(28px, 4.5vh, 56px) var(--g-hero);
}
.hero__eyebrow, .hero__where { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; font: 600 12px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--umber-2); }
.hero__eyebrow { margin-bottom: 18px; }
.hero__eyebrow span:first-child { color: var(--amber); }
.plate {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--rule-strong); font: 400 clamp(64px, 8.6vw, 168px)/.84 var(--serif); letter-spacing: -.02em;
}
.plate__n { padding: .1em 0 .06em; }
.plate__n + .plate__n { border-left: 1px solid var(--rule-strong); padding-left: .13em; }
.plate__n:nth-of-type(2) { padding-left: .13em; }
.plate__amp {
  /* the ampersand sits on the top rule where the second and third cells meet */
  position: absolute; left: 66.667%; top: 0; transform: translate(-50%, -54%);
  font-size: .3em; line-height: 1; color: var(--amber); background: var(--bark); padding: .02em .16em 0;
}
.hero__where { margin-top: 14px; }
.hero__body { display: grid; gap: 22px; }
.hero__title { font: 400 clamp(40px, 3.45vw, 62px)/1.04 var(--serif); letter-spacing: -.014em; }
.hero__lede { font-size: 18px; line-height: 1.5; color: var(--umber-2); }
.hero__lede span { display: block; text-wrap: balance; }
.hero__deal { display: grid; justify-items: start; gap: 18px; margin-top: 10px; padding-top: 26px; border-top: 1px solid var(--rule); }
.hero__price { display: flex; align-items: baseline; gap: 16px; font: 400 clamp(34px, 2.7vw, 46px)/1 var(--serif); letter-spacing: -.01em; }
.hero__k { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--umber-2); transform: translateY(-.35em); }
.hero__agent { font-size: 14px; line-height: 1.45; color: var(--umber-2); }
.hero__agent strong { font-weight: 600; color: var(--umber); }
.hero__photo { position: relative; overflow: hidden; background: var(--shade-2); }
.hero__photo picture, .hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__photo img { object-fit: cover; object-position: 50% 62%; cursor: zoom-in; }

/* ---------- sections ---------- */
.sec { padding-block: var(--sec-y); }
.sec__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 6vw; align-items: end; margin-bottom: clamp(48px, 6vw, 96px); }
.sec__intro .body { max-width: 40ch; }

/* photos with captions */
.ph { position: relative; }
.ph img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; background: var(--bark-lo); }
.ph figcaption { margin-top: 14px; font-size: 14px; line-height: 1.45; color: var(--umber-2); max-width: 46ch; }
.ph figcaption::before { content: ""; display: inline-block; width: 18px; height: 1px; background: var(--amber); vertical-align: middle; margin: 0 10px 3px 0; }

/* ---------- 01 the descent ---------- */
.descent { background: var(--shade); color: var(--shade-ink); padding-bottom: 0; overflow-x: clip; }
.descent .label { color: var(--shade-ink-2); }
.descent .label__n { color: #d88a55; border-right-color: rgba(233, 232, 222, .3); }
.descent__head { margin-inline: 8vw; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 6vw; align-items: end; }
.descent .h2 { font-size: clamp(44px, 5.2vw, 92px); }
.descent .body { color: var(--shade-ink-2); max-width: 38ch; }

.stairs {
  --off: 1.4vw;                /* the line runs this far left of each frame */
  --gap: 4.2vw;                /* between frames (the tread runs through it) */
  --step: 6.8vw;               /* how far each frame steps right */
  --lead: clamp(64px, 7vw, 120px);
  position: relative; margin: var(--lead) 0 0; padding: 0;
}
.stair { position: relative; margin: 0 0 var(--gap) calc(8vw + var(--i) * var(--step)); width: var(--w); }
.stair:nth-child(1) { --w: 20vw; --cw: 40; }
.stair:nth-child(2) { --w: 25vw; --cw: 40; }
.stair:nth-child(3) { --w: 30vw; --cw: 34; }
.stair:nth-child(4) { --w: 36vw; --cw: 24; }
.stair:nth-child(5) { --w: 44vw; --cw: 24; }
.stair:nth-child(6) { --w: 58vw; --cw: 28; margin-bottom: 0; }
.stair__ph { aspect-ratio: 3 / 2; position: relative; z-index: 1; background: var(--shade-2); }
.stair__ph img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
/* the one white line: down the left of each frame, a tread across each gap, down into the landing. Never on a photo. */
.stair::before, .stair::after { content: ""; position: absolute; background: var(--wl); pointer-events: none; }
.stair::before { left: calc(-1 * var(--off) - 1px); top: calc(-1 * var(--gap) / 2); width: 1px; height: calc(100% + var(--gap)); transform-origin: 50% 0; }
.stair::after { left: calc(-1 * var(--off) - 1px); top: calc(100% + var(--gap) / 2); height: 1px; width: calc(var(--step) + 1px); transform-origin: 0 50%; }
.stair:nth-child(1)::before { top: calc(-1 * var(--lead)); height: calc(100% + var(--lead) + var(--gap) / 2); }
.stair:nth-child(6)::before { height: calc(100% + var(--gap) / 2 + var(--gap)); }
.stair:nth-child(6)::after { display: none; }
.stairs::before { /* where the line starts: a small open ring under the intro */
  content: ""; position: absolute; left: calc(8vw - var(--off) - 5px); top: calc(-1 * var(--lead) - 9px);
  width: 9px; height: 9px; border: 1px solid var(--wl); border-radius: 50%;
}
.stair__txt { position: absolute; top: 0; left: calc(100% + 3vw); width: calc(var(--cw) * 1vw); }
.stair--l .stair__txt { left: auto; right: calc(100% + 3vw); text-align: right; }
.stair__n { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--galv); margin-bottom: 16px; }
.stair__n span { color: var(--shade-ink); }
.stair__v { font-family: var(--serif); font-weight: 400; color: var(--shade-ink); letter-spacing: -.01em; }
.stair__v--xl { font-size: clamp(44px, 5vw, 92px); line-height: .95; }
.stair__v--l { font-size: clamp(28px, 2.5vw, 44px); line-height: 1.12; }
.stair__v--m { font-size: clamp(22px, 1.85vw, 32px); line-height: 1.22; }
.stair__sub { margin-top: 10px; font: 400 clamp(20px, 1.6vw, 28px)/1.2 var(--serif); color: var(--shade-ink-2); letter-spacing: -.005em; }
.stair__note { margin-top: 10px; font: 600 12px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--galv); }

.landing { position: relative; margin-top: 4.2vw; }
.landing__img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; cursor: zoom-in; }
.landing figcaption { margin-inline: 8vw; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; padding: 22px 0 clamp(64px, 7vw, 110px); font-size: 15px; color: var(--shade-ink-2); }
.landing figcaption span { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #d88a55; }

/* the line draws itself in, step by step, once a visitor starts scrolling (site.js arms it on the first wheel, touch
   or key press). Without JS, with reduced motion, or for anything already passed, it is simply there. */
.stair.to-draw::before { transform: scaleY(0); }
.stair.to-draw::after { transform: scaleX(0); }
.stair.is-drawn::before { transform: scaleY(1); transition: transform 1.1s var(--ease); }
.stair.is-drawn::after { transform: scaleX(1); transition: transform .7s var(--ease) 1s; }
@keyframes draw-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes draw-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- 02 on the ground ---------- */
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2vw; row-gap: clamp(56px, 6vw, 104px); align-items: start; }
.mosaic .ph img { aspect-ratio: 3 / 2; }
.m-a { grid-column: 1 / 8; }
.m-b { grid-column: 9 / 13; margin-top: 12vw; }
.m-b img { aspect-ratio: 4 / 5 !important; object-position: 30% 50%; }
.m-wide { grid-column: 1 / 13; }
.m-wide img { aspect-ratio: 2 / 1 !important; object-position: 50% 62%; }
.m-c { grid-column: 1 / 6; }
.m-c img { aspect-ratio: 4 / 5 !important; object-position: 46% 50%; }
.m-d { grid-column: 7 / 13; margin-top: 8vw; }
.m-e { grid-column: 6 / 13; }
.meadow { margin-top: clamp(72px, 8vw, 130px); }
.meadow img { aspect-ratio: 21 / 9; object-position: 50% 70%; }
.meadow figcaption { margin-top: 16px; max-width: none; }
.words { padding-top: clamp(72px, 8vw, 130px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 10fr) minmax(0, 1fr); }
.words__q { grid-column: 2; text-align: center; }
.words__q p { font: 400 clamp(30px, 3.2vw, 56px)/1.14 var(--serif); letter-spacing: -.012em; }
.words__q figcaption, .agent__q figcaption { margin-top: 26px; font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--umber-2); }
.words__q figcaption::before { content: ""; display: block; width: 1px; height: 36px; background: var(--amber); margin: 0 auto 18px; }

/* ---------- 03 inside ---------- */
.inside { background: var(--bark-hi); padding-top: 0; }
/* the log-and-chinking band from the entry walls (p03), used once */
.chink {
  height: clamp(48px, 5vw, 76px); margin-bottom: var(--sec-y);
  background:
    linear-gradient(to bottom,
      #a85a2b 0 17%, #f1eee6 17% 20%,
      #b8682f 20% 41%, #f1eee6 41% 44%,
      #9e5226 44% 60%, #f1eee6 60% 63%,
      #b2622e 63% 84%, #f1eee6 84% 87%,
      #a3572a 87% 100%);
}
.rooms { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2vw; row-gap: clamp(56px, 6vw, 104px); align-items: start; }
.rooms .ph img { aspect-ratio: 3 / 2; }
.r-a { grid-column: 1 / 8; }
.r-b { grid-column: 9 / 13; margin-top: 9vw; }
.r-b img { aspect-ratio: 4 / 5 !important; object-position: 40% 50%; }
.r-wide { grid-column: 1 / 13; }
.r-wide img { aspect-ratio: 2 / 1 !important; }
.r-c { grid-column: 1 / 6; margin-top: 6vw; }
.r-d { grid-column: 7 / 10; }
.r-d img, .r-e img { aspect-ratio: 3 / 4 !important; }
.r-e { grid-column: 10 / 13; margin-top: 5vw; }
.r-wide--2 img { object-position: 50% 55%; }
.r-f { grid-column: 2 / 8; }
.r-g { grid-column: 9 / 13; margin-top: 7vw; }
.r-g img { aspect-ratio: 4 / 5 !important; object-position: 45% 50%; }

/* ---------- 04 key facts ---------- */
.facts { background: var(--bark-lo); }
.facts__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 6vw; align-items: end; padding-bottom: clamp(36px, 4vw, 56px); }
.facts__price { font: 400 clamp(52px, 6.4vw, 116px)/.95 var(--serif); letter-spacing: -.02em; }
.facts__side { display: grid; justify-items: start; gap: 22px; }
.facts__addr { font-size: 18px; line-height: 1.45; }
.facts__addr span { display: block; color: var(--umber-2); }
.ledger { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; column-gap: 40px; border-top: 1px solid var(--rule-strong); }
.ledger > div { padding: 18px 0 17px; border-bottom: 1px solid var(--rule); display: grid; align-content: start; gap: 6px; }
.ledger__full { grid-column: 1 / -1; }
.ledger dt { font: 600 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--umber-2); }
.ledger dd { font-size: 18px; line-height: 1.4; }

/* ---------- 05 the agents ---------- */
.agent { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px 5vw; align-items: stretch; }
.agent__ph { position: relative; min-height: 420px; overflow: hidden; background: var(--bark-lo); }
.agent__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 44% 30%; }
.agent__ph figcaption { position: absolute; left: 0; bottom: 0; padding: 10px 14px 9px; background: var(--bark); font: 600 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.agent__card { display: flex; flex-direction: column; align-items: flex-start; padding: 6px 0; }
.agent__firm { margin-top: 14px; font-size: 18px; color: var(--umber-2); }
.agent__q { margin-top: 32px; padding-left: 22px; border-left: 1px solid var(--amber); }
.agent__q p { font: 400 clamp(20px, 1.6vw, 26px)/1.35 var(--serif); }
.agent__q figcaption { margin-top: 14px; }
.agent__lines { margin-top: 34px; width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); }
.agent__lines > div { padding: 16px 0 15px; border-bottom: 1px solid var(--rule); display: grid; gap: 5px; }
.agent__mail { grid-column: 1 / -1; }
.agent__lines dt { font: 600 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--umber-2); }
.agent__lines dd { font-size: 18px; }
.agent__lines a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease-out); }
.agent__lines a:hover, .agent__lines a:focus-visible { background-size: 100% 1px; }
.agent__site { display: flex; flex-wrap: wrap; gap: 10px 28px; width: 100%; padding: 15px 0; border-bottom: 1px solid var(--rule); font: 400 16.5px/1.5 var(--sans); }
.agent__site a { color: var(--amber-btn-hi); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-wrap: balance; }
.agent__site a:hover { color: var(--amber-btn-lo); text-decoration-thickness: 2px; }
.agent__act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- 06 all photos ---------- */
.photos { padding-bottom: calc(var(--sec-y) * .8); }
.photos__head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px 40px; margin-bottom: 40px; }
.grid43 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.grid43 li:first-child { grid-column: span 3; grid-row: span 2; }
.thumb { display: block; height: 100%; overflow: hidden; background: var(--bark-lo); }
.thumb img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .7s var(--ease-out), opacity .3s ease; }
.thumb:hover img, .thumb:focus-visible img { transform: scale(1.04); }
.thumb:focus-visible { outline-offset: 2px; }

/* ---------- footer ---------- */
.foot { background: var(--shade); color: var(--shade-ink); padding: 72px var(--g-nav) calc(40px + var(--dock-h)); }
.foot a { color: inherit; }
.foot__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(233, 232, 222, .18); }
.foot__mark { display: flex; align-items: center; gap: 18px; font: 400 clamp(24px, 2.2vw, 36px)/1.1 var(--serif); }
.nav__plate--lg { font-size: 22px; }
.foot__line { font-size: 15px; color: var(--shade-ink-2); }
.foot__line { display: flex; flex-wrap: wrap; gap: 4px 0; }
.foot__line span + span::before { content: "/"; color: #d88a55; margin: 0 12px; }
.foot__cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 6fr); gap: 32px 4vw; padding-top: 36px; font-size: 15px; line-height: 1.55; color: var(--shade-ink-2); }
.foot__cols p + p { margin-top: 6px; }
.foot__k { font: 600 12px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--galv); margin-bottom: 10px; }
.foot__legal p { max-width: 64ch; font-size: 13px; }
.eho { display: flex; align-items: center; gap: 10px; margin-top: 16px !important; color: var(--shade-ink); }
.eho svg { width: 26px; height: 26px; flex: none; }
.foot__base { margin-top: 40px; font-size: 14px; }
.foot__base a { text-decoration: none; }

/* ---------- phone contact bar ---------- */
.dock { display: none; }

/* ---------- lightbox ---------- */
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0c1510; color: var(--shade-ink); }
.lb[open] { display: grid; grid-template-rows: auto 1fr; }
.lb::backdrop { background: rgba(12, 21, 16, .7); }
.lb__bar { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; }
.lb__count { font: 600 12px/1 var(--sans); letter-spacing: .16em; color: var(--shade-ink-2); }
.lb__x { font: 600 14px/1 var(--sans); color: var(--shade-ink); background: transparent; border: 1px solid rgba(233, 232, 222, .35); padding: 12px 18px; border-radius: 2px; cursor: pointer; }
.lb__x:hover { border-color: var(--shade-ink); }
.lb__fig { display: grid; grid-template-rows: 1fr auto; place-items: center; min-height: 0; padding: 0 72px 24px; }
.lb__fig img { max-width: 100%; max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; }
.lb__fig figcaption { padding-top: 14px; font-size: 14px; color: var(--shade-ink-2); text-align: center; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; display: grid; place-items: center; background: transparent; border: 1px solid rgba(233, 232, 222, .3); border-radius: 2px; color: var(--shade-ink); cursor: pointer; }
.lb__nav:hover { border-color: var(--shade-ink); }
.lb__nav svg { width: 20px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.lb__nav--prev { left: 12px; }
.lb__nav--next { right: 12px; }


/* =============== tablet =============== */
@media (max-width: 1180px) {
  .nav__links { gap: 22px; }
  .nav__links a:nth-child(1) { display: none; }
}
@media (max-width: 1023px) {
  :root { --g: 6vw; }
  .nav__links { display: none; }
  .nav__photos { display: inline-block; }
  .sec__head, .descent__head { grid-template-columns: 1fr; align-items: start; }

  /* descent: the same six in order, growing from a narrow inset to edge to edge; the line runs down the left gutter */
  .stairs { --gap: 40px; margin-top: 56px; }
  .stairs::before { left: 17px; top: -9px; }
  .stairs::after { content: ""; position: absolute; left: 21px; top: 0; bottom: calc(-1 * var(--gap)); width: 1px; background: var(--wl); transform-origin: 50% 0; }
  .stair { width: 100%; margin: 0 0 var(--gap); }
  .stair:nth-child(6) { margin-bottom: 0; }
  .stair::before, .stair::after, .stair:nth-child(1)::before, .stair:nth-child(6)::before { display: none; }
  .stair__ph { margin-left: auto; width: var(--wm); }
  .stair:nth-child(1) { --wm: 60%; }
  .stair:nth-child(2) { --wm: 67%; }
  .stair:nth-child(3) { --wm: 74%; }
  .stair:nth-child(4) { --wm: 81%; }
  .stair:nth-child(5) { --wm: 88%; }
  .stair:nth-child(6) { --wm: 100%; }
  .stair__txt, .stair--l .stair__txt { position: static; width: auto; text-align: left; padding: 0 6vw 18px 44px; }
  .stair__n { margin-bottom: 10px; }
  .stair__v--xl { font-size: 52px; }
  .stair__v--l { font-size: 30px; }
  .stair__v--m { font-size: 23px; }
  .landing { margin-top: 40px; }
  .landing__img { aspect-ratio: 4 / 3; }
  .landing figcaption { padding-inline: 0; margin-inline: var(--g); }
  .descent__head { margin-inline: var(--g); }

  .mosaic, .rooms { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .m-a, .m-wide, .r-a, .r-wide { grid-column: 1 / -1; }
  .m-b, .m-c, .m-d, .m-e, .r-b, .r-c, .r-d, .r-e, .r-f, .r-g { margin-top: 0; }
  .m-b, .m-c, .r-b, .r-c, .r-d, .r-f { grid-column: 1 / 4; }
  .m-e { grid-column: 1 / -1; }
  .m-d, .r-e, .r-g { grid-column: 4 / 7; }
  .facts__head { grid-template-columns: 1fr; align-items: start; }
  .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger__long { grid-column: 1 / -1; }
  .agent { grid-template-columns: 1fr; }
  .agent__ph { min-height: 0; aspect-ratio: 3 / 2; }
  .grid43 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__legal { grid-column: 1 / -1; }
}

/* =============== hero stacks =============== */
@media (max-width: 860px) {
  :root { --nav-h: 56px; }
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero__photo { order: -1; aspect-ratio: 3 / 2; max-height: 46svh; width: 100%; }
  .hero__photo img { object-position: 60% 60%; }
  .hero__text { padding: 18px var(--g) 28px; gap: 22px; }
  .plate { font-size: min(21vw, 120px); }
  .hero__title { font-size: clamp(34px, 9.6vw, 56px); }
}

/* =============== phone =============== */
@media (max-width: 600px) {
  :root { --g: 20px; --dock-h: 64px; --sec-y: 72px; }
  body { font-size: 16px; }
  .nav { padding: 0 20px; gap: 16px; }
  .nav__cta { display: none; }
  .nav__name { font-size: 11px; letter-spacing: .14em; }
  .nav__plate { font-size: 13px; }
  .nav__plate i { padding: 4px 5px 3px; }
  .hero__photo { aspect-ratio: 16 / 10; }
  .hero__text { padding-top: 14px; gap: 18px; }
  .hero__eyebrow { margin-bottom: 10px; font-size: 11px; }
  .hero__where { margin-top: 10px; font-size: 11px; letter-spacing: .12em; }
  .plate { font-size: 21vw; }
  .hero__title { font-size: 10.8vw; line-height: 1.04; }
  .hero__body { gap: 16px; }
  .hero__lede { font-size: 15px; order: 3; }
  .hero__deal { order: 2; margin-top: 2px; padding-top: 16px; gap: 12px; }
  .hero__price { font-size: 32px; }
  .btn { padding: 16px 20px 15px; font-size: 15px; }
  .hero__deal .btn { width: 100%; }
  .hero__agent { font-size: 13px; }
  .h2 { font-size: 36px; }
  .descent .h2 { font-size: 44px; }
  .body { font-size: 16px; }
  .sec__head { margin-bottom: 40px; }
  .mosaic, .rooms { grid-template-columns: 1fr; row-gap: 44px; }
  .mosaic > *, .rooms > * { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .m-b img, .m-c img, .r-b img, .r-g img { aspect-ratio: 3 / 2 !important; }
  .r-d img, .r-e img { aspect-ratio: 4 / 3 !important; }
  .m-wide, .r-wide { margin-inline: calc(-1 * var(--g)); }
  .m-wide figcaption, .r-wide figcaption { padding-inline: var(--g); }
  .m-wide img, .r-wide img { aspect-ratio: 3 / 2 !important; }
  .meadow img { aspect-ratio: 4 / 3; }
  .words { grid-template-columns: 1fr; }
  .words__q { grid-column: 1; }
  .words__q p { font-size: 28px; }
  .ledger { column-gap: 20px; }
  .ledger dd { font-size: 16px; }
  .facts__side .btn { width: 100%; }
  .agent__lines { grid-template-columns: 1fr 1fr; }
  .agent__act { width: 100%; }
  .agent__act .btn { flex: 1 1 auto; }
  .agent__act .btn--amber { width: 100%; }
  .grid43 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .grid43 li:first-child { grid-column: span 2; }
  .foot { padding: 56px 20px calc(32px + var(--dock-h) + env(safe-area-inset-bottom)); }
  .foot__cols { grid-template-columns: 1fr; }
  .foot__top { padding-bottom: 28px; }
  .foot__line { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
  .foot__line span + span::before { content: none; }

  .dock {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    height: calc(var(--dock-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--shade); border-top: 1px solid rgba(233, 232, 222, .14);
  }
  .dock__b { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--shade-ink); text-decoration: none; font: 600 13px/1 var(--sans); letter-spacing: .02em; background: var(--shade); }
  .dock__b + .dock__b { border-left: 1px solid rgba(233, 232, 222, .14); }
  .dock__b:first-child { background: var(--amber-btn); color: var(--bark-hi); }
  .dock__b:active { background: var(--shade-2); }
  .dock__b:first-child:active { background: var(--amber-btn-lo); }
  .dock__b svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
  .lb__fig { padding: 0 8px 80px; }
  .lb__nav { top: auto; bottom: 18px; transform: none; }
  .lb__nav--prev { left: 20px; }
  .lb__nav--next { right: 20px; }
}
