/* =========================================================
   Como Residences — landing
   Breakpoints (mobile first):
     < 768        mobile
     768 – 1023   tablet        (photo as a block on top, light content)
     1024 – 1279  small desktop (photo full screen, panels stacked)
     ≥ 1280       desktop       (photo full screen, panels side by side)
   Container stops at 1440px, the photo stays full screen.
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-family-sans);
  font-size: var(--font-size-body-m);
  line-height: 1.44;
  color: var(--color-text-primary);
  background: var(--color-bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1,
h2,
p,
ul,
dl,
dd,
fieldset {
  margin: 0;
  padding: 0;
}
ul {
  list-style: none;
}
fieldset {
  border: 0;
  min-width: 0;
}
legend {
  padding: 0;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
img,
svg {
  display: block;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--color-accent-base);
  outline-offset: 2px;
}

.icon {
  width: var(--icon-size-md);
  height: var(--icon-size-md);
  flex: none;
  stroke-width: var(--icon-stroke-bold);
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------------------------------------------------
   Type roles
   --------------------------------------------------------- */
.t-body-l,
.status__title,
.agent__name {
  font-size: var(--font-size-body-l);
  font-weight: 500;
  line-height: 1.3;
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.button {
  --btn-h: var(--control-height-lg);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  min-height: var(--btn-h);
  padding: 0 var(--space-20);
  border: 0;
  border-radius: var(--radius-8);
  font-size: var(--font-size-body-m);
  font-weight: 600;
  line-height: 1.44;
  text-align: center;
  white-space: nowrap;
  transition:
    background-color 0.45s var(--ease-soft),
    color 0.45s var(--ease-soft),
    transform 0.3s var(--ease-soft);
  -webkit-tap-highlight-color: transparent;
}
input.button {
  appearance: none;
  cursor: pointer;
  font-family: inherit;
}
.button:active {
  transform: scale(0.98);
  transition-duration: 0.15s;
}
.button--md {
  --btn-h: var(--control-height-md);
  padding: 0 var(--space-16);
  font-size: var(--font-size-body-s);
  line-height: 1.4;
}
.button--block {
  width: 100%;
}

.button--primary {
  background: var(--color-accent-base);
  color: var(--color-static-white);
}
.button--white {
  background: var(--color-static-white);
  color: var(--color-static-black);
}
.button--whatsapp {
  background: var(--color-success-base);
  color: var(--color-static-white);
}
.button--ghost {
  background: var(--color-static-white-10);
  color: var(--color-static-white);
  -webkit-backdrop-filter: blur(var(--blur-glass));
  backdrop-filter: blur(var(--blur-glass));
}
.button--grey {
  background: var(--color-fill-subtle);
  color: var(--color-text-primary);
}

@media (hover: hover) {
  .button--primary:hover {
    background: var(--color-accent-strong);
  }
  .button--white:hover {
    background: var(--color-static-white-hover);
  }
  .button--whatsapp:hover {
    background: var(--color-success-strong);
  }
  .button--ghost:hover {
    background: var(--color-static-white-40);
  }
  .button--grey:hover {
    background: var(--color-fill-subtle-hover);
  }
}

.button:disabled,
.button[aria-disabled="true"] {
  background: var(--color-fill-subtle);
  color: var(--color-text-tertiary);
  cursor: not-allowed;
  transform: none;
}

/* loading: spinner replaces the icon, width stays the same */
.button__spinner {
  display: none;
  width: var(--icon-size-md);
  height: var(--icon-size-md);
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.8s linear infinite;
}
.button.is-loading {
  pointer-events: none;
}
.button.is-loading .button__spinner {
  display: block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* contextual buttons — mobile/tablet look (light page) */
.button--secondary {
  background: var(--color-fill-subtle);
  color: var(--color-text-primary);
}
.button--panel,
.button--action {
  background: var(--color-fill-subtle);
  color: var(--color-text-primary);
}
@media (hover: hover) {
  .button--secondary:hover,
  .button--panel:hover,
  .button--action:hover {
    background: var(--color-fill-subtle-hover);
  }
}

/* icon button (modal close) */
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-8);
  background: transparent;
  color: var(--color-text-primary);
  transition: background-color 0.45s var(--ease-soft);
}
.icon-button .icon {
  width: 24px;
  height: 24px;
  stroke-width: var(--icon-stroke-regular);
}
@media (hover: hover) {
  .icon-button:hover {
    background: var(--color-fill-muted);
  }
}

/* tag */
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 6px;
  border-radius: var(--radius-4);
  font-size: var(--font-size-body-s);
  line-height: 1.4;
  background: var(--color-fill-muted);
  color: var(--color-text-primary);
}

/* ---------------------------------------------------------
   Page / hero media
   --------------------------------------------------------- */
.page {
  position: relative;
  overflow: hidden;
}

.hero-media {
  position: relative;
  height: clamp(340px, calc(380px + (100vw - 390px) * 0.4233), 720px);
  overflow: hidden;
  background: var(--color-static-black);
}
.hero-media picture,
.agent__avatar picture {
  display: contents;
}
.hero-media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media__shade {
  position: absolute;
  pointer-events: none;
}
.hero-media__shade--top {
  inset: 0 0 auto 0;
  height: 160px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.18) 45%,
    rgba(0, 0, 0, 0) 100%
  );
}
.hero-media__shade--intro,
.hero-media__shade--bottom {
  display: none;
}

/* ---------------------------------------------------------
   Navbar
   --------------------------------------------------------- */
.navbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  border-bottom: 1px solid var(--color-static-white-10);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  height: 56px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-padding-x);
}
.navbar__logo {
  display: block;
  flex: none;
}
.navbar__logo-svg {
  width: 161px;
  height: 30px;
}
.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.navbar__whatsapp .icon {
  stroke-width: var(--icon-stroke-bold);
}

/* mobile: WhatsApp and “Talk to an expert” are icon-only squares */
.navbar__whatsapp,
.navbar__expert {
  width: var(--control-height-md);
  padding: 0;
}
.navbar__whatsapp .button__label,
.navbar__expert .button__label {
  display: none;
}
.navbar__expert-icon {
  stroke-width: var(--icon-stroke-bold);
}

/* ---------------------------------------------------------
   Hero content
   --------------------------------------------------------- */
.hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-adaptive-64);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-adaptive-40) var(--section-padding-x) var(--section-padding-y);
}
.hero__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-adaptive-32);
}
.hero__text {
  max-width: var(--max-width-text);
}
.hero__developer {
  width: 48px;
  height: 48px;
  color: var(--color-text-primary);
}
.hero__developer svg {
  width: 100%;
  height: 100%;
}
.hero__text,
.hero__heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-adaptive-16);
}
.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}
.hero__title {
  font-size: var(--font-size-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
}
.hero__lead {
  font-size: var(--font-size-lead);
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-text-secondary);
}
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}
.hero__actions .button {
  width: 100%;
}

.hero__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.hero__panels {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}
.hero__disclaimer {
  font-size: var(--font-size-body-xs);
  line-height: 1.4;
  color: var(--color-text-secondary);
}

/* status card (light) */
.status {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  padding: var(--space-16);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-12);
  --seg-rest: var(--color-fill-subtle);
}
.status__summary {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.status__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-24);
}
.status__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}
.status__title {
  color: var(--color-text-primary);
}
.status__note {
  font-size: var(--font-size-body-xs);
  line-height: 1.4;
  color: var(--color-text-secondary);
}
.status__value {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  flex: none;
  white-space: nowrap;
}
.status__number {
  font-size: var(--font-size-heading-xl);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-primary);
}
.status__unit {
  font-size: var(--font-size-body-m);
  font-weight: 600;
  line-height: 1.44;
  color: var(--color-text-secondary);
}
.status__segments {
  display: flex;
  gap: var(--space-4);
  height: 12px;
}
.status__segment {
  flex: 1 1 0;
  border-radius: var(--radius-2);
  background: var(--seg-rest);
}
.status__segment.is-done {
  background: var(--color-progress-done);
}
.status__segment.is-current {
  background: var(--color-progress-current);
}
@keyframes seg-current {
  0%,
  100% {
    background-color: var(--color-progress-current);
  }
  50% {
    background-color: rgba(223, 126, 81, 0.72);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .status__segment.is-current {
    animation: seg-current 1.8s var(--ease-in-out) infinite;
  }
}

.status__footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-adaptive-24);
}
.status__dates {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.status__stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
}
.status__stat dt {
  font-size: var(--font-size-body-xs);
  line-height: 1.4;
  color: var(--color-text-secondary);
}
.status__stat dd {
  font-size: var(--font-size-body-m);
  font-weight: 600;
  line-height: 1.44;
  color: var(--color-text-primary);
  white-space: nowrap;
}
.status__photos {
  width: 100%;
}

.actions-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}
.actions-panel .button {
  width: 100%;
}

/* ---------------------------------------------------------
   Tablet 768+
   --------------------------------------------------------- */
@media (min-width: 768px) {
  .navbar__whatsapp {
    width: auto;
    padding: 0 var(--space-16);
  }
  .navbar__whatsapp .button__label {
    display: inline;
  }
  .navbar__expert {
    width: auto;
    padding: 0 var(--space-16);
  }
  .navbar__expert .button__label {
    display: inline;
  }
  .navbar__expert-icon {
    display: none;
  }

  .hero__actions {
    flex-direction: row;
  }
  .hero__actions .button {
    flex: 1 1 0;
  }

  .status__top {
    gap: var(--space-16);
  }
  .status__footer {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .status__dates {
    flex-direction: row;
    gap: var(--space-adaptive-32);
  }
  .status__stat {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
  }
  .status__photos {
    width: auto;
    --btn-h: var(--control-height-md);
    padding: 0 var(--space-16);
    font-size: var(--font-size-body-s);
    line-height: 1.4;
  }

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

/* ---------------------------------------------------------
   Desktop 1024+: photo full screen, content on the photo
   --------------------------------------------------------- */
@media (min-width: 1024px) {
  .page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    background: var(--color-scrim);
    color: var(--color-static-white);
  }
  .hero-media {
    position: absolute;
    inset: 0;
    height: auto;
  }

  /* shades follow the container even when the screen is wider than 1440 */
  .hero-media {
    --inset: max(0px, (100vw - var(--container-max)) / 2);
  }
  .hero-media__shade--top {
    height: 200px;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.42) 0%,
      rgba(0, 0, 0, 0.16) 50%,
      rgba(0, 0, 0, 0) 100%
    );
  }
  .hero-media__shade--intro {
    display: block;
    inset: 0;
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.5) 0,
      rgba(0, 0, 0, 0.44) calc(var(--inset) + 340px),
      rgba(0, 0, 0, 0.18) calc(var(--inset) + 640px),
      rgba(0, 0, 0, 0) calc(var(--inset) + 960px)
    );
  }
  .hero-media__shade--bottom {
    display: block;
    inset: auto 0 0 0;
    height: 46%;
    background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.52) 30%,
      rgba(0, 0, 0, 0.18) 65%,
      rgba(0, 0, 0, 0) 100%
    );
  }

  .navbar {
    position: relative;
  }
  .navbar__whatsapp,
  .navbar__expert {
    --btn-h: var(--control-height-md);
  }

  .hero {
    position: relative;
    z-index: 1;
    flex: 1 0 auto;
    display: flex;
  }
  .hero__inner {
    flex: 1;
    width: 100%;
    justify-content: space-between;
    gap: var(--space-adaptive-40);
  }

  .hero__developer,
  .hero__title {
    color: var(--color-static-white);
  }
  .hero__lead {
    color: var(--color-static-white);
  }
  .tag {
    background: var(--color-static-white-10);
    color: var(--color-static-white);
    -webkit-backdrop-filter: blur(var(--blur-strong));
    backdrop-filter: blur(var(--blur-strong));
  }

  .hero__actions .button {
    flex: none;
    width: auto;
  }
  .hero__intro {
    max-width: var(--max-width-text);
  }
  .button--secondary {
    background: var(--color-static-white);
    color: var(--color-static-black);
  }

  /* glass panels */
  /* The blur sits on a ::before layer (not on the panel) so the semi-transparent
     buttons inside can blur it again, like the stacked glass in Figma.
     The panel itself must never get opacity/filter, otherwise the blur is lost —
     its entrance animation uses transform only (see Motion). */
  .hero__panels .status,
  .actions-panel {
    position: relative;
    z-index: 0;
    border: 0;
    border-radius: var(--radius-20);
  }
  .hero__panels .status::before,
  .actions-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    background: var(--color-scrim-56);
    -webkit-backdrop-filter: blur(var(--blur-strong));
    backdrop-filter: blur(var(--blur-strong));
  }
  .hero__panels .status {
    padding: var(--space-adaptive-24);
    --seg-rest: var(--color-static-white-10);
  }
  .hero__panels :is(.status__title, .status__number, .status__stat dd) {
    color: var(--color-static-white);
  }
  .hero__panels :is(.status__note, .status__unit, .status__stat dt) {
    color: var(--color-static-white-72);
  }
  .hero__panels .status__footer {
    align-items: center;
  }
  .status__photos,
  .button--action {
    background: var(--color-static-white-10);
    color: var(--color-static-white);
    -webkit-backdrop-filter: blur(var(--blur-glass));
    backdrop-filter: blur(var(--blur-glass));
  }
  .status__photos {
    --btn-h: var(--control-height-lg);
    padding: 0 var(--space-20);
    font-size: var(--font-size-body-m);
    line-height: 1.44;
  }
  @media (hover: hover) {
    .button--secondary:hover {
      background: var(--color-static-white-hover);
    }
    .status__photos:hover,
    .button--action:hover {
      background: var(--color-static-white-40);
    }
  }

  .actions-panel {
    padding: var(--space-12);
    grid-auto-rows: 56px;
  }
  .hero__disclaimer {
    padding: 0 var(--space-adaptive-24);
    color: var(--color-static-white-72);
  }
}

/* desktop 1280+: panels side by side, action buttons stretch to the status height */
@media (min-width: 1280px) {
  .hero__panels {
    flex-direction: row;
    align-items: stretch;
    gap: var(--space-adaptive-16);
  }
  .hero__panels .status,
  .actions-panel {
    flex: 1 1 0;
    min-width: 0;
  }
  .actions-panel {
    grid-auto-rows: 1fr;
  }
}

/* =========================================================
   Modals
   ========================================================= */
html.is-modal-open {
  overflow: hidden;
}

.modal {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--color-bg-surface);
  color: var(--color-text-primary);
  overflow: hidden;
}
.modal::backdrop {
  background: var(--color-scrim-56);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.modal__panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: inherit;
}

.modal__head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-16);
  padding: calc(var(--space-adaptive-24) + env(safe-area-inset-top, 0px)) var(--space-adaptive-24) 0;
}
.modal__head-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  flex: 1;
  min-width: 0;
}
.modal__title {
  font-size: var(--font-size-heading-xl);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.modal__desc {
  font-size: var(--font-size-body-s);
  line-height: 1.4;
  color: var(--color-text-secondary);
}
.modal__close {
  margin: -4px -4px 0 0;
}

.modal__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-adaptive-24);
  padding: var(--space-adaptive-24);
  overflow-x: clip;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1 1 auto;
  min-height: 0;
}

.modal__fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}
.modal__fields-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
}
.modal__body [data-lead-details] {
  display: flex;
  flex-direction: column;
  gap: var(--space-adaptive-24);
}
.modal__body [data-lead-prefix]:empty {
  display: none;
}
.field {
  min-width: 0;
}

/* field (line input) */
.field__control {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-16);
  min-height: var(--control-height-lg);
  padding-top: var(--space-12);
  border-bottom: 1px solid var(--color-border-default);
}
/* the line fills from the left on hover / focus and leaves to the right */
.field__control::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--color-border-hover);
  transform: scaleX(0);
  transform-origin: right center;
  transition:
    transform 0.6s var(--ease-soft),
    background-color 0.3s ease;
}
@media (hover: hover) {
  .field__control:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
  }
}
.field__control:focus-within::after {
  transform: scaleX(1);
  transform-origin: left center;
  background: var(--color-border-focus);
}
.field.is-invalid .field__control::after {
  background: var(--color-danger-base);
  transform: scaleX(1);
}
.field.is-shake .field__control {
  animation: shake 0.4s var(--ease-out);
}
@keyframes shake {
  20% {
    transform: translateX(-4px);
  }
  40% {
    transform: translateX(4px);
  }
  60% {
    transform: translateX(-2px);
  }
  80% {
    transform: translateX(2px);
  }
}
.field__input::placeholder {
  transition:
    opacity 0.3s ease,
    transform 0.3s var(--ease-out);
}
.field__input:focus::placeholder {
  opacity: 0.3;
}
.field__error:not([hidden]) {
  animation: rise 0.3s var(--ease-out);
}
.field__input {
  flex: 1;
  min-width: 0;
  align-self: stretch;
  padding: 0 0 var(--space-12);
  border: 0;
  background: transparent;
  outline: none;
  font-size: var(--font-size-body-m);
  line-height: 1.44;
  color: var(--color-text-primary);
}
.field__input::placeholder {
  color: var(--color-text-primary);
  opacity: 0.5;
}
.field__error {
  margin-top: var(--space-4);
  font-size: var(--font-size-body-xs);
  line-height: 1.4;
  color: var(--color-danger-base);
}
.field.is-invalid .field__control {
  border-bottom-color: var(--color-danger-base);
}
.field.is-invalid .field__input,
.field.is-invalid .field__input::placeholder {
  color: var(--color-danger-base);
  opacity: 1;
}

/* phone — intl-tel-input skin */
.field--phone .iti {
  display: flex;
  width: 100%;
  align-self: stretch;
  --iti-spacer-horizontal: 0px;
  --iti-arrow-padding: 8px;
  --iti-flag-width: 20px;
  --iti-hover-color: var(--color-fill-muted);
  --iti-border-color: var(--color-border-default);
  --iti-country-selector-bg: var(--color-bg-surface);
  --iti-icon-color: var(--color-text-secondary);
}
.field--phone .iti__tel-input {
  flex: 1;
}
.field--phone .iti__country-container {
  width: 100%;
  padding: 0 0 var(--space-12);
}
.field--phone .iti__selected-country {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding-right: var(--space-16);
  border-radius: var(--radius-4);
}
.field--phone .iti__selected-country-primary {
  display: contents;
}
.field--phone .iti__flag {
  order: 0;
}
.field--phone .iti__selected-dial-code {
  order: 1;
  margin: 0;
  font-size: var(--font-size-body-m);
  line-height: 1.44;
  color: var(--color-text-primary);
}
.field--phone .iti__flag {
  border-radius: 1.5px;
  box-shadow: 0 0 0 0.5px var(--color-border-default);
}
.field--phone .iti__arrow {
  order: 2;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 0;
  transform: none;
  background: currentColor;
  color: var(--color-text-secondary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transition: transform 0.3s var(--ease-out);
}
.field--phone .iti__arrow {
  display: none;
}
.field--phone .iti__arrow--up {
  transform: rotate(180deg);
}
.field--phone .iti__selected-country:focus-visible {
  outline: 2px solid var(--color-accent-base);
  outline-offset: 2px;
}

/* intl-tel-input 25.x (the shared MPP integration) */
.field--phone .iti__selected-country {
  min-height: 100%;
  border: 0;
  background: transparent;
  color: inherit;
}
.field--phone .iti__dropdown-content {
  z-index: 10;
  box-sizing: border-box;
  width: 100% !important;
  margin-top: 4px;
  right: auto;
  left: 0 !important;
  overflow: hidden;
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-12);
  background: var(--color-bg-surface);
  box-shadow: var(--shadow-modal);
  color: var(--color-text-primary);
  animation: rise 0.22s var(--ease-out);
}
.modal__fields-row .iti__dropdown-content {
  right: auto;
  left: 0 !important;
}
.field--phone .iti__dropdown-content .iti__search-input {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  padding: 0 14px !important;
  border: 0;
  border-bottom: 1px solid var(--color-border-default);
  border-radius: 0;
  background: transparent;
  color: var(--color-text-primary);
  font: inherit;
  font-size: max(16px, 1rem);
  outline: none;
}
.field--phone .iti__dropdown-content .iti__search-input::placeholder {
  color: var(--color-text-secondary);
}
.field--phone .iti__dropdown-content .iti__country-list {
  max-height: 248px !important;
}
/* dropdown */
.iti .iti__country-selector,
.iti--fullscreen-popup .iti__country-selector {
  margin-top: 4px;
  width: min(320px, calc(100vw - 32px)) !important;
  border: 1px solid var(--color-border-default) !important;
  border-radius: var(--radius-12);
  overflow: hidden;
  background: var(--color-bg-surface);
  color: var(--color-text-primary);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.24) !important;
  font-size: var(--font-size-body-s);
  line-height: 1.4;
  animation: rise 0.22s var(--ease-out);
}
.modal__fields-row .iti:not(.iti--fullscreen-popup) .iti__country-selector {
  left: auto !important;
  right: 0;
}
.iti__search-input-wrapper {
  border-bottom-color: var(--color-border-default) !important;
}
.iti__search-input {
  height: 44px;
  padding-left: 40px !important;
  background: transparent;
  color: var(--color-text-primary);
  font: inherit;
  font-size: max(16px, 1rem);
  outline: none;
}
.iti__search-icon {
  left: 14px !important;
}
.iti__country-list {
  max-height: 248px !important;
  padding: 4px 0 !important;
}
.iti__country {
  gap: var(--space-8);
  padding: 10px 14px !important;
  transition: background-color 0.15s ease;
}
.iti__country .iti__flag {
  margin-right: 0 !important;
}
.iti__dial-code {
  color: var(--color-text-tertiary);
}
.iti--fullscreen-popup.iti--detached-country-selector {
  background: var(--color-scrim-56) !important;
  padding: 72px 16px 16px !important;
}
.iti--fullscreen-popup .iti__country-selector {
  width: 100% !important;
  margin-top: 0;
}
.iti--fullscreen-popup .iti__country-list {
  max-height: none !important;
  flex: 1 1 auto;
}

/* groups / choices */
.modal__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.modal__label {
  margin-bottom: var(--space-8);
  font-size: var(--font-size-body-s);
  line-height: 1.4;
  color: var(--color-text-secondary);
}
.modal__group--topics .modal__label {
  margin-bottom: 0;
}
.modal__choices {
  display: grid;
  grid-template-columns: repeat(var(--cols-m, var(--cols)), 1fr);
  gap: var(--space-8);
}
.choice {
  position: relative;
  display: flex;
}
.choice__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.choice__label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--control-height-md);
  padding: var(--space-8);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-8);
  font-size: var(--font-size-body-s);
  line-height: 1.4;
  text-align: center;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition:
    border-color 0.45s var(--ease-soft),
    background-color 0.45s var(--ease-soft),
    color 0.45s var(--ease-soft);
}
@media (hover: hover) {
  .choice__label:hover {
    border-color: var(--color-border-strong);
    color: var(--color-text-primary);
  }
}
.choice__input:checked + .choice__label {
  background: var(--color-fill-subtle);
  border-color: transparent;
  color: var(--color-text-primary);
}
.choice__input:focus-visible + .choice__label {
  outline: 2px solid var(--color-accent-base);
  outline-offset: 2px;
}

/* checkbox */
.checkbox {
  position: relative;
  display: inline-flex;
  flex: none;
  width: 20px;
  height: 20px;
}
.checkbox__input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.checkbox__box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-4);
  background: var(--color-fill-subtle);
  color: var(--color-accent-base);
  pointer-events: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.checkbox__check {
  width: 11px;
  height: 8px;
  overflow: visible;
}
.checkbox__check path {
  stroke-dasharray: 14;
  stroke-dashoffset: 14;
  transition: stroke-dashoffset 0.4s var(--ease-soft);
}
.checkbox__input:checked + .checkbox__box .checkbox__check path {
  stroke-dashoffset: 0;
}
.checkbox__input:checked + .checkbox__box {
  background: var(--color-accent-subtle);
}
.checkbox__box {
  transition: background-color 0.35s var(--ease-soft);
}
@media (hover: hover) {
  .checkbox__input:not(:checked):hover + .checkbox__box {
    background: var(--color-fill-subtle-hover);
  }
}
.checkbox__input:focus-visible + .checkbox__box {
  outline: 2px solid var(--color-accent-base);
  outline-offset: 2px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-adaptive-16);
  cursor: pointer;
}
.consent .checkbox {
  margin-top: 2px;
}
.consent__text {
  font-size: var(--font-size-body-s);
  line-height: 1.4;
  color: var(--color-text-secondary);
}

/* check options (subscribe topics) */
.modal__group--topics {
  gap: 0;
  padding-top: var(--space-8);
}
.check-option {
  display: flex;
  align-items: center;
  gap: var(--space-adaptive-16);
  min-height: 48px;
  border-bottom: 1px solid var(--color-border-default);
  cursor: pointer;
  transition: border-color 0.45s var(--ease-soft);
}
@media (hover: hover) {
  .check-option:hover {
    border-bottom-color: var(--color-border-strong);
  }
}
.check-option__label {
  font-size: var(--font-size-body-s);
  line-height: 1.4;
}

/* agent */
.agent {
  display: flex;
  align-items: center;
  gap: var(--space-adaptive-16);
}
.agent__avatar {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: var(--radius-full);
  background: var(--color-fill-muted);
  overflow: hidden;
}
.agent__photo {
  width: 51px;
  height: 68px;
  object-fit: cover;
  object-position: top;
}
.agent__details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.agent__role {
  font-size: var(--font-size-body-m);
  line-height: 1.44;
  color: var(--color-text-secondary);
}
.agent__rating {
  display: flex;
  gap: 2px;
  margin-top: var(--space-8);
  color: var(--color-rating);
}
.agent__rating svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* inspection card inside “site photos” */
.modal__inspection {
  padding: var(--space-16);
}
.modal__inspection .status__top {
  align-items: flex-start;
}

/* actions bar + legal */
.modal__bar {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}
.alert {
  padding: var(--space-12) var(--space-16);
  border-radius: var(--radius-8);
  background: var(--color-danger-subtle);
  font-size: var(--font-size-body-s);
  line-height: 1.4;
  color: var(--color-text-primary);
}
.modal__legal {
  margin-top: calc(var(--space-adaptive-16) - var(--space-adaptive-24));
  font-size: var(--font-size-body-xs);
  line-height: 1.4;
  color: var(--color-text-tertiary);
}

/* success */
.modal__body--success {
  position: relative;
}
.success__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-8);
  background: var(--color-success-subtle);
  color: var(--color-success-strong);
}
.success__icon .icon {
  width: 24px;
  height: 24px;
  stroke-width: var(--icon-stroke-bold);
}
.success__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.modal__close--float {
  position: absolute;
  top: calc(20px + env(safe-area-inset-top, 0px));
  right: var(--space-16);
  z-index: 1;
  margin: 0;
}

/* map modal */
.modal--map {
  background: var(--color-static-white);
  color: var(--color-static-black);
}
.modal__panel--map {
  position: relative;
  overflow: hidden;
}
.location__map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.map-modal__top,
.map-modal__body {
  position: absolute;
  z-index: 1;
  border-radius: var(--radius-12);
  background: var(--color-static-white-72);
  box-shadow: var(--shadow-floating);
  -webkit-backdrop-filter: blur(var(--blur-glass));
  backdrop-filter: blur(var(--blur-glass));
}
.map-modal__top {
  top: var(--space-16);
  right: var(--space-16);
  padding: var(--space-4);
}
.map-controls {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: var(--space-16);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-16);
  transform: translateY(-50%);
  filter: drop-shadow(var(--shadow-md));
}
.map-controls__buttons {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-full);
}
.map-controls button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: var(--color-static-white);
  cursor: pointer;
}
.map-controls__buttons button + button {
  border-top: 1px solid var(--color-static-black-4);
}
.map-controls > button {
  border-radius: var(--radius-full);
}
.map-controls button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--color-accent-base);
  outline-offset: -2px;
}
.location__map.fullscreen {
  position: fixed;
  z-index: 10;
}
.location__map.fullscreen ~ .map-modal__top,
.location__map.fullscreen ~ .map-controls {
  position: fixed;
  z-index: 11;
}
.location__map.fullscreen ~ .map-modal__body {
  display: none;
}
.map-modal__close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-8);
  background: transparent;
  color: var(--color-static-black);
  cursor: pointer;
}
.map-modal__close .icon {
  width: 24px;
  height: 24px;
  stroke-width: var(--icon-stroke-regular);
}
.map-modal__close:focus-visible,
.map-modal__button:focus-visible {
  outline: 2px solid var(--color-accent-base);
  outline-offset: 2px;
}
.map-modal__body {
  right: var(--space-16);
  bottom: var(--space-16);
  left: var(--space-16);
  padding: var(--space-16);
}
.map-modal__location,
.map-modal__text {
  display: flex;
  flex-direction: column;
}
.map-modal__location {
  gap: var(--space-16);
}
.map-modal__text {
  gap: var(--space-4);
}
.map-modal__title {
  font-size: var(--font-size-body-m);
  font-weight: 600;
  line-height: 1.44;
}
.map-modal__address {
  font-size: var(--font-size-body-s);
  line-height: 1.4;
  color: var(--color-static-black-72);
}
.map-modal__button {
  min-height: 48px;
  background: var(--color-static-black-10);
  color: var(--color-static-black);
  text-decoration: none;
}
@media (hover: hover) {
  .map-modal__button:hover {
    background: var(--color-static-black-4);
    color: var(--color-static-black);
  }
}

@media (min-width: 768px) {
  .map-modal__location {
    flex-direction: row;
    align-items: center;
  }
  .map-modal__text {
    flex: 1 1 auto;
    min-width: 0;
  }
  .map-modal__button {
    width: 200px;
    flex: 0 0 200px;
  }
}

/* ---------- mobile modal: full screen, sticky bottom bar ---------- */
@media (max-width: 767px) {
  .modal__body {
    padding-bottom: 0;
  }
  .modal__legal {
    order: 1;
    margin-top: 0;
  }
  .modal__bar {
    order: 2;
    position: sticky;
    bottom: 0;
    z-index: 1;
    margin: auto calc(-1 * var(--space-adaptive-24)) 0;
    padding: var(--space-16) var(--space-16)
      calc(var(--space-16) + env(safe-area-inset-bottom, 0px));
    background: var(--color-bg-surface);
    transition: box-shadow 0.2s ease;
  }
  .modal.is-overflowing .modal__bar {
    box-shadow: var(--shadow-bar);
  }
  .modal--success .modal__body {
    justify-content: center;
  }
  .modal--success .modal__bar {
    margin-top: auto;
  }
  .modal--success .modal__body--success {
    padding-top: 0;
  }
  .modal--success .success__icon {
    margin-top: auto;
  }
}

/* ---------- tablet/desktop modal: centered card ---------- */
@media (min-width: 768px) {
  .modal {
    width: 560px;
    height: fit-content;
    max-height: calc(100dvh - 48px);
    margin: auto;
    border-radius: var(--radius-16);
  }
  .modal__panel {
    height: auto;
    max-height: calc(100dvh - 48px);
  }
  .modal__head {
    padding-top: var(--space-adaptive-24);
  }
  .modal__fields-row {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-adaptive-24);
  }
  .modal__choices {
    grid-template-columns: repeat(var(--cols), 1fr);
  }
  .modal--success .modal__body {
    padding-right: calc(var(--space-adaptive-24) + 40px);
  }
  .modal--success .modal__bar {
    margin-right: -40px;
  }
}

/* overrides the shared centered-card dimensions for the Figma map layouts */
@media (min-width: 768px) {
  .modal.modal--map {
    width: calc(100% - 48px);
    height: 600px;
    max-width: 720px;
    max-height: calc(100dvh - 48px);
  }
  .modal--map .modal__panel--map {
    height: 100%;
    max-height: none;
  }
}
@media (min-width: 1024px) {
  .modal.modal--map {
    width: 960px;
    height: 640px;
    max-width: calc(100% - 48px);
  }
}

/* =========================================================
   Motion — staggered entrance
   ========================================================= */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes rise-move {
  from {
    transform: translateY(14px);
  }
  to {
    transform: none;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes photo-in {
  from {
    opacity: 0;
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes seg-fill {
  from {
    background: var(--seg-rest);
  }
  to {
    background: var(--color-progress-done);
  }
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes modal-out {
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}
@keyframes sheet-in {
  from {
    transform: translateY(100%);
  }
  to {
    transform: none;
  }
}
@keyframes sheet-out {
  to {
    transform: translateY(100%);
  }
}
@keyframes backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes backdrop-out {
  to {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-media__img.is-in {
    animation: photo-in 1.6s var(--ease-soft) both;
  }

  .navbar.is-in {
    animation: fade-down 0.8s var(--ease-soft) 0.1s both;
  }

  [data-anim].is-in {
    animation: rise 0.8s var(--ease-soft) var(--delay, 0ms) both;
  }

  /* glass panels: the panel only moves, its blur layer and content fade —
     opacity on the panel itself would switch the backdrop blur off */
  .hero__panels [data-anim].is-in {
    animation: rise-move 0.8s var(--ease-soft) var(--delay, 0ms) both;
  }
  .hero__panels [data-anim].is-in::before,
  .hero__panels [data-anim].is-in > * {
    animation: fade 0.8s var(--ease-soft) var(--delay, 0ms) both;
  }

  /* action buttons cascade inside their panel */

  /* progress fills segment by segment, the current one breathes */
  .hero__panels .status.is-in .status__segment.is-done {
    animation: seg-fill 0.4s var(--ease-soft) calc(var(--delay, 0ms) + 300ms + var(--s) * 45ms) both;
  }

  .modal[open] {
    animation: modal-in 0.26s var(--ease-out);
  }
  .modal[open]::backdrop {
    animation: backdrop-in 0.26s ease-out;
  }
  .modal.is-closing {
    animation: modal-out 0.2s ease-in forwards;
  }
  .modal.is-closing::backdrop {
    animation: backdrop-out 0.2s ease-in forwards;
  }
  @media (max-width: 767px) {
    .modal[open] {
      animation: sheet-in 0.34s var(--ease-out);
    }
    .modal.is-closing {
      animation: sheet-out 0.26s ease-in forwards;
    }
  }
}

.modal__panel:focus {
  outline: none;
}

/* inline text link (legal) */
.link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--color-border-strong);
  text-underline-offset: 2px;
  transition:
    color 0.45s var(--ease-soft),
    text-decoration-color 0.45s var(--ease-soft);
}
@media (hover: hover) {
  .link:hover {
    color: var(--color-text-primary);
    text-decoration-color: currentColor;
  }
}
