/* IMA House and Memory Care, LLC — Direction A, Lamplight.
   Phone first. Breakpoints: 760px (tablet), 1040px (desktop). */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/assets/fonts/fraunces-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */
:root {
  --ivory: #FEF8EC;
  --lit: #FFF0CC;
  --shade: #F4E8D2;
  --honey: #DDB98A;
  --gold: #D4A339;
  --gold-lit: #E6C160;
  --brass: #76570F;
  --green: #024B27;
  --green-band: #01512B;
  --ivory-on-green: #FEF9EC;
  --mist: #B9CDBE;
  --ink: #2A2118;
  --ink-soft: #4A3F33;
  --umber: 34, 20, 8;
  --glow: 255, 205, 120;
  --cast: 92, 58, 20;
  --lamp-x: 25%;
  --lamp-y: 27%;
  --pad: clamp(20px, 5vw, 72px);
  --gap: clamp(28px, 4.4vw, 72px);
  --room: clamp(72px, 9vw, 144px);
  --header-h: 65px;
  --callbar-h: 56px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --face: "Fraunces", Georgia, serif;
  --face-plain: Georgia, "Times New Roman", serif;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--face);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 70;
  font-variant-numeric: lining-nums;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* the lamp pool spills past the photograph; never past the viewport */
main { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0; }
a { color: var(--green); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 3px;
}
.ftr a:focus-visible, .callbar:focus-visible { outline-color: var(--gold-lit); }
.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--green); color: var(--ivory);
  padding: 14px 20px; border-radius: 4px; font-size: 18px; text-decoration: none;
}
.skip:focus { top: 12px; outline: 3px solid var(--gold-lit); outline-offset: 2px; }

/* Fraunces draws "&" as an ornate form that reads like "®"; no OpenType feature in the
   file offers a plain one, so ampersands use a conventional serif ampersand. */
.amp { font-family: var(--face-plain); font-weight: 400; font-variation-settings: normal; font-size: .94em; }

/* ---------- type roles ---------- */
.eyebrow {
  margin: 0 0 14px;
  font-size: 16px; line-height: 1.4; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase; color: var(--brass);
}
.h1, .h2 {
  margin: 0; color: var(--green); font-weight: 400;
  letter-spacing: -.018em; line-height: 1.04;
  font-variation-settings: "SOFT" 100;
}
.h1 { font-size: clamp(38px, 10.8vw, 44px); line-height: 1.04; }
.h1 span, .h2 span { display: block; }
.visiting-head .h2 span { display: inline; }
.h2 { font-size: clamp(32px, 8.6vw, 38px); line-height: 1.08; }
.h3 { margin: 0 0 10px; color: var(--green); font-size: 26px; line-height: 1.2; font-weight: 500; letter-spacing: -.01em; }
.lead { font-size: 20px; line-height: 1.45; color: var(--ink); }
.body { max-width: 34em; }
.body + .body { margin-top: 1em; }
.note { font-size: 18px; color: var(--ink-soft); }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 30;
  background: var(--ivory);
  border-bottom: 1px solid rgba(221, 185, 138, .6);
}
.hdr-in {
  display: flex; align-items: center; gap: 12px;
  min-height: var(--header-h); padding: 8px 20px;
  max-width: 1440px; margin: 0 auto;
}
.logo { display: flex; align-items: center; flex: 0 0 auto; min-height: 48px; line-height: 0; }
.logo img { height: 44px; width: auto; max-width: none; }
.menu-btn {
  order: 2; margin-left: auto;
  min-height: 48px; min-width: 76px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; cursor: pointer;
  font: inherit; font-size: 20px; font-weight: 500; color: var(--green);
  text-decoration: underline; text-decoration-color: var(--gold);
  text-decoration-thickness: 2px; text-underline-offset: 7px;
}
.nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  flex-direction: column;
  background: var(--ivory); border-bottom: 1px solid var(--honey);
  padding: 4px 20px 12px;
  box-shadow: 0 30px 40px -24px rgba(var(--cast), .35);
}
.nav.is-open { display: flex; }
.nav a {
  display: flex; align-items: center; min-height: 54px;
  font-size: 21px; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid rgba(221, 185, 138, .55);
}
.nav a:last-child { border-bottom: 0; }
.nav a:hover { color: var(--green); }
.call {
  display: none; order: 1;
  align-items: center; justify-content: center;
  min-height: 48px; padding: 0 18px;
  background: var(--green); color: var(--ivory); border-radius: 4px;
  font-size: 18px; font-weight: 600; letter-spacing: .01em;
  font-variant-numeric: lining-nums tabular-nums;
  text-decoration: none; white-space: nowrap;
  transition: box-shadow .4s var(--ease);
}
.call-word { font-weight: 400; margin-right: .45em; }
.call:hover, .btn:hover { box-shadow: 0 0 0 6px rgba(var(--glow), .55); }

/* ---------- buttons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 58px; padding: 0 30px;
  background: var(--green); color: var(--ivory); border-radius: 4px;
  font-size: 20px; font-weight: 500; text-decoration: none; text-align: center;
  transition: box-shadow .4s var(--ease);
}

/* ---------- persistent call bar (phone only) ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: calc(var(--callbar-h) + env(safe-area-inset-bottom, 0px));
  padding: 0 max(14px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(14px, env(safe-area-inset-left, 0px));
  background: var(--green); color: var(--ivory); text-decoration: none; white-space: nowrap;
  font-size: clamp(15px, 4.5vw, 19px); font-weight: 500;
  box-shadow: 0 -10px 30px -12px rgba(var(--umber), .45);
}
.callbar-num { font-weight: 700; letter-spacing: .02em; font-variant-numeric: lining-nums tabular-nums; }

/* ---------- hero: the lamp lights the page ---------- */
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); overflow-x: clip; }
.hero-photo { position: relative; margin: 0; grid-row: 1; grid-column: 1; background: rgb(var(--umber)); }
.hero-photo img {
  position: relative; width: 100%;
  aspect-ratio: 4 / 5; max-height: 70svh;
  object-fit: cover; object-position: 5% 50%;
  animation: lamp-photo 2.8s var(--ease) both;
}
.hero-photo::after {
  content: ""; position: absolute; left: var(--lamp-x); top: var(--lamp-y);
  width: 38%; aspect-ratio: 1; transform: translate(-50%, -50%);
  pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(255, 232, 180, .5), rgba(255, 214, 140, .2) 45%, rgba(255, 214, 140, 0));
  animation: lamp-bloom 2.8s var(--ease) both;
}
.hero-text {
  grid-row: 2; grid-column: 1; position: relative;
  padding: 26px var(--pad) 8px;
  background: radial-gradient(ellipse 110% 100% at var(--lamp-x) 0, rgba(var(--glow), .34), rgba(var(--glow), .12) 55%, rgba(var(--glow), 0) 100%);
}
/* Eyebrow and h1 sit on the bottom of the photograph, over a soft umber scrim. */
.hero-head {
  position: absolute; left: 0; right: 0; bottom: 100%; z-index: 2;
  isolation: isolate;
  padding: 0 var(--pad) 26px;
}
.hero-head::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0;
  height: calc(100% + 190px);
  background: linear-gradient(to bottom,
    rgba(var(--umber), 0) 0%,
    rgba(var(--umber), .42) 24%,
    rgba(var(--umber), .74) 42%,
    rgba(var(--umber), .86) 62%,
    rgba(var(--umber), .88) 100%);
}
.hero-head .eyebrow { color: var(--gold-lit); margin-bottom: 12px; font-size: 14px; letter-spacing: .04em; text-shadow: 0 1px 8px rgba(var(--umber), .6); }
.hero-head .eyebrow .dot { display: none; }
.hero-head .eyebrow span { display: block; }
.hero-head .h1 { color: var(--ivory); line-height: 1.02; text-shadow: 0 2px 18px rgba(var(--umber), .55); }
.hero-text .lead { margin-top: 0; max-width: 24em; }
.hero-text .btn { margin-top: 24px; }
.licence { margin-top: 22px; font-size: 18px; line-height: 1.5; color: var(--ink); }
.licence strong { display: block; font-weight: 600; color: var(--green); }

@keyframes lamp-photo { from { filter: brightness(.8) saturate(.82); } to { filter: none; } }
@keyframes lamp-pool { from { opacity: .15; } to { opacity: 1; } }
@keyframes lamp-bloom { from { opacity: 0; } to { opacity: 1; } }

/* ---------- figures ---------- */
.figs { list-style: none; margin: 0; padding: 30px var(--pad) 0; }
.figs li {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--gold);
}
.figs li:last-child { border-bottom: 1px solid var(--gold); }
.figs b {
  flex: 0 0 104px; font-size: 58px; line-height: 1; font-weight: 300;
  letter-spacing: -.03em; color: var(--green); font-variation-settings: "SOFT" 100;
}
.figs b small {
  display: block; margin-top: 2px; font-size: 19px; font-weight: 400;
  letter-spacing: 0; line-height: 1.1;
}
.figs span { font-size: 19px; line-height: 1.3; }

/* ---------- sections ---------- */
.sec { padding: var(--room) 0; scroll-margin-top: calc(var(--header-h) + 12px); }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
.lit { background: linear-gradient(100deg, var(--lit) 0%, var(--ivory) 46%, var(--shade) 100%); }
.shot { margin: 0; }
.shot img {
  width: 100%; border-radius: 2px;
  box-shadow: 10px 22px 44px -22px rgba(var(--cast), .5), 3px 5px 12px -8px rgba(var(--cast), .35);
}
.shot figcaption {
  margin-top: 14px; font-size: 18px; line-height: 1.4; color: var(--ink-soft);
  padding-left: 14px; border-left: 2px solid var(--gold);
}

/* owners */
.owners { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.owners .shot { margin: 0 calc(var(--pad) * -1); }
.owners .shot img { border-radius: 0; }
.owners .h2 { margin-bottom: 24px; }
.people { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; margin: 36px 0 0; padding: 0; }
.people div { padding-top: 18px; border-top: 2px solid var(--gold); }
.people dt { font-size: 27px; line-height: 1.15; font-weight: 500; color: var(--green); letter-spacing: -.01em; }
.people dd { margin: 6px 0 0; font-size: 18px; line-height: 1.45; }
.people dd + dd { margin-top: 0; color: var(--ink-soft); }

/* rooms */
.rooms-text .h2 { margin-bottom: 22px; }
.rooms-text .lead { color: var(--green); max-width: 22em; margin-bottom: 18px; }
.cluster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 44px; }
.cluster .shot.wide, .cluster .shot.low { margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); }
.cluster .shot.wide img, .cluster .shot.low img { border-radius: 0; }
.cluster .shot.wide figcaption, .cluster .shot.low figcaption { margin-left: var(--pad); }
.cluster .tall { width: 78%; margin-left: auto; }

/* gallery */
.gallery-head { margin-bottom: 36px; }
.gallery-head .h2 { margin-bottom: 20px; }
.gallery { display: flex; flex-direction: column; gap: 28px; }
/* Phone: landscapes and the kitchen portrait take the full column; the other portraits pair up. */
.g-row { display: flex; flex-wrap: wrap; gap: 28px 14px; align-items: flex-start; }
.g-pair { display: flex; gap: 14px; flex: 1 1 100%; align-items: flex-start; }
.gi { margin: 0; min-width: 0; flex: 1 1 100%; }
.gi-link { display: block; line-height: 0; border-radius: 2px; }
.gi-link img {
  width: 100%; border-radius: 2px;
  box-shadow: 8px 14px 30px -16px rgba(var(--cast), .5), 2px 4px 10px -6px rgba(var(--cast), .35);
}
.gi figcaption { margin-top: 10px; font-size: 18px; line-height: 1.35; color: var(--ink-soft); padding-left: 12px; border-left: 2px solid var(--gold); }
/* Grow factors are the photographs' width/height ratios, so every row is justified to one height. */
.g-pair .gi.ar-p { flex: .749 1 0; }
.g-pair .gi.ar-pn { flex: .565 1 0; }
.g-pair .gi.ar-po { flex: .729 1 0; }
.gi-link:focus-visible { outline-offset: 4px; }

/* specialties */
.spec { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.spec-block + .spec-block { margin-top: 44px; }
.spec-block .h3 { margin-bottom: 12px; }
.rule-list { list-style: none; margin: 22px 0 0; padding: 0; border-bottom: 1px solid var(--honey); max-width: 34em; }
.rule-list li { padding: 14px 0; border-top: 1px solid var(--honey); line-height: 1.4; }

/* care lists */
.care { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.care-intro .h2 { margin-bottom: 22px; }
.care-list { margin: 0; padding: 0; border-bottom: 1px solid var(--honey); }
.care-list div { padding: 24px 0 26px; border-top: 1px solid var(--honey); }
.care-list dt { font-size: 25px; line-height: 1.2; font-weight: 500; color: var(--green); letter-spacing: -.01em; }
.care-list dd { margin: 10px 0 0; max-width: 34em; }

/* visiting services */
.visiting { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.visiting-head .h2 { margin-bottom: 22px; }
.visiting-head .lead { max-width: 30em; }
.fine {
  font-size: 18px; line-height: 1.6; color: var(--ink-soft); max-width: 48em;
  padding-left: 14px; border-left: 2px solid var(--gold);
}

/* referrals */
.refer { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.refer .h2 { margin-bottom: 22px; }
.refer .note { margin-top: 1em; max-width: 34em; }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.contact .h2 { margin-bottom: 22px; }
.contact .shot { margin: 0 calc(var(--pad) * -1); }
.contact .shot img { border-radius: 0; }
.faq { margin-top: 30px; border-bottom: 1px solid var(--honey); }
.faq details { border-top: 1px solid var(--honey); }
.faq summary {
  display: list-item; list-style-position: inside; cursor: pointer;
  min-height: 56px; padding: 14px 0; line-height: 1.3;
  font-size: 21px; font-weight: 500; color: var(--green);
}
.faq summary::marker { color: var(--green); }
.faq details p { padding: 0 0 20px; max-width: 34em; }
.who { margin-top: 34px; font-size: 18px; }
.who strong { display: block; font-size: 22px; font-weight: 500; color: var(--green); }
.facts { margin: 22px 0 0; padding: 0; border-bottom: 1px solid var(--honey); }
.facts div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 14px 0; border-top: 1px solid var(--honey); }
.facts dt { font-size: 16px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--brass); }
.facts dd { margin: 0; font-size: 22px; line-height: 1.35; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere; }
.facts address { font-style: normal; }
.facts dd a { display: inline-flex; align-items: center; min-height: 48px; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.facts .big a { font-size: clamp(34px, 9vw, 40px); font-weight: 400; letter-spacing: -.02em; line-height: 1.1; }
.contact .btn { margin-top: 30px; }

/* footer */
.ftr {
  background: var(--green-band); color: var(--ivory-on-green);
  padding: 44px var(--pad) calc(48px + var(--callbar-h) + env(safe-area-inset-bottom, 0px));
}
.ftr-in { max-width: 1296px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.ftr img { height: 62px; width: auto; }
.ftr p { font-size: 18px; line-height: 1.55; }
.ftr p + p { color: var(--gold-lit); }
.ftr .build { margin-top: 10px; font-size: 15px; color: var(--mist); letter-spacing: .02em; }

/* lightbox */
.lb {
  padding: 0; border: 0; background: var(--ivory); color: var(--ink);
  width: min(1180px, 100vw); max-width: 100vw; max-height: 100svh;
  margin: auto; border-radius: 2px; overflow: hidden;
}
.lb::backdrop { background: rgba(var(--umber), .9); }
.lb-in { padding: 12px 12px 8px; }
.lb-fig { margin: 0; }
.lb-img { margin: 0 auto; width: auto; height: auto; max-width: 100%; max-height: calc(100svh - 190px); object-fit: contain; }
.lb-fig figcaption { display: flex; justify-content: space-between; gap: 16px; padding: 12px 4px 0; font-size: 18px; line-height: 1.35; }
.lb-count { color: var(--ink-soft); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.lb-bar { display: flex; gap: 8px; padding: 6px 0 4px; }
.lb-bar button {
  flex: 1 1 0; min-height: 52px; padding: 0 12px; cursor: pointer;
  font: inherit; font-size: 19px; font-weight: 500; color: var(--green);
  background: transparent; border: 0; border-top: 2px solid var(--gold);
}
.lb-bar button:hover { background: var(--lit); }
html:has(dialog[open]) { overflow: hidden; }

/* ---------- 404 ---------- */
.nf { padding: 72px var(--pad) 120px; max-width: 760px; margin: 0 auto; }
.nf .build { margin-top: 48px; font-size: 15px; color: var(--ink-soft); letter-spacing: .02em; }
.nf .h1 { margin-bottom: 20px; }
.nf .btn { width: auto; display: inline-flex; margin-top: 28px; }

/* ---------- phone only: the fixed call bar does this job ---------- */
@media (max-width: 759px) {
  .hero-text .btn { display: none; }
}

/* ---------- tablet (760px+) ---------- */
@media (min-width: 760px) {
  :root { --header-h: 80px; --lamp-x: 17.5%; --lamp-y: 24%; }
  body { font-size: 19px; }
  .eyebrow { font-size: 16px; margin-bottom: 18px; }
  .hero-head .eyebrow { font-size: 16px; letter-spacing: .11em; }
  .hdr-in { padding: 10px var(--pad); gap: 14px; }
  .logo img { height: 54px; }
  .call { display: inline-flex; margin-left: auto; }
  .menu-btn { margin-left: 0; }
  .callbar { display: none; }
  .ftr { padding-bottom: 56px; }
  .h1 { font-size: clamp(48px, 7.2vw, 62px); }
  .h2 { font-size: clamp(36px, 4.6vw, 50px); }
  .lead { font-size: clamp(21px, 2.3vw, 25px); }
  .btn { width: auto; display: inline-flex; }

  .hero-photo img { aspect-ratio: 3 / 2; max-height: 70svh; object-position: 0 50%; }
  .hero-head { padding-bottom: 36px; }
  .hero-head::before { height: calc(100% + 200px); }
  .hero-head .eyebrow span { display: inline; }
  .hero-head .eyebrow .dot { display: inline; }
  .hero-text { padding-top: 36px; padding-bottom: 12px; }
  .hero-text .lead { max-width: 28em; }
  .hero-text .btn { margin-top: 28px; }

  .figs { display: flex; gap: 0; padding-top: 44px; max-width: 1440px; margin: 0 auto; }
  .figs li { flex: 1 1 0; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); padding: 22px 20px 24px 0; gap: 16px; }
  .figs li + li { padding-left: 28px; border-left: 1px solid var(--honey); }
  .figs li:last-child { flex-grow: 1.5; }
  .figs b { flex: 0 0 auto; font-size: clamp(56px, 6.2vw, 92px); }
  .figs b small { display: inline; margin: 0 0 0 .2em; font-size: .38em; }
  .figs span { max-width: 10em; font-size: 19px; }

  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }

  .cluster { grid-template-columns: minmax(0, 1.331fr) minmax(0, .749fr); gap: 48px 32px; margin-top: 64px; }
  .cluster .shot.wide, .cluster .shot.low { margin-left: 0; margin-right: 0; }
  .cluster .shot.wide img, .cluster .shot.low img { border-radius: 2px; }
  .cluster .shot.wide figcaption, .cluster .shot.low figcaption { margin-left: 0; }
  /* Row 1: bedroom and bathroom share one height. Row 2: kitchen, right edge level with the bathroom. */
  .cluster .wide { grid-column: 1; grid-row: 1; }
  .cluster .tall { grid-column: 2; grid-row: 1; width: auto; margin: 0; }
  .cluster .low { grid-column: 1 / -1; grid-row: 2; justify-self: end; width: 57%; }

  .gallery { gap: 40px; }
  .g-row { gap: 40px 24px; }
  .g-pair { display: contents; }
  .g-row .gi.ar-l { flex: 1.332 1 0; }
  .g-row .gi.ar-p { flex: .749 1 0; }
  .g-row .gi.ar-pn { flex: .565 1 0; }
  .g-row .gi.ar-po { flex: .729 1 0; }

  .care-list div { display: grid; grid-template-columns: minmax(0, 12em) minmax(0, 1fr); gap: 8px 36px; align-items: baseline; }
  .care-list dd { margin: 0; }
  .svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); border-bottom: 0; }
  .svc-list div { display: block; border-bottom: 0; }
  .svc-list dd { margin-top: 10px; }
  .facts div { grid-template-columns: 9.5em minmax(0, 1fr); align-items: baseline; gap: 16px; }
  .facts .big a { font-size: clamp(34px, 3.4vw, 46px); }
  .ftr-in { flex-wrap: nowrap; }
  .lb-in { padding: 20px 24px 12px; }
  .lb { width: min(1180px, 94vw); max-height: 94svh; }
  .lb-img { max-height: calc(94svh - 200px); }
  .lb-bar { gap: 16px; }
}

/* ---------- desktop (1040px+) ---------- */
@media (min-width: 1040px) {
  :root { --lamp-x: 17.5%; --lamp-y: 27%; }
  .menu-btn { display: none; }
  .nav {
    display: flex; flex-direction: row; position: static; order: 0; margin-left: auto;
    padding: 0; border: 0; box-shadow: none; background: transparent;
    gap: clamp(4px, 1.2vw, 22px);
  }
  .nav a { min-height: 48px; padding: 0 8px; font-size: 18px; border: 0; position: relative; }
  .nav a::after {
    content: ""; position: absolute; left: 8px; right: 8px; bottom: 8px; height: 2px;
    background: var(--gold); transform: scaleX(0); transform-origin: left;
    transition: transform .5s var(--ease);
  }
  .nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
  .call { margin-left: 12px; padding: 0 20px; min-height: 50px; }
  .sec { scroll-margin-top: 92px; }

  .hero {
    grid-template-columns: minmax(0, 4.7fr) minmax(0, 7.3fr); align-items: center;
    column-gap: clamp(32px, 4vw, 64px); padding: 36px 0 0 var(--pad);
    max-width: 1440px; margin: 0 auto; overflow-x: visible;
  }
  .hero-text { grid-row: 1; grid-column: 1; padding: 0 0 12px; background: none; }
  .hero-photo { grid-row: 1; grid-column: 2; background: none; }
  .hero-photo img {
    aspect-ratio: 1536 / 1153; max-height: none; object-position: 50% 50%;
    border-radius: 2px 0 0 2px; box-shadow: 0 34px 70px -34px rgba(var(--cast), .6);
  }
  .hero-photo::before {
    content: ""; position: absolute; z-index: -1; left: var(--lamp-x); top: var(--lamp-y);
    width: 190%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none;
    background: radial-gradient(closest-side, rgba(var(--glow), .7), rgba(var(--glow), .42) 30%, rgba(var(--glow), .2) 55%, rgba(var(--glow), .07) 78%, rgba(var(--glow), 0));
    animation: lamp-pool 2.8s var(--ease) both;
  }
  .hero-head { position: static; padding: 0; isolation: auto; }
  .hero-head::before { content: none; }
  .hero-head .eyebrow { color: var(--brass); margin-bottom: 22px; text-shadow: none; }
  .hero-head .eyebrow span { display: block; }
  .hero-head .eyebrow .dot { display: none; }
  .hero-head .h1 { color: var(--green); text-shadow: none; line-height: 1.04; font-size: clamp(48px, 4.3vw, 62px); }
  .hero-text .lead { margin-top: 26px; max-width: 24em; }
  .hero-text .btn { margin-top: 34px; }
  .licence { margin-top: 28px; }
  .figs { padding-top: 56px; }

  .owners { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
  .owners .shot { margin: 0 0 0 calc(var(--pad) * -1); }
  .owners .shot img { border-radius: 0 2px 2px 0; }
  .rooms-text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--gap); align-items: start; }
  .rooms-text .h2 { margin-bottom: 0; }
  .rooms-text .eyebrow { grid-column: 1 / -1; }

  .gallery-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--gap); align-items: end; margin-bottom: 56px; }
  .gallery-head .eyebrow { grid-column: 1 / -1; }
  .gallery-head .h2 { margin-bottom: 0; }
  .gallery { gap: 48px; }
  .g-row { gap: 48px 28px; }

  .spec { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .spec-intro { position: sticky; top: 128px; align-self: start; }
  .care { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .care-intro { position: sticky; top: 128px; align-self: start; }
  .visiting { gap: 56px; }
  .visiting-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--gap); align-items: start; }
  .visiting-head .eyebrow { grid-column: 1 / -1; }
  .visiting-head .h2 { margin-bottom: 0; }
  .visiting-head .h2 span { display: block; }
  .refer { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .contact { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: start; }
  .contact .shot { margin: 0 calc(var(--pad) * -1) 0 0; position: sticky; top: 120px; }
  .contact .shot img { border-radius: 2px 0 0 2px; }
  .lb-img { max-height: calc(94svh - 200px); }
}

/* ---------- very narrow phones ---------- */
@media (max-width: 359px) {
  .hdr-in { padding-left: 14px; padding-right: 14px; gap: 8px; }
  .logo img { height: 40px; }
  .figs b { flex-basis: 92px; font-size: 52px; }
  .hero-head .eyebrow { font-size: 13.5px; letter-spacing: .05em; }
  .callbar { padding-left: 12px; padding-right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo img, .hero-photo::before, .hero-photo::after { animation: none; }
  .call, .btn, .nav a::after { transition: none; }
}
