body.page-home #hero-container {
  background-color: #073c35;
}

@media (max-width: 767.98px) {
  body.page-home #hero-container {
    min-height: 0;
    padding-top: 0;
  }
}

@media (min-width: 971px) {
  body.page-home .navbar-nav::after {
    width: auto;
    right: calc(-0.5 * var(--bs-gutter-x, 1.5rem));
  }

  /* Trim the header wrapper to the underline; leave the navbar and logo unchanged. */
  body.page-home #hero-container > .container-fluid {
    height: 82px;
  }
}

.home-landing {
  /* Per-load hero choices live in js/home.js. */
  --hb-forest: #073c35;
  --hb-ink: #0b302b;
  --hb-lime: #d6ff5f;
  --hb-sky: #addcf4;
  --hb-packet-return: #fff;
  --hb-stone: #f1f1f1;
  color: var(--hb-ink);
  background: var(--hb-stone);
}

.home-landing a {
  color: inherit;
}

.home-landing-hero {
  min-height: 0;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: var(--hb-forest);
  background-image:
    linear-gradient(90deg, rgba(7, 60, 53, 0.96) 0%, rgba(7, 60, 53, 0.76) 46%, rgba(7, 60, 53, 0.22) 100%),
    var(--hb-hero-image, url("/images/blowing-church-st-1470-840.jpg"));
  background-position: center;
  background-size: cover;
  padding: 220px 0 80px;
}

.home-landing-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.home-landing-hero .home-landing-shell {
  width: min(1240px, calc(100% - 2rem));
}

.home-landing-kicker { display: none; }

.home-landing-hero h1 {
  max-width: 920px;
  color: #fff;
  font-size: clamp(4rem, 10vw, 9.8rem);
  line-height: 0.9;
  font-weight: 300;
  margin: 0 0 1.5rem;
}

.home-landing-highlight {
  color: var(--hb-lime);
}

.home-landing-hero h1 .home-landing-highlight {
  display: inline-block;
  white-space: nowrap;
}

.home-landing-hero-copy {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.35rem, 2.1vw, 2.1rem);
  line-height: 1.35;
  margin-bottom: 2rem;
}

.home-landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.home-landing a.home-landing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 4rem;
  padding: 0.8rem 1.8rem;
  border-radius: 0.4rem;
  background: var(--hb-lime);
  color: var(--hb-forest);
  font-size: clamp(1.25rem, 1.7vw, 1.7rem);
  text-decoration: none;
}

.home-landing-button > i {
  flex: none;
  font-size: 1.1em;
  line-height: 1;
}

.home-landing a.home-landing-button:hover,
.home-landing a.home-landing-button:focus {
  color: var(--hb-forest);
  background: #e2ff82;
}

.home-landing a.home-landing-button-secondary {
  background: var(--hb-sky);
  color: var(--hb-ink);
  border: 1px solid var(--hb-sky);
}

.home-landing a.home-landing-button-secondary:hover,
.home-landing a.home-landing-button-secondary:focus {
  color: var(--hb-ink);
  background: #d4edfb;
}

.home-landing a.home-landing-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.home-landing-band {
  padding: clamp(3rem, 7vw, 7rem) 0;
}

.home-landing-intro {
  background: var(--hb-lime);
}

.home-landing-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}

.home-landing-intro h2,
.home-landing-section-title {
  font-size: clamp(2.6rem, 6vw, 6rem);
  line-height: 0.96;
  font-weight: 300;
  margin: 0;
}

.home-landing-intro p {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.35;
  margin: 0;
}

.home-landing-image-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  background: var(--hb-forest);
  padding: 1rem;
}

.home-landing-image-row img {
  width: 100%;
  max-width: none;
  max-height: none;
  height: clamp(220px, 32vw, 520px);
  object-fit: cover;
  display: block;
}

.home-landing-proof {
  background: var(--hb-stone);
}

.home-landing-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(7, 60, 53, 0.22);
}

.home-landing-proof-item {
  background: #fff;
  padding: clamp(1.4rem, 3vw, 3rem);
}

.home-landing-proof-item strong {
  display: block;
  color: var(--hb-forest);
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.home-landing-proof-item p {
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  line-height: 1.4;
  margin: 0;
}

.home-landing-feature {
  background: var(--hb-sky);
}

.home-landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: center;
}

.home-landing .home-landing-feature img {
  width: 100%;
  max-width: none;
  max-height: none;
  height: auto;
  aspect-ratio: 1140 / 740;
  object-fit: contain;
  display: block;
}

.home-landing-feature .home-landing-section-title {
  font-size: 3.5rem;
  line-height: 1.05;
}

.home-landing-feature-copy p {
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  line-height: 1.45;
}

.home-landing-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.home-landing-pill-list span {
  background: var(--hb-lime);
  color: var(--hb-forest);
  padding: 0.45rem 0.75rem;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
}

.home-landing-network {
  background: #fff;
}

.home-landing-network h2 {
  max-width: 760px;
  margin: 0 0 4rem;
  color: var(--hb-forest);
  font-size: 3.5rem;
  line-height: 1.08;
  font-weight: 300;
}

.home-landing .hb-network-route {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hb-network-stop {
  position: relative;
  min-width: 0;
  text-align: center;
}

.hb-network-symbol {
  position: relative;
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  margin: 0 auto 1.5rem;
  border-radius: 8px;
  color: var(--hb-forest);
  font-size: 4rem;
  z-index: 1;
}

.hb-network-internet { background: var(--hb-sky); }
.hb-network-exchange { background: var(--hb-forest); color: var(--hb-lime); }
.hb-network-home { background: var(--hb-lime); }

.hb-network-symbol .hb-network-sun {
  position: absolute;
  top: -14px;
  right: -14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--hb-lime);
  color: var(--hb-forest);
  border: 4px solid #fff;
  border-radius: 50%;
  font-size: 1.4rem;
}

.home-landing .hb-network-stop h3 {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 400;
  color: var(--hb-forest);
}

.hb-network-stop p {
  margin: 0 auto 1.25rem;
  max-width: 260px;
  min-height: 3em;
  font-size: 1.25rem;
  line-height: 1.5;
}

.hb-network-fact {
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: var(--hb-forest);
  font-size: 1rem;
}

.hb-network-fact::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hb-forest);
}

.home-landing .hb-network-read-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 1rem auto 0;
  color: var(--hb-forest);
  min-height: 40px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--hb-forest);
  border-radius: 6px;
  background: var(--hb-lime);
  font-size: 1rem;
  text-decoration: none;
  text-underline-offset: 4px;
}

.home-landing .hb-network-read-more:hover {
  background: #e2ff82;
}

.home-landing .hb-network-read-more:focus-visible {
  outline: 2px solid var(--hb-forest);
  outline-offset: 4px;
}

/* Each link spans between icon centres; the icons mask its ends. */
.hb-network-link {
  position: absolute;
  top: 64px;
  left: 50%;
  width: calc(100% + 5rem);
  height: 28px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
}

.hb-network-link span {
  position: relative;
  display: block;
  height: 3px;
  border-radius: 3px;
  background: var(--hb-forest);
  overflow: hidden;
}

.hb-network-link-multiple span:nth-child(2) { background: #5599ad; }

.hb-network-link span::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 14px;
  height: 3px;
  background: var(--hb-lime);
  border-radius: 3px;
  animation: hb-network-flow 5s linear infinite;
}

.hb-network-link span:nth-child(2)::after { animation-delay: -1.6s; }
.hb-network-link span:nth-child(3)::after { animation-delay: -3.2s; }

/* Short return bursts use staggered cycles so the cables feel independent. */
.hb-network-link span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 8px;
  height: 3px;
  background: var(--hb-packet-return);
  border-radius: 3px;
  box-shadow: 19px 0 var(--hb-packet-return), 43px 0 var(--hb-packet-return);
  animation: hb-network-return 4.7s linear infinite;
  animation-delay: -0.8s;
}

.hb-network-link span:nth-child(2)::before { animation-duration: 6.1s; animation-delay: -3.4s; }
.hb-network-link span:nth-child(3)::before { animation-duration: 5.3s; animation-delay: -2.2s; }
.hb-network-stop:nth-child(2) .hb-network-link span::before { animation-duration: 5.7s; animation-delay: -4.1s; }

@keyframes hb-network-return {
  0%, 34%, 69% { left: 100%; }
  29%, 63%, 98%, 100% { left: -52px; }
  29.01%, 33.99%, 63.01%, 68.99%, 98.01%, 100% { opacity: 0; }
  0%, 29%, 34%, 63%, 69%, 98% { opacity: 1; }
}

@keyframes hb-network-flow {
  from { left: 0; }
  to { left: 100%; }
}

@media (max-width: 760px) {
  .home-landing-network h2 {
    font-size: 2.6rem;
    margin-bottom: 2.5rem;
  }

  .home-landing .hb-network-route {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .hb-network-stop {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    column-gap: 1.25rem;
    align-content: start;
    text-align: left;
  }

  .hb-network-symbol {
    grid-row: 1 / 4;
    width: 80px;
    height: 80px;
    margin: 0;
    font-size: 2.6rem;
  }

  .home-landing .hb-network-stop h3 { font-size: 1.7rem; }
  .hb-network-stop p { min-height: 0; max-width: none; margin: 0 0 0.75rem; font-size: 1.1rem; }
  .hb-network-fact { font-size: 0.95rem; }
  .home-landing .hb-network-read-more { grid-column: 2; margin: 0.75rem 0 0; }

  .hb-network-link {
    top: 40px;
    bottom: calc(-3.5rem - 40px);
    left: 26px;
    width: 28px;
    height: auto;
    transform: none;
    flex-direction: row;
    gap: 9px;
  }

  .hb-network-link span { width: 3px; height: 100%; }
  .hb-network-link span::after { width: 3px; height: 14px; animation-name: hb-network-flow-vertical; }
  .hb-network-link span::before {
    width: 3px;
    height: 8px;
    box-shadow: 0 19px var(--hb-packet-return), 0 43px var(--hb-packet-return);
    animation-name: hb-network-return-vertical;
  }
}

@keyframes hb-network-return-vertical {
  0%, 34%, 69% { top: 100%; }
  29%, 63%, 98%, 100% { top: -52px; }
  29.01%, 33.99%, 63.01%, 68.99%, 98.01%, 100% { opacity: 0; }
  0%, 29%, 34%, 63%, 69%, 98% { opacity: 1; }
}

@keyframes hb-network-flow-vertical {
  from { top: 0; }
  to { top: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hb-network-link span::after,
  .hb-network-link span::before { animation: none; }
  .hb-network-link span::before { display: none; }
}

.home-landing-cta {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 60, 53, 0.95), rgba(7, 60, 53, 0.6)),
    url("/images/down-the-tracks.jpeg") center/cover no-repeat;
}

.home-landing-cta h2 {
  max-width: 950px;
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: 0.96;
  font-weight: 300;
  margin: 0 0 2rem;
}

.home-landing-cta p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.25rem, 2vw, 1.9rem);
  line-height: 1.35;
}

@media (max-width: 900px) {
  .home-landing-hero {
    min-height: 0;
    padding: 80px 0 56px;
    background-image:
      linear-gradient(180deg, rgba(7, 60, 53, 0.98) 0%, rgba(7, 60, 53, 0.78) 60%, rgba(7, 60, 53, 0.55) 100%),
      var(--hb-hero-image, url("/images/blowing-church-st-1470-840.jpg"));
  }

  .home-landing-intro-grid,
  .home-landing-feature-grid,
  .home-landing-proof-grid {
    grid-template-columns: 1fr;
  }

  .home-landing-image-row {
    grid-template-columns: 1fr;
  }

  .home-landing-image-row img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .home-landing a.home-landing-button {
    width: 100%;
  }

  .home-landing-feature .home-landing-section-title {
    font-size: 2.6rem;
  }
}
