/* DEALER2DEALER HOMEPAGE V5 / PHASE 1 - HEADER, HERO, SEARCH */

/* HOMEPAGE BACKGROUND */
body.d2d-home-v5 {
  background: #f7f9fb;
}

/* PREMIUM HEADER */
.d2d-home-v5 .d2d-public-header {
  background: rgba(255,255,255,.97); border-bottom: 1px solid #e5ebef;
  box-shadow: 0 8px 30px rgba(8,32,52,.045);
}
.d2d-home-v5 .d2d-topbar {
  background: #0c2336; color: #d9e9f3;
}
.d2d-home-v5 .d2d-topbar-location b, .d2d-home-v5 .d2d-status-dot {
  color: #ddba83; background-color: #ddba83;
}
.d2d-home-v5 .d2d-header-main {
  min-height: 76px;
}
.d2d-home-v5 .d2d-public-header .d2d-public-nav > a:not(.d2d-nav-login):hover {
  background: #edf5fa; color: #145d8e;
}
.d2d-home-v5 .d2d-public-header .d2d-public-nav > .d2d-nav-login {
  background: #102e45; border-color: #102e45;
  color: #fff; border-radius: 9px;
}
.d2d-home-v5 .d2d-public-header .d2d-public-nav > .d2d-nav-login:hover {
  background: #1b618f;
}

/* PREMIUM CINEMATIC HERO */
.d2d-home-v5 .hp-hero, .d2d-home-v5 .hp-slideshow {
  background: #071d2e;
}
.d2d-home-v5 .hp-hero .hp-slideshow, .d2d-home-v5 .hp-hero .hp-hero-slide, .d2d-home-v5 .hp-hero .hp-slide-inner {
  min-height: 585px;
}

/* Keep the Admin-uploaded image clear */
.d2d-home-v5 .hp-hero .hp-hero-image {
  opacity: 1; object-position: center;
}

/* Cinematic gradient */
.d2d-home-v5 .hp-hero .hp-hero-shade {
  background: linear-gradient( 90deg, rgba(4,19,32,.88) 0%, rgba(6,25,41,.72) 36%, rgba(7,27,44,.28) 76%, rgba(7,27,44,.16) 100% );
}

/* Hero content */
.d2d-home-v5 .hp-hero .hp-slide-inner {
  padding: 50px 0 115px; align-items: center;
}
.d2d-home-v5 .hp-hero .hp-hero-copy {
  width: 100%; max-width: 690px;
}
.d2d-home-v5 .hp-hero .hp-topline {
  color: #e5c18e; letter-spacing: .18em;
  font-size: .7rem;
}
.d2d-home-v5 .hp-hero .hp-hero-copy h1 {
  max-width: 690px; font-size: clamp(2.8rem, 4.6vw, 4.6rem);
  line-height: 1.06; letter-spacing: -.048em;
  margin: 20px 0; color: #fff;
  text-wrap: balance;
}

/* Elegant headline highlight */
.d2d-home-v5 .hp-hero .hp-hero-copy h1 em {
  color: #addcf1; font-family: Georgia, 'Times New Roman', serif;
  font-style: italic; font-weight: 400;
  letter-spacing: -.035em;
}
.d2d-home-v5 .hp-hero .hp-hero-copy > p {
  max-width: 530px; font-size: 1rem;
  line-height: 1.68; color: #e1e9ee;
  margin-bottom: 23px;
}

/* Premium hero buttons */
.d2d-home-v5 .hp-hero .hp-hero-actions .hp-button-gold {
  color: #16283a !important; background: #e9c188;
  border-color: #e9c188; box-shadow: 0 10px 25px rgba(0,0,0,.16);
}
.d2d-home-v5 .hp-hero .hp-hero-actions .hp-button-ghost {
  color: #fff; background: rgba(255,255,255,.085);
  border: 1px solid rgba(255,255,255,.46); backdrop-filter: blur(8px);
}

/* Slideshow controls */
.d2d-home-v5 .hp-hero .hp-hero-controls {
  bottom: 69px;
}
.d2d-home-v5 .hp-hero .hp-hero-seal {
  opacity: .75;
}

/* FLOATING PROPERTY SEARCH */
.d2d-home-v5 .hp-search-wrap {
  background: linear-gradient( #eff6fa, #f7f9fb ); padding-bottom: 28px;
}
.d2d-home-v5 .hp-search-wrap .hp-search-card {
  margin-top: -55px; padding: 26px 28px 22px;
  border-radius: 20px; border: 1px solid #e3ebf0;
  background: #fff; box-shadow: 0 19px 52px rgba(9,40,65,.13);
}
.d2d-home-v5 .hp-search-title {
  margin-bottom: 17px;
}
.d2d-home-v5 .hp-search-title h2 {
  color: #102e45; font-size: clamp(1.25rem, 2vw, 1.55rem);
}
.d2d-home-v5 .hp-transaction-set {
  margin-bottom: 17px;
}
.d2d-home-v5 .hp-transaction-set input:checked + span {
  color: #fff; background: #1b77b4;
  border-color: #1b77b4;
}
.d2d-home-v5 .hp-control select, .d2d-home-v5 .hp-control input {
  min-height: 50px; background: #fbfdff;
  border-radius: 10px; border: 1px solid #dbe5ec;
  color: #203d54;
}
.d2d-home-v5 .hp-control select:focus, .d2d-home-v5 .hp-control input:focus {
  border-color: #5ba9d7; box-shadow: 0 0 0 3px rgba(91,169,215,.15);
}
.d2d-home-v5 .hp-search-fields .hp-button-search {
  min-height: 50px; background: #1774b1;
  border-radius: 10px; box-shadow: none;
}

/* HERO ENTRANCE ANIMATIONS */
.d2d-home-v5 .hp-hero-slide.is-active .hp-topline, .d2d-home-v5 .hp-hero-slide.is-active .hp-hero-copy h1, .d2d-home-v5 .hp-hero-slide.is-active .hp-hero-copy > p, .d2d-home-v5 .hp-hero-slide.is-active .hp-hero-actions {
  animation: d2d-v5-rise .65s cubic-bezier(.2,.75,.2,1) both;
}
.d2d-home-v5 .hp-hero-slide.is-active .hp-hero-copy h1 {
  animation-delay: .08s;
}
.d2d-home-v5 .hp-hero-slide.is-active .hp-hero-copy > p {
  animation-delay: .16s;
}
.d2d-home-v5 .hp-hero-slide.is-active .hp-hero-actions {
  animation-delay: .24s;
}
.d2d-home-v5 .hp-search-card {
  animation: d2d-v5-rise .75s .27s both;
}

@keyframes d2d-v5-rise {
  from {
    opacity: 0; transform: translateY(20px);
  }
  to {
    opacity: 1; transform: translateY(0);
  }
}

/* TABLET */

@media (max-width: 1050px) {
  .d2d-home-v5 .hp-search-fields {
    grid-template-columns: repeat( 2, minmax(0,1fr) );
  }
  .d2d-home-v5 .hp-search-fields .hp-button-search {
    grid-column: 1 / -1;
  }
}

/* MOBILE */

@media (max-width: 767px) {
  .d2d-home-v5 .hp-hero .hp-slideshow, .d2d-home-v5 .hp-hero .hp-hero-slide, .d2d-home-v5 .hp-hero .hp-slide-inner {
    min-height: 625px;
  }
  .d2d-home-v5 .hp-hero .hp-slide-inner {
    padding: 40px 0 118px;
  }
  .d2d-home-v5 .hp-hero .hp-hero-shade {
    background: linear-gradient( 180deg, rgba(4,19,32,.80) 0%, rgba(4,19,32,.70) 50%, rgba(4,19,32,.46) 100% );
  }
  .d2d-home-v5 .hp-hero .hp-hero-copy h1 {
    font-size: clamp(2.2rem, 8.4vw, 3.25rem); line-height: 1.08;
  }
  .d2d-home-v5 .hp-hero .hp-hero-copy > p {
    font-size: .95rem;
  }
  .d2d-home-v5 .hp-hero .hp-hero-controls {
    bottom: 52px;
  }
  .d2d-home-v5 .hp-search-wrap .hp-search-card {
    margin-top: -35px; padding: 22px 17px 17px;
    border-radius: 17px;
  }
  .d2d-home-v5 .hp-search-fields {
    grid-template-columns: minmax(0,1fr); gap: 12px;
  }
  .d2d-home-v5 .hp-search-fields .hp-button-search {
    grid-column: auto;
  }
  .d2d-home-v5 .hp-control select, .d2d-home-v5 .hp-control input {
    font-size: 16px;
  }
  .d2d-home-v5 .hp-search-foot {
    align-items: flex-start; flex-direction: column;
  }
}

/* ACCESSIBILITY */

/* V5 PREMIUM STORIES DESIGN */
.hpv5-stories {
  padding: 30px 0 26px; background: linear-gradient( 105deg, #fafbf9, #fff 55%, #f3f8fb );
  border-bottom: 1px solid #e6ecf0;
}
.hpv5-stories-layout {
  display: grid; grid-template-columns: 185px minmax(0, 1fr);
  align-items: center; gap: 24px;
}
.hpv5-stories-eyebrow {
  color: #1976b8; font-size: 10px;
  font-weight: 800; letter-spacing: .17em;
}
.hpv5-stories-heading h2 {
  margin: 6px 0 0; color: #102d42;
  font-size: clamp(30px, 3vw, 43px); line-height: 1.05;
  letter-spacing: -.045em;
}
.hpv5-stories-heading h2 span {
  color: #c2a477;
}

/* Circular thumbnails */
.hpv5-stories-rail-wrap {
  min-width: 0; display: flex;
  align-items: center; gap: 12px;
}
.hpv5-stories-rail {
  display: flex; min-width: 0;
  flex: 1; gap: 18px;
  padding: 12px 5px 13px; overflow-x: auto;
  scroll-snap-type: x proximity; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.hpv5-stories-rail::-webkit-scrollbar {
  display: none;
}
.hpv5-story-item {
  flex: 0 0 110px; max-width: 110px;
  display: flex; align-items: center;
  flex-direction: column; gap: 10px;
  padding: 3px 0; border: 0;
  background: transparent; color: #24465c;
  text-align: center; font: inherit;
  cursor: pointer; scroll-snap-align: start;
}
.hpv5-story-ring {
  display: block; position: relative;
  width: 100px; height: 100px;
  border-radius: 50%; padding: 4px;
  background: conic-gradient( from 220deg, #18608d, #44acd2, #d6b985, #2386b8, #18608d );
  box-shadow: 0 0 0 4px #fff, 0 7px 22px rgba(22,68,93,.12);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hpv5-story-ring::after {
  content: ""; position: absolute;
  inset: 4px; border: 3px solid #fff;
  border-radius: 50%; pointer-events: none;
}
.hpv5-story-ring img {
  width: 100%; height: 100%;
  display: block; object-fit: cover;
  border-radius: 50%;
}
.hpv5-story-item:hover .hpv5-story-ring, .hpv5-story-item:focus-visible .hpv5-story-ring {
  transform: translateY(-4px) scale(1.04); box-shadow: 0 0 0 5px #fff, 0 12px 28px rgba(23,90,135,.22);
}

/* Muted ring after viewing a story */
.hpv5-story-item.is-viewed .hpv5-story-ring {
  background: #c7d7e1;
}
.hpv5-story-item:focus-visible {
  outline: 2px solid #1976b8; outline-offset: 4px;
  border-radius: 10px;
}
.hpv5-story-name {
  max-width: 100%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
  font-size: 12px; font-weight: 700;
}

/* Navigation for many stories */
.hpv5-story-rail-buttons {
  display: flex; flex-direction: column;
  gap: 7px;
}
.hpv5-story-rail-buttons[hidden] {
  display: none !important;
}
.hpv5-story-rail-buttons button {
  width: 32px; height: 32px;
  border: 1px solid #d9e7ef; border-radius: 50%;
  background: #fff; color: #1f597c;
  cursor: pointer; font-size: 18px;
}
.hpv5-story-rail-buttons button:hover {
  background: #eaf5fb;
}
.hpv5-story-rail-buttons button:disabled {
  opacity: .35; cursor: default;
}

/* LUXURY TWO COLUMN STORY VIEWER */
.hpv5-story-modal[hidden], .hpv5-story-full-image[hidden], .hpv5-story-full-video[hidden], .hpv5-story-link[hidden], .hpv5-story-info p[hidden] {
  display: none !important;
}
.hpv5-story-modal {
  position: fixed; z-index: 10000;
  inset: 0; display: flex;
  align-items: center; justify-content: center;
  padding: 30px 70px; background: rgba(5,13,23,.94);
  backdrop-filter: blur(5px);
}
body.hpv5-story-open {
  overflow: hidden;
}
.hpv5-story-shell {
  display: grid; grid-template-columns: 1.08fr .95fr;
  width: min(950px, 100%); height: min(700px, calc(100dvh - 60px));
  min-height: 0; overflow: hidden;
  border-radius: 16px; background: #fafbfc;
  box-shadow: 0 32px 90px rgba(0,0,0,.35);
}

/* Media panel */
.hpv5-story-media {
  position: relative; min-width: 0;
  min-height: 0; overflow: hidden;
  background: #102333;
}
.hpv5-story-full-image, .hpv5-story-full-video {
  width: 100%; height: 100%;
  display: block; object-fit: contain;
  background: #0b1e2e;
}
.hpv5-story-media::after {
  content: ""; position: absolute;
  inset: 55% 0 0; background: linear-gradient( transparent, rgba(4,15,28,.48) );
  pointer-events: none;
}

/* Progress indicators */
.hpv5-story-progress {
  position: absolute; z-index: 4;
  top: 19px; left: 20px;
  right: 20px; display: flex;
  gap: 4px; height: 3px;
}
.hpv5-story-progress span {
  flex: 1; min-width: 0;
  overflow: hidden; border-radius: 6px;
  background: rgba(255,255,255,.45);
}
.hpv5-story-progress i {
  display: block; height: 100%;
  width: 0; background: #fff;
}
.hpv5-story-media-name {
  position: absolute; z-index: 3;
  bottom: 23px; left: 23px;
  right: 23px; color: #fff;
  letter-spacing: .15em; font-size: 11px;
  font-weight: 800; text-transform: uppercase;
  text-shadow: 0 2px 10px #0008;
}

/* Pause and close controls */
.hpv5-story-pause {
  position: absolute; z-index: 5;
  right: 17px; top: 33px;
  width: 34px; height: 34px;
  border: 1px solid #fff8; border-radius: 50%;
  background: #0c263da8; color: #fff;
  cursor: pointer; font-size: 12px;
}
.hpv5-story-close {
  position: absolute; z-index: 6;
  top: 22px; right: 25px;
  width: 44px; height: 44px;
  border: 1px solid #ffffff68; border-radius: 50%;
  background: #ffffff24; color: #fff;
  cursor: pointer; font-size: 28px;
}

/* White details panel */
.hpv5-story-info {
  display: flex; min-width: 0;
  min-height: 0; flex-direction: column;
  justify-content: center; padding: clamp(24px, 4vw, 48px);
  color: #102b42; overflow-y: auto;
}
.hpv5-story-kicker {
  font-size: 11px; font-weight: 800;
  letter-spacing: .17em; color: #1976b8;
}
.hpv5-story-info h2 {
  margin: 22px 0 15px; color: #102b42;
  font-size: clamp(29px, 3.7vw, 52px); line-height: 1.09;
  letter-spacing: -.043em; overflow-wrap: anywhere;
}
.hpv5-story-info p {
  margin: 0; color: #627a8b;
  font-size: 14px; line-height: 1.75;
  white-space: pre-line; overflow-wrap: anywhere;
}
.hpv5-story-link {
  align-self: flex-start; display: inline-flex;
  margin-top: 24px; padding: 11px 19px;
  border-radius: 9px; background: #164f73;
  color: #fff !important; font-size: 13px;
  font-weight: 750; text-decoration: none;
}
.hpv5-story-link:hover {
  background: #1976b8;
}

/* Previous, Next and position */
.hpv5-story-bottom {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 28px;
}
.hpv5-story-nav {
  display: flex; gap: 9px;
}
.hpv5-story-nav button {
  padding: 11px 16px; border: 1px solid #d6e3ec;
  border-radius: 8px; background: #fff;
  color: #153d58; font-size: 12px;
  font-weight: 750; cursor: pointer;
}
.hpv5-story-nav button:hover {
  border-color: #75b7db; background: #f0f8fc;
}
.hpv5-story-bottom small {
  color: #8093a2; font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* TABLET */

@media (max-width: 900px) {
  .hpv5-story-modal {
    padding: 18px 42px;
  }
  .hpv5-story-shell {
    grid-template-columns: 1fr .95fr;
  }
  .hpv5-story-info {
    padding: 28px;
  }
  .hpv5-story-info h2 {
    font-size: clamp(27px, 4vw, 38px);
  }
}

/* MOBILE STORY VIEWER */

@media (max-width: 767px) {
  .hpv5-stories {
    padding: 24px 0 20px;
  }
  .hpv5-stories-layout {
    display: block;
  }
  .hpv5-stories-heading {
    margin-bottom: 12px;
  }
  .hpv5-stories-heading h2 {
    font-size: 32px;
  }
  .hpv5-stories-rail {
    gap: 12px; padding: 9px 3px 12px;
  }
  .hpv5-story-item {
    flex-basis: 90px; max-width: 90px;
    gap: 8px;
  }
  .hpv5-story-ring {
    width: 78px; height: 78px;
  }
  .hpv5-story-name {
    font-size: 11px;
  }
  .hpv5-story-rail-buttons {
    display: none;
  }
  .hpv5-story-modal {
    padding: 0; align-items: stretch;
    backdrop-filter: none;
  }
  .hpv5-story-close {
    top: 14px; right: 14px;
    background: #0d283cc9;
  }
  .hpv5-story-shell {
    display: flex; flex-direction: column;
    width: 100%; height: 100dvh;
    border-radius: 0; min-height: 0;
  }
  .hpv5-story-media {
    height: 58dvh; flex: 0 0 58dvh;
  }
  .hpv5-story-progress {
    top: 15px; left: 14px;
    right: 66px;
  }
  .hpv5-story-pause {
    top: 28px; right: 16px;
  }
  .hpv5-story-media-name {
    bottom: 16px; left: 18px;
  }
  .hpv5-story-info {
    flex: 1 1 auto; min-height: 0;
    justify-content: flex-start; padding: 22px 22px 26px;
    overflow-y: auto;
  }
  .hpv5-story-info h2 {
    font-size: clamp(25px, 7vw, 34px); margin: 12px 0;
  }
  .hpv5-story-info p {
    font-size: 13px; line-height: 1.6;
  }
  .hpv5-story-link {
    margin-top: 16px;
  }
  .hpv5-story-bottom {
    margin-top: 17px;
  }
}

@media (max-height: 680px) and (min-width: 768px) {
  .hpv5-story-info {
    padding: 25px;
  }
  .hpv5-story-info h2 {
    margin: 12px 0; font-size: clamp(24px, 3vw, 40px);
  }
  .hpv5-story-bottom {
    margin-top: 18px;
  }
}

/* V5 - WHY DEALER2DEALER */
.d2d-home-v5 .hpv5-why {
  background: linear-gradient( 180deg, #ffffff 0%, #f8fafb 100% ); padding: 84px 0 90px;
  overflow: hidden;
}

/* SECTION HEADING */
.d2d-home-v5 .hpv5-why-head {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 38px;
  margin-bottom: 34px;
}
.d2d-home-v5 .hpv5-why-head > div {
  max-width: 750px; min-width: 0;
}
.d2d-home-v5 .hpv5-why-eyebrow {
  display: inline-block; color: #1976b8;
  font-size: 11px; font-weight: 800;
  letter-spacing: .18em;
}
.d2d-home-v5 .hpv5-why h2 {
  margin: 13px 0 0; color: #102c43;
  font-size: clamp(37px, 4.1vw, 62px); font-weight: 760;
  line-height: 1.08; letter-spacing: -.055em;
}
.d2d-home-v5 .hpv5-why h2 em {
  font-family: Georgia, "Times New Roman", serif; color: #267eae;
  font-weight: 400; font-style: italic;
}
.d2d-home-v5 .hpv5-why-head > p {
  max-width: 335px; flex: 0 1 335px;
  margin: 0; color: #61778a;
  font-size: 14px; line-height: 1.8;
}

/* FEATURE GRID */
.d2d-home-v5 .hpv5-why-grid {
  display: grid; grid-template-columns: 1.08fr 1fr;
  grid-template-rows: repeat(2, minmax(205px, 1fr)); gap: 16px;
  min-height: 475px;
}

/* LARGE PHOTO FEATURE */
.d2d-home-v5 .hpv5-why-feature {
  position: relative; isolation: isolate;
  grid-row: 1 / 3; min-height: 440px;
  overflow: hidden; border-radius: 19px;
  background: #112f45; color: #ffffff;
  box-shadow: 0 17px 40px rgba(20,53,71,.11);
}
.d2d-home-v5 .hpv5-why-feature img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.d2d-home-v5 .hpv5-why-feature:hover img {
  transform: scale(1.065);
}
.d2d-home-v5 .hpv5-why-feature::after {
  content: ""; position: absolute;
  inset: 0; z-index: 0;
  background: linear-gradient( 180deg, rgba(6,21,32,.03) 12%, rgba(6,21,32,.35) 54%, rgba(5,20,33,.94) 100% );
}
.d2d-home-v5 .hpv5-why-feature-content {
  position: absolute; z-index: 1;
  left: 34px; right: 30px;
  bottom: 34px;
}
.d2d-home-v5 .hpv5-why-step {
  display: inline-block; color: #6d9bb5;
  font-size: 10px; font-weight: 800;
  letter-spacing: .16em;
}
.d2d-home-v5 .hpv5-why-feature .hpv5-why-step {
  color: #e4c38d;
}
.d2d-home-v5 .hpv5-why-feature h3 {
  margin: 14px 0 10px; color: #ffffff;
  font-size: clamp(31px, 3vw, 46px); font-weight: 750;
  line-height: 1.07; letter-spacing: -.045em;
}
.d2d-home-v5 .hpv5-why-feature p {
  max-width: 440px; margin: 0;
  color: #e1ebf1; font-size: 14px;
  line-height: 1.7;
}

/* SMALL PREMIUM CARDS */
.d2d-home-v5 .hpv5-why-card {
  display: flex; flex-direction: column;
  justify-content: space-between; position: relative;
  min-width: 0; padding: 30px 32px;
  border: 1px solid #e1eaf0; border-radius: 18px;
  background: #eff6fa; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.d2d-home-v5 .hpv5-why-card:last-child {
  background: #faf8f3; border-color: #ebe7df;
}
.d2d-home-v5 .hpv5-why-card:hover {
  transform: translateY(-5px); box-shadow: 0 18px 35px rgba(22,64,88,.10);
  border-color: #c7dfea;
}
.d2d-home-v5 .hpv5-why-card-top {
  display: flex; align-items: center;
  justify-content: space-between; gap: 15px;
}
.d2d-home-v5 .hpv5-why-card-top > span:last-child {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%; background: #ffffff;
  color: #1976b8; font-size: 22px;
  box-shadow: 0 2px 11px rgba(17,56,78,.07);
}
.d2d-home-v5 .hpv5-why-card h3 {
  margin: 0 0 9px; color: #122f45;
  font-size: clamp(25px, 2.2vw, 33px); line-height: 1.1;
  letter-spacing: -.04em;
}
.d2d-home-v5 .hpv5-why-card p {
  max-width: 340px; margin: 0;
  color: #5d7384; font-size: 13px;
  line-height: 1.65;
}

/* GLOBAL V5 SCROLL REVEAL ANIMATION / WORKS ON DESKTOP AND MOBILE */

/* Only hide elements when JS is initialized. / Without JS, content remains visible. */
body.d2d-home-v5.d2d-v5-motion-ready [data-v5-reveal] {
  opacity: 0; transform: translate3d(0,42px,0);
  transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--v5-delay,0ms);
}
body.d2d-home-v5.d2d-v5-motion-ready [data-v5-reveal="soft"] {
  transform: translate3d(0,25px,0);
}

/* Reveal when element enters viewport */
body.d2d-home-v5.d2d-v5-motion-ready [data-v5-reveal].is-visible {
  opacity: 1; transform: none;
}

/* Keep hover lift working after reveal */
body.d2d-home-v5.d2d-v5-motion-ready .hpv5-why-card.is-visible:hover {
  transform: translateY(-5px);
}

/* TABLET */

@media (max-width: 900px) {
  .d2d-home-v5 .hpv5-why {
    padding: 66px 0 72px;
  }
  .d2d-home-v5 .hpv5-why-head {
    align-items: flex-start; flex-direction: column;
    gap: 12px;
  }
  .d2d-home-v5 .hpv5-why-head > p {
    max-width: 640px; flex: auto;
  }
  .d2d-home-v5 .hpv5-why-grid {
    grid-template-columns: repeat( 2, minmax(0,1fr) ); grid-template-rows: auto;
  }
  .d2d-home-v5 .hpv5-why-feature {
    grid-column: 1 / -1; grid-row: auto;
    min-height: 350px;
  }
  .d2d-home-v5 .hpv5-why-card {
    min-height: 220px;
  }
}

/* MOBILE */

@media (max-width: 600px) {
  .d2d-home-v5 .hpv5-why {
    padding: 50px 0 56px;
  }
  .d2d-home-v5 .hpv5-why-head {
    margin-bottom: 23px;
  }
  .d2d-home-v5 .hpv5-why h2 {
    font-size: clamp(35px,9vw,45px);
  }
  .d2d-home-v5 .hpv5-why-head > p {
    font-size: 13px; line-height: 1.7;
  }
  .d2d-home-v5 .hpv5-why-grid {
    grid-template-columns: minmax(0,1fr); gap: 12px;
  }
  .d2d-home-v5 .hpv5-why-feature {
    grid-column: auto; min-height: 330px;
  }
  .d2d-home-v5 .hpv5-why-feature-content {
    left: 23px; right: 23px;
    bottom: 24px;
  }
  .d2d-home-v5 .hpv5-why-feature h3 {
    font-size: 34px;
  }
  .d2d-home-v5 .hpv5-why-card {
    min-height: 192px; padding: 25px;
  }
  .d2d-home-v5 .hpv5-why-card h3 {
    font-size: 27px;
  }
  .d2d-home-v5 .hpv5-why-card-top > span:last-child {
    width: 34px; height: 34px;
  }
}

/* ACCESSIBILITY */

/* V5 - EXPLORE TRICITY */
.d2d-home-v5 .hpv5-locations {
  background: #f8fafb; padding: 10px 0 70px;
  overflow: clip;
}

/* SECTION HEADING */
.d2d-home-v5 .hpv5-locations-heading {
  display: flex; align-items: end;
  justify-content: space-between; gap: 30px;
  margin-bottom: 32px;
}
.d2d-home-v5 .hpv5-locations-kicker {
  color: #1976b8; font-size: 11px;
  font-weight: 800; letter-spacing: .16em;
}
.d2d-home-v5 .hpv5-locations-heading h2 {
  margin: 12px 0 0; color: #112d43;
  font-size: clamp(38px, 4.6vw, 65px); line-height: 1.05;
  letter-spacing: -.05em;
}
.d2d-home-v5 .hpv5-locations-heading h2 em {
  color: #2583b4; font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
}
.d2d-home-v5 .hpv5-locations-heading > p {
  max-width: 340px; margin: 0 0 5px;
  color: #63798a; font-size: 14px;
  line-height: 1.75;
}

/* MAIN CITY SHOWCASE */
.d2d-home-v5 .hpv5-city-stage {
  display: grid; grid-template-columns: 35% 65%;
  min-height: 380px; overflow: hidden;
  border-radius: 15px; background: #10283c;
  box-shadow: 0 16px 45px rgba(14,47,70,.10);
}

/* LEFT CITY MENU */
.d2d-home-v5 .hpv5-city-menu {
  display: flex; flex-direction: column;
  justify-content: center; padding: 34px 26px;
  min-width: 0;
}
.d2d-home-v5 .hpv5-city-tab {
  display: flex; align-items: center;
  gap: 15px; width: 100%;
  min-height: 67px; padding: 12px 4px;
  border: 0; border-bottom: 1px solid rgba(255,255,255,.18);
  background: none; color: #91b6cf;
  text-align: left; cursor: pointer;
  transition: color .3s, padding .3s, background .3s;
}
.d2d-home-v5 .hpv5-city-tab small {
  font-size: 10px; letter-spacing: .1em;
}
.d2d-home-v5 .hpv5-city-tab strong {
  font-size: clamp(19px, 2vw, 25px); letter-spacing: -.04em;
}
.d2d-home-v5 .hpv5-city-tab > span {
  margin-left: auto; font-size: 21px;
  transition: transform .25s;
}
.d2d-home-v5 .hpv5-city-tab.is-active, .d2d-home-v5 .hpv5-city-tab:hover {
  color: #fff; padding-left: 10px;
}
.d2d-home-v5 .hpv5-city-tab.is-active {
  border-bottom-color: #dcb986;
}
.d2d-home-v5 .hpv5-city-tab.is-active > span {
  transform: translate(3px,-3px);
}
.d2d-home-v5 .hpv5-city-tab:focus-visible, .d2d-home-v5 .hpv5-locality-link:focus-visible {
  outline: 2px solid #7bcdf5; outline-offset: 2px;
}

/* CITY PHOTOGRAPH */
.d2d-home-v5 .hpv5-city-scene {
  position: relative; min-width: 0;
  min-height: 380px; overflow: hidden;
  isolation: isolate;
}
.d2d-home-v5 .hpv5-city-photo {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .85s ease;
  z-index: 0;
}
.d2d-home-v5 .hpv5-city-photo.is-active {
  opacity: 1; z-index: 1;
}
.d2d-home-v5 .hpv5-city-photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* Slow cinematic zoom */
.d2d-home-v5 .hpv5-city-photo.is-active img {
  animation: hpv5-city-image-in 7s ease-out both;
}

@keyframes hpv5-city-image-in {
  from {
    transform: scale(1.065);
  }
  to {
    transform: scale(1);
  }
}

/* IMAGE GRADIENT */
.d2d-home-v5 .hpv5-city-gradient {
  position: absolute; inset: 0;
  z-index: 2; pointer-events: none;
  background: linear-gradient( 180deg, rgba(4,18,33,.02) 25%, rgba(4,18,33,.78) 100% );
}

/* CITY IMAGE TEXT */
.d2d-home-v5 .hpv5-city-caption {
  position: absolute; z-index: 3;
  left: 28px; right: 28px;
  bottom: 23px; display: flex;
  align-items: end; justify-content: space-between;
  gap: 15px; color: #fff;
}
.d2d-home-v5 .hpv5-city-caption span {
  color: #e9c18b; font-size: 10px;
  font-weight: 800; letter-spacing: .15em;
}
.d2d-home-v5 .hpv5-city-caption h3 {
  color: #fff; font-size: clamp(30px, 3vw, 43px);
  margin: 7px 0; letter-spacing: -.04em;
}
.d2d-home-v5 .hpv5-city-caption p {
  color: #e3edf2; font-size: 13px;
  margin: 0; line-height: 1.5;
}
.d2d-home-v5 .hpv5-city-caption > small {
  flex: 0 0 auto; padding: 7px 10px;
  border: 1px solid #ffffff99; border-radius: 20px;
  color: #fff; font-size: 10px;
}

/* PROGRESS LINE AND BUTTON */
.d2d-home-v5 .hpv5-city-underbar {
  display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
  margin: 15px 0 17px;
}
.d2d-home-v5 .hpv5-city-underbar > span {
  font-size: 10px; color: #6c8393;
  letter-spacing: .07em;
}
.d2d-home-v5 .hpv5-city-progress {
  flex: 0 1 180px; height: 2px;
  background: #d9e6ef; overflow: hidden;
}
.d2d-home-v5 .hpv5-city-progress > span {
  display: block; height: 100%;
  width: 33.333%; background: #2185bd;
  transition: width .65s cubic-bezier(.2,.8,.2,1);
}
.d2d-home-v5 .hpv5-city-underbar button {
  border: 0; background: none;
  padding: 5px 0; color: #1976b8;
  font-size: 10px; font-weight: 800;
  letter-spacing: .07em; cursor: pointer;
}

/* LOCALITY SPOTLIGHT */
.d2d-home-v5 .hpv5-locality-strip {
  display: grid; grid-template-columns: 205px minmax(0,1fr);
  align-items: center; gap: 20px;
  padding: 20px; border: 1px solid #e0eaf0;
  border-radius: 13px; background: #fff;
}
.d2d-home-v5 .hpv5-locality-heading {
  display: grid; gap: 5px;
}
.d2d-home-v5 .hpv5-locality-heading > span {
  color: #1976b8; font-size: 9px;
  letter-spacing: .16em; font-weight: 850;
}
.d2d-home-v5 .hpv5-locality-heading strong {
  color: #112d43; font-size: 18px;
  line-height: 1.15;
}
.d2d-home-v5 .hpv5-locality-heading small {
  color: #768b9b; font-size: 9px;
  letter-spacing: .05em;
}
.d2d-home-v5 .hpv5-locality-panels {
  min-width: 0;
}
.d2d-home-v5 .hpv5-locality-list {
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 8px;
}
.d2d-home-v5 .hpv5-locality-list[hidden] {
  display: none !important;
}

/* Locality cards appear one by one */
.d2d-home-v5 .hpv5-locality-list.is-active .hpv5-locality-link {
  animation: hpv5-locality-enter .45s both;
}
.d2d-home-v5 .hpv5-locality-list.is-active .hpv5-locality-link:nth-child(2) {
  animation-delay: 65ms;
}
.d2d-home-v5 .hpv5-locality-list.is-active .hpv5-locality-link:nth-child(3) {
  animation-delay: 130ms;
}
.d2d-home-v5 .hpv5-locality-list.is-active .hpv5-locality-link:nth-child(4) {
  animation-delay: 195ms;
}

@keyframes hpv5-locality-enter {
  from {
    opacity: 0; transform: translateY(15px);
  }
  to {
    opacity: 1; transform: translateY(0);
  }
}

/* LOCALITY BUTTONS */
.d2d-home-v5 .hpv5-locality-link {
  display: flex; align-items: center;
  gap: 8px; min-height: 52px;
  min-width: 0; padding: 10px 12px;
  border: 1px solid #e0e9ef; border-radius: 9px;
  color: #102d43; background: #fbfdfe;
  text-align: left; cursor: pointer;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.d2d-home-v5 .hpv5-locality-link small {
  color: #6c9cba; font-size: 10px;
}
.d2d-home-v5 .hpv5-locality-link span {
  flex: 1; min-width: 0;
  font-size: 12px; font-weight: 700;
  overflow-wrap: anywhere;
}
.d2d-home-v5 .hpv5-locality-link b {
  color: #1976b8; font-size: 15px;
}
.d2d-home-v5 .hpv5-locality-link:hover {
  transform: translateY(-3px); border-color: #9bcde9;
  box-shadow: 0 6px 15px rgba(19,71,106,.08);
}
.d2d-home-v5 .hpv5-locality-empty {
  color: #718796; font-size: 13px;
}

/* TABLET */

@media (max-width: 850px) {
  .d2d-home-v5 .hpv5-locations-heading {
    display: block;
  }
  .d2d-home-v5 .hpv5-locations-heading > p {
    max-width: 620px; margin-top: 14px;
  }
  .d2d-home-v5 .hpv5-locality-strip {
    grid-template-columns: 1fr;
  }
}

/* MOBILE */

@media (max-width: 600px) {
  .d2d-home-v5 .hpv5-locations {
    padding: 52px 0 54px;
  }
  .d2d-home-v5 .hpv5-locations-heading {
    margin-bottom: 23px;
  }
  .d2d-home-v5 .hpv5-locations-heading h2 {
    font-size: clamp(35px, 9vw, 45px);
  }
  .d2d-home-v5 .hpv5-city-stage {
    grid-template-columns: 1fr;
  }
  .d2d-home-v5 .hpv5-city-menu {
    flex-direction: row; justify-content: stretch;
    padding: 8px; gap: 6px;
  }
  .d2d-home-v5 .hpv5-city-tab {
    justify-content: center; gap: 4px;
    min-height: 46px; padding: 7px 4px;
    border: 1px solid transparent; border-radius: 7px;
    flex: 1; min-width: 0;
  }
  .d2d-home-v5 .hpv5-city-tab small, .d2d-home-v5 .hpv5-city-tab > span {
    display: none;
  }
  .d2d-home-v5 .hpv5-city-tab strong {
    font-size: clamp(12px, 3.5vw, 16px);
  }
  .d2d-home-v5 .hpv5-city-tab.is-active {
    border-color: #427693; background: #21425b;
    padding-left: 4px;
  }
  .d2d-home-v5 .hpv5-city-scene {
    min-height: 300px;
  }
  .d2d-home-v5 .hpv5-city-caption {
    left: 17px; right: 17px;
    bottom: 18px;
  }
  .d2d-home-v5 .hpv5-city-caption h3 {
    font-size: 32px;
  }
  .d2d-home-v5 .hpv5-city-caption p {
    font-size: 12px;
  }
  .d2d-home-v5 .hpv5-city-underbar {
    flex-wrap: wrap; gap: 10px;
  }
  .d2d-home-v5 .hpv5-city-underbar > span {
    flex: 1 0 100%;
  }
  .d2d-home-v5 .hpv5-locality-strip {
    padding: 16px; gap: 14px;
  }
  .d2d-home-v5 .hpv5-locality-list {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

/* REDUCED MOTION */

/* V5 - PREMIUM PROPERTY TYPE CARDS */
.d2d-home-v5 .hpv5-types {
  padding: 76px 0 66px; background: linear-gradient( 180deg, #ffffff, #f8fafc );
  overflow: hidden;
}

/* Heading */
.d2d-home-v5 .hpv5-types-head {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 28px;
  margin-bottom: 27px;
}
.d2d-home-v5 .hpv5-types-head > div {
  min-width: 0;
}
.d2d-home-v5 .hpv5-types-kicker {
  color: #1976b8; font-size: 11px;
  font-weight: 800; letter-spacing: .17em;
}
.d2d-home-v5 .hpv5-types-head h2 {
  margin: 12px 0 0; color: #112e43;
  font-size: clamp(35px, 4vw, 56px); line-height: 1.08;
  letter-spacing: -.05em;
}
.d2d-home-v5 .hpv5-types-head h2 em {
  color: #2687b6; font-family: Georgia, 'Times New Roman', serif;
  font-style: italic; font-weight: 400;
}
.d2d-home-v5 .hpv5-types-head > p {
  max-width: 340px; margin: 0 0 3px;
  color: #60798b; font-size: 13px;
  line-height: 1.7;
}

/* Four cards on one desktop row */
.d2d-home-v5 .hpv5-types-rail {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px; min-width: 0;
}

/* Card */
.d2d-home-v5 .hpv5-type-card {
  position: relative; isolation: isolate;
  display: block; width: 100%;
  height: 270px; min-width: 0;
  overflow: hidden; border: 1px solid #dce6ed;
  border-radius: 13px; background: #15354a;
  color: #ffffff; text-align: left;
  cursor: pointer; box-shadow: 0 12px 29px rgba(16,44,65,.13);
  transition: box-shadow .35s ease, border-color .35s ease, transform .35s ease;
}

/* Card photography */
.d2d-home-v5 .hpv5-type-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: saturate(.88); transition: transform .8s cubic-bezier(.2,.8,.2,1);
}

/* Dark photographic overlay */
.d2d-home-v5 .hpv5-type-shade {
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient( 180deg, rgba(4,19,30,.5) 0%, transparent 42%, rgba(4,19,30,.93) 100% );
}

/* Top details */
.d2d-home-v5 .hpv5-type-top {
  position: absolute; top: 17px;
  left: 18px; right: 17px;
  display: flex; justify-content: space-between;
  align-items: center; gap: 10px;
}
.d2d-home-v5 .hpv5-type-top small {
  color: #eef6fa; font-size: 9px;
  font-weight: 800; letter-spacing: .12em;
}

/* Circular arrow */
.d2d-home-v5 .hpv5-type-top > span {
  display: grid; place-items: center;
  flex: none; width: 33px;
  height: 33px; border: 1px solid rgba(255,255,255,.66);
  border-radius: 50%; background: rgba(255,255,255,.15);
  color: #ffffff; font-size: 19px;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

/* Bottom labels */
.d2d-home-v5 .hpv5-type-bottom {
  position: absolute; bottom: 22px;
  left: 20px; right: 13px;
  display: grid; gap: 7px;
}
.d2d-home-v5 .hpv5-type-bottom strong {
  color: #ffffff; font-size: clamp(21px, 2vw, 29px);
  line-height: 1.08; letter-spacing: -.045em;
}
.d2d-home-v5 .hpv5-type-bottom small {
  color: #d5e5ef; font-size: 11px;
  line-height: 1.35;
}

/* Hover animations */
.d2d-home-v5 .hpv5-type-card:hover, .d2d-home-v5 .hpv5-type-card.is-visible:hover {
  transform: translateY(-6px); border-color: #8ec6e8;
  box-shadow: 0 22px 40px rgba(9,46,70,.20);
}
.d2d-home-v5 .hpv5-type-card:hover img {
  transform: scale(1.075);
}
.d2d-home-v5 .hpv5-type-card:hover .hpv5-type-top > span {
  background: #ffffff; color: #15354a;
  transform: translate(2px,-2px);
}
.d2d-home-v5 .hpv5-type-card:focus-visible {
  outline: 3px solid #57b3ea; outline-offset: 3px;
}
.d2d-home-v5 .hpv5-type-card:disabled {
  opacity: .58; cursor: not-allowed;
}
.d2d-home-v5 .hpv5-type-card:disabled:hover {
  transform: none;
}

/* Bottom text */
.d2d-home-v5 .hpv5-types-footer {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  margin-top: 18px; color: #788e9d;
  font-size: 10px; font-weight: 700;
  letter-spacing: .1em;
}
.d2d-home-v5 .hpv5-type-dots {
  display: none;
}

/* MOBILE - HORIZONTAL AUTO-SCROLL CAROUSEL */

@media (max-width: 767px) {
  .d2d-home-v5 .hpv5-types {
    padding: 53px 0 48px;
  }
  .d2d-home-v5 .hpv5-types-head {
    display: block; margin-bottom: 22px;
  }
  .d2d-home-v5 .hpv5-types-head h2 {
    font-size: clamp(34px, 9vw, 44px);
  }
  .d2d-home-v5 .hpv5-types-head > p {
    max-width: 95%; margin-top: 12px;
    font-size: 12px;
  }
  .d2d-home-v5 .hpv5-types-rail {
    display: flex !important; flex-wrap: nowrap !important;
    grid-template-columns: none !important; gap: 13px;
    width: 100%; max-width: 100%;
    overflow-x: auto; overflow-y: hidden;
    padding: 12px 5px 18px; scroll-snap-type: x mandatory;
    scroll-padding-inline: 5px; overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .d2d-home-v5 .hpv5-types-rail::-webkit-scrollbar {
    display: none;
  }
  .d2d-home-v5 .hpv5-type-card {
    flex: 0 0 80%; width: 80%;
    max-width: none; height: 300px;
    scroll-snap-align: start; scroll-snap-stop: always;
    border-radius: 13px;
  }
  .d2d-home-v5 .hpv5-types-rail::after {
    content: ""; flex: 0 0 17%;
    pointer-events: none;
  }
  .d2d-home-v5 .hpv5-type-bottom strong {
    font-size: 27px;
  }
  .d2d-home-v5 .hpv5-types-footer > span:first-child {
    font-size: 9px; letter-spacing: .03em;
  }
  .d2d-home-v5 .hpv5-type-dots {
    display: flex; justify-content: center;
    gap: 6px;
  }
  .d2d-home-v5 .hpv5-type-dots button {
    width: 8px; height: 8px;
    padding: 0; border: 0;
    border-radius: 50%; background: #c7d9e4;
    cursor: pointer; transition: background .2s ease, width .2s ease;
  }
  .d2d-home-v5 .hpv5-type-dots button[aria-current="true"] {
    width: 23px; border-radius: 20px;
    background: #1976b8;
  }
}

/* Mobile hover prevention */

@media (hover: none) {
  .d2d-home-v5 .hpv5-type-card:hover, .d2d-home-v5 .hpv5-type-card.is-visible:hover {
    transform: none;
  }
}

/* Reduced motion */

/* V5 - PREMIUM HOW IT WORKS */
.d2d-home-v5 .hpv5-how {
  padding: 80px 0 74px; background: #f9fbfc;
  border-top: 1px solid #e9eff3; overflow: hidden;
}

/* HEADING */
.d2d-home-v5 .hpv5-how-heading {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 35px;
  margin-bottom: 52px;
}
.d2d-home-v5 .hpv5-how-kicker {
  font-size: 11px; font-weight: 800;
  letter-spacing: .18em; color: #1976b8;
}
.d2d-home-v5 .hpv5-how-heading h2 {
  margin: 14px 0 0; font-size: clamp(37px, 4.3vw, 61px);
  line-height: 1.07; letter-spacing: -.055em;
  color: #112d43;
}
.d2d-home-v5 .hpv5-how-heading h2 em {
  color: #2687b6; font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
}
.d2d-home-v5 .hpv5-how-heading > p {
  max-width: 330px; margin: 0;
  color: #657b8b; font-size: 14px;
  line-height: 1.75;
}

/* TIMELINE */
.d2d-home-v5 .hpv5-how-track {
  position: relative; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px;
  padding-top: 5px;
}

/* Background line */
.d2d-home-v5 .hpv5-how-track::before {
  content: ""; position: absolute;
  top: 32px; left: 16.666%;
  right: 16.666%; height: 2px;
  background: #dce8ef;
}

/* Growing blue line */
.d2d-home-v5 .hpv5-how-line {
  position: absolute; top: 32px;
  left: 16.666%; right: 16.666%;
  height: 2px; background: linear-gradient( 90deg, #1976b8, #65b6e1, #1976b8 );
  transform: scaleX(0); transform-origin: left center;
  transition: transform 1.7s cubic-bezier(.18,.8,.22,1);
}
.d2d-home-v5 .hpv5-how.is-journey-active .hpv5-how-line {
  transform: scaleX(1);
}

/* STEP CONTENT */
.d2d-home-v5 .hpv5-how-step {
  position: relative; min-width: 0;
  text-align: center; padding: 0 12px;
}

/* CIRCULAR NUMBERS */
.d2d-home-v5 .hpv5-how-number {
  position: relative; z-index: 2;
  display: grid; place-items: center;
  width: 54px; height: 54px;
  margin: 0 auto 33px; border: 1.5px solid #91c2de;
  border-radius: 50%; background: #ffffff;
  box-shadow: 0 0 0 9px #f9fbfc; color: #1976b8;
  font-size: 16px; font-weight: 800;
  transition: background .3s, border-color .3s, color .3s, box-shadow .3s;
}

/* Number activation */
.d2d-home-v5 .hpv5-how.is-journey-active .hpv5-how-step .hpv5-how-number {
  animation: hpv5-number-appear .55s both;
}
.d2d-home-v5 .hpv5-how.is-journey-active .hpv5-how-step:nth-of-type(2) .hpv5-how-number {
  animation-delay: .4s;
}
.d2d-home-v5 .hpv5-how.is-journey-active .hpv5-how-step:nth-of-type(3) .hpv5-how-number {
  animation-delay: .8s;
}

@keyframes hpv5-number-appear {
  0% {
    transform: scale(.85);
  }
  65% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

/* HOVER */
.d2d-home-v5 .hpv5-how-step:hover .hpv5-how-number {
  background: #1976b8; color: #ffffff;
  border-color: #1976b8; box-shadow: 0 0 0 9px #eaf5fc, 0 6px 19px rgba(25,118,184,.18);
}

/* STEP TYPOGRAPHY */
.d2d-home-v5 .hpv5-how-label {
  display: block; color: #8498a7;
  font-size: 10px; letter-spacing: .17em;
  font-weight: 800; margin-bottom: 12px;
}
.d2d-home-v5 .hpv5-how-step h3 {
  color: #112d43; font-size: clamp(22px, 2vw, 27px);
  letter-spacing: -.04em; line-height: 1.15;
  margin: 0 0 12px;
}
.d2d-home-v5 .hpv5-how-step p {
  max-width: 320px; margin: 0 auto;
  color: #677c8c; font-size: 13px;
  line-height: 1.75;
}

/* FOOTER */
.d2d-home-v5 .hpv5-how-footer {
  display: flex; justify-content: space-between;
  align-items: center; gap: 20px;
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid #e1eaf0;
}
.d2d-home-v5 .hpv5-how-footer > span {
  color: #7c91a1; font-size: 10px;
  letter-spacing: .12em; font-weight: 700;
}
.d2d-home-v5 .hpv5-how-cta {
  display: inline-flex; align-items: center;
  gap: 18px; padding: 13px 18px;
  border: 1px solid #cbdfe9; border-radius: 9px;
  background: #ffffff; color: #176999;
  font-size: 13px; font-weight: 800;
  text-decoration: none; transition: background .25s, border-color .25s, transform .25s;
}
.d2d-home-v5 .hpv5-how-cta:hover {
  background: #edf7fc; border-color: #8dbfda;
  transform: translateY(-3px);
}

/* TABLET */

@media (max-width: 900px) {
  .d2d-home-v5 .hpv5-how-heading {
    display: block;
  }
  .d2d-home-v5 .hpv5-how-heading > p {
    max-width: 600px; margin-top: 17px;
  }
  .d2d-home-v5 .hpv5-how-track {
    gap: 13px;
  }
  .d2d-home-v5 .hpv5-how-step {
    padding: 0 5px;
  }
}

/* MOBILE - VERTICAL CONNECTED TIMELINE */

@media (max-width: 767px) {
  .d2d-home-v5 .hpv5-how {
    padding: 53px 0 55px;
  }
  .d2d-home-v5 .hpv5-how-heading {
    margin-bottom: 35px;
  }
  .d2d-home-v5 .hpv5-how-heading h2 {
    font-size: clamp(34px, 9vw, 44px);
  }
  .d2d-home-v5 .hpv5-how-heading > p {
    font-size: 13px;
  }
  .d2d-home-v5 .hpv5-how-track {
    display: flex; flex-direction: column;
    gap: 27px; padding: 0;
  }
  .d2d-home-v5 .hpv5-how-track::before, .d2d-home-v5 .hpv5-how-line {
    top: 27px; bottom: 80px;
    left: 26px; right: auto;
    width: 2px; height: auto;
  }
  .d2d-home-v5 .hpv5-how-line {
    transform: scaleY(0); transform-origin: top center;
  }
  .d2d-home-v5 .hpv5-how.is-journey-active .hpv5-how-line {
    transform: scaleY(1);
  }
  .d2d-home-v5 .hpv5-how-step {
    display: grid; grid-template-columns: 54px minmax(0,1fr);
    align-items: start; gap: 19px;
    padding: 0; text-align: left;
  }
  .d2d-home-v5 .hpv5-how-number {
    width: 54px; height: 54px;
    margin: 0;
  }
  .d2d-home-v5 .hpv5-how-step-content {
    padding-top: 5px;
  }
  .d2d-home-v5 .hpv5-how-step h3 {
    font-size: 24px; margin-bottom: 9px;
  }
  .d2d-home-v5 .hpv5-how-step p {
    margin: 0; max-width: 100%;
  }
  .d2d-home-v5 .hpv5-how-footer {
    margin-top: 35px; align-items: flex-start;
    flex-direction: column; gap: 15px;
  }
}

/* REDUCED MOTION */

/* V5 - FINAL HOMEPAGE SECTIONS / PRIVATE NETWORK / CTA / FAQ */

/* 1. PRIVATE NETWORK */
.d2d-home-v5 .hpv5-private {
  background: #0b2337; color: #ffffff;
  padding: 78px 0; overflow: hidden;
}
.d2d-home-v5 .hpv5-private-grid {
  display: grid; grid-template-columns: 1fr .92fr;
  gap: clamp(35px, 5vw, 80px); align-items: center;
}
.d2d-home-v5 .hpv5-private-copy {
  min-width: 0;
}
.d2d-home-v5 .hpv5-private-kicker {
  display: block; color: #d9b682;
  font-size: 11px; font-weight: 800;
  letter-spacing: .17em;
}
.d2d-home-v5 .hpv5-private h2 {
  margin: 19px 0 22px; color: #ffffff;
  font-size: clamp(38px, 4.4vw, 65px); line-height: 1.07;
  letter-spacing: -.055em; font-weight: 750;
}
.d2d-home-v5 .hpv5-private h2 em {
  color: #a8dff2; font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}
.d2d-home-v5 .hpv5-private-desc {
  max-width: 540px; color: #b5cada;
  font-size: 15px; line-height: 1.8;
  margin: 0 0 27px;
}

/* Privacy highlights */
.d2d-home-v5 .hpv5-private-benefits {
  display: flex; flex-direction: column;
  gap: 13px; margin-bottom: 29px;
}
.d2d-home-v5 .hpv5-private-benefit {
  display: flex; align-items: center;
  gap: 13px;
}
.d2d-home-v5 .hpv5-benefit-icon {
  display: grid; place-items: center;
  flex: 0 0 35px; width: 35px;
  height: 35px; border-radius: 50%;
  background: rgba(136,206,239,.11); border: 1px solid rgba(154,211,241,.27);
  color: #a9dcf4; font-size: 16px;
  font-weight: 800; transition: background .25s ease, transform .25s ease;
}
.d2d-home-v5 .hpv5-private-benefit:hover .hpv5-benefit-icon {
  background: rgba(136,206,239,.24); transform: scale(1.08);
}
.d2d-home-v5 .hpv5-private-benefit strong {
  display: block; color: #f5faff;
  font-size: 13px; font-weight: 750;
}
.d2d-home-v5 .hpv5-private-benefit small {
  display: block; margin-top: 3px;
  color: #96b1c4; font-size: 11px;
}

/* Private section link */
.d2d-home-v5 .hpv5-private-link {
  display: inline-flex; align-items: center;
  justify-content: space-between; gap: 25px;
  padding: 13px 18px; border: 1px solid rgba(202,225,238,.35);
  border-radius: 9px; color: #ffffff;
  background: rgba(255,255,255,.075); font-size: 13px;
  font-weight: 750; text-decoration: none;
  transition: background .25s ease, border-color .25s ease;
}
.d2d-home-v5 .hpv5-private-link:hover {
  background: rgba(255,255,255,.15); border-color: #a4d5ee;
  color: #ffffff;
}
.d2d-home-v5 .hpv5-private-link span {
  transition: transform .25s ease;
}
.d2d-home-v5 .hpv5-private-link:hover span {
  transform: translate(3px,-3px);
}

/* Private photograph */
.d2d-home-v5 .hpv5-private-visual {
  position: relative; min-width: 0;
  height: 465px; overflow: hidden;
  isolation: isolate; border-radius: 19px;
  border: 1px solid rgba(255,255,255,.12); background: #183649;
  box-shadow: 0 25px 65px rgba(0,0,0,.22);
}
.d2d-home-v5 .hpv5-private-visual img {
  width: 100%; height: 100%;
  display: block; object-fit: cover;
  object-position: center; transition: transform .9s cubic-bezier(.2,.8,.2,1);
}
.d2d-home-v5 .hpv5-private-visual:hover img {
  transform: scale(1.055);
}
.d2d-home-v5 .hpv5-private-photo-overlay {
  position: absolute; inset: 0;
  pointer-events: none; background: linear-gradient( 180deg, rgba(4,17,29,.03) 35%, rgba(4,17,29,.84) 100% );
}
.d2d-home-v5 .hpv5-private-photo-caption {
  position: absolute; left: 28px;
  right: 25px; bottom: 27px;
  z-index: 1;
}
.d2d-home-v5 .hpv5-private-photo-caption > span {
  color: #e4c38e; display: block;
  font-size: 10px; font-weight: 800;
  letter-spacing: .17em; margin-bottom: 10px;
}
.d2d-home-v5 .hpv5-private-photo-caption strong {
  display: block; color: #ffffff;
  font-size: clamp(23px, 2.5vw, 34px); line-height: 1.15;
  letter-spacing: -.035em;
}

/* 2. FINAL CALL TO ACTION */
.d2d-home-v5 .hpv5-join {
  background: #faf9f6; padding: 68px 0;
}
.d2d-home-v5 .hpv5-join-panel {
  position: relative; isolation: isolate;
  overflow: hidden; display: grid;
  grid-template-columns: 1.5fr .75fr; gap: 34px;
  align-items: center; padding: 50px clamp(26px, 5vw, 65px);
  border-radius: 21px;
  background: radial-gradient( circle at 85% 10%, rgba(63,132,174,.14), transparent 37% ), #f0f6f9;
  border: 1px solid #dde8ee; box-shadow: 0 17px 47px rgba(16,48,70,.07);
}
.d2d-home-v5 .hpv5-join-copy {
  position: relative; z-index: 1;
  min-width: 0;
}
.d2d-home-v5 .hpv5-join-kicker {
  color: #1976b8; font-size: 10px;
  font-weight: 850; letter-spacing: .18em;
}
.d2d-home-v5 .hpv5-join h2 {
  color: #102c43; font-size: clamp(37px, 4.4vw, 61px);
  line-height: 1.07; letter-spacing: -.055em;
  margin: 16px 0 16px;
}
.d2d-home-v5 .hpv5-join h2 em {
  color: #2788b8; font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}
.d2d-home-v5 .hpv5-join-copy > p {
  max-width: 540px; color: #5f7688;
  font-size: 14px; line-height: 1.75;
  margin: 0;
}

/* CTA buttons */
.d2d-home-v5 .hpv5-join-actions {
  display: flex; flex-wrap: wrap;
  gap: 11px; margin-top: 27px;
}
.d2d-home-v5 .hpv5-join-actions a {
  display: inline-flex; align-items: center;
  justify-content: center; gap: 18px;
  min-height: 46px; padding: 12px 19px;
  border-radius: 9px; font-size: 12px;
  font-weight: 800; text-decoration: none;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.d2d-home-v5 .hpv5-join-primary {
  background: #123b57; color: #ffffff;
  border: 1px solid #123b57;
}
.d2d-home-v5 .hpv5-join-primary:hover {
  background: #1976b8; color: #ffffff;
  transform: translateY(-3px); box-shadow: 0 8px 19px rgba(25,118,184,.16);
}
.d2d-home-v5 .hpv5-join-secondary {
  background: #ffffff; color: #164765;
  border: 1px solid #c8dae5;
}
.d2d-home-v5 .hpv5-join-secondary:hover {
  background: #eaf5fb; color: #164765;
  transform: translateY(-3px);
}

/* Decorative Tricity panel */
.d2d-home-v5 .hpv5-join-side {
  position: relative; min-width: 0;
  padding: 25px 0 25px 28px; border-left: 1px solid #cbdde8;
}
.d2d-home-v5 .hpv5-join-side-label {
  color: #4682a7; font-size: 10px;
  font-weight: 800; letter-spacing: .14em;
}
.d2d-home-v5 .hpv5-join-city-list {
  display: grid; gap: 10px;
  margin-top: 20px;
}
.d2d-home-v5 .hpv5-join-city-list span {
  display: block; color: #12384f;
  font-size: clamp(18px, 2vw, 25px); font-weight: 750;
  letter-spacing: -.035em;
}
.d2d-home-v5 .hpv5-join-line {
  width: 100%; height: 2px;
  margin: 22px 0 12px; background: #d3e5ee;
  position: relative; overflow: hidden;
}
.d2d-home-v5 .hpv5-join-line::after {
  content: ""; position: absolute;
  inset: 0; background: #2384b7;
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.7s ease .3s;
}
.d2d-home-v5 .hpv5-join-panel.is-visible .hpv5-join-line::after {
  transform: scaleX(1);
}
.d2d-home-v5 .hpv5-join-side > small {
  color: #7991a1; font-size: 9px;
  letter-spacing: .13em; font-weight: 750;
}

/* 3. PREMIUM FAQ */
.d2d-home-v5 .hpv5-faq {
  background: #ffffff; padding: 77px 0 86px;
}
.d2d-home-v5 .hpv5-faq-layout {
  display: grid; grid-template-columns: .83fr 1.17fr;
  gap: clamp(35px, 6vw, 90px); align-items: start;
}
.d2d-home-v5 .hpv5-faq-heading {
  min-width: 0;
}
.d2d-home-v5 .hpv5-faq-kicker {
  color: #1976b8; font-size: 11px;
  font-weight: 800; letter-spacing: .17em;
}
.d2d-home-v5 .hpv5-faq h2 {
  margin: 15px 0 17px; color: #102c43;
  font-size: clamp(37px, 4vw, 57px); line-height: 1.08;
  letter-spacing: -.055em;
}
.d2d-home-v5 .hpv5-faq h2 em {
  color: #2687b6; font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}
.d2d-home-v5 .hpv5-faq-heading > p {
  max-width: 330px; margin: 0;
  color: #6c8292; font-size: 14px;
  line-height: 1.75;
}
.d2d-home-v5 .hpv5-faq-contact {
  display: inline-flex; align-items: center;
  gap: 16px; margin-top: 24px;
  color: #1976b8; font-size: 13px;
  font-weight: 800; text-decoration: none;
}
.d2d-home-v5 .hpv5-faq-contact:hover {
  color: #0d486f;
}

/* FAQ items */
.d2d-home-v5 .hpv5-faq-list {
  min-width: 0; border-top: 1px solid #e0e8ee;
}
.d2d-home-v5 .hpv5-faq-list details {
  border-bottom: 1px solid #e0e8ee; background: #ffffff;
}
.d2d-home-v5 .hpv5-faq-list summary {
  display: flex; align-items: center;
  justify-content: space-between; gap: 17px;
  min-height: 70px; padding: 18px 5px;
  list-style: none; color: #19384f;
  font-size: 15px; line-height: 1.5;
  font-weight: 750; cursor: pointer;
  transition: color .25s ease;
}
.d2d-home-v5 .hpv5-faq-list summary::-webkit-details-marker {
  display: none;
}
.d2d-home-v5 .hpv5-faq-list summary::marker {
  content: "";
}
.d2d-home-v5 .hpv5-faq-list details[open] summary, .d2d-home-v5 .hpv5-faq-list summary:hover {
  color: #1976b8;
}

/* Plus / minus control */
.d2d-home-v5 .hpv5-faq-list summary > span {
  position: relative; flex: 0 0 31px;
  height: 31px; width: 31px;
  border: 1px solid #dce7ee; border-radius: 50%;
  background: #f8fbfd;
}
.d2d-home-v5 .hpv5-faq-list summary > span::before, .d2d-home-v5 .hpv5-faq-list summary > span::after {
  content: ""; position: absolute;
  top: 50%; left: 50%;
  background: #247eae; border-radius: 2px;
  transform: translate(-50%, -50%); transition: transform .25s ease;
}
.d2d-home-v5 .hpv5-faq-list summary > span::before {
  width: 12px; height: 2px;
}
.d2d-home-v5 .hpv5-faq-list summary > span::after {
  width: 2px; height: 12px;
}
.d2d-home-v5 .hpv5-faq-list details[open] summary > span::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* Answer animation */
.d2d-home-v5 .hpv5-faq-answer {
  padding: 0 46px 22px 5px;
}
.d2d-home-v5 .hpv5-faq-answer p {
  margin: 0; color: #647c8c;
  font-size: 13px; line-height: 1.8;
}
.d2d-home-v5 .hpv5-faq-list details[open] .hpv5-faq-answer {
  animation: hpv5-faq-show .3s ease both;
}

@keyframes hpv5-faq-show {
  from {
    opacity: 0; transform: translateY(-7px);
  }
  to {
    opacity: 1; transform: translateY(0);
  }
}

/* RESPONSIVE TABLET */

@media (max-width: 900px) {
  .d2d-home-v5 .hpv5-private-grid {
    grid-template-columns: 1fr; gap: 32px;
  }
  .d2d-home-v5 .hpv5-private-visual {
    height: 380px;
  }
  .d2d-home-v5 .hpv5-join-panel {
    grid-template-columns: 1fr;
  }
  .d2d-home-v5 .hpv5-join-side {
    padding: 18px 0 0; border-left: 0;
    border-top: 1px solid #cbdde8;
  }
  .d2d-home-v5 .hpv5-join-city-list {
    display: flex; flex-wrap: wrap;
    gap: 13px 24px;
  }
  .d2d-home-v5 .hpv5-faq-layout {
    grid-template-columns: 1fr; gap: 32px;
  }
}

/* RESPONSIVE MOBILE */

@media (max-width: 600px) {
  .d2d-home-v5 .hpv5-private {
    padding: 52px 0 55px;
  }
  .d2d-home-v5 .hpv5-private h2 {
    font-size: clamp(35px, 9vw, 45px);
  }
  .d2d-home-v5 .hpv5-private-desc {
    font-size: 13px; line-height: 1.75;
  }
  .d2d-home-v5 .hpv5-private-visual {
    height: 310px; border-radius: 15px;
  }
  .d2d-home-v5 .hpv5-private-photo-caption {
    left: 20px; bottom: 21px;
  }
  .d2d-home-v5 .hpv5-join {
    padding: 43px 0;
  }
  .d2d-home-v5 .hpv5-join-panel {
    padding: 30px 22px; gap: 25px;
    border-radius: 16px;
  }
  .d2d-home-v5 .hpv5-join h2 {
    font-size: clamp(35px, 9vw, 44px);
  }
  .d2d-home-v5 .hpv5-join-copy > p {
    font-size: 13px;
  }
  .d2d-home-v5 .hpv5-join-actions {
    flex-direction: column;
  }
  .d2d-home-v5 .hpv5-join-actions a {
    width: 100%; justify-content: space-between;
  }
  .d2d-home-v5 .hpv5-join-city-list span {
    font-size: 17px;
  }
  .d2d-home-v5 .hpv5-faq {
    padding: 50px 0 61px;
  }
  .d2d-home-v5 .hpv5-faq h2 {
    font-size: clamp(35px, 9vw, 44px);
  }
  .d2d-home-v5 .hpv5-faq-heading > p {
    font-size: 13px;
  }
  .d2d-home-v5 .hpv5-faq-list summary {
    min-height: 65px; font-size: 13px;
    padding: 17px 2px;
  }
  .d2d-home-v5 .hpv5-faq-answer {
    padding-right: 20px;
  }
  .d2d-home-v5 .hpv5-faq-answer p {
    font-size: 12px;
  }
}

/* Reduced motion */
