@font-face {
  font-family: Geologica;
  src: url('../fonts/geologica.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Unbounded;
  src: url('../fonts/unbounded.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: 'YFF Rare Mega';
  src: url('../fonts/YFFRARETRIAL-MegaRegular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'YFF Rare Mega';
  src: url('../fonts/YFFRARETRIAL-MegaMedium.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

/* Rail.A identity: screen colours and permitted pairs from the design guide. */
:root {
  --rail-navy: #023760;
  --rail-steel: #496e91;
  --rail-steel-light: #688fb4;
  --rail-blue: #76a1ca;
  --rail-ice: #bbdaf8;
  --rail-silver: #9da3a7;
  --rail-ink: #1b1d22;
  --rail-accent: #cb1246;
  --rail-white: #fff;
  --rail-wash: color-mix(in srgb, var(--rail-ice) 24%, white);
  --rail-line: color-mix(in srgb, var(--rail-blue) 49%, white);
  --rail-accent-hover: color-mix(in srgb, var(--rail-accent) 80%, var(--rail-ink));
  --rail-focus: var(--rail-steel);
  --rail-body: Geologica, Arial, sans-serif;
  --rail-heading: 'YFF Rare Mega', Unbounded, Geologica, Arial, sans-serif;
  --rail-radius: clamp(16px, 2vw, 30px);
}

/* The wordmark is an intact positive lockup, with clear space in the header. */
#site-header { background: white; border-color: var(--rail-line); }
.brand-link { padding-block: 10px; }
.primary-nav a, .header-phone { color: var(--rail-navy); font-weight: 520; }
.nav-toggle { color: var(--rail-navy); border-color: var(--rail-line); }
.btn, .fl-page .fl-button, .fl-page .fl-ghost, .catalog-card__request {
  border-radius: 9px;
  font-weight: 570;
}
.btn-primary, .fl-page .fl-button-main, .catalog-card__request {
  background: var(--rail-accent);
  border-color: var(--rail-accent);
  color: #fff;
  box-shadow: none;
}
.btn-primary:hover, .fl-page .fl-button-main:hover, .catalog-card__request:hover {
  background: var(--rail-accent-hover);
  border-color: var(--rail-accent-hover);
}
.btn-outline, .opening-actions .floor-shortcut {
  color: var(--rail-navy);
  border-color: var(--rail-steel);
  background: transparent;
  font-weight: 550;
}
.btn-outline:hover, .opening-actions .floor-shortcut:hover {
  color: var(--rail-navy);
  border-color: var(--rail-navy);
  background: var(--rail-wash);
}
.text-link { font-weight: 550; }
:focus-visible { outline-color: var(--rail-steel); }

/* Display typography stays distinct from the text, controls and source notes. */
h1, h2, h3, .opening-price, .floor-offer-figures dd, .footer-phone,
.catalog-card__price, .lot-purchase .lot-purchase__price, .fl-stat-grid dd,
.fl-calc-result > strong { font-family: var(--rail-heading); }
.opening-copy h1, .section-heading h2, .purchase h2, .footer-top h2,
.floor-offer-intro h2, .catalog-card__body h3, .lot-heading h1, .lot-unavailable h1,
.fl-page h1, .fl-page h2, .fl-plan-heading h3, .lead-dialog h2 {
  font-weight: 400;
  letter-spacing: -.032em;
}
.purchase-list h3, .restore-location-info h3, .restore-infra-copy h3,
.restore-team h3, .fl-double h3, .fl-steps h3, .lot-terms h2 {
  font-weight: 400;
  letter-spacing: -.018em;
}
.opening-copy h1, .section-heading h2, .purchase h2, .lot-heading h1,
.lot-unavailable h1, .lot-terms h2, .catalog-card__body h3, .fl-page h2,
.fl-plan-heading h3 { color: var(--rail-navy); }
.eyebrow, .fl-page .fl-location { font-weight: 520; }
.eyebrow { color: var(--rail-steel); letter-spacing: .07em; }
.architecture-gallery .section-heading h2, .footer-top h2 { color: white; }

/* A thin line with a single rounded turn is the project's framing device. */
.opening { background: white; padding-block: clamp(24px, 2.6vw, 40px) clamp(22px, 3vw, 44px); }
.opening-grid { position: relative; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.opening-copy { position: relative; padding-bottom: clamp(26px, 3.4vw, 54px); }
.opening-copy::after {
  content: '';
  position: absolute;
  left: calc(var(--gutter) * -1);
  right: -12px;
  bottom: 0;
  height: 21px;
  border: solid var(--rail-blue);
  border-width: 0 1px 1px 0;
  border-bottom-right-radius: 21px;
  pointer-events: none;
}
.opening-photo { border-radius: var(--rail-radius); background: var(--rail-ice); }
.opening-price { color: var(--rail-navy); letter-spacing: -.025em; }
.opening-price strong { font-weight: 500; }
.opening-price span { font-family: var(--rail-body); font-weight: 400; }
.accent-rule { width: 31px; height: 2px; background: var(--rail-blue); }
.floor-invitation { background: var(--rail-navy); }
.floor-offer-intro p, .floor-offer-figures dt, .floor-offer-note { color: var(--rail-ice); }
.floor-offer-figures > div { border-color: var(--rail-steel-light); }
.floor-offer-figures dd { font-weight: 400; letter-spacing: -.022em; }
.floor-offer-action { border-color: white; color: var(--rail-navy); background: white; }
.floor-offer-action:hover, .floor-offer-action:focus-visible { border-color: var(--rail-ice); color: var(--rail-navy); background: var(--rail-ice); }
.project-directory { border-color: var(--rail-line); }
.directory-links a { color: var(--rail-navy); }

.catalog-controls, #catalog-grid, .lot-detail { --cat-ink: var(--rail-navy); }
.catalog-tab { border-radius: 7px; font-weight: 475; }
.catalog-tab[aria-selected='true'] { background: var(--rail-navy); }
.catalog-card { border-radius: 0 var(--rail-radius) 0 var(--rail-radius); border-color: var(--rail-line); }
.catalog-card__visual { background: var(--rail-wash); }
.catalog-card__id { color: var(--rail-steel); }
.catalog-card__price, .lot-purchase .lot-purchase__price { font-weight: 400; letter-spacing: -.025em; }
.lot-plan, .fl-figure { border-radius: var(--rail-radius); background: var(--rail-wash); }
.lot-purchase { border-radius: 0 var(--rail-radius) 0 var(--rail-radius); border-color: var(--rail-blue); }
.lot-purchase h2 { font-family: var(--rail-body); }
.purchase, .fl-comparison { background: var(--rail-wash); }
.purchase-list article { border-color: var(--rail-blue); }
.purchase-list p, .purchase-aside { color: var(--rail-navy); }
.restore-map > a, .restore-infra-photo img, .project-grid img, .gallery-tile a, .construction-gallery a,
.manager-portrait img { border-radius: var(--rail-radius); }
.architecture-gallery { background: var(--rail-navy); }
.construction-history { background: var(--rail-wash); }
.construction-intro, .construction-update, .construction-photo-count, .construction-history .section-note { color: var(--rail-navy); }
.construction-months, .construction-month { border-color: var(--rail-blue); }
.restore-team-grid article { border-color: var(--rail-blue); }
#site-footer { background: var(--rail-navy); }
.footer-invitation .btn-primary { border-color: var(--rail-accent); }
.project-viewer { background: var(--rail-navy); border-radius: 18px; }
.lead-dialog { background: white; border-radius: 0 var(--rail-radius) 0 var(--rail-radius); }
.lead-dialog h2 { color: var(--rail-navy); }

.fl-page { --fl-ink: var(--rail-navy); --fl-paper: white; }
.fl-page .fl-hero { background: var(--rail-navy); }
.fl-stat-grid dd, .fl-calc-result > strong { font-weight: 400; letter-spacing: -.028em; }
.fl-stat-grid dt { color: var(--rail-steel); }
.fl-plan-layout { border-radius: 0 var(--rail-radius) 0 var(--rail-radius); overflow: hidden; }
.fl-figure { border-radius: 0; }
.fl-options input + span, .fl-input-row { border-radius: 7px; }
.fl-calc-panel { border-radius: 0 var(--rail-radius) 0 var(--rail-radius); overflow: hidden; }
.fl-calc-result { background: var(--rail-navy); }
.fl-double { border-radius: 0 var(--rail-radius) 0 var(--rail-radius); }
.fl-disclosure { border-color: var(--rail-blue); }
.fl-calc-controls .fl-calclot { color: var(--rail-steel); }

@media(max-width: 760px) {
  .opening-grid { grid-template-columns: 1fr; }
  .opening { padding: 17px 0 21px; }
  .opening-copy { padding-bottom: 0; }
  .opening-copy::after { display: none; }
  .opening-photo { border-top-left-radius: 5px; }
  .opening-actions .btn { font-weight: 550; }
  .footer-invitation h2 { color: white; }
}

/* Keep the floor offer directly underneath the introduction. */
.opening { padding-bottom: 0; }
.opening-grid { padding-bottom: clamp(18px, 2.3vw, 34px); }
.opening-photo { min-height: clamp(350px, 29vw, 470px); }
@media (min-width: 761px) and (max-width: 1080px) {
  .opening-photo { width: 100%; min-height: 0; aspect-ratio: 1; align-self: center; }
  .opening-photo picture img { object-position: 34% center; }
}
.opening-copy { padding-block: 16px 26px; }
.opening-copy h1 { font-size:clamp(2.7rem,4.1vw,4.55rem); margin-block: clamp(15px,1.7vw,25px) 18px; }
.opening-actions { align-items: stretch; gap: 10px; }
.opening .opening-actions .btn { align-self: stretch; }
.opening .opening-actions .floor-shortcut {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 10px 18px;
  color: white;
  border-color: var(--rail-accent);
  background: var(--rail-accent);
  text-align: left;
  font-family: var(--rail-body);
  font-size: .86rem;
  font-weight: 410;
  line-height: 1.25;
}
.opening .opening-actions .floor-shortcut strong { display: block; font-size: 1.02rem; font-weight: 620; }
.opening .opening-actions .floor-shortcut:hover { border-color: var(--rail-accent-hover); background: var(--rail-accent-hover); }
.opening .opening-actions .btn-outline { color: var(--rail-navy); background: white; }
.opening .opening-actions .btn-outline:hover { background: var(--rail-wash); }
.fl-page h1 .fl-no-down { color: var(--rail-ice); }
.fl-page #fl-rate { font-family: var(--rail-heading); font-weight: 400; }
.fl-calc-lines #fl-monthly { margin: 0; color: white; font: 530 1em/1.45 var(--rail-body); letter-spacing: 0; }

.project-overview { background: var(--rail-wash); }
.overview-layout {
  display: grid;
  grid-template-columns: minmax(0,.96fr) minmax(0,1.04fr);
  align-items: start;
  gap: clamp(24px,5vw,82px);
}
.project-overview h3 { color: var(--rail-navy); font: 400 clamp(1.3rem,2vw,2rem)/1.15 var(--rail-heading); letter-spacing: -.025em; }
.overview-specs { margin: 18px 0 0; }
.overview-specs > div { display: grid; grid-template-columns: 1fr 1fr; align-items: baseline; gap: 15px; padding: 12px 0; border-bottom: 1px solid var(--rail-line); }
.overview-specs dt { color: var(--rail-steel); font-size: .91rem; }
.overview-specs dd { color: var(--rail-navy); margin: 0; font-weight: 520; }
.overview-investment { min-width: 0; padding: clamp(20px, 2.7vw, 38px); background: #fff; border: 1px solid var(--rail-line); border-top: 2px solid var(--rail-steel-light); border-radius: 0 var(--rail-radius) 0 var(--rail-radius); }
.overview-investment p { color: var(--rail-steel); margin-block: 10px; line-height: 1.55; }
.overview-investment :is(input,select) { min-width: 0; max-width: 100%; width: 100%; padding: 10px 13px; border: 1px solid var(--rail-steel); border-radius: 7px; background:white; color: var(--rail-ink); }
.investment-input { display: grid; gap: 7px; margin: 12px 0; font-size: .92rem; }
.investment-output { margin-top: 15px; padding: 16px 18px; background: var(--rail-wash); border-left: 2px solid var(--rail-steel-light); color: var(--rail-navy); }
.investment-output strong, .investment-output output { color: var(--rail-navy); font-family: var(--rail-heading); font-weight: 400; }
@media(max-width:760px) {
  .opening { display: flex; flex-direction: column; padding: 0; }
  .opening-grid { display: contents; }
  .opening-copy { order: 1; align-self: stretch; margin-inline: var(--gutter); padding-block: 17px 20px; }
  .opening #floor-offer { order: 2; }
  .opening-photo { order: 0; min-height: 0; width: 100%; max-height: 360px; margin: 0; aspect-ratio: 16 / 9; border-radius: 0 0 var(--rail-radius) 0; }
  .opening-photo picture img { object-position: center; }
  .photo-address { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 8px; left: var(--gutter); right: 12px; bottom: 12px; }
  .photo-address b { font-size: .85rem; }
  .opening-copy h1 { font-size: clamp(2.1rem, 7.75vw, 3.7rem); margin-block: 12px 9px; max-width: none; }
  .opening-intro { margin-bottom: 12px; }
  .overview-layout { grid-template-columns: 1fr; }
  .floor-offer-layout { padding-block: 17px; gap: 12px; }
  .floor-offer-intro p { margin-top: 4px; }
}
@media(max-width:480px) {
  .opening-actions { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(0,.85fr); gap: 7px; }
  .opening .opening-actions .floor-shortcut { padding: 9px 11px; font-size: .77rem; }
  .opening .opening-actions .floor-shortcut strong { font-size: .92rem; }
  .opening .opening-actions .btn-outline { font: 500 .86rem/1.24 var(--rail-body); padding: 8px; }
  .opening .floor-offer-layout { gap: 10px; }
  .opening .floor-offer-note { margin-top: 6px; }
  .opening .floor-offer-figures { row-gap: 5px; }
  .overview-specs > div { grid-template-columns: 1fr 1.05fr; gap: 10px; }
}

.overview-building > p { margin: 12px 0 16px; color: var(--rail-navy); max-width: 59ch; line-height: 1.6; }
.overview-building > .text-link { display: inline-block; margin-top: 2px; }
.overview-specs { margin-bottom: 14px; }
.overview-specs dt { color: var(--rail-navy); font-weight: 600; }
.overview-specs dd { font-weight: 410; color: var(--rail-steel); }
.overview-investment .investment-output { color: var(--rail-navy); font-size: 1.07rem; font-weight: 570; }
.overview-investment .section-note { font-size: .84rem; }

.home-project-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--rail-ice);
}
.home-entrance {
  aspect-ratio: 2.45;
  object-position: 49% 69%;
  margin-block: 20px 8px;
  border-radius: 0 var(--rail-radius) 0 var(--rail-radius);
}
.home-facade-detail {
  aspect-ratio: 2.35;
  object-position: 54% 48%;
  margin-top: clamp(20px, 2.4vw, 36px);
  border-radius: var(--rail-radius) 0 var(--rail-radius) 0;
}
@media(max-width:760px) {
  .home-entrance, .home-facade-detail { aspect-ratio: 2; }
}
.fl-hero-copy { min-width: 0; max-width: 100%; }
.fl-page h1 { font-size: clamp(2.55rem, 4.1vw, 4.15rem); max-width: min(100%, 950px); line-height: 1.06; }
.fl-page h1 .fl-no-down { display: block; font-size: .9em; }
.footer-consultation, .footer-invitation, .footer-contact { min-width: 0; }
@media(max-width: 760px) {
  .fl-page h1 { font-size: clamp(1.6rem, 7.3vw, 2.9rem); }
  .fl-page .fl-hero .fl-hero-copy { margin-block: 25px; }
  .footer-top { grid-template-columns: minmax(0,1fr); }
  .footer-phone { font-size: clamp(1.2rem,4.9vw,1.8rem); }
  .lot-heading h1, .lot-unavailable h1 { font-size: clamp(1.8rem, 8.2vw, 3rem); }
}
@media(max-width:480px) {
  .footer-invitation h2 { font-size:clamp(1.22rem,5.45vw,1.65rem); margin-right:clamp(64px,21vw,90px); min-height: 54px; }
  .manager-portrait { width:clamp(58px,18vw,76px); }
  .footer-invitation .eyebrow { margin-right: 66px; }
  .fl-stat-grid dd { font-size: clamp(1.04rem,4.6vw,1.36rem); }
}
.investment-input[hidden], .investment-output[hidden] { display: none; }
.investment-input label { display: grid; gap: 4px; }
[hidden] { display: none !important; }
@media(max-width:480px) { .manager-portrait figcaption { overflow-wrap: anywhere; } }
.fl-page h1 { text-shadow: 0 2px 12px rgba(2, 28, 56, .35); }
@media(max-width:480px) {
  .manager-portrait figcaption {
    position: relative;
    left: 100%;
    width: max-content;
    min-width: 100%;
    transform: translateX(-100%);
    font-size: .69rem;
    line-height: 1.4;
    text-align: right;
    white-space: nowrap;
    overflow-wrap: normal;
  }
}
@media(max-width:365px) {
  .opening-copy { padding-block: 14px 16px; }
  .opening-copy h1 { font-size: 1.7rem; margin-block: 9px 8px; }
  .opening-price { font-size: 1.16rem; line-height: 1.35; }
  .opening-price span { font-size: .72rem; }
  .opening-intro { font-size: .89rem; line-height: 1.38; margin-block: 7px 10px; }
  .opening-actions { grid-template-columns: minmax(0,1.67fr) minmax(0,.86fr); }
  .opening .opening-actions .floor-shortcut { padding-inline: 8px; }
  .opening .opening-actions .floor-shortcut strong { font-size: .8rem; }
  .opening .opening-actions .btn-outline { font-size: .78rem; }
  .opening #floor-offer-title { font-size: 1.18rem; }
  .opening .floor-offer-intro p { font-size: .82rem; }
}

