/* PDP Properties. Tokens come from copy/brand-kit.md. */
:root {
  --bg: #FDFFFC; --surface: #F1F2FA; --text: #000000; --muted: #626868;
  --blue: #1F01B9; --blue-rgb: 31, 1, 185; --blue-deep: #17018C; --yellow: #FFD400; --line: #D7DAD9;
  --font: "Archivo", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --head-h: 72px;
  --wrap: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--head-h); }
html, body { overflow-x: hidden; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2 { font-weight: 800; font-stretch: 125%; line-height: 1.02; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.25rem); }
h3 { font-weight: 800; line-height: 1.2; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: clamp(18px, 4vw, 40px); }
.eyebrow { font: 500 .8125rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.eyebrow--blue { color: var(--blue); }
.lede { font-size: 1.1875rem; max-width: 46ch; margin-top: 1rem; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.35rem; border: 2px solid transparent; border-radius: 3px;
  font: 800 1rem/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease, color .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--yellow { background: var(--yellow); color: #000; }
.btn--yellow:hover { background: #FFE04A; }
.btn--blue { background: var(--blue); color: var(--bg); }
.btn--blue:hover { background: var(--blue-deep); }
.btn--ghost { border-color: var(--bg); color: var(--bg); background: transparent; }
.btn--ghost:hover { background: var(--bg); color: var(--blue); }
.btn--outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--outline:hover { background: var(--blue); color: var(--bg); }
.btn--sm { min-height: 44px; padding: .5rem 1rem; font-size: .9375rem; }
.btn--full { width: 100%; }

/* Fixed hero media */
.bg-video, .mobile-poster { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.bg-video { object-fit: cover; }
.mobile-poster { background: #9DB7E8 center / cover no-repeat; opacity: 1; transition: opacity .6s ease; }
body.video-ready .mobile-poster { opacity: 0; }
body.video-failed .bg-video { display: none; }
#page, .site-footer { position: relative; z-index: 10; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--head-h); background: var(--bg); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-inline: clamp(18px, 4vw, 40px); }
.brand img { height: 44px; width: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.75rem); }
.site-nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 600; font-size: .9375rem; padding: .5rem 0; border-bottom: 3px solid transparent; }
.site-nav a:not(.btn):hover { border-bottom-color: var(--blue); }
.menu-btn { display: none; width: 48px; height: 48px; border: 0; background: none; padding: 12px; cursor: pointer; }
.menu-btn span { display: block; height: 3px; background: var(--text); margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero: a tall scroll track with a sticky stage. The video behind it is scrubbed by this track. */
.hero { height: 260vh; }
.hero__stick { position: sticky; top: 0; height: 100vh; padding-top: var(--head-h); display: flex; align-items: center; overflow: hidden; }
.hero__shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(var(--blue-rgb), .94) 0%, rgba(var(--blue-rgb), .86) 30%, rgba(var(--blue-rgb), .35) 56%, rgba(var(--blue-rgb), 0) 74%); }
.hero__copy { position: relative; color: var(--bg); width: min(640px, 100%); margin-left: max(clamp(18px, 4vw, 40px), calc((100vw - var(--wrap)) / 2 + 40px)); padding-right: 18px; }
.hero h1 { font-size: clamp(2.9rem, 8.2vw, 6.25rem); }
.hero .hl { color: var(--yellow); }
.hero__lede { font-size: clamp(1.0625rem, 1.6vw, 1.3125rem); max-width: 34ch; margin-top: 1.25rem; }
.hero__btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero__second { position: absolute; left: max(clamp(18px, 4vw, 40px), calc((100vw - var(--wrap)) / 2 + 40px)); bottom: 9vh; background: var(--blue); color: var(--bg);
  padding: 1.5rem 1.75rem; max-width: 380px; opacity: 0; pointer-events: none; border-left: 8px solid var(--yellow); }
.hero__second p { font: 800 1.75rem/1.1 var(--font); font-stretch: 125%; margin-bottom: 1rem; }
.hero__second.is-live { pointer-events: auto; }

/* Trust strip and the roofline signature */
.trust { position: relative; background: var(--bg); padding-block: clamp(2rem, 5vw, 3.5rem); }
.roofline { position: absolute; left: 0; right: 0; bottom: 100%; height: 110px; display: flex; gap: 1.2vw; align-items: flex-end; pointer-events: none; }
.roofline i { flex: 1; background: var(--bg); clip-path: polygon(0 34%, 100% 0, 100% 100%, 0 100%); }
.roofline i:nth-child(1) { height: 42%; }
.roofline i:nth-child(2) { height: 70%; }
.roofline i:nth-child(3) { height: 100%; background: var(--yellow); }
.trust__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2.5rem); }
.trust__list li { border-top: 4px solid var(--blue); padding-top: 1rem; }
.trust__list strong { display: block; font: 800 clamp(1.25rem, 2.4vw, 1.75rem)/1.1 var(--font); font-stretch: 125%; }
.trust__list span { display: block; color: var(--muted); margin-top: .35rem; font-size: 1rem; }

/* Space to let */
.tolet { background: var(--surface); padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.tolet__head { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }

/* Featured listing */
.feature { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); background: var(--bg); border: 1px solid var(--line); }
.feature__gallery { padding: clamp(.75rem, 1.5vw, 1rem); min-width: 0; }
.feature__main { position: relative; background: var(--text); }
.feature__main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .25s ease; }
.feature__main img.is-swapping { opacity: .35; }
.feature__count { position: absolute; right: 0; bottom: 0; background: var(--text); color: var(--bg); font: 500 .8125rem/1 var(--mono); padding: .5rem .7rem; }
.feature__thumbs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.thumb { display: block; width: 100%; padding: 0; border: 3px solid transparent; background: none; cursor: pointer; }
.thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; opacity: .75; transition: opacity .2s ease; }
.thumb:hover img, .thumb.is-on img { opacity: 1; }
.thumb.is-on { border-color: var(--blue); }
.feature__info { padding: clamp(1.25rem, 3vw, 2.25rem); display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; border-left: 1px solid var(--line); min-width: 0; }
.feature__info h3 { font-size: clamp(1.75rem, 3vw, 2.375rem); font-stretch: 125%; line-height: 1.05; }
.feature__where { color: var(--muted); font-weight: 600; margin-top: -.4rem; }
.feature__facts { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-top: 2px solid var(--text); border-bottom: 1px solid var(--line); }
.feature__facts > div { padding: .85rem 0; }
.feature__facts > div + div { padding-left: 1rem; border-left: 1px solid var(--line); }
.feature__facts dt { font: 500 .75rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .45rem; }
.feature__facts dd { font: 500 clamp(1.5rem, 2.6vw, 2rem)/1 var(--mono); color: var(--blue); font-variant-numeric: tabular-nums; }
.feature__facts small { display: block; font: 500 .8125rem/1.4 var(--font); color: var(--muted); margin-top: .3rem; }
.feature__list { display: grid; gap: .5rem; font-size: 1rem; }
.feature__list li { padding-left: 1.4rem; position: relative; }
.feature__list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; background: var(--blue); }
.feature__info .btn { margin-top: auto; }
.feature__note { font-size: .875rem; color: var(--muted); }
.status { font: 500 .75rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: .45rem .6rem; border-radius: 2px; }
.status--open { background: var(--blue); color: var(--bg); }
.status--offer { background: var(--yellow); color: #000; }
.status--let { border: 1px solid var(--muted); color: var(--muted); }
.tolet__after { margin-top: 1.5rem; color: var(--muted); }

/* Find me space */
.find { background: var(--blue); color: var(--bg); padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.find__copy p:not(.eyebrow) { font-size: 1.1875rem; max-width: 60ch; margin-top: 1rem; }
.find__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 3.5vw, 3rem); align-items: start; margin-top: clamp(2rem, 4vw, 3rem); }
.find__grid > * { min-width: 0; }

/* Property types we source: sits to the right of the form */
.types__head { margin-bottom: 1rem; }
.types__head h3 { font-size: clamp(1.25rem, 2.2vw, 1.625rem); font-stretch: 125%; }
.types__head p { font: 500 .875rem/1.4 var(--mono); margin-top: .35rem; }
.types__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.type { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--blue-deep); cursor: pointer; overflow: hidden; text-align: left; font: inherit; }
.type img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease, opacity .3s ease; }
.type span { position: absolute; left: 0; bottom: 0; background: var(--bg); color: var(--text); font: 800 .9375rem/1.2 var(--font); padding: .55rem .8rem; border-top-right-radius: 2px; }
.type:hover img, .type:focus-visible img { transform: scale(1.05); }
.type:hover span, .type:focus-visible span { background: var(--yellow); }

/* Forms */
.form { background: var(--bg); color: var(--text); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: .5rem; position: relative; }
.form fieldset { border: 0; padding: 0; margin: 0 0 .75rem; display: grid; gap: .4rem; min-width: 0; }
.form legend { font: 800 1.0625rem/1.2 var(--font); padding: 0; margin-bottom: .35rem; }
.form label { font-weight: 600; font-size: .9375rem; margin-top: .35rem; }
.form input, .form select, .form textarea { width: 100%; min-height: 48px; padding: .65rem .8rem; border: 2px solid var(--line); border-radius: 3px; background: #fff; color: var(--text); font: 500 1rem/1.4 var(--font); }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); outline: none; }
.form .is-bad { border-color: #B3261E; }
.form__note { font-size: .8125rem; color: var(--muted); margin-top: .5rem; }
.form__error { font-size: .9375rem; font-weight: 600; color: #8C1D18; background: #FBEAE7; border-left: 4px solid #B3261E; padding: .7rem .9rem; }
.form__error[hidden] { display: none; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form button[disabled] { opacity: .7; cursor: progress; transform: none; }
.form__step { font: 500 .8125rem/1.4 var(--mono); color: var(--muted); margin-bottom: .75rem; }
.form__bars { display: flex; align-items: flex-end; gap: 5px; height: 64px; margin-bottom: .5rem; }
.form__bars i { width: 34px; background: var(--line); clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%); transition: background-color .35s ease; }
.form__bars i:nth-child(1) { height: 42%; }
.form__bars i:nth-child(2) { height: 70%; }
.form__bars i:nth-child(3) { height: 100%; }
.form__bars i.is-done { background: var(--blue); }
.form__bars i:nth-child(3).is-done { background: var(--yellow); }
.form__done { position: absolute; inset: 0; background: var(--bg); padding: clamp(1.25rem, 3vw, 2rem); display: flex; flex-direction: column; justify-content: center; gap: 1rem; border-left: 8px solid var(--yellow); }
.form__done[hidden] { display: none; }
.form__done h3 { font-size: 1.5rem; font-stretch: 125%; }
.form--find .form__done { background: var(--blue); color: var(--bg); }

/* Divisions */
.divisions { background: var(--bg); padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.divisions__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); margin-top: clamp(2rem, 4vw, 3rem); }
.division { border-top: 4px solid var(--text); padding-top: 1.1rem; display: flex; flex-direction: column; gap: .7rem; }
.division h3 { font-size: 1.375rem; color: var(--blue); text-transform: uppercase; min-height: 2.4em; }
.division h3 span { color: var(--text); font-stretch: 125%; }
.division p { font-size: 1rem; }
.division a { margin-top: auto; font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.divisions__img { margin-top: clamp(2.5rem, 5vw, 4rem); position: relative; }
.divisions__img img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.divisions__img figcaption { position: absolute; left: 0; bottom: 0; background: var(--blue); color: var(--bg); padding: .7rem 1rem; font-size: .9375rem; max-width: min(100%, 420px); }


/* About */
.about { background: var(--text); color: var(--bg); padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.about__grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__big { color: var(--yellow); line-height: .8; }
.about__big span { display: block; font: 800 clamp(7rem, 20vw, 15rem)/.8 var(--font); font-stretch: 125%; }
.about__big small { display: block; font: 500 1rem/1 var(--mono); letter-spacing: .3em; text-transform: uppercase; margin-top: 1rem; color: var(--bg); }
.about__copy p:not(.eyebrow) { max-width: 52ch; margin-top: 1rem; font-size: 1.125rem; }
.about .eyebrow { color: var(--yellow); }
.about__side { display: grid; gap: 2rem; }
.about__stat { border-top: 1px solid rgba(253,255,252,.3); padding-top: 1.25rem; max-width: 15rem; }
.about__stat strong { display: block; font: 800 clamp(2.5rem, 6vw, 3.75rem)/1 var(--font); font-stretch: 125%; color: var(--bg); }
.about__stat small { display: block; margin-top: .5rem; font: 500 .8125rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--bg); }
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); margin-top: clamp(3rem, 6vw, 4.5rem); }
.values li { border-top: 3px solid var(--yellow); padding-top: 1rem; }
.values h3 { font-size: 1.125rem; margin-bottom: .5rem; color: var(--bg); }
.values p { font-size: 1rem; line-height: 1.55; }

/* Contact */
.contact { background: var(--bg); padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.details { margin-top: 2rem; display: grid; gap: 0; border-top: 1px solid var(--line); }
.details > div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.details dt { font: 500 .8125rem/1.7 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.details dd { font-weight: 600; }
.details dd[data-placeholder] { color: var(--muted); font-weight: 500; font-style: italic; }
.details a { font-weight: 800; }
.form--contact { border: 2px solid var(--text); }

/* Footer */
.site-footer { background: var(--blue); color: var(--bg); padding-block: clamp(2.5rem, 5vw, 4rem); }
.footer__grid { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem clamp(2rem, 6vw, 5rem); align-items: center; }
.footer__grid img { width: 220px; height: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; justify-content: flex-end; }
.site-footer nav a { color: var(--bg); font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer nav a:hover { color: var(--yellow); }
.footer__contact { grid-column: 1 / -1; font-weight: 600; }
.footer__contact a { color: var(--bg); text-decoration-color: var(--yellow); text-underline-offset: 3px; }
.footer__contact a:hover { color: var(--yellow); }
.footer__legal { grid-column: 1 / -1; font-size: .875rem; border-top: 1px solid rgba(253, 255, 252, .3); padding-top: 1.25rem; }

/* Entrances: only hidden when JavaScript is running, so the page is complete without it. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Living details, kept quiet */
@keyframes rise { from { transform: scaleY(.92); } to { transform: scaleY(1); } }
.roofline i { transform-origin: bottom; animation: rise 5s ease-in-out infinite alternate; }
.roofline i:nth-child(2) { animation-delay: -1.6s; }
.roofline i:nth-child(3) { animation-delay: -3.2s; }

/* Tablet */
@media (max-width: 980px) {
  .feature { grid-template-columns: 1fr; }
  .feature__info { border-left: 0; border-top: 1px solid var(--line); }
  .types__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tolet__head, .find__grid, .contact__grid { grid-template-columns: 1fr; }
  .site-nav { gap: 1rem; }
}

/* Phones, touch screens and reduced motion: still poster, normal-height hero, no scrubbing. Keep in step with STATIC_HERO in main.js. */
@media (max-width: 768px), (hover: none), (prefers-reduced-motion: reduce) {
  .bg-video { display: none; }
  body.video-ready .mobile-poster { opacity: 1; }
  .hero { height: auto; }
  .hero__stick { position: relative; height: auto; min-height: 92vh; min-height: 92svh; padding-block: calc(var(--head-h) + 2.5rem) 8rem; }
  .hero__shade { background: linear-gradient(180deg, rgba(var(--blue-rgb), .93) 0%, rgba(var(--blue-rgb), .86) 55%, rgba(var(--blue-rgb), .45) 100%); }
  .hero__second { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .roofline i { animation: none; }
  .btn:hover { transform: none; }
}

@media (max-width: 768px) {
  :root { --head-h: 64px; }
  .brand img { height: 38px; }
  .menu-btn { display: block; }
  .site-nav { position: fixed; inset: var(--head-h) 0 auto 0; background: var(--bg); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem clamp(18px, 4vw, 40px) 1.25rem;
    border-bottom: 1px solid var(--line); transform: translateY(-120%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
  .site-nav.is-open { transform: none; visibility: visible; }
  .site-nav a:not(.btn) { min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  .site-nav .btn { margin-top: 1rem; }
  .hero__copy { margin-left: 0; padding-inline: clamp(18px, 4vw, 40px); }
  .hero__btns .btn { flex: 1 1 100%; }
  .roofline { height: 70px; }
  .trust__list { grid-template-columns: 1fr; }
  .feature__thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .types__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .divisions__grid { grid-template-columns: 1fr; }
  .division h3 { min-height: 0; }
  .divisions__img img { aspect-ratio: 4 / 3; }
  .divisions__img figcaption { position: static; max-width: none; }
  .about__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: flex-start; flex-direction: column; gap: 0; }
}

/* Terms and privacy page */
.legal { padding-block: calc(var(--head-h) + clamp(2rem, 5vw, 3.5rem)) clamp(3rem, 7vw, 5rem); }
.legal__inner { max-width: 46rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); font-stretch: 125%; line-height: 1.05; margin-bottom: .75rem; }
.legal__meta { color: var(--muted); font-size: .9375rem; }
.legal__key { margin: 1.75rem 0 2.25rem; border-left: 6px solid var(--blue); background: var(--surface); padding: 1.1rem 1.25rem; font-size: 1.0625rem; }
.legal h2 { font-size: 1.25rem; margin: 2.25rem 0 .6rem; }
.legal p, .legal li { font-size: 1rem; line-height: 1.6; }
.legal p + p { margin-top: .75rem; }
.legal ul { display: grid; gap: .45rem; margin-top: .6rem; padding-left: 1.25rem; list-style: disc; }
.legal a { color: var(--blue); }
.legal .todo { background: var(--yellow); padding: 0 .25em; }
.footer__legal a { color: var(--bg); }
.form__note a { color: inherit; font-weight: 600; }
