/* ==========================================================================
   Stepping Stone Homes — dark theme
   Palette derived from the logo: navy #103848, teal #307880, orange #F07820
   ========================================================================== */

:root {
  /* brand, straight from the logo */
  --navy:      #103848;
  --teal:      #307880;
  --orange:    #F07820;

  /* dark surfaces, deepened from the logo navy */
  --bg:        #0B222D;
  --bg-2:      #0E2A36;
  --surface:   #123444;
  --surface-2: #16404F;
  --line:      #1F4A5C;

  /* accessible text tones */
  --teal-lt:   #5FB0B8;
  --orange-lt: #FF9A4D;
  --txt:       #E8F1F4;
  --muted:     #9DB4BE;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;

  --glow-orange: 0 14px 40px -14px rgba(240,120,32,.45);
  --shadow:      0 18px 46px -22px rgba(0,0,0,.85);

  --wrap: 1180px;
  --gut: 26px;
  --hdr-h: 74px;

  /* one place to tune overall page density */
  --sec-y: clamp(44px, 4.4vw, 78px);

  --ff-display: 'Nunito', system-ui, sans-serif;
  --ff-body: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
/* Type scale is anchored to the root, so one value tunes the whole page.
   103% on desktop, trimmed on 1280-1560 laptops where the old scale ran large. */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 103%;
}
@media (min-width: 1024px) and (max-width: 1560px) {
  html { font-size: 96%; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
/* height:auto must always accompany max-width:100%, or images with width/height
   attributes get squeezed horizontally while keeping their attribute height. */
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  color: #fff;
  line-height: 1.18;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(1.95rem, 2.5vw + 1rem, 3.1rem); font-weight: 900; }
h2 { font-size: clamp(1.42rem, 1.15vw + .92rem, 2rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 800; }
p  { margin: 0 0 1.05em; }

/* ---------- a11y ---------- */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--orange); color: var(--bg); font-weight: 700;
  padding: 12px 20px; z-index: 200; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.section { padding: var(--sec-y) 0; }
.section--alt { background: var(--bg-2); }
.lede { font-size: 1.04rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

.eyebrow {
  font-family: var(--ff-display);
  font-size: .78rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange-lt);
  margin: 0 0 .8em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-display); font-weight: 800; font-size: .96rem;
  padding: 13px 27px; border-radius: 999px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  white-space: nowrap;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: var(--glow-orange); }
.btn--primary:hover { background: var(--orange-lt); color: #fff; }
.btn--ghost { border-color: var(--teal-lt); color: var(--teal-lt); }
.btn--ghost:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,34,45,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--hdr-h); }
.logo { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.logo__mark { width: 45px; height: 45px; flex: none; }
.logo__txt {
  font-family: var(--ff-display); font-weight: 900; font-size: 1.18rem;
  color: #fff; letter-spacing: -.01em; line-height: 1.15;
}
.logo__txt span {
  display: block; font-size: .64rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--teal-lt);
}

.nav { display: flex; align-items: center; gap: 3px; }
.nav a {
  font-family: var(--ff-display); font-weight: 700; font-size: .92rem;
  text-decoration: none; color: var(--muted);
  padding: 9px 13px; border-radius: 999px; transition: .16s;
}
.nav a:hover { color: #fff; background: var(--surface-2); }
.nav a[aria-current="page"] { color: #fff; background: var(--surface-2); }
.nav .btn { margin-left: 10px; padding: 11px 22px; }
.nav .btn--primary, .nav .btn--primary:hover { color: #fff; }
.nav .btn:hover { background: var(--orange-lt); color: #fff; }

.nav__tel {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--ff-display); font-weight: 800; font-size: .9rem;
  color: var(--teal-lt) !important; text-decoration: none;
  padding: 9px 13px; border-radius: 999px;
  white-space: nowrap;
}
.nav__tel svg { flex: none; }
.nav__tel:hover { color: #fff !important; background: var(--surface-2); }
@media (max-width: 1160px) and (min-width: 981px) {
  .nav__tel span, .nav__tel { font-size: .84rem; }
}

.burger { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; padding: 0; }
.burger span { display: block; width: 21px; height: 2px; background: var(--txt); margin: 5px auto; border-radius: 2px; transition: .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1040px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--hdr-h) 0 auto; background: var(--bg-2);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 18px var(--gut) 30px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-145%); transition: transform .3s ease;
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav a { padding: 13px 14px; font-size: 1rem; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(38px, 4.4vw, 66px) 0 clamp(44px, 5vw, 74px); }
.hero::before {
  content: ''; position: absolute; top: -30%; right: -12%;
  width: 780px; height: 780px; border-radius: 50%;
  background: radial-gradient(circle, rgba(48,120,128,.30) 0%, rgba(48,120,128,0) 68%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -46%; left: -18%;
  width: 660px; height: 660px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,120,32,.16) 0%, rgba(240,120,32,0) 68%);
  pointer-events: none;
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--teal-lt);
  font-family: var(--ff-display); font-weight: 700; font-size: .82rem;
  padding: 8px 17px; border-radius: 999px; margin-bottom: 22px;
}
.hero__tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); flex: none; }
.hero p.lede { font-size: 1.1rem; }

/* signature: hero photograph with the stones motif carried into a badge */
.stone { transform-box: fill-box; transform-origin: center; }

.hero__art { position: relative; }
.hero__shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.hero__shot picture { position: relative; display: block; }
/* the photo is brighter than the UI around it, so it is seated into the page */
.hero__shot picture::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,34,45,.46), rgba(11,34,45,.04) 62%);
  pointer-events: none;
}
.hero__shot img {
  width: 100%; height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.hero__badge {
  position: absolute; left: 20px; bottom: -22px;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
}
.hero__badge-art { width: 78px; height: 40px; flex: none; overflow: visible; }
.hero__badge p {
  margin: 0;
  font-family: var(--ff-display); font-weight: 800; font-size: .74rem;
  letter-spacing: .13em; text-transform: uppercase; color: var(--muted);
  line-height: 1.5;
}
.hero__badge p span { display: block; color: var(--teal-lt); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__art { max-width: 520px; margin-inline: auto; width: 100%; }
}
@media (max-width: 420px) {
  .hero__badge { left: 12px; padding: 10px 14px; gap: 10px; }
  .hero__badge-art { width: 62px; height: 32px; }
  .hero__badge p { font-size: .68rem; }
}

/* ---------- cards ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 25px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--teal); box-shadow: var(--shadow); }
.card__icon { width: 50px; height: 50px; border-radius: var(--r-sm); background: var(--surface-2); display: grid; place-items: center; margin-bottom: 17px; }
.card__icon svg { width: 25px; height: 25px; stroke: var(--orange); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card p:last-child { margin-bottom: 0; color: var(--muted); }
a.card { text-decoration: none; display: block; }
.card__more { font-family: var(--ff-display); font-weight: 800; color: var(--orange-lt); font-size: .89rem; }

/* ---------- numbered value ---------- */
.value { display: flex; gap: 17px; align-items: flex-start; }
.value__n {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: var(--teal); color: #fff;
  font-family: var(--ff-display); font-weight: 900; font-size: .92rem;
  display: grid; place-items: center;
}
.value p { color: var(--muted); margin: 0; }

/* ---------- quote ---------- */
.quote { background: var(--surface); border-radius: var(--r-lg); padding: 30px; border-left: 4px solid var(--orange); }
.quote p { font-family: var(--ff-display); font-size: 1.02rem; font-weight: 700; color: #fff; line-height: 1.55; }
.quote footer { font-size: .84rem; color: var(--muted); }
.quote footer b { color: var(--teal-lt); display: block; font-family: var(--ff-display); }

/* ---------- band ---------- */
.band { background: linear-gradient(135deg, var(--navy), var(--surface-2)); border-block: 1px solid var(--line); }

/* ---------- page head ---------- */
.phead { position: relative; background: var(--bg-2); padding: clamp(36px, 3.8vw, 58px) 0 clamp(38px, 4.2vw, 64px); border-bottom: 1px solid var(--line); overflow: hidden; }
.phead::before {
  content: ''; position: absolute; top: -60%; right: -8%; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(48,120,128,.24) 0%, rgba(48,120,128,0) 70%); pointer-events: none;
}
.phead .wrap { position: relative; z-index: 1; }
.crumb { font-size: .8rem; color: var(--teal-lt); margin-bottom: 13px; font-family: var(--ff-display); font-weight: 700; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

/* ---------- prose ---------- */
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); }
.prose ul { padding-left: 20px; color: var(--muted); }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--orange); }

/* ---------- home / spec ---------- */
.home-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.home-card__top { background: linear-gradient(135deg, var(--teal), var(--navy)); padding: 24px 28px; }
.home-card__top h3 { margin: 0; }
.home-card__top span { font-size: .84rem; color: rgba(255,255,255,.78); }
.home-card__body { padding: 24px 28px; }
.spec { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .91rem; }
.spec:last-of-type { border-bottom: 0; }
.spec dt { color: var(--muted); margin: 0; }
.spec dd { margin: 0; font-family: var(--ff-display); font-weight: 800; color: #fff; text-align: right; }

/* ---------- job ---------- */
.job {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 21px 25px; transition: .2s;
}
.job:hover { border-color: var(--orange); }
.job h3 { margin: 0 0 4px; }
.job__meta { font-size: .86rem; color: var(--muted); margin: 0; }
.tag {
  display: inline-block; background: var(--surface-2); color: var(--teal-lt);
  font-family: var(--ff-display); font-weight: 800; font-size: .7rem;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px; margin-right: 6px;
}

/* ---------- forms ---------- */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 38px); }
.field { margin-bottom: 19px; }
.field label { display: block; font-family: var(--ff-display); font-weight: 800; font-size: .89rem; color: #fff; margin-bottom: 7px; }
.field .hint { font-weight: 600; color: var(--muted); font-size: .81rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; font: inherit; font-size: .96rem;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg); color: var(--txt); transition: border-color .16s;
}
.field input::placeholder, .field textarea::placeholder { color: #6C8794; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal-lt); }
.field textarea { min-height: 128px; resize: vertical; }
.field--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .field--2 { grid-template-columns: 1fr; } }
.field.is-bad input, .field.is-bad select, .field.is-bad textarea { border-color: #FF8A73; }
.err { display: none; color: #FF8A73; font-size: .81rem; font-weight: 700; margin-top: 6px; }
.field.is-bad .err { display: block; }
.form__note { font-size: .83rem; color: var(--muted); }
.form__done {
  display: none; background: var(--surface-2); border: 1px solid var(--teal);
  border-radius: var(--r-md); padding: 22px; text-align: center;
  font-family: var(--ff-display); font-weight: 800; color: #fff;
}
.form__done.show { display: block; }
.form__fail {
  display: none; margin-top: 16px;
  background: rgba(255,138,115,.1); border: 1px solid #FF8A73;
  border-radius: var(--r-md); padding: 16px 20px;
  color: var(--txt); font-size: .92rem;
}
.form__fail a { color: var(--orange-lt); font-weight: 700; }
.form__fail.show { display: block; }

.form__fail {
  display: none; margin-top: 18px;
  background: rgba(255,138,115,.10); border: 1px solid #FF8A73;
  border-radius: var(--r-md); padding: 16px 20px;
  font-family: var(--ff-display); font-weight: 700; font-size: .92rem; color: #FFB0A0;
}
.form__fail.show { display: block; }

.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* ---------- tiles ---------- */
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; min-width: 0; }
.tile h3 { font-size: 1.02rem; margin-bottom: 6px; }
.tile a { color: var(--teal-lt); font-family: var(--ff-display); font-weight: 800; text-decoration: none; overflow-wrap: anywhere; }
.tile a:hover { text-decoration: underline; }
.tile p { margin: 0 0 8px; color: var(--muted); font-size: .92rem; }

/* ---------- urgent ---------- */
.urgent {
  background: rgba(240,120,32,.12); border: 1px solid var(--orange);
  border-radius: var(--r-md); padding: 19px 24px;
  display: flex; gap: 15px; align-items: center; flex-wrap: wrap;
  font-family: var(--ff-display); font-weight: 700; color: var(--orange-lt);
}
.urgent svg { flex: none; }
.urgent a { color: #fff; }

/* ---------- footer ---------- */
.ftr { background: #081A23; border-top: 1px solid var(--line); color: var(--muted); padding: 52px 0 24px; font-size: .89rem; }
.ftr__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 34px; min-width: 0; }
@media (max-width: 860px) { .ftr__grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 520px) { .ftr__grid { grid-template-columns: 1fr; } }
.ftr h4 { color: #fff; font-size: .77rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 15px; }
.ftr ul { list-style: none; padding: 0; margin: 0; }
.ftr li { margin-bottom: 9px; }
.ftr a { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.ftr a:hover { color: var(--orange-lt); }
.ftr__note {
  border-top: 1px solid var(--line); margin-top: 40px; padding-top: 18px;
}
.ftr__note p {
  margin: 0; font-size: .78rem; line-height: 1.6; color: var(--muted); max-width: 82ch;
}
.ftr__note + .ftr__base { border-top: 0; margin-top: 16px; padding-top: 0; }

.ftr__base {
  border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .82rem;
}

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .rv { opacity: 1; transform: none; }
}

/* ==========================================================================
   PHOTOGRAPHY
   Bright daylight interiors sit on a very dark UI, so every photo is framed
   and held back a touch at rest, then brought to full strength on hover.
   ========================================================================== */

.shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.shot picture { position: relative; display: block; overflow: hidden; }
.shot picture::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,34,45,.30), rgba(11,34,45,.02) 58%);
  opacity: 1;
  transition: opacity .4s ease;
  pointer-events: none;
}
.shot:hover picture::after { opacity: 0; }
.shot img {
  width: 100%;
  height: auto;
  transition: transform .7s cubic-bezier(.2,.7,.3,1);
}
.shot:hover img { transform: scale(1.04); }
.shot--4x3 img { aspect-ratio: 4 / 3;  object-fit: cover; }
.shot--16x9 img { aspect-ratio: 16 / 9; object-fit: cover; }
.shot--3x2 img  { aspect-ratio: 3 / 2;   object-fit: cover; }
.shot--sq img { aspect-ratio: 1 / 1;   object-fit: cover; }
.shot figcaption {
  padding: 13px 18px;
  font-size: .86rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.shot figcaption b { color: var(--teal-lt); font-family: var(--ff-display); font-weight: 800; }

/* photographs of people carry less of a resting scrim than the interiors */
.shot--people picture::after {
  background: linear-gradient(to top, rgba(11,34,45,.32), rgba(11,34,45,.02) 60%);
}

/* wide banner image under a page header */
.media-hero {
  margin: 0;
  max-width: 1180px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}
.media-hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 2.4 / 1;
  object-fit: cover;
  object-position: 50% 46%;
}
.media-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,34,45,.72) 0%, rgba(11,34,45,.12) 45%, transparent 70%);
  pointer-events: none;
}
.media-hero figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 22px 28px;
  font-family: var(--ff-display);
  font-weight: 800;
  color: #fff;
  font-size: 1rem;
}
.media-hero figcaption span { display: block; font-family: var(--ff-body); font-weight: 400; color: var(--muted); font-size: .87rem; }
@media (max-width: 700px) {
  .media-hero img { aspect-ratio: 3 / 2; }
  .media-hero figcaption { padding: 16px 18px; font-size: .92rem; }
}

/* ---------- immersive page hero (photo behind the title) ---------- */
.hero-house {
  position: relative;
  min-height: clamp(360px, 52vh, 530px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.hero-house__bg {
  position: absolute; inset: 0;
  z-index: -2;
}
.hero-house__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 58%;   /* center the house body: door, windows, dormers */
}
/* two-stage scrim: darken the base for text, feather the top into the page */
.hero-house::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(8,26,35,.92) 0%, rgba(8,26,35,.62) 28%, rgba(8,26,35,.18) 55%, rgba(8,26,35,.34) 100%),
    linear-gradient(to right, rgba(8,26,35,.72) 0%, rgba(8,26,35,.28) 42%, rgba(8,26,35,0) 72%);
  pointer-events: none;
}
.hero-house__in {
  position: relative;
  padding-top: clamp(92px, 14vh, 160px);
  padding-bottom: clamp(28px, 3.6vw, 48px);
}
.hero-house .crumb { color: #BFEAEF; margin-bottom: 15px; }
.hero-house .crumb a { color: #BFEAEF; }
.hero-house .eyebrow { color: var(--orange-lt); }
.hero-house h1 {
  max-width: 16ch;
  text-shadow: 0 2px 26px rgba(0,0,0,.5);
}
.hero-house .lede {
  color: #E8F1F4;
  max-width: 46ch;
  text-shadow: 0 1px 14px rgba(0,0,0,.55);
}
/* a small at-a-glance strip riding the bottom edge of the hero */
.hero-house__meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 22px;
}
.hero-house__meta span {
  font-family: var(--ff-display); font-weight: 800; font-size: .82rem;
  color: #EAF6F8;
  background: rgba(18,52,68,.66);
  border: 1px solid rgba(95,176,184,.4);
  backdrop-filter: blur(6px);
  padding: 7px 14px; border-radius: 999px;
}
.hero-house__meta span b { color: var(--orange-lt); font-weight: 800; }
@media (max-width: 640px) {
  .hero-house { min-height: clamp(360px, 68vh, 520px); }
  .hero-house__bg img { object-position: 56% 56%; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-house__bg img { animation: heroSettle 1.2s ease-out both; }
  @keyframes heroSettle {
    from { transform: scale(1.06); }
    to   { transform: none; }
  }
}

/* ==========================================================================
   GALLERY — "plate cards"
   Each photograph is presented like a plate in an architectural portfolio:
   the image is never covered by its own caption, the caption sits in a bar
   beneath it, and a 4:3 frame keeps rows short enough to scan on a laptop.
   ========================================================================== */

.gal-group + .gal-group { margin-top: 38px; }
.gal-group__hd {
  margin-bottom: 16px;
  padding-left: 15px;
  border-left: 3px solid var(--teal);
}
.gal-group__hd h3 { font-size: 1rem; margin-bottom: 3px; }
.gal-group__hd p { margin: 0; color: var(--muted); font-size: .88rem; max-width: 64ch; }

.gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gal--1 { grid-template-columns: minmax(0, 560px); }
.gal--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gal--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1040px) { .gal--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px)  { .gal, .gal--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .gal, .gal--1, .gal--2, .gal--4 { grid-template-columns: 1fr; } }

.gal__item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  color: inherit;
  cursor: zoom-in;
  text-align: left;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), border-color .3s ease, box-shadow .3s ease;
}

/* the <picture> is the photo frame */
.gal__item picture {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-2);
}
/* bright daylight interiors are held back a touch against the dark UI */
.gal__item picture::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,34,45,.34), rgba(11,34,45,.03) 58%);
  opacity: 1;
  transition: opacity .4s ease;
  pointer-events: none;
}
.gal__item img {
  width: 100%;
  height: auto;          /* required, or the img height attribute defeats aspect-ratio */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 50%;
  transition: transform .7s cubic-bezier(.2,.7,.3,1);
}
.gal__item--tall img { aspect-ratio: 3 / 4; }
.gal__item--wide img { aspect-ratio: 16 / 9; }
@media (max-width: 560px) {
  .gal__item--tall img, .gal__item--wide img { aspect-ratio: 4 / 3; }
}

/* caption bar — sits under the photo, never over it */
.gal__cap {
  position: relative;
  margin-top: auto;
  padding: 12px 15px 13px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: .87rem;
  line-height: 1.3;
  color: #fff;
}
.gal__cap::before {
  content: "";
  position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.2,.7,.3,1);
}
.gal__cap span {
  display: block;
  margin-top: 3px;
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: .79rem;
  line-height: 1.45;
  color: var(--muted);
}

/* expand affordance */
.gal__item::after {
  content: "";
  position: absolute; top: 11px; right: 11px;
  width: 33px; height: 33px;
  border-radius: 50%;
  border: 1px solid rgba(95,176,184,.45);
  background: rgba(8,26,35,.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF9A4D' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.6-3.6M11 8.4v5.2M8.4 11h5.2'/%3E%3C/svg%3E") center/16px no-repeat;
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: scale(.86);
  transition: opacity .28s ease, transform .28s ease;
}

.gal__item:hover, .gal__item:focus-visible {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: var(--shadow);
}
.gal__item:hover img, .gal__item:focus-visible img { transform: scale(1.05); }
.gal__item:hover picture::after, .gal__item:focus-visible picture::after { opacity: 0; }
.gal__item:hover .gal__cap::before, .gal__item:focus-visible .gal__cap::before { transform: scaleX(1); }
.gal__item:hover::after, .gal__item:focus-visible::after { opacity: 1; transform: none; }

/* ---------- lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 300;
  display: none;
  background: rgba(6,20,27,.94);
  backdrop-filter: blur(4px);
  padding: 24px;
}
.lb[data-open="true"] { display: grid; grid-template-rows: 1fr auto; place-items: center; }
.lb__fig { margin: 0; max-width: min(1100px, 92vw); max-height: 78vh; display: grid; place-items: center; }
.lb__fig img {
  max-width: 100%; max-height: 78vh;
  width: auto; height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  animation: lbIn .32s ease;
}
@keyframes lbIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.lb__cap {
  margin-top: 16px; text-align: center;
  font-family: var(--ff-display); font-weight: 800; color: #fff; font-size: 1rem;
}
.lb__cap span { display: block; font-family: var(--ff-body); font-weight: 400; color: var(--muted); font-size: .86rem; margin-top: 3px; }
.lb__btn {
  position: absolute;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--txt);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.lb__btn:hover { background: var(--surface-2); border-color: var(--teal); transform: scale(1.06); }
.lb__btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lb__close { top: 20px; right: 20px; }
.lb__prev { left: 20px; top: 50%; margin-top: -24px; }
.lb__next { right: 20px; top: 50%; margin-top: -24px; }
@media (max-width: 620px) {
  .lb__prev { left: 10px; } .lb__next { right: 10px; }
  .lb__btn { width: 42px; height: 42px; }
}
body.lb-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .shot img, .gal__item, .gal__item img { transition: none !important; }
  .gal__item:hover, .gal__item:focus-visible { transform: none; }
  .gal__item:hover img, .gal__item:focus-visible img { transform: none; }
  .gal__cap::before { transition: none; }
  .lb__fig img { animation: none; }
}

/* ==========================================================================
   PHOTO TOUR — horizontal slider
   A quick, swipeable run through the home before the room-by-room detail.
   Slides reuse the .gal__item "plate card" look, so a click/tap opens the
   very same lightbox used elsewhere on the page.
   ========================================================================== */

.tour__stage { position: relative; margin-top: 8px; }

.tour__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tour__viewport::-webkit-scrollbar { display: none; }
.tour__viewport:focus-visible { outline: none; }

.tour__track {
  display: flex;
  align-items: stretch;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 4px max(calc((100vw - var(--wrap)) / 2 + var(--gut)), var(--gut)) 12px;
}
.tour__slide { flex: 0 0 auto; width: min(400px, 74vw); scroll-snap-align: start; }
.tour__slide .gal__item { width: 100%; height: 100%; }

/* nav arrows float over the track, inset roughly to the content edge */
.tour__arrow {
  position: absolute; top: 50%; margin-top: -26px;
  width: 52px; height: 52px; flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(11,34,45,.82);
  backdrop-filter: blur(6px);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer; z-index: 5; padding: 0;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.tour__arrow svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.tour__arrow:hover { background: var(--teal); border-color: var(--teal); transform: translateY(-50%) scale(1.06); }
.tour__arrow--prev { left: max(calc((100vw - var(--wrap)) / 2 + 6px), 10px); }
.tour__arrow--next { right: max(calc((100vw - var(--wrap)) / 2 + 6px), 10px); }

/* progress dots */
.tour__dots { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.tour__dot {
  width: 9px; height: 9px; border-radius: 999px;
  background: var(--line); border: 0; padding: 0; cursor: pointer;
  transition: background .2s ease, width .2s ease;
}
.tour__dot:hover { background: var(--teal-lt); }
.tour__dot[aria-selected="true"] { background: var(--orange); width: 26px; }

@media (max-width: 900px) {
  .tour__slide { width: min(340px, 62vw); }
}
@media (max-width: 640px) {
  .tour__slide { width: 78vw; }
  .tour__arrow { width: 40px; height: 40px; margin-top: -20px; }
  .tour__arrow svg { width: 16px; height: 16px; }
  .tour__arrow--prev { left: 6px; }
  .tour__arrow--next { right: 6px; }
  .tour__dots { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .tour__viewport { scroll-behavior: auto; }
}

/* ---------- "what sets us apart" accordion + CTA card ---------- */
.apart .eyebrow { color: var(--orange-lt); }

.acc { margin-top: 22px; border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 4px; font-family: var(--ff-display); font-weight: 800; font-size: 1.02rem; color: #fff;
}
.acc__item summary::-webkit-details-marker { display: none; }
.acc__item summary:focus-visible { outline-offset: -3px; }
.acc__ico {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--teal-lt); color: var(--teal-lt);
  display: grid; place-items: center; position: relative; transition: background .18s ease, border-color .18s ease;
}
.acc__ico::before, .acc__ico::after {
  content: ''; position: absolute; background: currentColor; border-radius: 2px;
}
.acc__ico::before { width: 11px; height: 2px; }
.acc__ico::after { width: 2px; height: 11px; transition: transform .18s ease; }
.acc__item[open] .acc__ico { background: var(--teal); border-color: var(--teal); color: #fff; }
.acc__item[open] .acc__ico::after { transform: scaleY(0); }
.acc__item:hover summary { color: var(--teal-lt); }
.acc__panel { margin: -4px 0 20px; color: var(--muted); max-width: 56ch; }
.acc__panel p { margin: 0; }

.apart-card {
  background: var(--txt); color: var(--navy);
  border-radius: var(--r-lg); padding: 30px 28px; box-shadow: var(--shadow);
}
.apart-card__brand { display: flex; align-items: center; gap: 13px; margin-bottom: 26px; }
.apart-card__brand .logo__mark { width: 42px; height: 42px; flex: none; }
.apart-card__brand strong {
  display: block; font-family: var(--ff-display); font-weight: 900; font-size: 1.08rem; color: var(--navy);
}
.apart-card__brand strong span { display: block; font-weight: 800; color: var(--teal); }
.apart-card__tag { display: block; font-size: .78rem; color: #4A6B77; margin-top: 2px; }
.btn--block { display: flex; width: 100%; justify-content: center; margin-bottom: 12px; }
.btn--block:last-child { margin-bottom: 0; }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--navy); color: #fff; }

@media (max-width: 900px) { .apart-card { margin-top: 6px; } }
