/* Marlowe Residential: app shell. Header, cover, sheet, cards, detail, concierge, tab bar, request sheets. */

/* ---------- Wordmark lockup ---------- */
.wm { --wm: 22px; display: inline-flex; flex-direction: column; align-items: stretch; line-height: 1; color: inherit; width: max-content; }
.wm__name { font-family: var(--font-display); font-weight: 600; font-size: var(--wm); letter-spacing: -0.045em; line-height: 0.95; white-space: nowrap; }
.wm__rule { display: block; height: 1px; background: currentColor; opacity: 0.55; margin: calc(var(--wm) * 0.18) 0 calc(var(--wm) * 0.16); }
.wm__sub { font-size: calc(var(--wm) * 0.36); font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; white-space: nowrap; display: block; }

/* ---------- Header ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: var(--safe-t);
  color: var(--on-dark);
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out), transform 0.4s var(--ease-out);
}
.topbar__in { height: var(--topbar-h); display: flex; align-items: center; gap: 20px; }
.topbar[data-tone='glass'] { background: var(--glass-light-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); color: var(--ink); }
.topbar[data-tone='paper'] { color: var(--ink); }
.topbar[data-tone='dark'] { background: rgba(10, 12, 14, 0.62); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); color: var(--on-dark); }
.topbar[data-tone='clear'] .brand { filter: drop-shadow(0 1px 10px rgba(0, 10, 16, 0.35)); }
.desk-nav { display: none; }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topbar__cta { display: none; }
.call-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px 0 13px; border-radius: var(--r-pill);
  font-weight: 500; font-size: 14px;
  background: rgba(10, 12, 14, 0.4);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-dark-edge);
  transition: transform 0.18s var(--ease-out), background-color 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.call-pill:active { transform: scale(0.96); }
.call-pill .ico { width: 18px; height: 18px; }
.topbar:not([data-tone='clear']):not([data-tone='dark']) .call-pill { background: var(--accent); color: var(--on-dark); box-shadow: none; }
.topbar[data-tone='dark'] .call-pill { background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.22); }

@media (min-width: 900px) {
  .wm { --wm: 26px; }
  .desk-nav { display: flex; gap: 6px; margin-inline: auto; }
  .desk-nav a { height: 40px; padding: 0 16px; border-radius: var(--r-pill); display: inline-flex; align-items: center; font-size: 15px; font-weight: 500; color: inherit; opacity: 0.86; transition: opacity 0.2s, background-color 0.2s; }
  .desk-nav a:hover { opacity: 1; background: rgba(255, 255, 255, 0.12); }
  .topbar:not([data-tone='clear']):not([data-tone='dark']) .desk-nav a:hover { background: rgba(10, 12, 14, 0.06); }
  .desk-nav a[aria-current='page'] { opacity: 1; }
  .topbar[data-tone='clear'] .desk-nav a { text-shadow: 0 1px 12px rgba(0, 10, 16, 0.45); opacity: 1; }
  .topbar__actions { margin-left: 0; }
  .topbar__cta { display: inline-flex; background: var(--on-dark); color: var(--ink); box-shadow: none; }
  .topbar:not([data-tone='clear']):not([data-tone='dark']) .topbar__cta { background: var(--accent); color: var(--on-dark); }
  .call-pill { background: rgba(255, 255, 255, 0.12); }
  .topbar:not([data-tone='clear']):not([data-tone='dark']) .call-pill { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
}

/* ---------- Views ---------- */
.view[hidden] { display: none !important; }
.page-head { padding-top: calc(var(--topbar-h) + var(--safe-t) + 28px); padding-bottom: 20px; }
.page-head .lede { margin-top: 12px; }
@media (min-width: 900px) { .page-head { padding-top: calc(var(--topbar-h) + 64px); padding-bottom: 28px; } }
.view-pad { height: calc(var(--tabbar-h) + var(--safe-b) + 40px); }
@media (min-width: 900px) { .view-pad { height: 96px; } }

/* ---------- Cover ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; background: var(--hero-bg); color: #fff; isolation: isolate; }
.hero__media { position: absolute; inset: -4% 0 -4% 0; animation: heroIn 1.8s var(--ease-out); }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
@keyframes heroIn { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 200px; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(4, 10, 16, 0.5) 0%, rgba(4, 10, 16, 0) 100%); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(4, 10, 16, 0) 42%, rgba(4, 10, 16, 0.62) 100%); }
.hero__ui { position: absolute; inset: auto 0 0 0; z-index: 3; padding: 0 var(--gutter) 64px; animation: fadeUp 1s 0.4s var(--ease-out) both; }
.hero__wm { --wm: clamp(56px, 6.6vw, 112px); margin-bottom: 22px; }
.hero__wm .wm__rule { opacity: 0.7; }
.hero__title { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; font-size: clamp(22px, 2.1vw, 34px); margin: 0 0 24px; max-width: 24ch; text-wrap: balance; }
.hero__pill { background: var(--card); color: var(--ink); box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.6); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 599px) and (orientation: portrait) {
  /* Full screen on open, to the very bottom edge (iOS 26 Safari paints under its floating toolbar, so lvh). The sheet's rounded edge starts below the screen, so nothing peeks. */
  .hero { height: calc(100vh + 28px); height: calc(100lvh + 28px); min-height: 0; }
  .hero__photo { object-position: 58% 50%; }
  .hero__ui { padding-bottom: calc(28px + (100lvh - 100svh) + var(--tabbar-h) + var(--safe-b) + 30px); }
  .hero__wm { --wm: 15.5vw; margin-bottom: 18px; }
  .hero__title { font-size: min(5.6vw, 22px); margin-bottom: 20px; max-width: none; }
  .hero__pill { min-height: 50px; }
}
@media (min-width: 600px) and (max-width: 899px) { .hero__ui { padding-bottom: 56px; } }

/* ---------- Explore sheet ---------- */
.explore-sheet { position: relative; z-index: 5; background: var(--paper); }
@media (max-width: 599px) and (orientation: portrait) {
  .explore-sheet { margin-top: -28px; border-radius: 28px 28px 0 0; box-shadow: var(--shadow-sheet); }
}
.m-intro { padding-top: 34px; padding-bottom: 6px; }
.m-intro .eyebrow { margin: 0 0 12px; }
.m-title { font-size: min(7.2vw, 32px); }
.m-intro .lede { margin-top: 12px; font-size: 16px; }
@media (min-width: 600px), (orientation: landscape) { .m-intro { display: none; } }

.sec-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.sec-head .eyebrow { margin: 0; }
.sec-head .lede { margin-top: 2px; }
.sec-head__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 15px; white-space: nowrap; }
.sec-head__more .ico { width: 18px; height: 18px; }
@media (min-width: 900px) { .sec-head { flex-direction: row; align-items: flex-end; justify-content: space-between; margin-bottom: 44px; } .sec-head .lede { max-width: 40ch; } }

/* ---------- Home cards: the photo is the object ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 28px 16px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 44px 28px; } }
.grid > * { min-width: 0; }
.hcard { display: block; position: relative; -webkit-tap-highlight-color: transparent; transition: transform 0.3s var(--ease-out); }
.hcard:active { transform: scale(0.98); }
.hcard__link { position: absolute; inset: 0; z-index: 2; border-radius: 20px; }
.hcard__media { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow-card); transform: translateZ(0); transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out); }
.hcard__media::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(10, 12, 14, 0.06); pointer-events: none; }
.hcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
@media (hover: hover) { .hcard:hover .hcard__media { transform: translateY(-4px); box-shadow: var(--shadow-lift); } .hcard:hover .hcard__media img { transform: scale(1.035); } }
.hcard__body { padding: 14px 2px 0; }
.hcard__name { font-family: var(--font-display); font-weight: 500; font-size: 19px; line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.hcard__meta { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.hcard__price { margin: 8px 0 0; font-size: 16px; font-weight: 500; }
@media (max-width: 639px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .grid .hcard__media { aspect-ratio: 1 / 1; border-radius: 18px; }
  .hcard__body { padding: 10px 2px 0; }
  .hcard__name { font-size: min(15px, 4.1vw); letter-spacing: -0.015em; }
  .hcard__meta { font-size: 12.5px; line-height: 1.35; margin-top: 2px; }
  .hcard__price { font-size: 15px; margin-top: 5px; }
}

/* ---------- Doors ---------- */
.doors { display: grid; gap: 12px; }
@media (min-width: 760px) { .doors { grid-template-columns: 1fr 1fr; gap: 20px; } }
.door { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px 22px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card); text-align: left; cursor: pointer; transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out); -webkit-tap-highlight-color: transparent; }
.door:active { transform: scale(0.985); }
@media (hover: hover) { .door:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lift); } }
.door .eyebrow { margin: 0; }
.door h3 { font-size: clamp(22px, 2vw, 30px); }
.door p { margin: 0; color: var(--muted); font-size: 15px; max-width: 36ch; }
.door__go { margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; }
.door__go .ico { width: 18px; height: 18px; }
@media (min-width: 900px) { .door { padding: 36px 34px 32px; gap: 12px; } }

/* ---------- Neighborhoods ---------- */
.places { display: grid; gap: 12px; }
@media (min-width: 760px) { .places { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1100px) { .places { grid-template-columns: repeat(5, 1fr); gap: 20px; } }
.place { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow-card); color: #fff; isolation: isolate; -webkit-tap-highlight-color: transparent; transition: transform 0.3s var(--ease-out); }
.place:active { transform: scale(0.98); }
.place img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
@media (hover: hover) { .place:hover img { transform: scale(1.04); } }
.place::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 10, 16, 0) 45%, rgba(4, 10, 16, 0.7) 100%); pointer-events: none; }
.place__label { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; }
.place__label h3 { color: #fff; font-size: clamp(18px, 1.5vw, 22px); }
.place__label p { margin: 4px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, 0.82); line-height: 1.35; }
@media (max-width: 759px) {
  .places { grid-auto-flow: column; grid-auto-columns: 74vw; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .places::-webkit-scrollbar { display: none; }
  .place { scroll-snap-align: start; aspect-ratio: 5 / 6; }
}

/* ---------- Reviews, light ---------- */
.reviews__grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .reviews__grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
.review { margin: 0; padding: 26px 24px 24px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card); }
.review p { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(18px, 1.5vw, 23px); letter-spacing: -0.02em; line-height: 1.3; text-wrap: pretty; }
.review figcaption { margin-top: 16px; color: var(--muted); font-size: 14px; }
@media (min-width: 900px) { .review { padding: 36px 36px 32px; } }

/* ---------- Team ---------- */
.team { display: grid; gap: 14px; }
@media (min-width: 760px) { .team { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.person { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; min-width: 0; }
.person__media { aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow-card); }
.person__media img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: 18px; }
.person__role { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.person__line { margin: 8px 0 0; font-size: 14.5px; line-height: 1.45; text-wrap: pretty; }
@media (min-width: 760px) {
  .person { grid-template-columns: 1fr; gap: 0; align-items: start; }
  .person__media { border-radius: 20px; margin-bottom: 14px; }
  .person h3 { font-size: 21px; }
  .person__line { font-size: 15px; }
}

/* ---------- Talk band, dark ---------- */
.talk { background: var(--ink); color: var(--on-dark); }
.talk__in { display: flex; flex-direction: column; gap: 22px; }
.talk .lede { color: var(--on-dark-muted); }
.talk__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.talk .btn--paper { background: var(--on-dark); color: var(--ink); }
.talk .btn--line { color: var(--on-dark); box-shadow: inset 0 0 0 1px var(--line-dark); }
.talk .btn--line:hover { background: rgba(255, 255, 255, 0.06); }
@media (min-width: 900px) { .talk__in { flex-direction: row; align-items: flex-end; justify-content: space-between; } }

/* ---------- Footer ---------- */
.footer { padding: 56px 0 calc(var(--tabbar-h) + var(--safe-b) + 40px); border-top: 1px solid var(--line); }
.footer__in { display: grid; gap: 28px; }
.footer p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.footer h4 { margin: 0 0 10px; font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.footer__legal { margin-top: 20px; font-size: 13px; color: var(--muted-2); }
@media (min-width: 900px) { .footer { padding-bottom: 40px; } .footer__in { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; } }

/* ---------- Homes page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.empty { text-align: center; padding: 56px 0; max-width: 40ch; margin-inline: auto; }
.empty__ico { width: 64px; height: 64px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card); display: grid; place-items: center; margin: 0 auto 20px; }
.empty h2 { font-size: 24px; }
.empty p { color: var(--muted); margin: 10px 0 20px; }

/* ---------- Home detail ---------- */
.hd__media { position: relative; height: 58svh; min-height: 360px; background: var(--paper-2); overflow: hidden; }
.hd__media img { width: 100%; height: 100%; object-fit: cover; }
.hd__ctrl { position: fixed; left: 0; right: 0; top: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; padding: calc(var(--safe-t) + 10px) 14px 10px; transition: background-color 0.3s var(--ease-out), color 0.3s; }
.hd__ctrl .icon-btn { color: #fff; background: rgba(14, 16, 19, 0.34); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-dark-edge); }
.hd__ctrl-title { position: absolute; left: 72px; right: 72px; top: 50%; transform: translateY(calc(-50% + var(--safe-t) / 2)); text-align: center; font-weight: 500; font-size: 15px; opacity: 0; transition: opacity 0.3s; white-space: nowrap; overflow: hidden; }
.hd__ctrl.is-solid { background: var(--glass-light-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.hd__ctrl.is-solid .icon-btn { color: var(--ink); background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.hd__ctrl.is-solid .hd__ctrl-title { opacity: 1; }
.hd__sheet { position: relative; z-index: 3; background: var(--paper); margin-top: -28px; border-radius: 28px 28px 0 0; box-shadow: var(--shadow-sheet); padding-top: 28px; }
.hd__grid { display: grid; gap: 32px; }
.hd__main > .eyebrow { margin: 0 0 10px; display: block; }
.hd__title { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.03em; line-height: 1; font-size: clamp(30px, 4.6vw, 64px); margin: 0; white-space: nowrap; }
.hd__meta { color: var(--muted); margin: 10px 0 0; font-size: 16px; }
.hd__price { font-size: clamp(24px, 2.4vw, 34px); font-weight: 400; letter-spacing: -0.035em; margin: 14px 0 0; }
.hd__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 24px; }
.fact { padding: 12px 12px 14px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.fact strong { display: block; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.fact small { color: var(--muted); font-size: 12.5px; }
.hd__sec { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.hd__sec .h3 { margin-bottom: 16px; }
.hd__sec p { margin: 0; line-height: 1.6; max-width: 62ch; text-wrap: pretty; }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--paper-2); scroll-snap-align: start; box-shadow: var(--shadow-card); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.tags { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.tags li { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.tags .ico { width: 18px; height: 18px; flex: none; color: var(--muted); }
.hd__reserve { display: none; }
.hd__bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px var(--gutter) calc(12px + var(--safe-b)); background: var(--paper); box-shadow: 0 -1px 0 var(--line); }
.hd__bar strong { display: block; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.hd__bar small { color: var(--muted); font-size: 13px; }
.hd__bar .btn { min-height: 52px; flex: none; }
.hd__bar > div { min-width: 0; }
html.sheet-open .hd__bar { transform: translateY(140%); transition: transform 0.3s var(--ease-out); }
.hd__similar { padding-top: 48px; padding-bottom: calc(100px + var(--safe-b)); }
.hd__similar .sec-head { margin-bottom: 18px; }
@media (max-width: 899px) { body[data-route='home'] .topbar { display: none; } }
@media (min-width: 900px) {
  .hd { padding-top: calc(var(--topbar-h) + 24px); }
  .hd__media { height: 66vh; max-height: 760px; border-radius: var(--r-lg); width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--maxw) - 2 * var(--gutter)); margin-inline: auto; }
  .hd__ctrl { display: none; }
  .hd__sheet { margin-top: 0; border-radius: 0; box-shadow: none; padding-top: 44px; }
  .hd__grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 72px; align-items: start; }
  .hd__facts { max-width: 640px; gap: 10px; }
  .gallery { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; gap: 14px; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .hd__reserve { display: block; position: sticky; top: calc(var(--topbar-h) + 24px); padding: 24px; border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lift); }
  .hd__reserve .hd__price { margin: 0; }
  .hd__reserve .hd__meta { margin: 6px 0 20px; }
  .hd__reserve .btn { width: 100%; min-height: 52px; }
  .hd__reserve small { display: block; margin-top: 14px; color: var(--muted); font-size: 13px; text-align: center; }
  .hd__bar { display: none; }
  .hd__similar { padding-bottom: 96px; }
}

/* ---------- Ask (concierge) ---------- */
.cg__stage { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: calc(var(--topbar-h) + var(--safe-t) + 40px) var(--gutter) 88px; background: var(--hero-bg); color: var(--on-dark); isolation: isolate; overflow: hidden; }
@media (min-width: 900px) { .cg__stage { min-height: 92vh; padding-bottom: 120px; } }
.cg.has-query .cg__stage { min-height: 0; padding-bottom: 72px; }
.cg__bg { position: absolute; inset: 0; z-index: 0; }
.cg__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(6px) saturate(1.05); transform: scale(1.06); }
.cg__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 10, 16, 0.62) 0%, rgba(3, 10, 16, 0.7) 55%, rgba(3, 10, 16, 0.8) 100%); }
.cg__stage-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 900px; width: 100%; }
.cg__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 5.4vw, 84px); line-height: 1; letter-spacing: -0.035em; margin: 0; text-shadow: 0 1px 24px rgba(0, 10, 14, 0.45); }
.cg__lede { margin: 18px 0 28px; font-size: clamp(16px, 1.2vw, 19px); color: rgba(245, 244, 240, 0.94); max-width: 44ch; text-shadow: 0 1px 24px rgba(0, 10, 14, 0.45); text-wrap: balance; }
.cg__ask { position: relative; width: 100%; max-width: 780px; display: flex; align-items: flex-end; gap: 10px; padding: 9px 9px 9px 26px; border-radius: 34px; text-align: left; transition: box-shadow 0.3s var(--ease-out); }
.cg__ask:focus-within { box-shadow: var(--glass-dark-edge), 0 0 0 1px rgba(255, 255, 255, 0.28), 0 28px 70px -24px rgba(0, 0, 0, 0.7); }
.cg__ask textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 168px; padding: 10px 0; background: none; border: 0; outline: 0; resize: none; color: #fff; font-size: 17px; line-height: 1.4; }
.cg__ask textarea::placeholder { color: rgba(255, 255, 255, 0.6); }
.cg__send { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; flex: none; transition: transform 0.18s var(--ease-out); }
.cg__send:active { transform: scale(0.92); }
.cg__try { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 780px; }
.cg__try li { animation: fadeUp 0.6s var(--ease-out) both; }
.cg__try li:nth-child(2) { animation-delay: 0.06s; } .cg__try li:nth-child(3) { animation-delay: 0.12s; }
.cg__chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.22); color: #fff; font-size: 14px; font-weight: 500; text-align: left; transition: background-color 0.2s, transform 0.18s var(--ease-out); -webkit-tap-highlight-color: transparent; }
.cg__chip:hover { background: rgba(255, 255, 255, 0.18); }
.cg__chip:active { transform: scale(0.96); }
.cg.has-query .cg__try { display: none; }
@media (max-width: 899px) {
  .cg__ask { padding-left: 20px; border-radius: 30px; }
  .cg:not(.has-query) .cg__stage { min-height: 100vh; min-height: 100lvh; }
  .cg:not(.has-query) .cg__sheet, .cg:not(.has-query) + .view-pad { display: none; }
}
.cg__sheet { position: relative; z-index: 2; margin-top: -28px; padding-top: 30px; min-height: 30vh; background: var(--paper); border-radius: 28px 28px 0 0; box-shadow: var(--shadow-sheet); }
.cg:not(.has-query) .cg__answer { display: none; }
.cg__typing[hidden] { display: none; }
.cg__typing { display: inline-flex; gap: 5px; align-items: center; height: 28px; padding: 0 2px; }
.cg__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); animation: dot 1.1s infinite ease-in-out; }
.cg__typing i:nth-child(2) { animation-delay: 0.15s; } .cg__typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 80%, 100% { transform: translateY(0); opacity: 0.5; } 40% { transform: translateY(-5px); opacity: 1; } }
.cg__say { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.3vw, 34px); line-height: 1.15; letter-spacing: -0.03em; margin: 12px 0 10px; max-width: 32ch; text-wrap: balance; }
.cg__note { margin: 0 0 24px; color: var(--muted); max-width: 56ch; font-size: 15.5px; line-height: 1.5; }
.cg__results { display: grid; gap: 24px 12px; margin-bottom: 24px; }
.cg__results:empty { display: none; }
@media (min-width: 640px) { .cg__results { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; } }
@media (min-width: 1100px) { .cg__results { grid-template-columns: repeat(3, 1fr); } }
.cg__results[data-n='1'] { grid-template-columns: minmax(0, 420px); }
.cg__results .hcard { animation: fadeUp 0.5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 0.07s); }
.cg__act { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.cg__act:empty { display: none; }
.cg__human { margin-top: 36px; padding: 22px 22px 20px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card); display: flex; flex-direction: column; gap: 12px; }
.cg__human p { margin: 0; color: var(--muted); font-size: 15px; }
.cg__human h3 { font-size: 20px; }
@media (min-width: 900px) { .cg__human { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 32px; } }

/* ---------- Tab bar: dark floating pill, three icons, Ask in the middle ---------- */
.tabbar {
  position: fixed; left: 50%; bottom: calc(10px + var(--safe-b)); z-index: 60;
  display: flex; gap: 0; padding: 5px; border-radius: var(--r-pill);
  transform: translate3d(-50%, 0, 0);
  transform-origin: 50% 100%;
  background: rgba(14, 16, 19, 0.62);
  transition: transform 0.5s var(--ease-spring), opacity 0.3s;
}
.tabbar a { position: relative; width: 56px; height: 46px; display: grid; place-items: center; border-radius: var(--r-pill); color: var(--on-dark); transition: background-color 0.25s, transform 0.18s var(--ease-out); -webkit-tap-highlight-color: transparent; }
.tabbar a:active { transform: scale(0.9); }
.tabbar .ico { width: 24px; height: 24px; grid-area: 1 / 1; }
.tabbar .s { display: none; }
.tabbar a[aria-current='page'] { background: rgba(255, 255, 255, 0.06); }
.tabbar a[aria-current='page'] .o { display: none; }
.tabbar a[aria-current='page'] .s { display: block; }
.tabbar.is-compact { transform: translate3d(-50%, 4px, 0) scale(0.88); }
html.sheet-open .tabbar, body[data-route='home'] .tabbar { transform: translate3d(-50%, 150%, 0); }
@media (min-width: 900px) { .tabbar { display: none; } }

/* ---------- Request sheets (valuation, tour) ---------- */
.sheet-back { position: fixed; inset: 0; z-index: 70; background: rgba(6, 8, 10, 0.5); opacity: 0; transition: opacity 0.35s var(--ease-out); }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 71; max-height: calc(100% - var(--safe-t) - 24px); overflow: auto; background: var(--paper); border-radius: 28px 28px 0 0; box-shadow: var(--shadow-sheet); padding: 22px var(--gutter) calc(20px + var(--safe-b)); transform: translateY(104%); transition: transform 0.42s var(--ease-sheet); }
html.sheet-open .sheet-back { opacity: 1; }
html.sheet-open .sheet { transform: none; }
html.sheet-open { overflow: hidden; }
.sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sheet__head h2 { font-size: 24px; }
.sheet__head p { margin: 6px 0 0; color: var(--muted); font-size: 15px; max-width: 36ch; }
.sheet__close { color: var(--ink); background: rgba(10, 12, 14, 0.06); }
.sheet__home { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 18px; }
.sheet__home img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; }
.sheet__home strong { display: block; font-weight: 500; font-size: 15px; }
.sheet__home small { color: var(--muted); font-size: 13px; }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin: 0 0 6px 4px; }
.field input { width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 16px; outline: 0; transition: box-shadow 0.2s; }
.field input:focus { box-shadow: inset 0 0 0 1.5px var(--ink); }
.field .seg { width: 100%; }
.sheet__send { margin-top: 8px; min-height: 54px; }
.sheet__fine { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
@media (min-width: 900px) {
  .sheet { left: auto; top: 0; bottom: 0; width: 440px; max-height: none; border-radius: 0; padding: 32px 32px 32px; transform: translateX(104%); box-shadow: -18px 0 48px -24px rgba(10, 12, 14, 0.35); }
  .sheet__head h2 { font-size: 28px; }
}

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 26px); z-index: 80; transform: translate(-50%, 12px); opacity: 0; padding: 12px 18px; border-radius: var(--r-pill); background: var(--ink); color: var(--on-dark); font-size: 14px; font-weight: 500; white-space: nowrap; pointer-events: none; transition: opacity 0.3s, transform 0.3s var(--ease-out); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { .toast { bottom: 32px; } }

/* Large screens: a little more air so nothing reads cramped */
@media (min-width: 1900px) { .topbar__in, .hero__ui, .hd, .cg__stage-in { zoom: 1.15; } }
