@font-face {
  font-family: "Mulish";
  src: url("/assets/fonts/Mulish-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #10242d;
  --ink-2: #263d46;
  --river: #117b88;
  --river-2: #dff6f2;
  --sun: #e0a441;
  --coral: #d86d4a;
  --moss: #5d7d65;
  --paper: #f7f4ed;
  --white: #ffffff;
  --muted: #6c7a80;
  --line: rgba(16, 36, 45, 0.14);
  --shadow: 0 24px 80px rgba(16, 36, 45, 0.18);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Mulish", Arial, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.nav-open,
body.modal-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 16px 34px;
  color: var(--white);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(247, 244, 237, 0.93);
  box-shadow: 0 12px 40px rgba(16, 36, 45, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 152px;
  height: 38px;
  position: relative;
}

.brand-logo {
  position: absolute;
  inset: 0;
  width: 152px;
  height: 38px;
  object-fit: contain;
  object-position: left center;
  transition: opacity 0.2s ease;
}

.brand-logo-color,
.site-header.is-scrolled .brand-logo-white,
.site-header.is-open .brand-logo-white {
  opacity: 0;
}

.site-header.is-scrolled .brand-logo-color,
.site-header.is-open .brand-logo-color {
  opacity: 1;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.header-phone {
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
}

.icon-button,
.nav-toggle,
.modal-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  color: currentColor;
  display: inline-grid;
  place-items: center;
}

.site-header.is-scrolled .icon-button,
.site-header.is-scrolled .nav-toggle,
.site-header.is-open .icon-button,
.site-header.is-open .nav-toggle {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-toggle {
  display: none;
  position: relative;
}

.nav-toggle span,
.modal-close span {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  position: absolute;
  left: 11px;
  transition: transform 0.2s ease;
}

.nav-toggle span:first-child {
  transform: translateY(-4px);
}

.nav-toggle span:last-child {
  transform: translateY(4px);
}

body.nav-open .nav-toggle span:first-child,
.modal-close span:first-child {
  transform: rotate(45deg);
}

body.nav-open .nav-toggle span:last-child,
.modal-close span:last-child {
  transform: rotate(-45deg);
}

.hero {
  min-height: calc(100svh - 56px);
  position: relative;
  overflow: hidden;
  color: var(--white);
  display: grid;
  align-items: end;
  padding: 116px 0 72px;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  transform: translate3d(0, var(--parallax-y, 0), 0) scale(1.06);
}

.hero-video,
.hero-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster {
  display: none;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 26, 34, 0.88) 0%, rgba(7, 26, 34, 0.58) 43%, rgba(7, 26, 34, 0.26) 100%),
    linear-gradient(0deg, rgba(7, 26, 34, 0.55) 0%, rgba(7, 26, 34, 0) 44%);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 390px;
  gap: 48px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sun);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  font-size: 96px;
  line-height: 0.92;
  font-weight: 300;
}

h2 {
  margin-bottom: 20px;
  font-size: 46px;
  line-height: 1.04;
  font-weight: 300;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.18;
  font-weight: 500;
}

.hero-lead {
  max-width: 640px;
  margin-bottom: 30px;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.88);
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 750;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

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

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

.button-primary {
  background: var(--sun);
  color: #24180c;
}

.button-glass {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.13);
  color: var(--white);
  backdrop-filter: blur(12px);
}

.button-dark {
  background: var(--ink);
  color: var(--white);
}

.button-wide {
  width: 100%;
}

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

.hero-board {
  display: grid;
  gap: 10px;
}

.hero-board div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.hero-board span,
.calc-result span,
.life-card span {
  display: block;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.hero-board strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
  line-height: 1;
  font-weight: 350;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 14px;
  transform: translateX(-50%);
}

.scroll-cue::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--white);
  transform: translateX(-50%);
  animation: cue 1.4s ease-in-out infinite;
}

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

.promo-strip {
  overflow: hidden;
  background: var(--river);
  color: var(--white);
}

.promo-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.promo-track span {
  padding: 18px 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 15px;
  font-weight: 750;
  white-space: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section {
  padding: 104px 0;
}

.story-grid,
.mortgage-grid,
.location-grid,
.lead-wave-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 52px;
  align-items: center;
}

.story-copy p,
.section-head p,
.mortgage-copy p,
.location-copy p {
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
}

.fact-row,
.route-list,
.mortgage-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.fact-row span,
.route-list span,
.mortgage-badges span,
.feed-note,
.choice-toolbar button,
.rate-tabs button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.52);
  padding: 10px 13px;
  font-size: 14px;
  font-weight: 650;
}

.story-scenes {
  min-height: 580px;
  position: relative;
}

.scene {
  margin: 0;
  position: absolute;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translate3d(0, var(--parallax-y, 0), 0);
}

.scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: rgba(16, 36, 45, 0.72);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}

.scene-large {
  top: 0;
  right: 0;
  width: 82%;
  height: 390px;
}

.scene-small {
  left: 0;
  bottom: 0;
  width: 54%;
  height: 300px;
}

.choice {
  background: #ffffff;
}

.section-head {
  max-width: 820px;
  margin-bottom: 30px;
}

.choice-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.choice-toolbar button,
.rate-tabs button {
  color: var(--ink);
}

.choice-toolbar button.is-active,
.rate-tabs button.is-active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.feed-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  color: var(--muted);
}

.feed-note a {
  color: var(--river);
  font-weight: 800;
  white-space: nowrap;
}

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

.flat-card,
.quiz-form,
.calc-form,
.modal-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 50px rgba(16, 36, 45, 0.08);
}

.flat-card {
  overflow: hidden;
  display: grid;
  min-height: 100%;
}

.flat-image {
  display: grid;
  place-items: center;
  height: 240px;
  background: #f5f8f6;
  padding: 18px;
}

.flat-image img {
  max-height: 100%;
  object-fit: contain;
}

.flat-body {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.flat-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.flat-title strong {
  font-size: 24px;
  font-weight: 450;
}

.flat-title span {
  color: var(--river);
  font-weight: 800;
}

.flat-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.flat-meta span {
  border-top: 1px solid var(--line);
  padding-top: 9px;
  color: var(--muted);
  font-size: 13px;
}

.flat-card .button {
  min-height: 46px;
}

.lead-wave {
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}

.lead-wave-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
}

.lead-wave-media {
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 520px;
}

.lead-wave-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.quiz-form,
.calc-form,
.modal-form {
  padding: 28px;
  color: var(--ink);
}

.quiz-form h2 {
  font-size: 34px;
}

.quiz-step {
  display: none;
}

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

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

.option-grid button {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7f4ed;
  color: var(--ink);
  font-weight: 750;
}

.option-grid button:hover,
.option-grid button.is-selected {
  border-color: var(--river);
  background: var(--river-2);
}

.quiz-progress {
  height: 4px;
  border-radius: 2px;
  background: rgba(16, 36, 45, 0.12);
  overflow: hidden;
}

.quiz-progress i {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--sun);
  transition: width 0.25s ease;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

input,
select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaf6;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--river);
  box-shadow: 0 0 0 3px rgba(17, 123, 136, 0.12);
}

.form-note,
.form-status,
.calc-result small {
  color: var(--muted);
  font-size: 12px;
}

.form-status {
  min-height: 18px;
  margin: 12px 0 0;
  font-weight: 750;
}

.form-status.is-ok {
  color: var(--moss);
}

.form-status.is-error {
  color: var(--coral);
}

.mortgage {
  background: #f3efe5;
}

.rate-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.calc-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.calc-result {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  padding: 20px;
  margin: 10px 0 16px;
}

.calc-result strong {
  display: block;
  margin: 7px 0 4px;
  font-size: 36px;
  line-height: 1;
  font-weight: 350;
}

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

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

.life-card {
  min-height: 520px;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
}

.life-card img {
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.life-card div {
  padding: 20px;
}

.life-card span {
  color: var(--sun);
}

.life-card p {
  color: rgba(255, 255, 255, 0.74);
}

.location-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.map-panel {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.map-panel img {
  width: 100%;
  min-height: 430px;
  object-fit: cover;
}

.final-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 104px 0;
  color: var(--white);
  background: var(--ink);
}

.final-cta > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.final-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(8, 28, 36, 0.72);
}

.final-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
  gap: 46px;
  align-items: center;
}

.final-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: start;
}

.final-form input {
  background: rgba(255, 255, 255, 0.95);
}

.final-form .form-status {
  grid-column: 1 / -1;
  color: var(--white);
}

.site-footer {
  padding: 54px 0;
  background: #f7f4ed;
  color: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.8fr;
  gap: 32px;
}

.footer-logo {
  width: 150px;
  margin-bottom: 16px;
}

.site-footer p,
.site-footer a {
  display: block;
  margin: 6px 0;
  color: var(--muted);
}

.footer-disclaimer {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 20px;
}

.lead-modal.is-open {
  display: grid;
}

.lead-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 24, 32, 0.72);
  backdrop-filter: blur(10px);
}

.modal-form {
  position: relative;
  z-index: 1;
  width: min(100%, 470px);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border-color: var(--line);
  color: var(--ink);
  background: #f7f4ed;
}

.mobile-cta {
  display: none;
}

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

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1080px) {
  .site-header {
    padding: 14px 20px;
  }

  .site-nav {
    gap: 15px;
  }

  .hero-layout,
  .story-grid,
  .mortgage-grid,
  .location-grid,
  .lead-wave-layout,
  .final-layout {
    grid-template-columns: 1fr;
  }

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

  .apartments-grid,
  .life-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-wave-layout {
    gap: 28px;
  }
}

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

  .site-header {
    grid-template-columns: auto auto;
  }

  .site-nav {
    position: fixed;
    top: 70px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(247, 244, 237, 0.98);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 13px 10px;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .header-phone {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 52px);
    padding: 110px 0 58px;
  }

  .hero-layout {
    gap: 28px;
  }

  h1 {
    font-size: 64px;
  }

  h2 {
    font-size: 36px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-board,
  .flat-meta,
  .final-form {
    grid-template-columns: 1fr;
  }

  .story-scenes {
    min-height: auto;
    display: grid;
    gap: 14px;
  }

  .scene {
    position: relative;
    inset: auto;
    width: 100%;
    height: 300px;
  }

  .section {
    padding: 72px 0;
  }

  .apartments-grid,
  .life-grid {
    grid-template-columns: 1fr;
  }

  .lead-wave-media,
  .lead-wave-media img {
    min-height: 360px;
  }

  .mobile-cta {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 35;
    display: grid;
    place-items: center;
    min-height: 52px;
    border-radius: var(--radius);
    background: var(--sun);
    color: #24180c;
    font-weight: 850;
    box-shadow: 0 16px 40px rgba(16, 36, 45, 0.2);
  }
}

@media (max-width: 560px) {
  .brand,
  .brand-logo {
    width: 128px;
  }

  h1 {
    font-size: 50px;
  }

  h2 {
    font-size: 30px;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .option-grid,
  .calc-inline {
    grid-template-columns: 1fr;
    display: grid;
  }

  .feed-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .flat-image {
    height: 220px;
  }

  .quiz-form,
  .calc-form,
  .modal-form {
    padding: 22px;
  }

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