/* 28 Channel Heights Way: a 1979 passive solar house in the firs.
   Palette from the place: solarium light (ground), fir shade (type, quiet sections), cedar shingle (buttons, rules),
   moss (the ground line, small marks), honey from the wood floors (the warm line only).
   Type: Sorts Mill Goudy (Barry Schwartz, SIL OFL) for display and reading; Satoshi (Indian Type Foundry, Fontshare
   free licence) for labels, facts and buttons. PLATE design: the listing photos are 1280px wide and no frame ever
   draws one wider than that (the container caps at 1360 and the widest plate at 1280). */

@font-face { font-family: "Sorts Mill Goudy"; src: url(fonts/SortsMillGoudy-Regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Sorts Mill Goudy"; src: url(fonts/SortsMillGoudy-Italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url(fonts/satoshi-500.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url(fonts/satoshi-700.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --glass: #F4F1E6;      /* solarium light */
  --glass-2: #EAE5D3;
  --moss-pale: #DDE3BF;
  --fir: #17362F;        /* fir shade */
  --fir-2: #23493F;
  --ink: #17332D;
  --ink-2: #4B5F57;
  --cedar: #985231;      /* shingle russet */
  --cedar-deep: #6A3519;
  --cedar-lt: #D09A6B;
  --moss: #A9BF5C;
  --moss-deep: #66802A;
  --honey: #EBAE5E;
  --line: rgba(23, 51, 45, .2);
  --serif: "Sorts Mill Goudy", "Iowan Old Style", Georgia, serif;
  --sans: "Satoshi", "Helvetica Neue", Arial, sans-serif;
  --navh: 64px;
  --gut: 40px;
  --sec: clamp(88px, 10vw, 150px);
}
@media (max-width: 899px) { :root { --gut: 20px; --navh: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--glass); color: var(--ink); font-family: var(--serif); font-size: 20px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-variant-numeric: lining-nums; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
p, li, dd, dt, figcaption, blockquote, h1, h2, h3 { text-wrap: balance; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--glass); padding: 8px 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--cedar); outline-offset: 3px; }

/* margin tiers: the header and footer hug the edges, the hero sits inside them, the body a step further in */
.wrap { width: min(1200px, 100% - 2 * var(--gut)); margin-inline: auto; }
.wrap--hero { width: min(1280px, 100% - 2 * var(--gut)); }
.wrap--edge { width: calc(100% - 2 * var(--gut)); }

.label { font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--cedar); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.label::before { content: ""; width: 26px; height: 1px; background: currentColor; transform: rotate(-28deg); transform-origin: center; }
h2 { font-weight: 400; font-size: clamp(36px, 4.3vw, 62px); line-height: 1.04; letter-spacing: -.018em; }

/* buttons: a colour fill, a darker border, never black */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--cedar); border: 1.5px solid var(--cedar-deep); color: #FBF5EA; font-family: var(--sans); font-weight: 700; font-size: 16px; letter-spacing: .01em; text-decoration: none; white-space: nowrap; transition: background-color .2s ease, transform .2s ease; }
.btn:hover { background: #A85E3A; }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- header: hides on the way down, back on the way up ---------- */
#nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--navh); background: rgba(244, 241, 230, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: transform .35s cubic-bezier(.3, .7, .2, 1); }
#nav.is-up { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { #nav { transition: none; } }
.nav__in { height: 100%; width: calc(100% - 2 * var(--gut)); margin-inline: auto; display: flex; align-items: center; gap: 28px; }
.nav__home { display: flex; align-items: baseline; gap: 12px; text-decoration: none; margin-right: auto; }
.nav__addr { font-size: 21px; letter-spacing: -.01em; }
.nav__town { font-family: var(--sans); font-weight: 500; font-size: 13px; color: var(--ink-2); }
.nav__links { display: flex; gap: 26px; font-family: var(--sans); font-weight: 500; font-size: 14px; }
.nav__links a { text-decoration: none; color: var(--ink-2); }
.nav__links a:hover { color: var(--ink); }
@media (max-width: 1099px) { .nav__links { display: none; } }
@media (max-width: 899px) { .nav__cta { display: none; } .nav__addr { font-size: 19px; } }
@media (max-width: 380px) { .nav__town { display: none; } }

/* ---------- plates ---------- */
.pl { position: relative; }
.pl__btn { display: block; width: 100%; padding: 0; border: 0; background: var(--glass-2); cursor: zoom-in; overflow: hidden; }
.pl__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) { .pl__btn:hover img { transform: scale(1.015); } }
@media (prefers-reduced-motion: reduce) { .pl__btn img { transition: none; } .pl__btn:hover img { transform: none; } }
figcaption { font-family: var(--sans); font-weight: 500; font-size: 14px; line-height: 1.45; color: var(--ink-2); margin-top: 12px; max-width: 46ch; }
.fig { font-weight: 700; color: var(--cedar); margin-right: 6px; letter-spacing: .02em; }

/* ---------- hero ---------- */
.hero { padding-top: calc(var(--navh) + 40px); }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
.hero__where { grid-column: 1 / -1; font-family: var(--sans); font-weight: 700; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--cedar); margin-bottom: 14px; }
.hero__title { grid-column: 1 / span 8; font-weight: 400; font-size: clamp(64px, 6.9vw, 104px); line-height: .96; letter-spacing: -.028em; align-self: end; }
.hero__side { grid-column: 9 / -1; align-self: end; padding-bottom: 6px; }
.hero__lede { font-size: 20px; line-height: 1.42; color: var(--ink); }
.hero__lede span { display: block; text-wrap: balance; }
.hero__by { font-family: var(--sans); font-weight: 500; font-size: 14px; line-height: 1.45; color: var(--ink-2); margin-top: 14px; }
.hero__bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 28px; margin-top: 26px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero__price { font-size: 40px; line-height: 1; letter-spacing: -.02em; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 6px 0; font-family: var(--sans); font-weight: 500; font-size: 15px; color: var(--ink-2); margin-right: auto; }
.hero__facts li { white-space: nowrap; }
.hero__facts li + li::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--moss-deep); margin: 0 12px; vertical-align: middle; }
.hero__plates { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; }
.hero__plates .pl__btn { height: clamp(340px, 49vh, 470px); }
/* capped at 470px tall: the outside crop (p07) stays wide enough to keep the NWMLS mark out, and the inside crop (p11) is drawn at most 705px wide */
.hero__out img { object-position: 50% 42%; }
.hero__in img { object-position: 32% 50%; }

@media (max-width: 899px) {
  .hero { padding-top: var(--navh); }
  .hero__grid { display: flex; flex-direction: column; width: 100%; }
  .hero__plates { order: -1; margin: 0 0 18px; display: block; }
  .hero__in { display: none; }
  .hero__out figcaption { display: none; }
  .hero__plates .pl__btn { height: auto; aspect-ratio: 1.78; }
  .hero__out img { object-position: 50% 40%; }
  .hero__where, .hero__title, .hero__side, .hero__bar { margin-inline: var(--gut); }
  .hero__where { font-size: 11.5px; margin-bottom: 10px; }
  .hero__street { display: none; }
  .hero__title { font-size: clamp(44px, 12.4vw, 60px); line-height: .98; }
  .hero__side { padding: 0; margin-top: 14px; }
  .hero__lede { font-size: 17.5px; line-height: 1.4; }
  .hero__by { font-size: 13px; margin-top: 10px; }
  .hero__bar { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px 22px; margin-top: 16px; padding: 14px 0 0; border-bottom: 0; }
  .hero__price { font-size: 34px; }
  .hero__facts { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 2px 18px; font-size: 14px; margin-right: 0; }
  .hero__facts li + li::before { display: none; }
  .hero__facts li:nth-child(5) { display: none; }
  .hero__cta { grid-column: 1 / -1; width: 100%; margin-top: 4px; }
}

/* ---------- the house ---------- */
.house { padding-top: var(--sec); }
.house__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 72px; align-items: start; }
.house__text { grid-column: 1 / span 5; padding-top: 12px; }
.house__a { grid-column: 6 / -1; }
.house__b { grid-column: 2 / span 5; }
.house__more { grid-column: 8 / span 5; align-self: center; }
.house__more p + p { margin-top: 18px; }
.house__more p { max-width: 32em; }
.quote { margin-top: 34px; padding-left: 22px; border-left: 2px solid var(--moss); }
.quote p { font-style: italic; font-size: clamp(24px, 2.2vw, 31px); line-height: 1.3; letter-spacing: -.01em; }
.quote .quote__src { font-family: var(--sans); font-weight: 500; font-size: 13px; color: var(--ink-2); margin-top: 14px; }
@media (max-width: 899px) {
  .house__grid { display: flex; flex-direction: column; gap: 40px; }
  .house__text { padding: 0; }
  .house__b { width: 86%; }
  .house__more { order: 4; }
}

/* ---------- signature: where the warmth goes ---------- */
.warm { margin-top: var(--sec); padding: var(--sec) 0; background: var(--fir); color: var(--glass); }
.warm .label { color: var(--cedar-lt); }
.warm__head { max-width: 640px; }
.warm__head p:not(.label) { margin-top: 20px; color: rgba(244, 241, 230, .82); max-width: 30em; }
.warm__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; margin-top: 64px; }
.warm__fig { grid-column: 1 / span 6; position: sticky; top: clamp(88px, 50vh - 220px, 260px); align-self: start; }
.warm__steps { grid-column: 8 / -1; }
.warm__step { padding: 0 0 min(16vh, 150px); }
.warm__step:last-child { padding-bottom: 0; }
.warm__n { font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--honey); margin-bottom: 14px; }
.warm__phrase { font-size: clamp(30px, 2.9vw, 42px); line-height: 1.14; letter-spacing: -.015em; margin-bottom: 28px; transition: opacity .5s ease; }
.warm figcaption { color: rgba(244, 241, 230, .72); }
.warm .fig { color: var(--honey); }
.warm .pl__btn { background: var(--fir-2); }
.js .warm__step:not(.is-on) .warm__phrase { opacity: .32; }

.sv { width: 100%; height: auto; overflow: visible; }
.sv__house path, .sv__trees path, .sv__moss { vector-effect: non-scaling-stroke; }
.sv__trees path { fill: none; stroke: rgba(244, 241, 230, .28); stroke-width: 1; }
.sv__house path { fill: none; stroke: rgba(244, 241, 230, .82); stroke-width: 1.3; stroke-linejoin: round; }
.sv__house .sv__roof { stroke-width: 1.4; fill: rgba(244, 241, 230, .05); }
.sv__house .sv__glassfill { stroke: none; fill: rgba(169, 191, 92, .1); }
.sv__house .sv__mull { stroke: rgba(244, 241, 230, .55); stroke-width: 1; }
.sv__house .sv__floor { stroke-dasharray: 4 5; stroke: rgba(244, 241, 230, .5); }
.sv__moss { fill: none; stroke: var(--moss); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 7; }
.sv__line { fill: none; stroke: var(--honey); stroke-width: 3; stroke-linecap: round; }
.sv__glow { fill: none; stroke: var(--honey); stroke-width: 12; stroke-linecap: round; opacity: .38; filter: url(#glow); }
.sv__dot { fill: var(--honey); transition: opacity .4s ease .7s; }
.sv__nums text { font-family: var(--sans); font-weight: 700; font-size: 15px; fill: var(--honey); }
.sv__note { font-family: var(--sans); font-weight: 500; font-size: 13px; fill: rgba(244, 241, 230, .55); letter-spacing: .04em; }
/* with JS the warm line fills one step at a time; without JS (or with reduced motion) the whole line shows */
.js .sv__line, .js .sv__glow { stroke-dasharray: 1 2; stroke-dashoffset: 1.2; transition: stroke-dashoffset 1.2s cubic-bezier(.45, .05, .25, 1); }
.js .sv__dot, .js .sv__nums text { opacity: .2; }
.js .is-1 .s1, .js .is-2 .s2, .js .is-3 .s3 { stroke-dashoffset: 0; }
.js .is-1 .d1, .js .is-2 .d2, .js .is-3 .d3 { opacity: 1; }
.js .is-1 .sv__nums text:nth-child(1), .js .is-2 .sv__nums text:nth-child(2), .js .is-3 .sv__nums text:nth-child(3) { opacity: 1; }
.sv__nums text { transition: opacity .4s ease; }
@media (prefers-reduced-motion: reduce) {
  .js .sv__line, .js .sv__glow { stroke-dashoffset: 0; transition: none; }
  .js .sv__dot, .js .sv__nums text { opacity: 1; }
  .js .warm__step:not(.is-on) .warm__phrase { opacity: 1; }
}
@media (max-width: 899px) {
  .warm__grid { display: block; margin-top: 36px; }
  .warm__fig { position: sticky; top: 0; z-index: 2; background: var(--fir); margin: 0 calc(-1 * var(--gut)); padding: 14px var(--gut) 10px; border-bottom: 1px solid rgba(244, 241, 230, .12); }
  .sv { max-height: min(30vh, 250px); }
  .warm__steps { margin-top: 32px; }
  .warm__step { padding-bottom: min(22vh, 170px); }
  .warm__phrase { font-size: 28px; margin-bottom: 20px; }
}

/* ---------- inside ---------- */
.inside { padding-top: var(--sec); }
.inside__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: end; }
.inside__h { grid-column: 1 / span 7; }
.inside__head p:not(.label) { grid-column: 8 / span 5; max-width: 30em; }
.inside__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 56px; margin-top: 56px; }
.inside__a { grid-column: 1 / span 8; }
.inside__side { grid-column: 9 / -1; display: flex; flex-direction: column; gap: 32px; }
.inside__stairs .pl__btn { aspect-ratio: 4 / 5; }
.inside__stairs img { object-position: 46% 50%; }
.inside__c { grid-column: 1 / span 4; }
.inside__d { grid-column: 5 / span 4; }
.inside__e { grid-column: 9 / span 4; }
.newcard { background: var(--moss-pale); border: 1px solid rgba(102, 128, 42, .35); padding: 22px 24px 24px; }
.newcard__k { font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--moss-deep); margin-bottom: 8px; }
.newcard__v { font-size: 22px; line-height: 1.32; }
@media (max-width: 899px) {
  .inside__head { display: block; }
  .inside__head p:not(.label) { margin-top: 18px; }
  .inside__grid { display: flex; flex-direction: column; gap: 40px; margin-top: 36px; }
  .inside__stairs .pl__btn { aspect-ratio: 4 / 4.4; }
}

/* ---------- garage ---------- */
.garage { margin-top: var(--sec); padding: var(--sec) 0; background: var(--glass-2); }
.garage__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: start; }
.garage__a { grid-column: 1 / span 7; }
.garage__text { grid-column: 9 / -1; }
.garage__text p:not(.label) { margin-top: 20px; max-width: 30em; }
.garage__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.garage__pair figcaption { font-size: 13px; }
@media (max-width: 899px) {
  .garage__grid { display: flex; flex-direction: column-reverse; gap: 36px; }
}

/* ---------- land ---------- */
.land { padding: var(--sec) 0; background: var(--moss-pale); }
.land__wide .pl__btn { aspect-ratio: 2.3; }
.land__wide img { object-position: 50% 46%; }
.land__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; margin-top: 64px; align-items: start; }
.land__text { grid-column: 1 / span 5; }
.land__text p:not(.label) { margin-top: 20px; max-width: 30em; }
.land__text p + p { margin-top: 12px !important; }
.land__b { grid-column: 6 / span 3; padding-top: 64px; }
.land__c { grid-column: 9 / -1; }
.land .label { color: var(--moss-deep); }
.land .fig { color: var(--moss-deep); }
.land .pl__btn { background: #CFD6AE; }
@media (max-width: 899px) {
  .land__wide .pl__btn { aspect-ratio: 1.75; }
  .land__wide img { object-position: 50% 40%; }
  .land__grid { display: flex; flex-direction: column; gap: 36px; margin-top: 40px; }
  .land__b { padding: 0; width: 78%; }
}

/* ---------- key facts ---------- */
.facts { padding: var(--sec) 0; }
.facts__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
.facts__head { grid-column: 1 / span 4; }
.facts__price { font-size: 44px; line-height: 1; letter-spacing: -.02em; margin-top: 28px; }
.facts__mls { font-family: var(--sans); font-weight: 500; font-size: 14px; color: var(--ink-2); margin-top: 10px; }
.facts__list { grid-column: 5 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 1px solid var(--line); }
.facts__row { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.facts__row--wide { grid-column: 1 / -1; }
.facts dt { font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--cedar); padding-top: 5px; }
.facts dd { font-size: 19px; line-height: 1.38; }
@media (max-width: 899px) {
  .facts__grid { display: block; }
  .facts__list { grid-template-columns: 1fr; margin-top: 36px; }
  .facts__row { grid-template-columns: 100px 1fr; }
}

/* ---------- agent ---------- */
.agent { padding: var(--sec) 0; background: var(--fir); color: var(--glass); }
.agent__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: stretch; }
.agent__ph { grid-column: 2 / span 4; position: relative; overflow: hidden; background: var(--fir-2); min-height: 320px; max-width: 600px; }
.agent__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; }
.agent__card { grid-column: 7 / span 5; padding: 8px 0; }
.agent .label { color: var(--cedar-lt); }
.agent__name { font-size: 30px; line-height: 1.1; margin-top: 34px; }
.agent__firm { font-family: var(--sans); font-weight: 500; font-size: 16px; color: rgba(244, 241, 230, .8); margin-top: 8px; }
.agent__bio { margin-top: 18px; color: rgba(244, 241, 230, .88); max-width: 28em; }
.agent__ways { margin-top: 26px; border-top: 1px solid rgba(244, 241, 230, .16); }
.agent__ways li { display: flex; gap: 18px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid rgba(244, 241, 230, .16); font-size: 19px; }
.agent__ways a { text-decoration: none; overflow-wrap: anywhere; }
.agent__ways a:hover { text-decoration: underline; text-underline-offset: 4px; }
.agent__k { font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--honey); width: 60px; flex: none; }
.agent__cta { margin-top: 32px; border-color: var(--cedar-lt); }
@media (max-width: 899px) {
  .agent__grid { display: flex; flex-direction: column; gap: 32px; }
  .agent__ph { width: 62%; min-height: 0; aspect-ratio: 4 / 5; }
  .agent__name { margin-top: 22px; }
  .agent__cta { width: 100%; }
}

/* ---------- all photos ---------- */
.photos { padding: var(--sec) 0; }
.photos__head p { font-family: var(--sans); font-weight: 500; font-size: 15px; color: var(--ink-2); }
.pgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.photos__head { grid-column: span 2; align-self: center; padding-right: 24px; }
.photos__head p { margin-top: 10px; }
.grid { display: contents; }
.grid button { display: block; width: 100%; padding: 0; border: 0; background: var(--glass-2); cursor: zoom-in; aspect-ratio: 3 / 2; overflow: hidden; }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease; }
.grid button:hover img { opacity: .86; }
@media (max-width: 1099px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .photos__head { grid-column: 1 / -1; padding: 0 0 18px; } }
@media (max-width: 699px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }

/* ---------- footer ---------- */
.foot { background: var(--fir); color: rgba(244, 241, 230, .82); padding: 72px 0 56px; border-top: 1px solid rgba(244, 241, 230, .12); }
.foot__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 28px; }
.foot__main { grid-column: 1 / span 5; }
.foot__addr { font-size: 24px; color: var(--glass); line-height: 1.25; }
.foot__firm { font-family: var(--sans); font-weight: 500; font-size: 14px; line-height: 1.6; margin-top: 12px; }
.foot__firm + .foot__firm { margin-top: 2px; }
.foot__legal { grid-column: 7 / -1; font-family: var(--sans); font-weight: 500; font-size: 13px; line-height: 1.6; }
.foot__legal p { max-width: 74ch; }
.foot__legal p + p { margin-top: 12px; }
.foot a { text-decoration-color: rgba(244, 241, 230, .35); text-underline-offset: 3px; }
.eho { display: flex; align-items: center; gap: 10px; color: var(--glass); }
.eho svg { width: 26px; height: 26px; flex: none; }
@media (max-width: 899px) {
  .foot { padding: 56px 0 40px; }
  .foot__grid { display: block; }
  .foot__legal { margin-top: 28px; }
}

/* ---------- phone call bar ---------- */
.dock { display: none; }
@media (max-width: 899px) {
  :root { --dockh: calc(68px + env(safe-area-inset-bottom)); }
  body { padding-bottom: var(--dockh); }
  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: var(--dockh); display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--fir); border-top: 1px solid rgba(244, 241, 230, .14); }
  .dock__b { display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; background: var(--fir-2); border: 1.5px solid rgba(169, 191, 92, .55); color: var(--glass); font-family: var(--sans); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
  .dock__b--call { background: var(--cedar); border-color: var(--cedar-lt); }
  .dock__b svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
}

/* ---------- viewer ---------- */
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(16, 36, 31, .97); color: var(--glass); overflow: hidden; }
.viewer::backdrop { background: rgba(16, 36, 31, .9); }
.viewer[open] { display: grid; grid-template-rows: 1fr auto; }
.viewer__stage { display: grid; place-items: center; padding: 64px 72px 8px; min-height: 0; }
.viewer__img { max-width: min(1280px, 100vw - 144px); max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; }
@media (max-width: 699px) { .viewer__img { max-width: 100vw; max-height: calc(100dvh - 220px); } }
.viewer__cap { text-align: center; font-family: var(--sans); font-weight: 500; font-size: 14px; padding: 12px 20px 22px; color: rgba(244, 241, 230, .85); }
.viewer__n { color: var(--honey); font-weight: 700; margin-right: 6px; }
.viewer__x { position: absolute; top: 14px; right: 16px; min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--fir-2); border: 1.5px solid rgba(244, 241, 230, .3); color: var(--glass); font-family: var(--sans); font-weight: 700; font-size: 14px; cursor: pointer; }
.viewer__prev, .viewer__next { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: var(--fir-2); border: 1.5px solid rgba(244, 241, 230, .3); color: var(--glass); cursor: pointer; display: grid; place-items: center; }
.viewer__prev { left: 12px; } .viewer__next { right: 12px; }
.viewer__prev svg, .viewer__next svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 699px) {
  .viewer__stage { padding: 64px 0 8px; }
  .viewer__prev, .viewer__next { top: auto; bottom: 64px; transform: none; width: 46px; height: 46px; }
}
