@font-face {
  font-family: "NW Special Gothic";
  src: url("/assets/homy-hero/fonts/special-gothic-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "NW Switzer";
  src: url("/assets/homy-hero/fonts/switzer-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "NW Switzer";
  src: url("/assets/homy-hero/fonts/switzer-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "NW Switzer";
  src: url("/assets/homy-hero/fonts/switzer-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/* Keep the visible replacement hero in its entrance state for the complete
   splash sequence. The runtime removes this state synchronously when the
   post-splash animation starts, preventing a one-frame flash of final content. */
html[data-local-page="home"].nw-homy-entrance-pending:not(.nw-homy-entrance-started) .nw-homy-proof,
html[data-local-page="home"].nw-homy-entrance-pending:not(.nw-homy-entrance-started) .nw-homy-title,
html[data-local-page="home"].nw-homy-entrance-pending:not(.nw-homy-entrance-started) .nw-homy-intro,
html[data-local-page="home"].nw-homy-entrance-pending:not(.nw-homy-entrance-started) .nw-homy-actions,
html[data-local-page="home"].nw-homy-entrance-pending:not(.nw-homy-entrance-started) .nw-homy-house-entrance {
  opacity: 0 !important;
}

html[data-local-page="home"].nw-homy-entrance-pending:not(.nw-homy-entrance-started) .nw-homy-proof {
  transform: translate3d(0, 46px, 0);
}

html[data-local-page="home"].nw-homy-entrance-pending:not(.nw-homy-entrance-started) .nw-homy-title {
  transform: translate3d(0, 125px, 0) scale(0.92);
}

html[data-local-page="home"].nw-homy-entrance-pending:not(.nw-homy-entrance-started) .nw-homy-intro,
html[data-local-page="home"].nw-homy-entrance-pending:not(.nw-homy-entrance-started) .nw-homy-actions {
  transform: translate3d(0, 62px, 0);
}

html[data-local-page="home"].nw-homy-entrance-pending:not(.nw-homy-entrance-started) .nw-homy-house-entrance {
  transform: translate3d(0, 340px, 0) scale(0.97);
}

.nw-homy-hero,
.nw-homy-hero *,
.nw-homy-nav,
.nw-homy-nav * {
  box-sizing: border-box;
}

.nw-homy-scene {
  flex: none;
  isolation: isolate;
  position: relative;
  width: 100%;
}

.nw-homy-hero {
  --nw-ink: #080b0f;
  --nw-house-height: clamp(456px, 44.8vw, 620px);
  --nw-house-top: 464px;
  --nw-cloud-rise: clamp(80px, 12vw, 170px);
  background: linear-gradient(180deg, #c3e5f7 0%, #316073 100%);
  color: var(--nw-ink);
  display: block;
  font-family: "NW Switzer", Arial, sans-serif !important;
  /* Match the stage to the visible house instead of enlarging the image
     to fill its transparent lower canvas. Keep this stable while scrolling. */
  height: calc(var(--nw-house-top) + var(--nw-house-height) * .72 + 24px);
  min-height: 0;
  overflow: hidden;
  position: relative;
  top: 0;
  width: 100%;
  z-index: 1;
}

.nw-homy-hero a {
  color: inherit;
  text-decoration: none;
}

.nw-homy-hero::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
  bottom: 0;
  content: "";
  height: 110px;
  left: 0;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 3;
}

.nw-homy-sky,
.nw-homy-cloud,
.nw-homy-house {
  inset: auto;
  pointer-events: none;
  position: absolute;
  user-select: none;
}

.nw-homy-sky {
  background: url("/assets/homy-hero/hero-sky-v2.webp") center center / cover no-repeat;
  inset: 0;
  z-index: 0;
}

.nw-homy-cloud {
  filter: blur(1px);
  height: auto;
  object-fit: cover;
  opacity: 0.24;
  will-change: transform;
  z-index: 1;
}

.nw-homy-cloud--one {
  left: -436px;
  top: 91px;
  transform: translateX(-100px);
  width: 889px;
  z-index: 2;
}

.nw-homy-cloud--two {
  left: -958px;
  top: 53%;
  transform: translateY(-50%);
  width: 1752px;
}

.nw-homy-cloud--three {
  left: 615px;
  opacity: 0.28;
  top: 231px;
  transform: rotate(22deg);
  width: 1116px;
}

.nw-homy-cloud--four {
  right: -414.898px;
  top: 19.102px;
  transform: translateX(100px) rotate(-9deg);
  width: 881px;
  z-index: 2;
}

.nw-homy-nav {
  --nw-ink: #080b0f;
  align-items: center;
  color: var(--nw-ink);
  display: flex;
  font-family: "NW Switzer", Arial, sans-serif !important;
  height: 84px;
  justify-content: space-between;
  left: 0;
  padding: 15px 40px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
}

.nw-homy-nav a {
  color: inherit;
  text-decoration: none;
}

.nw-homy-brand {
  align-items: center;
  display: inline-flex;
  flex: none;
  gap: 9px;
  min-width: 0;
}

.nw-homy-brand-mark {
  align-items: center;
  display: inline-flex;
  height: 26px;
  justify-content: center;
  width: 29px;
}

.nw-homy-monogram {
  color: var(--nw-ink);
  display: inline-block;
  font-family: "NW Special Gothic", Impact, sans-serif !important;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -2.8px;
  line-height: 1;
  transform: translateX(-1px);
}

.nw-homy-brand-name {
  font-family: "NW Switzer", Arial, sans-serif !important;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1;
  white-space: nowrap;
}

.nw-homy-nav-links {
  align-items: center;
  display: flex;
  gap: 25px;
}

.nw-homy-nav-link {
  font-family: "NW Switzer", Arial, sans-serif !important;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.6;
  position: relative;
  text-transform: uppercase;
}

.nw-homy-nav-link::after {
  background: currentColor;
  bottom: -6px;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms ease;
  width: 100%;
}

.nw-homy-nav-link:hover::after,
.nw-homy-nav-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nw-homy-contact-link {
  align-items: center;
  background: var(--nw-ink);
  border: 1px solid var(--nw-ink);
  border-radius: 12px;
  color: #fff !important;
  display: inline-flex;
  font-family: "NW Switzer", Arial, sans-serif !important;
  font-size: 14px;
  font-weight: 400;
  gap: 12px;
  height: 44px;
  justify-content: center;
  margin-left: 0;
  padding: 8px 8px 8px 16px;
  transition: background-color 220ms ease, color 220ms ease, transform 220ms ease;
}

.nw-homy-contact-link > span:last-child {
  align-items: center;
  background: #fff;
  border-radius: 8px;
  color: var(--nw-ink);
  display: inline-flex;
  font-size: 17px;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.nw-homy-contact-text {
  display: inline-block;
  white-space: nowrap;
}

.nw-homy-contact-link:hover,
.nw-homy-contact-link:focus-visible {
  transform: translateY(-2px);
}

.nw-homy-menu-button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--nw-ink);
  cursor: pointer;
  display: none;
  height: 44px;
  padding: 6px 2px;
  width: 31px;
}

.nw-homy-menu-button span {
  background: currentColor;
  display: block;
  height: 1.5px;
  margin: 7px 0;
  width: 27px;
}

.nw-homy-content {
  align-items: center;
  display: flex;
  flex-direction: column;
  left: 0;
  padding: 0 32px;
  position: absolute;
  text-align: center;
  top: clamp(100px, 12svh, 144px);
  transform-origin: center center;
  will-change: opacity, transform;
  width: 100%;
  z-index: 5;
}

.nw-homy-proof {
  align-items: center;
  background: rgba(255, 255, 255, 0.3);
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  display: inline-flex;
  flex: none;
  gap: 6px;
  height: 42px;
  padding: 8px 14px 8px 8px;
  white-space: nowrap;
}

.nw-homy-proof-visual {
  display: inline-flex;
  flex: none;
  height: 26px;
  width: 78px;
}

.nw-homy-proof-visual img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.nw-homy-proof-text {
  color: #4b5b63;
  font-family: "NW Switzer", Arial, sans-serif !important;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

.nw-homy-title {
  color: var(--nw-ink);
  font-family: "NW Special Gothic", Impact, sans-serif !important;
  font-size: clamp(64px, 5.8vw, 84px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
  margin: 10px 0 0;
  max-width: calc(100vw - 64px);
  text-wrap: nowrap;
  white-space: nowrap;
  width: 100%;
}

.nw-homy-intro {
  color: #4b5b63;
  font-family: "NW Switzer", Arial, sans-serif !important;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  margin: 10px auto 0;
  max-width: 600px;
}

.nw-homy-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.nw-homy-button {
  align-items: center;
  border: 1px solid var(--nw-ink);
  border-radius: 12px;
  display: inline-flex;
  font-family: "NW Switzer", Arial, sans-serif !important;
  font-size: 14px;
  font-weight: 400;
  height: 44px;
  justify-content: center;
  min-width: 0;
  padding: 12px 20px;
  transition: background-color 220ms ease, color 220ms ease, transform 220ms ease;
}

.nw-homy-button--primary {
  background: var(--nw-ink);
  color: #fff !important;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
  padding: 8px;
}

.nw-homy-button-preview {
  background: #2f3236;
  border-radius: 8px;
  display: inline-flex;
  flex: none;
  height: 28px;
  overflow: hidden;
  position: relative;
  width: 28px;
}

.nw-homy-button-preview img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  opacity: 0;
  position: absolute;
  transform: scale(1.04);
  transition: opacity 140ms ease;
  width: 100%;
}

.nw-homy-button-preview img.is-active {
  opacity: 1;
}

.nw-homy-button-arrow {
  align-items: center;
  background: #8f008f;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 18px;
  height: 28px;
  justify-content: center;
  transition: background-color 180ms ease, transform 180ms ease;
  width: 28px;
}

.nw-homy-button:hover,
.nw-homy-button:focus-visible {
  transform: translateY(-2px);
}

.nw-homy-button--primary:hover .nw-homy-button-arrow,
.nw-homy-button--primary:focus-visible .nw-homy-button-arrow {
  background: #720072;
  transform: translate(1px, -1px);
}

.nw-homy-button--secondary:hover,
.nw-homy-button--secondary:focus-visible {
  background: rgba(255, 255, 255, 0.5);
}

/* Scroll the complete group; animate its inner layer independently so an
   entrance animation never overrides the current scroll position. */
.nw-homy-house-scene {
  height: var(--nw-house-height);
  left: 0;
  pointer-events: none;
  position: absolute;
  top: var(--nw-house-top);
  width: 100%;
  will-change: transform;
  z-index: 4;
}

.nw-homy-house-entrance {
  height: 100%;
  position: relative;
  transform-origin: center center;
  width: 100%;
  will-change: opacity, transform;
}

/* A broader contact shadow, clipped at foundation level so it only spreads
   across the ground below the house. Keep its soft tail inside the hero. */
.nw-homy-ground {
  --nw-ground-height: clamp(44px, calc(var(--nw-house-height) * .13), 84px);
  --nw-ground-width: min(98vw, calc(var(--nw-house-height) * 1.95));
  background:
    radial-gradient(ellipse 43% 45% at 50% 50%, rgb(49 48 41 / 48%), rgb(75 73 62 / 26%) 46%, transparent 100%),
    radial-gradient(ellipse 50% 50% at center, rgb(157 153 135 / 34%), rgb(182 178 160 / 23%) 45%, transparent 100%);
  clip-path: inset(50% 0 0);
  height: var(--nw-ground-height);
  left: 50%;
  margin-left: calc(var(--nw-ground-width) / -2);
  pointer-events: none;
  position: absolute;
  top: calc(var(--nw-house-height) * .70 - var(--nw-ground-height) * .50 - 4px);
  width: var(--nw-ground-width);
  z-index: 0;
}

.nw-homy-house {
  border-radius: 0 !important;
  display: block;
  height: var(--nw-house-height);
  left: -12%;
  /* The facade ends around 69% of the transparent source canvas. Keep it
     opaque and fade only the narrow strip of terrain beneath it. */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 72%);
  mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 72%);
  object-fit: contain;
  object-position: center bottom;
  top: 0;
  width: 124%;
  z-index: 1;
}

.nw-homy-cloud-transition {
  --nw-cloud-band-height: clamp(110px, 19vw, 300px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) calc(var(--nw-cloud-band-height) * .12),
    #fff calc(var(--nw-cloud-band-height) * .55),
    #fff 100%
  );
  height: 100%;
  left: 0;
  pointer-events: none;
  position: absolute;
  /* Lift the white ground behind the lower facade and keep it anchored
     to the house, independently of the moving background clouds. */
  top: calc(var(--nw-house-top) + var(--nw-house-height) * .70 - var(--nw-cloud-band-height) * .32 - var(--nw-cloud-rise));
  will-change: transform;
  width: 100%;
  z-index: 3;
}

.nw-homy-scene-spacer {
  display: none;
  background: #fff;
  height: clamp(180px, 18vw, 260px);
  pointer-events: none;
  width: 100%;
}

.nw-homy-cloud-transition__layer {
  height: var(--nw-cloud-band-height);
  left: 0;
  position: absolute;
  width: 100%;
}

.nw-homy-cloud-transition__layer::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 95%);
  bottom: 0;
  content: "";
  height: 45%;
  left: 0;
  position: absolute;
  width: 100%;
}

/* Two smaller, softly overlapping cloud images keep the cloud crests low,
   instead of magnifying one image across the full viewport. */
.nw-homy-cloud-transition__image {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  position: absolute;
  top: 0;
  user-select: none;
  width: 58%;
}

.nw-homy-cloud-transition__image--left {
  left: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 72%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 72%, transparent 100%);
}

.nw-homy-cloud-transition__image--right {
  right: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 100%);
}

.nw-homy-cloud-transition__layer--back {
  opacity: 0.2;
  top: calc(var(--nw-cloud-band-height) * -.08);
}

.nw-homy-cloud-transition__layer--front {
  top: 0;
}

@media (min-width: 1200px) and (max-height: 800px) {
  .nw-homy-hero {
    /* Keep the foundation visible on wide, short laptop screens, too. */
    --nw-house-top: calc(774px - var(--nw-house-height) * .70);
  }

  .nw-homy-content {
    top: 100px;
  }

  .nw-homy-intro {
    font-size: 16px;
    line-height: 1.5;
  }

  .nw-homy-actions {
    margin-top: 16px;
  }
}

@media (min-width: 810px) and (max-width: 1199.98px) {
  .nw-homy-hero {
    --nw-house-height: clamp(424px, 47.27vw, 570px);
    --nw-house-top: 434px;
  }

  .nw-homy-nav {
    padding-inline: 28px;
  }

  .nw-homy-nav-links {
    gap: 22px;
  }

  .nw-homy-title {
    font-size: clamp(52px, 6.3vw, 74px);
    max-width: calc(100vw - 56px);
    text-wrap: balance;
    white-space: normal;
  }

  .nw-homy-intro {
    font-size: 16px;
    line-height: 1.5;
  }

  .nw-homy-actions {
    margin-top: 14px;
  }

  .nw-homy-button {
    border-radius: 14px;
    font-size: 12px;
    height: 44px;
    min-width: 108px;
    padding: 0 14px;
  }

  .nw-homy-button--primary {
    gap: 10px;
    min-width: 152px;
    padding: 5px;
  }

  .nw-homy-button-preview,
  .nw-homy-button-arrow {
    border-radius: 9px;
    height: 34px;
    width: 34px;
  }

  .nw-homy-button-arrow {
    font-size: 16px;
  }

  .nw-homy-contact-link {
    font-size: 12px;
    gap: 18px;
    height: 46px;
    padding-left: 18px;
  }

  .nw-homy-house {
    left: -15%;
    width: 130%;
  }
}

@media (max-width: 809.98px) {
  .nw-homy-hero {
    --nw-house-height: clamp(246px, 70vw, 318px);
    --nw-house-top: 500px;
    position: relative;
  }

  /* Mobile is a normal scrolling section, without the desktop pinning runway. */
  .nw-homy-scene-spacer { display: none; }
  .nw-homy-content,
  .nw-homy-house-scene,
  .nw-homy-cloud-transition,
  .nw-homy-cloud { will-change: auto; }

  .nw-homy-hero::after {
    height: 65px;
  }

  .nw-homy-nav {
    height: 72px;
    padding: 0 20px;
  }

  .nw-homy-brand {
    gap: 7px;
  }

  .nw-homy-brand-mark {
    height: 24px;
    width: 27px;
  }

  .nw-homy-brand-name {
    font-size: 24px;
    letter-spacing: -0.9px;
  }

  .nw-homy-nav-links {
    display: none;
  }

  .nw-homy-menu-button {
    display: block;
  }

  .nw-homy-content {
    padding: 0 20px;
    top: 128px;
  }

  .nw-homy-proof {
    height: auto;
    min-height: 42px;
    max-width: 100%;
    padding: 8px 14px 8px 8px;
    white-space: normal;
  }

  .nw-homy-proof-visual {
    height: 26px;
    width: 78px;
  }

  .nw-homy-proof-text {
    font-size: 12px;
    line-height: 1.25;
    text-align: left;
  }

  .nw-homy-title {
    font-size: clamp(44px, 12vw, 51px);
    letter-spacing: -0.51px;
    line-height: 1;
    margin-top: 10px;
    max-width: 350px;
    text-wrap: balance;
    white-space: normal;
  }

  .nw-homy-intro {
    font-size: clamp(13px, 3.7vw, 15px);
    line-height: 1.5;
    margin-top: 10px;
    max-width: 350px;
  }

  .nw-homy-actions {
    gap: 10px;
    margin-top: 16px;
  }

  .nw-homy-button {
    border-radius: 12px;
    font-size: 12px;
    height: 44px;
    min-width: 0;
    padding: 12px 20px;
  }

  .nw-homy-button--primary {
    gap: 8px;
    min-width: 0;
    padding: 8px;
  }

  .nw-homy-button-preview,
  .nw-homy-button-arrow {
    border-radius: 8px;
    height: 28px;
    width: 28px;
  }

  .nw-homy-button-arrow {
    font-size: 16px;
  }

  .nw-homy-house {
    left: -27.5%;
    max-height: none;
    object-fit: contain;
    object-position: center bottom;
    width: 155%;
  }

  .nw-homy-cloud {
    opacity: 0.24;
  }

  .nw-homy-cloud--one {
    left: -636px;
    top: 91px;
    transform: translateX(-100px);
    width: 889px;
  }

  .nw-homy-cloud--two {
    left: -295px;
    right: auto;
    top: 251.828px;
    transform: none;
    width: 1016px;
  }

  .nw-homy-cloud--three {
    left: -945px;
    opacity: 0.28;
    top: 447.547px;
    transform: translateY(-50%) rotate(22deg);
    width: 1292px;
  }

  .nw-homy-cloud--four {
    left: calc(100% - 208.508px);
    right: auto;
    top: -66.688px;
    transform: translateX(100px) rotate(-9deg);
    width: 881px;
  }
}

html[data-local-page="home"] .nw-homy-hero .nw-homy-house {
  border-radius: 0 !important;
}

@media (max-width: 374px) {
  .nw-homy-title {
    font-size: clamp(40px, 13vw, 47px);
  }

  .nw-homy-intro {
    font-size: 13px;
  }

  .nw-homy-hero {
    --nw-house-top: 540px;
  }

  .nw-homy-button--primary {
    gap: 6px;
  }

  .nw-homy-button {
    font-size: 11px;
  }

  .nw-homy-button--secondary {
    padding-inline: 12px;
  }
}

html.nw-homy-motion-reduced .nw-homy-hero {
  position: relative;
}
