
/* Layout: a calm, plain site that answers a student's and a parent's questions in
   the order they ask them. No badges, no chips, no eyebrows: words and photos. */

/* ---------- tokens · layer 1: primitives ---------- */
:root {
  --pine-950: #0E1311;
  --pine-800: #1E2A25;
  --paper-100: #EFECE5;
  --paper-50: #F8F6F1;
  --white: #FFFFFF;
  --stone-600: #5F5C55;
  --stone-300: #BDB8AC;
  --marigold-400: #FFC21A;
  --marigold-100: #FFF1C7;
  --oxblood-800: #4A1B1F;
  --cream-50: #FFF8E8;
  --leaf-700: #2F6B45;
  --amber-700: #8A5A00;

  --font-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-14: .875rem; --fs-16: 1rem; --fs-18: 1.125rem; --fs-20: 1.25rem; --fs-24: 1.5rem; --fs-32: 2rem;
  --fs-48: clamp(2.25rem, 4.8vw, 3.25rem); --fs-hero: clamp(2.9rem, 6.6vw, 5.4rem);
  --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem; --sp-6: 1.5rem; --sp-8: 2rem; --sp-12: 3rem; --sp-16: 4rem;
  --radius: 10px;
  --ease: cubic-bezier(.22, 1, .36, 1);

/* ---------- layer 2: semantic ---------- */
  --c-bg: var(--paper-100);
  --c-surface: var(--paper-50);
  --c-raised: var(--white);
  --c-ink: var(--pine-950);
  --c-ink-soft: var(--stone-600);          /* 6:1 on paper */
  --c-dark: var(--pine-950);
  --c-on-dark: var(--cream-50);
  --c-on-dark-soft: var(--stone-300);
  --c-accent: var(--marigold-400);
  --c-accent-wash: var(--marigold-100);
  --c-band: var(--oxblood-800);
  --c-on-band: var(--cream-50);
  --c-on-band-soft: rgba(255, 248, 232, .74);
  --c-open: var(--leaf-700);
  --c-filling: var(--amber-700);
  --c-error: #A33A22;
  --c-line: rgba(14, 19, 17, .12);
  --c-line-strong: rgba(14, 19, 17, .28);
  --c-line-dark: rgba(255, 248, 232, .18);

/* ---------- layer 3: components ---------- */
  --btn-h: 48px;
  --btn-radius: 8px;
  --btn-bg: var(--c-ink); --btn-fg: var(--c-surface);
  --field-bg: var(--c-raised);
  --hot-size: 44px;

  --gut-l: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--c-bg); color: var(--c-ink); font: 400 var(--fs-16)/1.6 var(--font-text); font-variation-settings: "wdth" 100; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 4px; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }
.tnum { font-variant-numeric: tabular-nums; }
.display { font-family: var(--font-display); font-variation-settings: "wdth" 72; font-weight: 760; letter-spacing: -.015em; line-height: .98; }
.wrap { max-width: 76rem; margin-inline: auto; padding-left: var(--gut-l); padding-right: var(--gut-r); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mark { background: linear-gradient(transparent 62%, var(--c-accent) 62%, var(--c-accent) 92%, transparent 92%); padding: 0 .06em; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: var(--btn-h); padding: 0 1.3rem; border-radius: var(--btn-radius); border: 0;
  background: var(--btn-bg); color: var(--btn-fg); font: 600 var(--fs-16)/1 var(--font-text); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), transform .15s var(--ease); }
.btn:hover { background: var(--pine-800); }
.btn:active { transform: scale(.97); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn.busy { pointer-events: none; color: transparent; position: relative; }
.btn.busy .arr { opacity: 0; }
.btn .al { position: absolute; left: 50%; top: 50%; width: 18px; height: 24px; margin: -12px 0 0 -9px; color: var(--pine-950); }
.btn .al .lv { fill: var(--pine-950); }
.btn.accent { background: var(--c-accent); color: var(--pine-950); }
.btn.accent:hover { background: #F2B200; }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px var(--c-line-strong); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px currentColor; background: transparent; }
.btn svg { width: 18px; height: 18px; flex: none; }
.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: var(--c-accent); }
.link:hover { text-decoration-thickness: 3px; }

/* ================= loader ================= */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--c-dark); color: var(--c-on-dark); display: grid; place-items: center; transition: transform .9s cubic-bezier(.76, 0, .24, 1), opacity .35s ease; }
.loader.lift { transform: translateY(-100%); }
.loader.fade { opacity: 0; pointer-events: none; }
.loader .lock { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
/* all CSS, so the mark is already moving while the rest of the page is still downloading */
.loader svg { width: 52px; height: 68px; }
.loader .arch { fill: none; stroke: var(--c-on-dark); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw 1.1s var(--ease) .1s forwards; }
.loader .arch.b { animation-delay: .45s; }
.loader .glow { fill: var(--c-accent); opacity: 0; animation: glow 1.6s ease 1s infinite alternate; }
.loader .word { display: flex; overflow: hidden; font-family: var(--font-display); font-variation-settings: "wdth" 62; font-weight: 820; font-size: clamp(4rem, 13vw, 9rem); line-height: .86; letter-spacing: -.01em; }
.loader .word i { font-style: normal; display: inline-block; transform: translateY(105%); animation: rise-in .8s var(--ease) forwards; animation-delay: calc(.15s + var(--n) * 60ms); }
.loader .word i.sp { width: .22em; }
.loader .tag { font-size: var(--fs-16); color: var(--c-on-dark-soft); opacity: 0; transform: translateY(8px); animation: rise-in .6s var(--ease) .9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes glow { from { opacity: .3; } to { opacity: .9; } }
@keyframes rise-in { to { opacity: 1; transform: none; } }
.loader .meter { position: absolute; left: max(1.5rem, env(safe-area-inset-left, 0px)); right: max(1.5rem, env(safe-area-inset-right, 0px)); bottom: max(1.5rem, env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; color: var(--c-on-dark-soft); font-size: var(--fs-14); }
.loader .bar { height: 2px; background: var(--c-line-dark); position: relative; overflow: hidden; border-radius: 2px; }
.loader .bar i { position: absolute; inset: 0; background: var(--c-accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.loader .pct { color: var(--c-on-dark); min-width: 4ch; text-align: right; }

/* ================= header ================= */
.top { position: sticky; top: 0; z-index: 40; background: rgba(239,236,229,.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease); }
.top.scrolled { background: rgba(239,236,229,.95); border-color: var(--c-line); box-shadow: 0 10px 30px -24px rgba(14,19,17,.5); }
.top .wrap { display: flex; align-items: center; gap: var(--sp-8); min-height: 76px; transition: min-height .3s var(--ease); }
.top.scrolled .wrap { min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; min-height: 44px; }
.brand svg { width: 18px; height: 24px; transition: transform .4s var(--ease); }
.brand:hover svg { transform: translateY(-2px); }
.brand b { font-family: var(--font-display); font-variation-settings: "wdth" 80; font-weight: 750; font-size: 1.2rem; letter-spacing: .01em; }
.nav { display: flex; gap: 1.6rem; margin-right: auto; }
.nav a { position: relative; text-decoration: none; font-weight: 500; color: var(--c-ink-soft); min-height: 44px; display: inline-flex; align-items: center; transition: color .2s var(--ease); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; border-radius: 2px; background: var(--c-accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover, .nav a[aria-current="true"] { color: var(--c-ink); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.top .wa { text-decoration: none; display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; }
.top .wa svg { width: 22px; height: 22px; }
.top .wa > span { display: flex; flex-direction: column; line-height: 1.2; }
.top .wa b { font-weight: 600; }
.top .wa small, .sheet small { font-size: .78rem; color: var(--c-ink-soft); display: inline-flex; align-items: center; gap: .4rem; }
[data-live].on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c-open); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(47,107,69,.45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(47,107,69,0); } }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; border-radius: 8px; }
.burger i { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--c-ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.burger i:first-child { top: 17px; } .burger i:last-child { top: 25px; }
.burger[aria-expanded="true"] i:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { top: 21px; transform: rotate(-45deg); }
.sheet { position: absolute; left: 0; right: 0; top: 100%; display: flex; flex-direction: column; padding: var(--sp-2) var(--gut-r) var(--sp-6) var(--gut-l); background: var(--c-bg); border-bottom: 1px solid var(--c-line); box-shadow: 0 30px 40px -30px rgba(14,19,17,.4);
  opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s; }
.sheet.open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.sheet a:not(.btn) { padding: .95rem 0; border-bottom: 1px solid var(--c-line); font-size: var(--fs-20); font-weight: 600; text-decoration: none; }
.sheet .btn { margin-top: var(--sp-3); }
.sheet small { margin-top: var(--sp-4); justify-content: center; }
@media (max-width: 1180px) { .top .wa { display: none; } }
@media (max-width: 900px) { .nav, .top .wrap > .btn { display: none; } .burger { display: block; } .brand { margin-right: auto; } }
@media (min-width: 901px) { .sheet { display: none; } }

/* ================= hero ================= */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 7vw, 5.5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero-photo { max-width: 30rem; } }
.hero h1 { font-size: var(--fs-hero); }
.hero .lead { font-size: var(--fs-20); line-height: 1.5; color: var(--c-ink-soft); margin-top: var(--sp-6); max-width: 34rem; }

.search { margin-top: var(--sp-8); display: grid; grid-template-columns: 1fr 1fr auto; gap: var(--sp-3); align-items: end; padding: var(--sp-4); background: var(--c-raised); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(14,19,17,.06), 0 12px 40px -20px rgba(14,19,17,.3); max-width: 38rem; }
@media (max-width: 560px) { .search { grid-template-columns: 1fr; } }
.search label { display: flex; flex-direction: column; gap: .35rem; font-size: var(--fs-14); font-weight: 600; min-width: 0; }
.search select { font: 400 var(--fs-16)/1.3 var(--font-text); color: var(--c-ink); background: var(--c-bg); border: 1.5px solid transparent; border-radius: var(--btn-radius); padding: .7rem 2.2rem .7rem .8rem; min-height: var(--btn-h); width: 100%; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%230E1311' stroke-width='1.6'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; background-size: 11px; }
.search select:focus { outline: none; border-color: var(--c-ink); }

.avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: var(--fs-16); color: var(--pine-950); background: var(--c-accent-wash); }
.trust { display: flex; align-items: center; gap: var(--sp-4); margin-top: var(--sp-6); max-width: 38rem; color: var(--c-ink-soft); }
.faces { display: flex; flex: none; }
.faces .avatar { width: 38px; height: 38px; font-size: .75rem; box-shadow: 0 0 0 3px var(--c-bg); }
.faces .avatar + .avatar { margin-left: -6px; }

.hero-photo { position: relative; }
.arch-frame { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; background: var(--c-dark); }
.arch-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero-photo figcaption { margin-top: var(--sp-3); font-size: var(--fs-14); color: var(--c-ink-soft); }

/* ================= sections ================= */
.section { padding-block: clamp(4.5rem, 9vw, 7rem); }
.section + .section { border-top: 1px solid var(--c-line); }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-8); align-items: end; }
@media (max-width: 820px) { .head { grid-template-columns: 1fr; gap: var(--sp-4); } }
.head h2 { font-size: var(--fs-48); }
.lede { font-size: var(--fs-18); line-height: 1.6; color: var(--c-ink-soft); max-width: 34rem; }

/* broker vs EDU Stay + savings */
.versus { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 3rem); margin-top: var(--sp-12); align-items: start; }
@media (max-width: 900px) { .versus { grid-template-columns: 1fr; } }
.compare { width: 100%; border-collapse: collapse; background: var(--c-raised); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--c-line); }
.compare th, .compare td { text-align: left; padding: 1rem 1.1rem; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.compare thead th { font-size: var(--fs-14); font-weight: 600; color: var(--c-ink-soft); background: var(--c-surface); }
.compare thead th:last-child { color: var(--c-ink); background: var(--c-accent-wash); }
.compare td:last-child { background: rgba(255, 241, 199, .45); font-weight: 600; }
.compare tbody th { font-weight: 500; color: var(--c-ink-soft); width: 30%; }
.compare tr:last-child > * { border-bottom: 0; }
.calc { background: var(--c-dark); color: var(--c-on-dark); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2rem); display: flex; flex-direction: column; gap: var(--sp-4); }
.calc h3 { font-size: var(--fs-24); font-weight: 650; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: rgba(255,248,232,.08); border-radius: var(--btn-radius); }
.seg button { min-height: 44px; border: 0; border-radius: 6px; background: transparent; color: var(--c-on-dark-soft); font: 600 var(--fs-16)/1 var(--font-text); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--c-on-dark); color: var(--c-dark); }
.calc label { display: flex; flex-direction: column; gap: .4rem; font-size: var(--fs-14); color: var(--c-on-dark-soft); }
.calc .rng { display: flex; align-items: center; gap: var(--sp-3); }
.calc input[type="range"] { flex: 1; accent-color: var(--c-accent); min-height: 44px; }
.calc output { min-width: 6.5ch; text-align: right; color: var(--c-on-dark); font-weight: 600; }
.calc dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: .6rem 1rem; padding-top: var(--sp-4); border-top: 1px solid var(--c-line-dark); }
.calc dt { color: var(--c-on-dark-soft); }
.calc dd { margin: 0; text-align: right; }
.calc .total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: var(--sp-4); border-top: 1px solid var(--c-on-dark); }
.calc .total b { font-family: var(--font-display); font-variation-settings: "wdth" 70; font-weight: 760; font-size: var(--fs-32); color: var(--c-accent); line-height: 1; }
.calc small { color: var(--c-on-dark-soft); font-size: var(--fs-14); }

/* residences */
.band { background: var(--c-band); color: var(--c-on-band); }
.band .lede { color: var(--c-on-band-soft); }
.tabs { display: flex; gap: var(--sp-6); flex-wrap: wrap; margin-top: var(--sp-8); border-bottom: 1px solid var(--c-line-dark); }
.tabs button { min-height: 44px; padding: 0 0 .7rem; border: 0; background: none; color: var(--c-on-band-soft); font: 600 var(--fs-16)/1 var(--font-text); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color .2s var(--ease), border-color .2s var(--ease); }
.tabs button:hover { color: var(--c-on-band); }
.tabs button[aria-pressed="true"] { color: var(--c-on-band); border-color: var(--c-accent); }
.swipe { display: none; margin-top: var(--sp-2); font-size: var(--fs-14); color: var(--c-on-band-soft); }
.found { margin-top: var(--sp-4); color: var(--c-on-band-soft); display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; min-height: 28px; }
.found button { background: none; border: 0; color: var(--c-on-band); font: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: var(--c-accent); text-underline-offset: 4px; cursor: pointer; min-height: 44px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-12) var(--sp-6); margin-top: var(--sp-6); }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; gap: .35rem; text-decoration: none; color: inherit; }
.card { animation: rise .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.card .pic { aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; margin-bottom: .6rem; }
.skc .line { display: block; height: .95rem; border-radius: 4px; margin-top: .4rem; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
@media (hover: hover) { .card:hover .pic img { transform: scale(1.035); } }
.card h3 { font-family: var(--font-display); font-variation-settings: "wdth" 78; font-weight: 700; font-size: var(--fs-24); line-height: 1.15; }
.card .what { color: var(--c-on-band-soft); font-size: var(--fs-16); }
.card .money { margin-top: .3rem; font-size: var(--fs-16); }
.card .money b { font-weight: 650; }
.card .money span { color: var(--c-on-band-soft); }
.card .state { font-size: var(--fs-14); font-weight: 600; margin-top: .15rem; }
.state.open { color: #9FE0B4; } .state.filling { color: var(--c-accent); } .state.full { color: var(--c-on-band-soft); }
.card .see { margin-top: .5rem; font-weight: 600; text-decoration: underline; text-decoration-color: var(--c-accent); text-decoration-thickness: 1.5px; text-underline-offset: 5px; align-self: flex-start; }
.card:hover .see { text-decoration-thickness: 3px; }
.none { margin-top: var(--sp-8); padding: var(--sp-8); border-radius: var(--radius); background: rgba(255,248,232,.06); }

/* what happens after you message us */
.timeline { list-style: none; margin: var(--sp-12) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-6); }
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr; } }
.timeline li { padding-top: var(--sp-4); border-top: 3px solid var(--c-ink); display: flex; flex-direction: column; gap: .4rem; }
.timeline li:first-child { border-color: var(--c-accent); }
.timeline .when { font-weight: 700; }
.timeline p { color: var(--c-ink-soft); }
.chat { margin-top: var(--sp-12); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (max-width: 860px) { .chat { grid-template-columns: 1fr; } }
.phone { background: #E7DED2; border-radius: 18px; padding: var(--sp-4); display: flex; flex-direction: column; gap: .5rem; max-width: 26rem; box-shadow: 0 0 0 8px var(--c-dark); }
.msg { max-width: 85%; padding: .6rem .8rem; border-radius: 10px; font-size: var(--fs-14); line-height: 1.45; background: var(--c-raised); box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.msg.me { align-self: flex-end; background: #DCF3C8; }
.msg time { display: block; text-align: right; font-size: .7rem; color: var(--c-ink-soft); margin-top: .2rem; }
.phone .who { font-size: var(--fs-14); font-weight: 600; text-align: center; color: var(--c-ink-soft); padding-bottom: .25rem; }

/* the three things you only get through us */
.big3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); margin-top: var(--sp-12); }
@media (max-width: 900px) { .big3 { grid-template-columns: 1fr; } }
.feat { position: relative; overflow: hidden; border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2rem); min-height: 23rem; display: flex; flex-direction: column; gap: var(--sp-3);
  background: var(--c-raised); box-shadow: 0 0 0 1px var(--c-line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
@media (hover: hover) { .feat:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--c-line), 0 28px 50px -30px rgba(14,19,17,.5); } }
.feat.dark { background: var(--c-dark); color: var(--c-on-dark); box-shadow: none; }
.feat.gold { background: var(--c-accent); box-shadow: none; }
.feat .fig { font-family: var(--font-display); font-variation-settings: "wdth" 62; font-weight: 820; font-size: clamp(5.5rem, 10vw, 8.5rem); line-height: .8; letter-spacing: -.02em; margin-bottom: auto; padding-bottom: var(--sp-8); }
.feat h3 { font-size: var(--fs-24); font-weight: 650; line-height: 1.2; }
.feat p { color: var(--c-ink-soft); }
.feat.dark p { color: var(--c-on-dark-soft); }
.feat.gold p { color: rgba(14,19,17,.78); }
.feat .for { font-size: var(--fs-14); font-weight: 600; padding-top: var(--sp-3); margin-top: var(--sp-2); border-top: 1px solid var(--c-line-strong); }
.feat.dark .for { border-color: var(--c-line-dark); }
.vs-h { font-size: var(--fs-20); font-weight: 650; margin-bottom: var(--sp-4); }

/* parents */
.parents { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .parents { grid-template-columns: 1fr; } }
.parents h2 { font-size: var(--fs-48); }
.parents .lede { margin-top: var(--sp-4); }
.reassure { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8) var(--sp-6); }
@media (max-width: 560px) { .reassure { grid-template-columns: 1fr; } }
.reassure h3 { font-size: var(--fs-18); font-weight: 650; display: flex; gap: .6rem; align-items: center; }
.reassure h3 svg { width: 22px; height: 22px; flex: none; stroke: var(--c-ink); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.reassure p { color: var(--c-ink-soft); margin-top: .4rem; }
.callme { margin-top: var(--sp-8); display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* students, in their own words */
.voices { background: var(--c-dark); color: var(--c-on-dark); }
.voices .lede { color: var(--c-on-dark-soft); }
.vq { margin-top: var(--sp-12); display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (max-width: 860px) { .vq { grid-template-columns: 1fr; } }
.stack { display: grid; }
.stack figure { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease), visibility 0s linear .6s; }
.stack figure.cur { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.stack .qm { display: block; font-family: var(--font-display); font-weight: 820; font-size: 5rem; line-height: .6; color: var(--c-accent); height: 2.4rem; }
.stack blockquote { margin: 0; font-family: var(--font-display); font-variation-settings: "wdth" 82; font-weight: 600; font-size: clamp(1.6rem, 3.3vw, 2.7rem); line-height: 1.18; letter-spacing: -.01em; text-wrap: balance; }
.stack figcaption { margin-top: var(--sp-6); color: var(--c-on-dark-soft); }
.who-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.who-list button { all: unset; box-sizing: border-box; cursor: pointer; position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: .1rem var(--sp-3); align-items: center; padding: var(--sp-3) var(--sp-4); border-radius: var(--radius); transition: background-color .25s var(--ease); }
.who-list button:hover { background: rgba(255,248,232,.06); }
.who-list button[aria-pressed="true"] { background: rgba(255,248,232,.11); }
.who-list button:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.who-list .avatar { grid-row: span 2; }
.who-list b { font-weight: 600; }
.who-list span:not(.avatar):not(.prog) { font-size: var(--fs-14); color: var(--c-on-dark-soft); }
.prog { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.prog i { display: block; height: 100%; background: var(--c-accent); transform: scaleX(0); transform-origin: left; }
.vq.on [aria-pressed="true"] .prog i { animation: fill 7s linear forwards; }
.vq:hover .prog i, .vq:focus-within .prog i { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }

/* faq */
.faq { margin-top: var(--sp-8); border-top: 1px solid var(--c-line-strong); }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); padding: 1.15rem 0; font-size: var(--fs-18); font-weight: 600; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq p { padding: 0 0 1.25rem; color: var(--c-ink-soft); max-width: 44rem; font-size: var(--fs-16); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* request */
.req { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; margin-top: var(--sp-12); }
@media (max-width: 860px) { .req { grid-template-columns: 1fr; } }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4) var(--sp-6); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--c-ink-soft); }
form.panel { background: var(--c-raised); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.25rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; box-shadow: 0 1px 2px rgba(14,19,17,.06), 0 24px 60px -36px rgba(14,19,17,.35); }
@media (max-width: 520px) { form.panel { grid-template-columns: 1fr; } }
.f { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.f.wide { grid-column: 1 / -1; }
.f label { font-size: var(--fs-14); font-weight: 600; }
.f input, .f select { font: 400 var(--fs-16)/1.4 var(--font-text); color: var(--c-ink); background: var(--c-bg); border: 1.5px solid transparent; border-radius: var(--btn-radius); padding: .75rem .85rem; min-height: var(--btn-h); width: 100%; min-width: 0; transition: border-color .2s var(--ease); }
.f input:focus, .f select:focus { outline: none; border-color: var(--c-ink); }
.f input[aria-invalid="true"] { border-color: var(--c-error); }
.f select { appearance: none; padding-right: 2.2rem; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%230E1311' stroke-width='1.6'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; background-size: 11px; }
.ferr { font-size: var(--fs-14); line-height: 1.4; color: var(--c-error); }
.panel .go { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.panel .go small { color: var(--c-ink-soft); font-size: var(--fs-14); }
.sent { grid-column: 1 / -1; display: flex; flex-direction: column; gap: var(--sp-4); }
.sent h3 { font-family: var(--font-display); font-variation-settings: "wdth" 72; font-weight: 760; font-size: var(--fs-32); line-height: 1.05; }

/* closing */
.night { position: relative; min-height: 64svh; display: grid; align-items: end; color: var(--c-on-dark); background: var(--c-dark); overflow: hidden; }
.night img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.night::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,19,17,.88), rgba(14,19,17,.15) 65%); }
.night .wrap { position: relative; z-index: 1; padding-block: clamp(4rem, 9vw, 6.5rem); width: 100%; }
.night h2 { font-size: var(--fs-hero); max-width: 12ch; }
.night p { font-size: var(--fs-18); max-width: 32rem; margin-top: var(--sp-4); opacity: .9; }
.night .row { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-8); }
.night .btn.ghost { box-shadow: inset 0 0 0 1.5px rgba(255,248,232,.5); }

footer.site { background: var(--c-dark); color: var(--c-on-dark); overflow: hidden; padding-bottom: calc(env(safe-area-inset-bottom, 0px)); }
footer.site .wrap { padding-block: var(--sp-12) 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-6); }
@media (max-width: 820px) { footer.site .wrap { grid-template-columns: 1fr 1fr; } }
footer.site h4 { margin: 0 0 var(--sp-2); font-size: var(--fs-14); color: var(--c-on-dark-soft); font-weight: 500; }
footer.site a { text-decoration: none; display: block; padding: .25rem 0; }
footer.site a:hover { color: var(--c-accent); }
footer.site .big { font-family: var(--font-display); font-variation-settings: "wdth" 62; font-weight: 820; font-size: 27.5vw; line-height: .78; letter-spacing: -.02em; text-align: center; margin-top: var(--sp-12); white-space: nowrap; }

footer.site .credits { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2) var(--sp-6); padding-block: var(--sp-6); margin-top: var(--sp-4); border-top: 1px solid var(--c-line-dark); font-size: var(--fs-14); color: var(--c-on-dark-soft); }
footer.site .credits a { display: inline; padding: 0; color: var(--c-on-dark); text-decoration: underline; text-decoration-color: var(--c-accent); text-underline-offset: 4px; }
footer.site .credits a:hover { color: var(--c-accent); }
.heart { width: 15px; height: 15px; fill: #E5533C; vertical-align: -2px; margin: 0 .1em; }
.credits p:hover .heart { animation: beat .9s var(--ease); }
@keyframes beat { 30% { transform: scale(1.3); } 60% { transform: scale(.95); } }

/* phones: one tap to talk */
.dock { display: none; }
@media (max-width: 900px) {
  .dock { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: .6rem max(.75rem, env(safe-area-inset-right, 0px)) calc(.6rem + env(safe-area-inset-bottom, 0px)) max(.75rem, env(safe-area-inset-left, 0px)); background: rgba(239,236,229,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--c-line); }
  body { padding-bottom: 76px; }
}

/* ================= detail page ================= */
.detail { padding-block: var(--sp-6) clamp(4rem, 8vw, 6rem); }
.crumbs { font-size: var(--fs-14); color: var(--c-ink-soft); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--c-ink); }
.d-head { margin-top: var(--sp-2); }
.d-head h1 { font-size: var(--fs-48); }
.d-head .meta { color: var(--c-ink-soft); margin-top: var(--sp-3); font-size: var(--fs-18); }
.d-head .meta .state { font-weight: 600; }
.d-head .state.open { color: var(--c-open); } .d-head .state.filling { color: var(--c-filling); } .d-head .state.full { color: var(--c-ink-soft); }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--sp-2); margin-top: var(--sp-6); height: clamp(18rem, 44vw, 32rem); }
.gallery .main { grid-row: 1 / 3; border-radius: var(--radius); overflow: hidden; background: var(--c-dark); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: contents; }
.thumbs button { padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--c-dark); position: relative; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s var(--ease); }
.thumbs button:hover img { opacity: .85; }
.thumbs button[aria-pressed="true"]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 3px var(--c-accent); }
@media (max-width: 700px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto; height: auto; }
  .gallery .main { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 3 / 2; }
  .thumbs button { aspect-ratio: 1; }
}
.d-body { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: clamp(2rem, 5vw, 4rem); margin-top: var(--sp-8); align-items: start; }
@media (max-width: 900px) { .d-body { grid-template-columns: 1fr; } }
.d-sec { padding-block: var(--sp-8); border-top: 1px solid var(--c-line); }
.d-sec:first-child { border-top: 0; padding-top: 0; }
.d-sec h2 { font-size: var(--fs-24); font-weight: 700; margin-bottom: var(--sp-4); }
.d-sec p { color: var(--c-ink-soft); font-size: var(--fs-18); line-height: 1.6; max-width: 40rem; }
.amen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: var(--sp-3) var(--sp-6); }
.amen li { display: flex; align-items: center; gap: .75rem; font-size: var(--fs-18); }
.amen svg { width: 24px; height: 24px; flex: none; stroke: var(--c-ink); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.costs { width: 100%; border-collapse: collapse; }
.costs th, .costs td { text-align: left; padding: .85rem 0; border-bottom: 1px solid var(--c-line); font-weight: 400; }
.costs td { text-align: right; font-variant-numeric: tabular-nums; }
.costs tr.zero td { color: var(--c-open); font-weight: 700; }
.costs tr.zero th { font-weight: 600; }
.costs .left { display: block; font-size: var(--fs-14); color: var(--c-ink-soft); margin-top: .15rem; }
.rules { margin: 0; padding-left: 1.2rem; color: var(--c-ink-soft); font-size: var(--fs-18); line-height: 1.6; max-width: 40rem; }
.rules li + li { margin-top: .35rem; }
.perks { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: var(--sp-3); }
.perk { padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--c-accent-wash); }
.perk b { display: block; font-family: var(--font-display); font-variation-settings: "wdth" 70; font-weight: 760; font-size: 1.75rem; line-height: 1; }
.perk span { display: block; margin-top: .45rem; color: var(--c-ink-soft); }
.book { position: sticky; top: 96px; background: var(--c-raised); border-radius: var(--radius); padding: var(--sp-6); box-shadow: 0 1px 2px rgba(14,19,17,.06), 0 24px 60px -36px rgba(14,19,17,.35); display: flex; flex-direction: column; gap: var(--sp-3); }
.book .amt { font-family: var(--font-display); font-variation-settings: "wdth" 72; font-weight: 760; font-size: 2.4rem; line-height: 1; }
.book .amt small { font-family: var(--font-text); font-variation-settings: "wdth" 100; font-weight: 400; font-size: var(--fs-16); color: var(--c-ink-soft); }
.book .monthly { color: var(--c-ink-soft); }
.book .state { font-weight: 600; }
.book .state.open { color: var(--c-open); } .book .state.filling { color: var(--c-filling); } .book .state.full { color: var(--c-ink-soft); }
.book .btn { width: 100%; }
.book .note { font-size: var(--fs-14); color: var(--c-ink-soft); border-top: 1px solid var(--c-line); padding-top: var(--sp-3); }
.similar { margin-top: var(--sp-12); }
.similar h2 { font-size: var(--fs-32); }
.similar .cards { margin-top: var(--sp-6); }
.similar .card .what, .similar .card .money span, .similar .state.full, .listing .card .what, .listing .card .money span, .listing .state.full { color: var(--c-ink-soft); }
.similar .state.open, .listing .state.open { color: var(--c-open); } .similar .state.filling, .listing .state.filling { color: var(--c-filling); }
.crumbs .sep { margin-inline: .5rem; color: var(--c-line-strong); }

/* ================= residence list pages: every listing, with filters ================= */
.all-link { margin-top: var(--sp-8); }
.listing { padding-block: var(--sp-6) clamp(4rem, 8vw, 6rem); }
.listing .d-head h1 { max-width: 20ch; }
.listing .intro { margin-top: var(--sp-4); font-size: var(--fs-18); color: var(--c-ink-soft); max-width: 46rem; }
.kinds { display: flex; gap: var(--sp-6); flex-wrap: wrap; margin-top: var(--sp-8); border-bottom: 1px solid var(--c-line); }
.kinds a { display: inline-flex; align-items: center; min-height: 44px; padding-bottom: .2rem; border-bottom: 3px solid transparent; margin-bottom: -1px; font-weight: 600; text-decoration: none; color: var(--c-ink-soft); transition: color .2s var(--ease), border-color .2s var(--ease); }
.kinds a:hover { color: var(--c-ink); }
.kinds a[aria-current="page"] { color: var(--c-ink); border-color: var(--c-accent); }
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); margin-top: var(--sp-6); padding: var(--sp-4) var(--sp-4) var(--sp-3); background: var(--c-raised); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(14,19,17,.06), 0 12px 40px -24px rgba(14,19,17,.3); }
.filters fieldset { grid-column: 1 / -1; border: 0; margin: 0; padding: var(--sp-3) 0 0; border-top: 1px solid var(--c-line); display: flex; flex-wrap: wrap; gap: 0 1.4rem; min-width: 0; }
.filters legend { float: left; width: 100%; padding: 0; font-size: var(--fs-14); font-weight: 600; }
.check { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--pine-950); cursor: pointer; }
.filter-toggle { display: none; }
.list-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2) var(--sp-4); flex-wrap: wrap; margin-top: var(--sp-6); min-height: 44px; color: var(--c-ink-soft); }
.list-bar b { color: var(--c-ink); }
.list-bar button { background: none; border: 0; padding: 0; min-height: 44px; color: var(--c-ink); font: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: var(--c-accent); text-decoration-thickness: 1.5px; text-underline-offset: 5px; cursor: pointer; }
.listing .cards { margin-top: var(--sp-4); }
.listing .empty { margin-top: var(--sp-8); display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
.listing .empty .al { color: var(--c-ink); }
.listing .more { margin-top: var(--sp-16); }
.listing .more h2 { font-size: var(--fs-32); }
@media (max-width: 1000px) { .filters { grid-template-columns: 1fr 1fr; } }

/* ================= live bits: skeletons, reveals, the phone dock ================= */
:root { --sk-a: rgba(14,19,17,.07); --sk-b: rgba(14,19,17,.14);
  --arch-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 68' fill='none' stroke='%23898579' stroke-opacity='.7' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M3 66V29A23 23 0 0 1 49 29V66Z'/%3E%3Cpath d='M26 6V66M3 38H49'/%3E%3C/svg%3E"); }
.band { --sk-a: rgba(255,248,232,.07); --sk-b: rgba(255,248,232,.16); }
.sk, .gallery .sk { background: linear-gradient(100deg, var(--sk-a) 30%, var(--sk-b) 50%, var(--sk-a) 70%) 0 0 / 220% 100%; animation: shimmer 1.3s linear infinite; }
.sk.ph, .gallery .sk.ph { background: linear-gradient(100deg, var(--sk-a) 30%, var(--sk-b) 50%, var(--sk-a) 70%) 0 0 / 220% 100%, var(--arch-ico) center / 24px 31px no-repeat; }
.sk:has(> img.in) { animation: none; }
@keyframes shimmer { from { background-position: 120% 0, center; } to { background-position: -120% 0, center; } }
/* the EDU Stay arch as the loading mark: its window lights up from the sill */
.al { width: 26px; height: 34px; flex: none; overflow: visible; }
.al .o { fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.al .lv { fill: var(--c-accent); transform-box: fill-box; transform-origin: 50% 100%; animation: lvl 1.3s var(--ease) infinite; }
.al.still .lv { animation: none; }
.al.off .lv { display: none; }
.al.big { width: 44px; height: 58px; }
@keyframes lvl { 0% { transform: scaleY(0); opacity: 1; } 65% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.loading { display: grid; place-content: center; justify-items: center; gap: .8rem; color: var(--c-ink-soft); font-size: var(--fs-14); text-align: center; }
.loading .al { color: var(--c-ink); }
.thumbs .tb { border-radius: var(--radius); }
@media (max-width: 700px) { .thumbs .tb { aspect-ratio: 1; } }
.dock-price { display: flex; flex-direction: column; justify-content: center; line-height: 1.2; padding-left: .25rem; }
.dock-price b { font-weight: 700; font-size: var(--fs-18); }
.dock-price span { font-size: .78rem; color: var(--c-ink-soft); }

/* error states */
.broken { animation: none !important; position: relative; }
.broken::after { content: "Photo coming soon"; position: absolute; inset: 0; display: grid; place-items: center; padding-top: 3.4rem; font-size: var(--fs-14); color: var(--c-ink-soft); background: var(--arch-ico) center calc(50% - .9rem) / 26px 34px no-repeat; }
.band .broken::after { color: var(--c-on-band-soft); }
.broken img { visibility: hidden; }
#detail-view:focus { outline: none; } /* programmatic focus target for screen readers, not a control */
.form-err { grid-column: 1 / -1; padding: .9rem 1rem; border-radius: var(--btn-radius); background: #FBE9E4; color: #6E2615; border-left: 3px solid var(--c-error); font-size: var(--fs-14); line-height: 1.5; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; align-items: center; gap: .75rem; width: max-content; max-width: calc(100% - 32px); padding: .8rem 1.1rem; border-radius: var(--radius); background: var(--c-dark); color: var(--c-on-dark); font-size: var(--fs-14); line-height: 1.4; box-shadow: 0 20px 40px -20px rgba(0,0,0,.55); transform: translateX(-50%); animation: toast-in .35s var(--ease); }
.toast .al { width: 18px; height: 24px; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }
@media (max-width: 900px) { .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
.nf { padding-block: clamp(4rem, 10vw, 7rem); display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
.nf h1 { font-size: var(--fs-48); max-width: 16ch; }
.nf .al { color: var(--c-ink); }

/* phones: same care as desktop, not a squeezed copy of it */
@media (max-width: 900px) { .d-body .book { order: -1; position: static; } }
@media (max-width: 600px) {
  .arch-frame { aspect-ratio: 1; }
  .head h2, .parents h2, .faq-grid h2 { font-size: 2.15rem !important; }
  .feat { min-height: 0; }
  .feat .fig { padding-bottom: var(--sp-6); font-size: 5.5rem; }
  .compare thead { display: none; }
  .compare, .compare tbody { display: block; }
  .compare tr { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .5rem; padding: .9rem; border-bottom: 1px solid var(--c-line); }
  .compare tr:last-child { border-bottom: 0; }
  .compare th, .compare td { padding: 0; border: 0; width: auto; }
  .compare tbody th { grid-column: 1 / -1; font-weight: 650; color: var(--c-ink); width: auto; }
  .compare td { padding: .5rem .6rem; border-radius: 6px; background: var(--c-surface); font-size: var(--fs-14); }
  .compare td:last-child { background: var(--c-accent-wash); }
  .compare td::before { content: attr(data-l); display: block; font-size: .72rem; font-weight: 500; color: var(--c-ink-soft); margin-bottom: .15rem; }
  .stack blockquote { font-size: 1.45rem; }
  .who-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .who-list button { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: var(--sp-3) var(--sp-2); }
  .who-list .avatar { grid-row: auto; }
  .who-list b { font-size: var(--fs-14); }
  .who-list span:not(.avatar):not(.prog) { display: none; }
  .timeline { gap: var(--sp-4); }
  .night h2 { font-size: 2.6rem; }
  .night .row .btn { flex: 1 1 100%; }
  .callme .btn { flex: 1 1 auto; }
  .calc .total { flex-direction: column; align-items: flex-start; gap: .35rem; }
  .calc .total b { font-size: 1.9rem; }
}
@media (max-width: 620px) {
  .filter-toggle { display: inline-flex; width: 100%; margin-top: var(--sp-6); }
  .filters { grid-template-columns: 1fr; margin-top: var(--sp-3); }
  .filters:not(.open) { display: none; }
  .kinds { gap: var(--sp-4); }
}
/* phones: residences become a swipeable row instead of a 4,500px stack */
@media (max-width: 620px) {
  .cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: var(--sp-4); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gut-l)) calc(-1 * var(--gut-r)); padding-inline: var(--gut-l) var(--gut-r); scroll-padding-inline: var(--gut-l); padding-bottom: var(--sp-2); scrollbar-width: none; }
  .cards::-webkit-scrollbar { display: none; }
  .card { scroll-snap-align: start; }
  .swipe { display: block; }
  /* the full list is the one place a long stack is right: it's what the visitor came for */
  .listing .cards { grid-auto-flow: row; grid-template-columns: 1fr; overflow: visible; margin-inline: 0; padding-inline: 0; scroll-snap-type: none; gap: var(--sp-8); }
}
img.fade { opacity: 0; transition: opacity .5s var(--ease); }
img.fade.in { opacity: 1; }
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
@media (max-width: 900px) { .dock { transform: translateY(110%); transition: transform .4s var(--ease); } .dock.show { transform: none; } }

[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  .loader .arch, .loader .glow, .loader .word i, .loader .tag, .al .lv { animation: none !important; stroke-dashoffset: 0; opacity: 1; transform: none; }
  .card, .sk, .rv, img.fade, .stack figure, .dock { animation: none !important; transition: none !important; opacity: 1; transform: none; }
}
