:root {
  --ink: #121826;
  --muted: #627080;
  --water: #3a75c4;
  --water-2: #35a8e0;
  --violet: #7465b8;
  --sand: #f1c36d;
  --coral: #ef684d;
  --green: #6f8f57;
  --paper: #f4f7f8;
  --white: #ffffff;
  --graphite: #14171c;
  --graphite-2: #1b2027;
  --menu-blue: #5d8dce;
  --line: rgba(18, 24, 38, .12);
  --shadow: 0 24px 70px rgba(58, 117, 196, .18);
  --radius: 8px;
  --button-radius: 3px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Mulish", "Manrope", "Tilda Sans", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.antibot-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  pointer-events: none !important;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
}

.section::before {
  content: "";
  position: absolute;
  inset: auto -12vw 24px auto;
  width: 44vw;
  height: 22vw;
  min-width: 420px;
  min-height: 220px;
  border: 1px solid rgba(24, 168, 216, .16);
  border-radius: 50%;
  transform: rotate(-12deg);
  pointer-events: none;
}

.section-dark {
  color: var(--white);
  background: var(--water);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 16px;
  width: calc(100% - 40px);
  margin: 16px auto 0;
  padding: 12px 14px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  background: rgba(20, 23, 28, .96);
  box-shadow: 0 20px 50px rgba(20, 23, 28, .24);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.site-header.is-scrolled {
  color: var(--white);
  background: rgba(20, 23, 28, .96);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 20px 50px rgba(20, 23, 28, .24);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 148px;
  min-width: 148px;
}

.brand-logo {
  display: block;
  width: 146px;
  height: 76px;
  object-fit: contain;
  object-position: left center;
}

.brand-logo-color {
  display: none;
}

.brand-logo-white {
  display: block;
}

.main-nav {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  width: 100%;
  padding: 12px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  background: rgba(20, 23, 28, .96);
  box-shadow: 0 20px 50px rgba(20, 23, 28, .24);
  font-size: 15px;
  backdrop-filter: blur(18px);
}

.main-nav.is-open {
  display: grid;
}

.main-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
  font-weight: 800;
  opacity: .92;
  transition: opacity .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}

.main-nav a img {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  object-fit: contain;
}

.main-nav a:hover {
  opacity: 1;
  color: var(--white);
  background: rgba(58, 117, 196, .76);
  transform: translateY(-1px);
}

.header-center {
  justify-self: start;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
  min-width: 0;
  margin-left: 24px;
  text-align: center;
  font-size: 21px;
  font-weight: 500;
  white-space: nowrap;
}

.header-tagline {
  color: rgba(255, 255, 255, .74);
  line-height: 1.2;
}

.header-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.header-links a {
  position: relative;
  color: var(--white);
  font-weight: 600;
  transition: color .2s ease;
}

.header-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  border-radius: 999px;
  background: var(--white);
  transform: scaleX(1);
  transform-origin: left;
  opacity: .86;
  transition: opacity .2s ease;
}

.header-links a:hover {
  color: var(--white);
}

.header-links a:hover::after {
  opacity: 1;
}

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  min-width: 180px;
}

.header-phone {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.header-address {
  color: rgba(255, 255, 255, .68);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--button-radius);
  color: currentColor;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .20), rgba(255, 255, 255, .07)),
    rgba(255, 255, 255, .10);
  transition: background .2s ease, border-color .2s ease;
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .20);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 132px 0 86px;
  overflow: hidden;
}

.hero-media,
.hero-media picture,
.hero-media img,
.hero-video,
.hero-tint,
.river-media,
.final-cta > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img,
.hero-video,
.river-media img,
.final-cta > img {
  object-fit: cover;
}

.hero-image {
  opacity: 0;
}

.hero-video {
  z-index: 1;
}

.hero-media picture {
  z-index: 0;
}

.hero-tint {
  z-index: 2;
  background:
    radial-gradient(circle at 76% 18%, rgba(24, 168, 216, .18), transparent 32%),
    linear-gradient(90deg, rgba(5, 19, 32, .86) 0%, rgba(5, 19, 32, .52) 42%, rgba(5, 19, 32, .08) 100%),
    linear-gradient(0deg, rgba(5, 19, 32, .78) 0%, rgba(5, 19, 32, .04) 54%);
}

.hero-layout {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 40px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.section-dark .eyebrow {
  color: #ffc46a;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  display: flex;
  flex-direction: column;
  max-width: 840px;
  margin-bottom: 18px;
  font-size: clamp(56px, 9vw, 126px);
  line-height: .88;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-title-small {
  font-size: clamp(32px, 4.1vw, 58px);
  line-height: .98;
  text-transform: none;
}

.hero-title-large {
  font-size: clamp(82px, 10.6vw, 148px);
  line-height: .82;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-lead,
.section-copy > p,
.story-copy > p,
.river-content > p,
.whitebox-copy > p,
.location-copy > p,
.final-copy > p {
  max-width: 620px;
  color: inherit;
  opacity: .84;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: var(--button-radius);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-accent {
  color: var(--white);
  background: var(--coral);
  box-shadow: 0 18px 42px rgba(239, 104, 77, .30);
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .10);
}

.button-light {
  color: var(--white);
  background: var(--water);
  box-shadow: 0 18px 42px rgba(58, 117, 196, .28);
}

.button-wide {
  width: 100%;
}

.hero-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(18px);
}

.hero-stat {
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .12);
}

.hero-stat span,
.hero-stat small {
  display: block;
  opacity: .74;
}

.hero-stat strong {
  display: block;
  margin: 2px 0;
  font-size: 42px;
  line-height: .95;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 28px;
  left: 50%;
  width: 26px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-cue span {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--white);
  transform: translateX(-50%);
  animation: cue 1.5s ease infinite;
}

@keyframes cue {
  0%, 100% { transform: translate(-50%, 0); opacity: .35; }
  50% { transform: translate(-50%, 13px); opacity: 1; }
}

.quickpick {
  background:
    linear-gradient(120deg, rgba(24, 168, 216, .08), transparent 44%),
    url("../../img/46.png") center / cover no-repeat,
    var(--paper);
}

.image-story,
.gallery {
  background:
    linear-gradient(120deg, rgba(24, 168, 216, .08), transparent 44%),
    url("../../img/46.png") center / cover no-repeat,
    var(--paper);
}

.quickpick-grid,
.story-grid,
.whitebox-grid,
.mortgage-grid,
.location-grid,
.final-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
  gap: 56px;
  align-items: center;
}

.mini-facts,
.whitebox-points,
.mortgage-badges,
.route-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 28px;
}

.mini-facts span,
.whitebox-points span,
.mortgage-badges span,
.route-list span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}

.mini-facts span::before,
.whitebox-points span::before,
.mortgage-badges span::before,
.route-list span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(239, 104, 77, .12);
  flex: 0 0 auto;
}

.mortgage-badges span,
.section-dark .route-list span {
  color: rgba(255, 255, 255, .84);
}

.mini-facts span,
.whitebox-points span {
  color: var(--water);
}

.whitebox-points span::before,
.mini-facts span::before {
  background: var(--water);
  box-shadow: 0 0 0 4px rgba(58, 117, 196, .12);
}

.quiz-card,
.calc-card,
.final-form {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .88);
  box-shadow:
    0 34px 76px rgba(18, 24, 38, .16),
    0 12px 30px rgba(93, 141, 206, .12);
  backdrop-filter: blur(18px);
}

.quiz-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.quiz-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(58, 117, 196, .12);
}

.quiz-progress i {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--water-2), var(--violet), var(--coral));
  transition: width .25s ease;
}

.quiz-step {
  display: none;
}

.quiz-step.is-active {
  display: block;
}

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

.option-grid button {
  position: relative;
  overflow: hidden;
  min-height: 58px;
  padding: 13px 18px;
  border: 1px solid rgba(58, 117, 196, .20);
  border-radius: var(--button-radius);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .48) 48%, rgba(165, 217, 245, .20)),
    rgba(255, 255, 255, .52);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.15;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .86),
    inset 0 -18px 28px rgba(58, 117, 196, .04),
    0 12px 28px rgba(18, 24, 38, .08);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.option-grid button:hover,
.option-grid button.is-selected {
  color: var(--white);
  border-color: rgba(255, 255, 255, .48);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .06) 46%, rgba(255, 255, 255, .18)),
    rgba(58, 117, 196, .82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .64),
    inset 0 -18px 28px rgba(255, 255, 255, .08),
    0 18px 36px rgba(58, 117, 196, .20);
  transform: translateY(-1px);
}

.quiz-controls button {
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid rgba(58, 117, 196, .18);
  border-radius: var(--button-radius);
  color: var(--muted);
  background: rgba(255, 255, 255, .44);
  font-size: 16px;
  font-weight: 600;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.quiz-step label,
.calc-card label {
  display: block;
  margin-bottom: 14px;
}

.quiz-step label span,
.calc-card label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus,
select:focus {
  border-color: var(--water-2);
  box-shadow: 0 0 0 4px rgba(24, 168, 216, .12);
}

.quiz-controls {
  margin-top: 18px;
}

.quiz-controls button {
  min-height: 42px;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
}

.form-note,
.form-status {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.form-status {
  font-weight: 800;
}

.section-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.feature-wave {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  min-height: 250px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 16px 42px rgba(58, 117, 196, .08);
}

.feature-card:nth-child(2),
.feature-card:nth-child(4) {
  transform: translateY(34px);
}

.icon-line {
  display: block;
  width: 54px;
  height: 28px;
  margin-bottom: 26px;
  border-bottom: 6px solid var(--water-2);
  border-radius: 0 0 999px 999px;
}

.story-grid {
  grid-template-columns: minmax(360px, 1fr) minmax(0, 480px);
}

.story-media,
.whitebox-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.story-media img,
.whitebox-media img,
.gallery-grid img,
.mop-tabs img,
.map-card img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow:
    0 34px 76px rgba(18, 24, 38, .22),
    0 12px 26px rgba(93, 141, 206, .12);
}

.story-media img {
  height: 520px;
}

.story-media img:first-child {
  margin-top: 46px;
}

.clean-list {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  position: relative;
  padding-left: 28px;
  font-weight: 700;
}

.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 16px;
  height: 3px;
  border-radius: 999px;
  background: var(--coral);
}

.text-link {
  display: inline-flex;
  margin-top: 26px;
  color: var(--water);
  font-weight: 900;
  border-bottom: 2px solid currentColor;
}

.apartments {
  background: var(--white);
}

.apartment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.apartment-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .86)),
    url("../../img/47.png") center / cover no-repeat;
  box-shadow:
    0 34px 76px rgba(18, 24, 38, .14),
    0 12px 30px rgba(93, 141, 206, .12);
}

.apartment-card.is-accent {
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(58, 117, 196, .94), rgba(116, 101, 184, .84)),
    url("../../img/48.png") center / cover no-repeat;
}

.apartment-card span {
  width: max-content;
  margin-bottom: 22px;
  padding: 0 0 6px;
  border-bottom: 2px solid currentColor;
  color: var(--water);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.apartment-card.is-accent span {
  color: var(--white);
}

.apartment-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.1;
}

.apartment-card p {
  color: inherit;
  opacity: .78;
}

.apartment-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 48px;
  margin-top: auto;
  padding: 12px 18px;
  border-radius: var(--button-radius);
  color: var(--white);
  background: linear-gradient(180deg, #ff735a 0%, var(--coral) 100%);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.1;
  box-shadow: 0 14px 30px rgba(239, 104, 77, .20);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.apartment-card a:hover {
  background: #df553f;
  box-shadow: 0 18px 34px rgba(239, 104, 77, .28);
  transform: translateY(-2px);
}

.plans-showcase {
  margin: 64px calc(50% - 50vw) 0;
  padding: 76px max(40px, calc((100vw - 1180px) / 2)) 84px;
  background:
    linear-gradient(120deg, rgba(24, 168, 216, .08), transparent 44%),
    url("../../img/46.png") center / cover no-repeat,
    var(--paper);
}

.plans-head {
  max-width: 760px;
  margin-bottom: 26px;
}

.plans-head h3 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3vw, 42px);
}

.plans-head p:last-child {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.plan-card {
  overflow: hidden;
  border: 1px solid rgba(58, 117, 196, .14);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(244, 247, 248, .90)),
    rgba(255, 255, 255, .88);
  box-shadow:
    0 34px 76px rgba(18, 24, 38, .16),
    0 12px 30px rgba(93, 141, 206, .12);
}

.plan-image {
  display: grid;
  place-items: center;
  height: 280px;
  padding: 18px;
  color: inherit;
  background:
    radial-gradient(circle at 20% 0, rgba(165, 217, 245, .26), transparent 34%),
    #ffffff;
  cursor: zoom-in;
}

.plan-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 28px rgba(18, 24, 38, .16));
  transition: transform .24s ease;
}

.plan-image:hover img {
  transform: scale(1.025);
}

.plan-meta {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.plan-meta span {
  width: max-content;
  padding: 0 0 5px;
  border-bottom: 2px solid currentColor;
  color: var(--water);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.plan-meta strong {
  font-size: 25px;
  line-height: 1;
}

.plan-meta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: var(--button-radius);
  color: var(--white);
  background: var(--coral);
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 12px 26px rgba(239, 104, 77, .18);
  transition: transform .2s ease, box-shadow .2s ease;
}

.plan-meta a:hover {
  box-shadow: 0 16px 30px rgba(239, 104, 77, .24);
  transform: translateY(-2px);
}

.lead-modal,
.plan-modal,
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.lead-modal.is-open,
.plan-modal.is-open,
.gallery-modal.is-open {
  display: flex;
}

.lead-modal-backdrop,
.plan-modal-backdrop,
.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 13, 18, .72);
  backdrop-filter: blur(10px);
}

.lead-modal-dialog,
.plan-modal-dialog,
.gallery-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  max-height: calc(100svh - 56px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .34);
}

.lead-modal-dialog {
  width: min(100%, 760px);
  padding: 30px;
}

.lead-modal-copy h2 {
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 46px);
}

.lead-modal-copy p:last-child {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 18px;
}

.lead-modal-form {
  display: grid;
  gap: 12px;
}

.plan-modal-dialog {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.plan-modal-dialog img {
  width: 100%;
  max-height: calc(100svh - 150px);
  object-fit: contain;
}

.plan-modal-dialog p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.gallery-modal-dialog {
  width: min(100%, 1120px);
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  gap: 14px;
  align-items: center;
  padding: 22px;
  color: var(--white);
  background: rgba(14, 17, 22, .94);
}

.gallery-modal-stage {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.gallery-modal-stage img {
  width: 100%;
  max-height: calc(100svh - 170px);
  border-radius: var(--radius);
  object-fit: contain;
  background: rgba(255, 255, 255, .04);
}

.gallery-modal-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
  font-weight: 700;
}

.gallery-modal-caption p {
  margin: 0;
}

.gallery-modal-control {
  width: 54px;
  height: 70px;
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: var(--button-radius);
  color: var(--white);
  background: rgba(255, 255, 255, .10);
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.gallery-modal-control:hover {
  border-color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .18);
  transform: translateY(-1px);
}

.gallery-modal-control svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lead-modal-close,
.plan-modal-close,
.gallery-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(18, 24, 38, .12);
  border-radius: var(--button-radius);
  background: rgba(255, 255, 255, .86);
}

.lead-modal-close span,
.plan-modal-close span,
.gallery-modal-close span {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 20px;
  height: 2px;
  background: var(--ink);
}

.lead-modal-close span:first-child,
.plan-modal-close span:first-child,
.gallery-modal-close span:first-child {
  transform: rotate(45deg);
}

.lead-modal-close span:last-child,
.plan-modal-close span:last-child,
.gallery-modal-close span:last-child {
  transform: rotate(-45deg);
}

body.modal-open {
  overflow: hidden;
}

.river {
  min-height: 680px;
  display: grid;
  align-items: end;
}

.river::after,
.final-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 21, 33, .82), rgba(4, 21, 33, .32), rgba(4, 21, 33, .06));
}

.river-content {
  position: relative;
  z-index: 2;
  padding-bottom: 42px;
}

.river-content p {
  margin-bottom: 26px;
}

.whitebox {
  background: #f7f2ea;
}

.whitebox-grid {
  grid-template-columns: minmax(0, 470px) minmax(360px, 1fr);
}

.whitebox-media img {
  height: 500px;
}

.whitebox-media img:last-child {
  margin-top: 56px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.gallery-item {
  grid-column: span 2;
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
  box-shadow:
    0 34px 76px rgba(18, 24, 38, .18),
    0 12px 30px rgba(93, 141, 206, .12);
}

.gallery-item img {
  display: block;
  height: 260px;
  transition: transform .25s ease, filter .25s ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
  filter: saturate(1.05);
}

.gallery-item:focus-visible {
  outline: 3px solid var(--water-2);
  outline-offset: 3px;
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(6) {
  grid-column: span 2;
}

.gallery-item:nth-child(2),
.gallery-item:nth-child(3),
.gallery-item:nth-child(4),
.gallery-item:nth-child(5) {
  grid-column: span 2;
}

.mop {
  background: var(--white);
}

.mop-tabs {
  border-radius: var(--radius);
  filter: drop-shadow(0 34px 56px rgba(18, 24, 38, .16));
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.tab-buttons button {
  position: relative;
  overflow: hidden;
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid rgba(30, 36, 43, .16);
  border-radius: var(--button-radius);
  color: rgba(20, 23, 28, .90);
  background: rgba(30, 36, 43, .08);
  font-size: 17px;
  font-weight: 600;
  box-shadow:
    0 18px 38px rgba(18, 24, 38, .10),
    0 1px 0 rgba(255, 255, 255, .38) inset;
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.tab-buttons button::before {
  display: none;
}

.tab-buttons button.is-active {
  color: var(--white);
  border-color: rgba(239, 104, 77, .86);
  background: linear-gradient(180deg, #ff735a 0%, var(--coral) 100%);
  box-shadow: 0 20px 44px rgba(239, 104, 77, .24);
}

.tab-buttons button:hover {
  transform: translateY(-1px);
}

.tab-panel {
  display: none;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
  gap: 26px;
  align-items: end;
}

.tab-panel.is-active {
  display: grid;
}

.tab-panel img {
  height: 560px;
}

.tab-panel div {
  padding: 30px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .82)),
    url("../../img/46.png") center / cover no-repeat;
  box-shadow:
    0 30px 70px rgba(18, 24, 38, .14),
    0 12px 28px rgba(93, 141, 206, .12);
}

.mortgage {
  background:
    linear-gradient(135deg, rgba(58, 117, 196, .92), rgba(111, 143, 87, .76)),
    url("../../img/24.png") center / cover no-repeat;
  color: var(--white);
}

.mortgage::before {
  border-color: rgba(255, 255, 255, .18);
}

.calc-card {
  color: var(--ink);
  box-shadow:
    0 38px 86px rgba(18, 24, 38, .20),
    0 14px 34px rgba(93, 141, 206, .14);
}

.calc-result {
  margin: 18px 0;
  padding: 20px;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, var(--water), var(--violet));
}

.calc-result span,
.calc-result strong {
  display: block;
}

.calc-result span {
  opacity: .72;
  font-weight: 800;
}

.calc-result strong {
  margin-top: 4px;
  font-size: 34px;
  line-height: 1;
}

.location-grid {
  grid-template-columns: minmax(360px, 1fr) minmax(0, 470px);
}

.map-card img {
  height: 560px;
}

.faq {
  background: var(--white);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

summary {
  cursor: pointer;
  padding: 22px 24px;
  font-size: 19px;
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 24px 24px;
  color: var(--muted);
}

.final-cta {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
}

.final-layout {
  position: relative;
  z-index: 2;
}

.final-form {
  display: grid;
  gap: 12px;
  color: var(--ink);
}

.site-footer {
  padding: 34px 0;
  color: rgba(255, 255, 255, .78);
  background: var(--graphite);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr auto;
  gap: 24px;
  align-items: start;
}

.footer-grid p {
  margin: 0;
}

.footer-grid strong {
  display: block;
  color: var(--white);
  margin-bottom: 6px;
}

.footer-grid a {
  color: var(--white);
  font-weight: 900;
}

.footer-office {
  display: grid;
  gap: 4px;
}

.footer-office p {
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
}

.footer-office a {
  display: inline-flex;
  width: max-content;
  margin-top: 4px;
  font-size: 15px;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.footer-social a {
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 11px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--button-radius);
  background: rgba(255, 255, 255, .07);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.footer-social a img {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  object-fit: contain;
}

.footer-social a:hover {
  border-color: rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .12);
  transform: translateY(-1px);
}

.footer-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.footer-top svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-top:hover {
  border-color: rgba(255, 255, 255, .36);
  background: rgba(58, 117, 196, .72);
  transform: translateY(-2px);
}

.footer-disclaimer {
  grid-column: 1 / -1;
  max-width: 1120px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.footer-disclaimer p {
  color: rgba(255, 255, 255, .58);
  font-size: 11px;
  line-height: 1.55;
}

.footer-disclaimer a {
  color: rgba(255, 255, 255, .82);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: auto 1fr auto auto;
  }

  .main-nav {
    flex-direction: column;
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .main-nav.is-open {
    display: grid;
  }

  .hero-layout,
  .quickpick-grid,
  .story-grid,
  .whitebox-grid,
  .mortgage-grid,
  .location-grid,
  .final-layout,
  .tab-panel.is-active {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-wave,
  .apartment-grid,
  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top {
    justify-self: start;
  }

  .story-media img,
  .whitebox-media img,
  .tab-panel img,
  .map-card img {
    height: 420px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 620px);
  }

  .section {
    padding: 68px 0;
  }

  .site-header {
    width: calc(100% - 20px);
    margin-top: 10px;
    gap: 12px;
  }

  .header-contact {
    display: none;
  }

  .header-center {
    justify-self: end;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    margin-left: 0;
    font-size: 13px;
  }

  .header-tagline {
    display: none;
  }

  .header-links {
    gap: 12px;
  }

  .brand {
    width: 104px;
    min-width: 104px;
  }

  .brand-logo {
    width: 104px;
    height: 54px;
  }

  .hero {
    min-height: 760px;
    padding: 112px 0 54px;
  }

  .hero-video {
    display: none;
  }

  .hero-image {
    opacity: 1;
  }

  .hero-tint {
    background:
      linear-gradient(180deg, rgba(5, 19, 32, .64), rgba(5, 19, 32, .34) 42%, rgba(5, 19, 32, .90) 100%),
      linear-gradient(90deg, rgba(5, 19, 32, .70), rgba(5, 19, 32, .18));
  }

  h1 {
    font-size: clamp(54px, 19vw, 92px);
  }

  .hero-title-small {
    font-size: clamp(28px, 9vw, 42px);
  }

  .hero-title-large {
    font-size: clamp(72px, 23vw, 118px);
  }

  h2 {
    font-size: clamp(30px, 10vw, 44px);
  }

  .hero-lead,
  .section-copy > p,
  .story-copy > p,
  .river-content > p,
  .whitebox-copy > p,
  .location-copy > p,
  .final-copy > p {
    font-size: 17px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-stat strong {
    font-size: 34px;
  }

  .option-grid,
  .feature-wave,
  .apartment-grid,
  .plans-grid,
  .story-media,
  .whitebox-media,
  .gallery-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item,
  .gallery-item:nth-child(n) {
    grid-column: auto;
  }

  .feature-card:nth-child(2),
  .feature-card:nth-child(4),
  .story-media img:first-child,
  .whitebox-media img:last-child {
    transform: none;
    margin-top: 0;
  }

  .story-media img,
  .whitebox-media img,
  .gallery-grid img,
  .tab-panel img,
  .map-card img {
    height: 320px;
  }

  .quiz-card,
  .calc-card,
  .final-form {
    padding: 20px;
  }

  .river {
    min-height: 600px;
  }

  .plan-image {
    height: 260px;
  }

  .lead-modal,
  .plan-modal,
  .gallery-modal {
    padding: 14px;
  }

  .lead-modal-dialog,
  .plan-modal-dialog,
  .gallery-modal-dialog {
    max-height: calc(100svh - 28px);
  }

  .lead-modal-dialog {
    padding: 22px;
  }

  .gallery-modal-dialog {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 8px;
    padding: 16px;
  }

  .gallery-modal-control {
    width: 42px;
    height: 58px;
  }

  .gallery-modal-stage img {
    max-height: calc(100svh - 148px);
  }

  .footer-grid {
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
