/* ============================================================
   HECHANOVA SENIOR LIVING - SITE STYLES
   ------------------------------------------------------------
   One palette, one radius, two typefaces.

   Palette   warm linen page, navy ink, the brand's royal blue
             as the single accent (sampled from the Hechanova logo).
   Radius    4px everywhere (buttons, inputs, photos). No pills.
   Type      Newsreader (display, optical sizes) + Figtree (text).
   Motion    reveals and the two signature scroll pieces are
             disabled under prefers-reduced-motion.
   ============================================================ */

/* ---------- Fonts (self-hosted, variable) ------------------ */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/newsreader.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/newsreader-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/figtree.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/figtree-italic.woff2') format('woff2');
}

/* ---------- Tokens ----------------------------------------- */
:root {
  --linen: #FAF8F3;
  --sand: #F0EBE1;
  --stone: #D8D1C3;
  --mist: #EEF2F8;
  --sky: #D9E4F4;
  --ink: #182038;
  --ink-2: #4B5268;
  --ink-3: #6B7288;
  --navy: #1E2A66;
  --royal: #2F5FB3;
  --royal-deep: #24498E;
  --sun: #F4E6CF;
  --white: #FFFFFF;

  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Figtree', 'Segoe UI', Helvetica, Arial, sans-serif;

  --radius: 4px;
  --gutter: clamp(16px, 5vw, 64px);
  --wrap: 1280px;
  --sec: clamp(64px, 9vw, 136px);
  --hdr: 76px;

  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --shadow: 0 24px 60px -30px rgba(24, 32, 56, .35);
}

/* ---------- Reset ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--sky); color: var(--ink); }

:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; border-radius: 2px; }
.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: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Layout helpers --------------------------------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--sec); }
.section--sand { background: var(--sand); }
.section--tight { padding-block: calc(var(--sec) * .66); }
.grid { display: grid; gap: clamp(24px, 4vw, 64px); }
@media (min-width: 900px) {
  .grid--2 { grid-template-columns: 1fr 1fr; align-items: center; }
  .grid--5-7 { grid-template-columns: 5fr 7fr; align-items: center; }
  .grid--7-5 { grid-template-columns: 7fr 5fr; align-items: center; }
  .grid--4-8 { grid-template-columns: 4fr 8fr; align-items: start; }
}
.mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; }

/* ---------- Type ------------------------------------------- */
.display {
  font-family: var(--serif);
  font-weight: 450;
  letter-spacing: -.012em;
  line-height: 1.04;
  text-wrap: balance;
  color: var(--ink);
}
.display--xl { font-size: clamp(2.75rem, 6.4vw, 5.6rem); }
.display--lg { font-size: clamp(2.3rem, 4.6vw, 3.9rem); }
.display--md { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.display--sm { font-size: clamp(1.55rem, 2.4vw, 2.1rem); line-height: 1.15; }
.display em { font-style: italic; font-weight: 400; color: var(--royal); }
.display--light, .display--light em { color: #fff; }

.eyebrow {
  font: 600 .8125rem/1.3 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--royal);
  margin-bottom: 18px;
}
.eyebrow--light { color: var(--sky); }

.lede {
  font-size: clamp(1.125rem, 1.45vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 58ch;
  text-wrap: pretty;
}
.lede--light { color: rgba(255, 255, 255, .82); }
.prose p + p { margin-top: 1.1em; }
.prose { max-width: 62ch; color: var(--ink-2); text-wrap: pretty; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--royal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.serif-quote {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.35;
  font-weight: 400;
  color: var(--ink);
  text-wrap: pretty;
}
.small { font-size: .9375rem; color: var(--ink-2); }

/* ---------- Buttons ---------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: var(--radius);
  font: 600 1rem/1 var(--sans);
  text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background-color .25s var(--ease-soft), color .25s var(--ease-soft), border-color .25s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.btn--primary { background: var(--royal); color: #fff; }
.btn--primary:hover { background: var(--royal-deep); }
.btn--ghost { border-color: var(--stone); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--sky); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.tlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--royal); text-decoration: none;
  padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1.5px;
  transition: background-size .35s var(--ease-out);
}
.tlink:hover { background-size: 100% 1.5px; }
.tlink svg { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.tlink:hover svg { transform: translateX(4px); }

/* ---------- Header ----------------------------------------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--linen) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.hdr.is-scrolled { border-bottom-color: var(--stone); }
.hdr__bar {
  width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto;
  min-height: var(--hdr);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 44px; height: 44px; }
.brand__name {
  display: flex; flex-direction: column; line-height: 1;
  font: 600 1.05rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--navy);
}
.brand__sub { font-size: .62rem; letter-spacing: .26em; color: var(--royal); margin-top: 5px; font-weight: 600; }
.nav { display: none; gap: 30px; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: .9625rem; color: var(--ink);
  padding: 6px 0;
  background: linear-gradient(var(--royal), var(--royal)) no-repeat 0 100% / 0 2px;
  transition: background-size .35s var(--ease-out), color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { background-size: 100% 2px; color: var(--navy); }
.hdr__end { display: flex; align-items: center; gap: 18px; }
.hdr__phone { display: none; text-decoration: none; font-weight: 600; color: var(--navy); font-size: .9625rem; }
.hdr__cta { display: none; }
.menu-btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9375rem; color: var(--navy); padding: 8px 0; }
.menu-btn__lines { width: 24px; height: 14px; position: relative; display: block; }
.menu-btn__lines i { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform .35s var(--ease-out), top .35s var(--ease-out); }
.menu-btn__lines i:first-child { top: 0; } .menu-btn__lines i:last-child { top: 12px; }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:first-child { top: 6px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:last-child { top: 6px; transform: rotate(-45deg); }
@media (min-width: 1100px) {
  .nav { display: flex; }
  .hdr__phone { display: inline; }
  .hdr__cta { display: inline-flex; }
  .menu-btn { display: none; }
}
@media (min-width: 560px) and (max-width: 1099px) {
  .hdr__cta { display: inline-flex; }
}

.menu {
  position: fixed; inset: var(--hdr) 0 0 0; z-index: 49;
  background: var(--navy); color: #fff;
  overflow-y: auto;
  animation: menuIn .4s var(--ease-out);
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.menu__inner {
  width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto;
  padding-block: 40px 56px;
  display: grid; gap: 40px;
}
@media (min-width: 760px) { .menu__inner { grid-template-columns: 1.1fr 1fr; gap: 64px; padding-top: 56px; } }
.menu__nav { display: grid; gap: 4px; }
.menu__nav a {
  font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.12;
  text-decoration: none; color: #fff; padding: 6px 0; display: inline-block;
  transition: color .2s;
}
.menu__nav a:hover, .menu__nav a[aria-current="page"] { color: var(--sky); font-style: italic; }
.menu__eyebrow { font: 600 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sky); margin-bottom: 18px; }
.menu__homes { display: grid; gap: 14px; border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 18px; }
.menu__homes a, .menu__soon { display: grid; text-decoration: none; color: #fff; font-weight: 500; line-height: 1.3; }
.menu__homes span { color: rgba(255, 255, 255, .62); font-weight: 400; font-size: .9rem; }
.menu__homes a:hover { color: var(--sky); }
.menu__phone { display: inline-block; margin-top: 28px; color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--sky); padding-bottom: 2px; }
body.menu-open { overflow: hidden; }

/* ---------- Photo frames ----------------------------------- */
.photo { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--4x3 { aspect-ratio: 4 / 3; }
.photo--3x2 { aspect-ratio: 3 / 2; }
.photo--5x4 { aspect-ratio: 5 / 4; }
.photo--1x1 { aspect-ratio: 1; }
.photo--4x5 { aspect-ratio: 4 / 5; }
.photo--wide { aspect-ratio: 16 / 9; }
.photo--band { aspect-ratio: 21 / 9; }
.caption { margin-top: 10px; font-size: .9rem; color: var(--ink-3); }

/* ---------- Reveal ----------------------------------------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.rv.is-in { opacity: 1; transform: none; }
.rv--d1 { transition-delay: .12s; } .rv--d2 { transition-delay: .24s; } .rv--d3 { transition-delay: .36s; }
.rv-img { overflow: hidden; }
.rv-img img { transform: scale(1.06); transition: transform 1.4s var(--ease-out); }
.rv-img.is-in img { transform: scale(1); }

/* ============================================================
   HOME
   ============================================================ */

/* ---------- Hero: the framed photograph -------------------- */
.hero { position: relative; }
.hero__inner {
  width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto;
  min-height: calc(100svh - var(--hdr));
  display: grid; align-content: center; gap: 36px;
  padding-block: 40px 56px;
}
.hero__text { position: relative; z-index: 2; }
.hero__lede { margin-top: 24px; }
.hero__meta { margin-top: 36px; display: grid; gap: 4px; font-size: .9375rem; color: var(--ink-2); }
.hero__meta b { font-weight: 600; color: var(--ink); }
.hero__frame {
  position: relative; z-index: 1;
  padding: 14px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero__frame .photo { aspect-ratio: 4 / 3; }
.hero__frame figcaption { margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--ink-2); }
.hero__photo { display: none; }
.hero__end { display: none; }
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: 24px; }
  .hero__frame { margin-top: 56px; }
}

/* Desktop + motion allowed: the frame expands into a full-screen room while the hero is pinned. */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .hero.is-expanding { height: calc(100svh - var(--hdr)); overflow: visible; }
  .hero.is-expanding .hero__inner { min-height: 100%; }
  .hero.is-expanding .hero__frame .photo img { opacity: 0; }
  .hero__photo.is-ready { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
  .hero__photo.is-ready img { width: 100%; height: 100%; object-fit: cover; }
  .hero__end.is-ready {
    display: block; position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
    padding: 0 var(--gutter) 56px; color: #fff; opacity: 0;
    background: linear-gradient(to top, rgba(24, 32, 56, .55), transparent);
    padding-top: 120px; pointer-events: none;
  }
  .hero__end p { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.4rem); line-height: 1.25; max-width: 24ch; }
}

/* ---------- Welcome / introduction ------------------------- */
.intro__quote { margin-top: 28px; }
.intro__figure { position: relative; }
.intro__figure .photo { aspect-ratio: 4 / 5; }
.intro__figure .photo--inset {
  position: absolute; width: 46%; right: -6%; bottom: -10%;
  aspect-ratio: 1; border: 8px solid var(--linen);
}
@media (max-width: 899px) { .intro__figure { margin-right: 8%; margin-bottom: 10%; } }

/* ---------- Values ----------------------------------------- */
.values { border-top: 1px solid var(--stone); }
.values__row {
  display: grid; gap: 10px 32px; padding: 28px 0; border-bottom: 1px solid var(--stone);
  align-items: baseline;
}
.values__word { font-family: var(--serif); font-size: clamp(1.8rem, 3.2vw, 2.7rem); line-height: 1.1; color: var(--navy); font-weight: 450; }
.values__text { color: var(--ink-2); max-width: 60ch; }
@media (min-width: 760px) { .values__row { grid-template-columns: 1fr 2fr; } }

/* ---------- Journey: A Place to Belong --------------------- */
.journey { background: var(--navy); color: #fff; }
.journey__head { padding: var(--sec) 0 40px; }
.journey__stage { display: none; }
.journey__list { display: grid; gap: 48px; padding-bottom: var(--sec); }
.chapter { display: grid; gap: 18px; }
.chapter__word { font: 600 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--sky); }
.chapter__line { font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.2; max-width: 22ch; }
.chapter__text { color: rgba(255, 255, 255, .78); max-width: 48ch; }
.journey .photo { background: #121a45; }

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .journey__list { display: none; }
  .journey__track { height: 600vh; position: relative; }
  .journey__stage {
    display: grid; position: sticky; top: 0; height: 100vh; height: 100svh;
    grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px);
    width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto;
    align-items: center;
  }
  .journey__index { display: grid; gap: 6px; margin-bottom: 36px; }
  .journey__index button {
    text-align: left; font: 600 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
    color: rgba(255, 255, 255, .42); padding: 6px 0 6px 18px; position: relative; transition: color .3s;
  }
  .journey__index button::before {
    content: ''; position: absolute; left: 0; top: 50%; width: 8px; height: 1.5px; background: currentColor;
    transform: translateY(-50%); transition: width .35s var(--ease-out);
  }
  .journey__index button.is-active { color: #fff; }
  .journey__index button.is-active::before { width: 12px; }
  .journey__copy { position: relative; min-height: 220px; }
  .journey__copy .chapter { position: absolute; inset: 0 auto auto 0; opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
  .journey__copy .chapter.is-active { opacity: 1; transform: none; }
  .journey__images { position: relative; aspect-ratio: 4 / 3; max-height: 78vh; border-radius: var(--radius); overflow: hidden; }
  .journey__images .photo { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease-soft); border-radius: 0; }
  .journey__images .photo img { transform: scale(1.08); transition: transform 7s linear; }
  .journey__images .photo.is-active { opacity: 1; }
  .journey__images .photo.is-active img { transform: scale(1); }
  .journey__progress { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--sky); width: 0; z-index: 2; }
}

/* ---------- Community discovery ---------------------------- */
.discover { display: grid; gap: 32px; }
.discover__list { display: grid; gap: 0; border-top: 1px solid var(--stone); }
.discover__item {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px;
  width: 100%; text-align: left; padding: 18px 0; border-bottom: 1px solid var(--stone);
  transition: padding-left .35s var(--ease-out), color .2s;
}
.discover__item b { display: block; font-family: var(--serif); font-weight: 450; font-size: clamp(1.25rem, 1.8vw, 1.55rem); line-height: 1.15; color: var(--ink); }
.discover__item span { color: var(--ink-3); font-size: .9375rem; }
.discover__item i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--stone); transition: background .3s, border-color .3s; }
.discover__item.is-active { padding-left: 14px; }
.discover__item.is-active i { background: var(--royal); border-color: var(--royal); }
.discover__item.is-active b { color: var(--royal-deep); }
.discover__item:hover b { color: var(--royal); }
.discover__stage { display: grid; gap: 22px; }
.discover__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.discover__media .photo { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease-soft); border-radius: 0; }
.discover__media .photo.is-active { opacity: 1; }
.discover__media .photo img { transition: transform .8s var(--ease-out); }
.discover__media:hover .photo.is-active img { transform: scale(1.03); }
.discover__media .soon {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 32px;
  background: var(--navy); color: #fff; opacity: 0; transition: opacity .7s var(--ease-soft);
}
.discover__media .soon.is-active { opacity: 1; }
.discover__media .soon p { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.2; }
.discover__media .soon span { display: block; margin-top: 10px; color: var(--sky); font-size: .9375rem; }
.discover__panel { position: relative; min-height: 190px; }
.discover__info { position: absolute; inset: 0 auto auto 0; width: 100%; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), visibility 0s .5s; }
.discover__info.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; position: relative; }
.discover__info h3 { font-family: var(--serif); font-weight: 450; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.1; }
.discover__info .tag { font-family: var(--serif); font-style: italic; color: var(--ink-2); font-size: 1.15rem; margin-top: 8px; }
.discover__facts { display: grid; gap: 4px; margin-top: 16px; color: var(--ink-2); font-size: .9625rem; }
.discover__facts a { color: var(--ink); text-decoration: none; font-weight: 500; }
.discover__facts a:hover { color: var(--royal); }
.discover__actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: 22px; }
@media (min-width: 900px) {
  .discover { grid-template-columns: 4fr 8fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
  .discover__stage { grid-template-columns: 7fr 5fr; align-items: start; gap: 32px; }
  .discover__media { grid-row: 1 / 3; }
}

/* ---------- Life here: editorial rows ---------------------- */
.rows { display: grid; gap: clamp(48px, 7vw, 96px); }
.row { display: grid; gap: 28px; align-items: center; }
.row__text h3 { font-family: var(--serif); font-weight: 450; font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.12; }
.row__text p { margin-top: 16px; color: var(--ink-2); max-width: 52ch; }
.row__text ul { margin-top: 16px; display: grid; gap: 8px; color: var(--ink-2); }
.row__text li { padding-left: 20px; position: relative; }
.row__text li::before { content: ''; position: absolute; left: 0; top: .72em; width: 9px; height: 1.5px; background: var(--royal); }
@media (min-width: 900px) {
  .row { grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); }
  .row--flip .row__media { order: 2; }
  .row--flip .row__text { order: 1; }
  .row__media .photo { aspect-ratio: 5 / 4; }
  .row:nth-child(even) .row__media .photo { aspect-ratio: 4 / 3; }
}

/* ---------- Family section --------------------------------- */
.family { background: var(--sun); }
.family__quote { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.22; max-width: 24ch; text-wrap: balance; }
.family__steps { display: grid; gap: 20px; margin-top: 36px; border-top: 1px solid rgba(24, 32, 56, .18); }
.family__steps li { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid rgba(24, 32, 56, .18); }
.family__steps b { font-weight: 600; color: var(--ink); }
.family__steps span { color: var(--ink-2); max-width: 48ch; }
.family .photo { aspect-ratio: 16 / 10; }

/* ---------- Memory strip (home) ---------------------------- */
.strip { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: var(--gutter); }
.strip::-webkit-scrollbar { display: none; }
.strip__track { display: flex; gap: 20px; width: max-content; padding-bottom: 8px; }
.strip figure { width: min(72vw, 520px); flex: none; scroll-snap-align: start; }
.strip figure:nth-child(3n+2) { width: min(60vw, 380px); margin-top: 48px; }
.strip .photo { aspect-ratio: 4 / 3; }
.strip figure:nth-child(3n+2) .photo { aspect-ratio: 4 / 5; }
.strip .photo img { transition: transform .8s var(--ease-out); }
.strip figure:hover .photo img { transform: scale(1.04); }

/* ---------- Why: editorial list ---------------------------- */
.why { display: grid; gap: 0; border-top: 1px solid var(--stone); }
.why__item { display: grid; gap: 8px 40px; padding: 26px 0; border-bottom: 1px solid var(--stone); }
.why__item h3 { font-family: var(--serif); font-weight: 450; font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.2; }
.why__item p { color: var(--ink-2); max-width: 60ch; }
@media (min-width: 760px) { .why__item { grid-template-columns: 2fr 3fr; align-items: start; } }

/* ---------- Closing band ----------------------------------- */
.closing { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.closing__media { position: absolute; inset: 0; z-index: -1; background: var(--navy); }
.closing__img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.closing__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(20, 28, 70, .88) 0%, rgba(20, 28, 70, .55) 45%, rgba(20, 28, 70, .15) 100%); }
.closing__body { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; padding-block: clamp(96px, 14vw, 200px); max-width: 720px; margin-left: var(--gutter); }
@media (min-width: 1400px) { .closing__body { margin-left: max(var(--gutter), calc((100% - var(--wrap)) / 2)); } }
.closing__phone { display: inline-block; margin-top: 28px; color: #fff; font-family: var(--serif); font-size: 1.5rem; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .5); }

/* ---------- Footer ----------------------------------------- */
.ftr { background: var(--ink); color: rgba(255, 255, 255, .78); font-size: .9375rem; }
.ftr__grid { display: grid; gap: 40px; padding-block: 64px 48px; }
@media (min-width: 900px) { .ftr__grid { grid-template-columns: 1.2fr 1.4fr 1fr; gap: 64px; } }
.ftr__tag { margin-top: 18px; max-width: 34ch; font-family: var(--serif); font-size: 1.15rem; line-height: 1.4; color: #fff; }
.ftr__phone { display: inline-block; margin-top: 18px; color: #fff; font-weight: 600; text-decoration: none; font-size: 1.1rem; }
.ftr__head { font: 600 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sky); margin-bottom: 16px; }
.ftr__head--gap { margin-top: 32px; }
.ftr__homes { display: grid; gap: 16px; }
.ftr__homes li { display: grid; gap: 2px; }
.ftr__homes a, .ftr__soon { color: #fff; text-decoration: none; font-weight: 600; }
.ftr__homes a:hover { color: var(--sky); }
.ftr__lic { font-size: .8125rem; color: rgba(255, 255, 255, .5); }
.ftr__links { display: grid; gap: 8px; }
.ftr__links a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.ftr__links a:hover { color: #fff; }
.ftr__base { display: flex; flex-wrap: wrap; gap: 12px 32px; padding-block: 22px 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8125rem; color: rgba(255, 255, 255, .55); }
.ftr__base a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.ftr__base a:hover { color: #fff; }
.ftr__credit { margin-left: auto; }

/* ============================================================
   INNER PAGES
   ============================================================ */

/* ---------- Page head -------------------------------------- */
.phead { padding-block: clamp(48px, 7vw, 96px) clamp(32px, 5vw, 64px); }
.phead__lede { margin-top: 22px; }
.phead--split { display: grid; gap: 32px; }
@media (min-width: 900px) { .phead--split { grid-template-columns: 7fr 5fr; align-items: end; } }
.crumbs { font-size: .875rem; color: var(--ink-3); margin-bottom: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--royal); }

/* ---------- Communities hub: facts row + coming-soon band -- */
.facts { display: grid; gap: 40px 32px; }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts__home { display: flex; flex-direction: column; gap: 2px; }
.facts__head { text-decoration: none; color: inherit; }
.facts__head:hover h3 { color: var(--royal-deep); }
.facts__addr { margin-top: 6px; }
.facts__tel { text-decoration: none; font-weight: 500; color: var(--ink); white-space: nowrap; }
.facts__mail { color: var(--royal); }
.facts__lic { color: var(--ink-3); }
.facts__go { margin-top: auto; padding-top: 16px; align-self: flex-start; }
.soonband {
  margin-top: 48px; display: grid; gap: 18px 40px; align-items: center;
  padding: 28px 32px; background: var(--navy); color: #fff; border-radius: var(--radius);
}
.soonband__tag { font: 600 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sky); }
.soonband__meta { margin-top: 6px; color: rgba(255, 255, 255, .78); font-size: .9375rem; }
@media (min-width: 760px) { .soonband { grid-template-columns: auto 1fr auto; } }

/* ---------- Community page --------------------------------- */
.chero { display: grid; gap: 28px; }
.chero .photo { aspect-ratio: 16 / 9; }
.cfacts { display: grid; gap: 22px; padding: 28px; background: var(--sand); border-radius: var(--radius); }
.cfacts dt { font: 600 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--royal); margin-bottom: 6px; }
.cfacts dd { margin: 0; color: var(--ink); }
.cfacts a { color: var(--ink); text-decoration: none; font-weight: 500; }
.cfacts a:hover { color: var(--royal); }
.cfacts .btn { margin-top: 6px; }
@media (min-width: 900px) { .cfacts { position: sticky; top: calc(var(--hdr) + 24px); } }

/* ---------- Living memory gallery -------------------------- */
.memory { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.memory figure { position: relative; cursor: zoom-in; }
/* Phones: one wide photo, then two pairs, repeating. A last photo that
   would sit alone in its row goes wide too, so no row has a gap. */
@media (max-width: 759px) {
  .memory figure:nth-child(5n+1),
  .memory figure:last-child:nth-child(5n+2),
  .memory figure:last-child:nth-child(5n+4) { grid-column: span 2; }
  .memory figure:nth-child(5n+1) .photo,
  .memory figure:last-child:nth-child(5n+2) .photo,
  .memory figure:last-child:nth-child(5n+4) .photo { aspect-ratio: 16 / 9; }
}
.memory .photo { aspect-ratio: 4 / 3; }
.memory .photo img { transition: transform 1s var(--ease-out); }
.memory figure:hover .photo img, .memory figure:focus-within .photo img { transform: scale(1.035); }
.memory figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 18px 16px;
  color: #fff; font-family: var(--serif); font-size: 1.05rem;
  background: linear-gradient(to top, rgba(24, 32, 56, .72), transparent);
  opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
.memory figure:hover figcaption, .memory figure:focus-within figcaption { opacity: 1; transform: none; }
.memory button { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: var(--radius); }
@media (min-width: 760px) {
  .memory { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .memory figure { grid-column: span 2; }
  .memory figure:nth-child(6n+1) { grid-column: span 4; grid-row: span 2; }
  /* The big tile takes its height from the two tiles beside it; its photo
     is laid over the box so a portrait original cannot stretch the row. */
  .memory figure:nth-child(6n+1) .photo { aspect-ratio: auto; height: 100%; min-height: 280px; }
  .memory figure:nth-child(6n+1) .photo img { position: absolute; inset: 0; }
  .memory figure:nth-child(6n+1):last-child { grid-column: span 6; grid-row: auto; }
  .memory figure:nth-child(6n+1):last-child .photo { aspect-ratio: 21 / 9; height: auto; }
  .memory figure:nth-child(6n+2), .memory figure:nth-child(6n+3) { grid-column: span 2; }
  .memory figure:nth-child(6n+4) { grid-column: span 3; }
  .memory figure:nth-child(6n+5) { grid-column: span 3; }
  .memory figure:nth-child(6n+6) { grid-column: span 6; }
  .memory figure:nth-child(6n+6) .photo { aspect-ratio: 21 / 9; }
  .memory figure:nth-child(6n+6) figcaption { max-width: 60%; }
}
@media (hover: none) { .memory figcaption { opacity: 1; transform: none; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(14, 20, 44, .94); }
.lightbox__inner { position: fixed; inset: 0; display: grid; grid-template-rows: 1fr auto; padding: 16px; }
.lightbox__img { width: 100%; height: 100%; object-fit: contain; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 4px 4px; color: #fff; font-family: var(--serif); font-size: 1.1rem; }
.lightbox__btns { display: flex; gap: 8px; }
.lightbox__btns button { width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .4); border-radius: var(--radius); display: grid; place-items: center; color: #fff; }
.lightbox__btns button:hover { background: rgba(255, 255, 255, .1); }
.lightbox__btns svg { width: 20px; height: 20px; }

/* ---------- Services list ---------------------------------- */
.services { border-top: 1px solid var(--stone); }
.service {
  display: grid; gap: 18px 40px; padding: 32px 0; border-bottom: 1px solid var(--stone);
  grid-template-columns: 84px 1fr; align-items: start;
}
.service .photo { aspect-ratio: 1; width: 84px; }
.service h3 { font-family: var(--serif); font-weight: 450; font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.2; }
.service p { margin-top: 10px; color: var(--ink-2); max-width: 62ch; }
@media (min-width: 760px) { .service { grid-template-columns: 120px 1fr; } .service .photo { width: 120px; } }
.partners { display: grid; gap: 12px; margin-top: 24px; }
.partners li { padding: 14px 0; border-bottom: 1px solid var(--stone); font-weight: 500; }
.partners li:first-child { border-top: 1px solid var(--stone); }
.checks { display: grid; gap: 10px; margin-top: 20px; color: var(--ink-2); }
.checks li { padding-left: 26px; position: relative; }
.checks li::before { content: ''; position: absolute; left: 0; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--royal); border-bottom: 2px solid var(--royal); transform: rotate(-45deg); }

/* ---------- Contact ---------------------------------------- */
.contact { display: grid; gap: 48px; }
@media (min-width: 1000px) { .contact { grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 96px); align-items: start; } }
.form { display: grid; gap: 22px; }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form legend, .form label, .form .label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 8px; color: var(--ink); }
.form .hint { font-weight: 400; color: var(--ink-3); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 1.5px solid var(--stone); border-radius: var(--radius); background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 3px var(--sky); }
.form input::placeholder, .form textarea::placeholder { color: #8B91A3; }
.form select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23182038' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 40px; }
.form .two { display: grid; gap: 22px; }
@media (min-width: 640px) { .form .two { grid-template-columns: 1fr 1fr; } }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border: 1.5px solid var(--stone); border-radius: var(--radius); font-weight: 500; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.seg input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--royal); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; color: var(--ink-2); font-weight: 400; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--royal); flex: none; }
.check a { color: var(--royal); }
.form .err { display: none; margin-top: 8px; color: #A2361F; font-size: .9rem; }
.form .is-invalid input, .form .is-invalid textarea, .form .is-invalid select { border-color: #A2361F; }
.form .is-invalid .err { display: block; }
.form__status { padding: 16px 18px; border-radius: var(--radius); background: var(--sand); display: none; }
.form__status.is-ok { display: block; background: var(--mist); border-left: 3px solid var(--royal); }
.form__status.is-err { display: block; background: #F8E9E4; border-left: 3px solid #A2361F; }
.form__done { display: none; padding: 32px; background: var(--mist); border-radius: var(--radius); }
.form__done.is-on { display: block; }
.form__done h3 { font-family: var(--serif); font-weight: 450; font-size: 1.8rem; }
.form__done p { margin-top: 10px; color: var(--ink-2); }
.hp { position: absolute; left: -9999px; }
.btn.is-busy { opacity: .7; pointer-events: none; }

.contact__side { display: grid; gap: 28px; }
.where { display: grid; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--stone); }
.where:first-child { border-top: 1px solid var(--stone); }
.where h3 { font-family: var(--serif); font-weight: 450; font-size: 1.35rem; line-height: 1.2; }
.where a { text-decoration: none; color: var(--ink); }
.where a:hover { color: var(--royal); }
.where .where__meta { color: var(--ink-2); font-size: .9375rem; }
.where .where__meta a, .nowrap { white-space: nowrap; }
.where .where__lic { color: var(--ink-3); font-size: .8125rem; }

/* ---------- 404 / legal ------------------------------------ */
.legal { color: var(--ink-2); }
.legal > * { max-width: 72ch; }
.legal h2 { font-family: var(--serif); font-weight: 450; font-size: 1.7rem; line-height: 1.2; margin-top: 40px; color: var(--ink); }
.legal h3 { font-weight: 600; font-size: 1.05rem; margin-top: 24px; color: var(--ink); }
.legal p { margin-top: 12px; }
.legal ul { margin-top: 10px; padding-left: 20px; list-style: disc; }
.legal li { margin-top: 6px; }
.legal a { color: var(--royal); }

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