.page-home {
  /* Base page styling */
  margin: 0;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  background: #112240;
  color: #f7faff;
  font-family: var(--font-family, "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.scene {
  /* Full-viewport scene with layered gradients */
  position: relative;
  min-height: 100vh;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 28px 36px;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.04), transparent 42%),
    radial-gradient(circle at 70% 60%, rgba(41, 117, 255, 0.12), transparent 52%),
    linear-gradient(180deg, #112240 0%, #1a355f 75%, #0f1c39 100%);
  overflow: hidden;
}

.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 120% at 50% 40%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  mix-blend-mode: screen;
  opacity: 0.5;
}

.logo {
  /* Top-left logo (desktop) */
  position: absolute;
  top: 28px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
}

.logo img {
  height: 32px;
  width: auto;
  display: block;
}

.menu-toggle {
  display: none;
  position: absolute;
  top: 22px;
  right: 28px;
  width: 46px;
  height: 38px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(247, 250, 255, 0.12);
  background: rgba(12, 24, 48, 0.85);
  color: #f7faff;
  cursor: pointer;
  z-index: 4;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(12, 24, 48, 0.95);
  border-color: rgba(247, 250, 255, 0.18);
}

.menu-toggle:focus-visible {
  outline: 2px solid rgba(247, 250, 255, 0.45);
  outline-offset: 3px;
}

.menu-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(247, 250, 255, 0.9);
  border-radius: 2px;
}

.mobile-nav-overlay,
.mobile-nav {
  display: none;
}

.wordmark {
  /* Ghost “Harbour / Network” background */
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.01em, 0.22vw, 0.06em);
  width: max-content;
  margin: 0 auto;
  padding: 0 8%;
  font-size: clamp(3rem, 9.5vw, 7.5rem);
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.09);
  pointer-events: none;
  user-select: none;
  line-height: 0.88;
  z-index: 0;
}

.word-line {
  display: block;
  width: auto;
  text-align: left;
}

.word-line--one {
  text-align: left;
}

.word-line--two {
  text-align: left;
  margin-left: clamp(10rem, 26vw, 20rem);
  margin-top: clamp(-0.12em, -0.6vw, -0.04em);
}

.caption {
  /* Caption block near lower-left */
  position: absolute;
  bottom: 20%;
  left: 10%;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.3;
  color: rgba(247, 250, 255, 0.88);
  z-index: 2;
  display: grid;
  gap: 3px;
  text-align: left;
  justify-items: flex-start;
}

.caption-line--final {
  margin-top: 6px;
  font-size: 26px;
  font-weight: 800;
  color: rgba(247, 250, 255, 0.92);
}

.link-stack {
  /* CTA stack (desktop) */
  position: absolute;
  bottom: 26px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2;
}

.link-item {
  position: relative;
  color: rgba(247, 250, 255, 0.82);
  text-decoration: none;
  font-weight: 700;
  padding-left: 20px;
  transition: color 0.2s ease;
}

.link-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 1.5px;
  background: rgba(247, 250, 255, 0.35);
  transition: width 0.2s ease, background 0.2s ease;
}

.link-item:hover {
  color: #ffffff;
}

.link-item:hover::before {
  width: 18px;
  background: rgba(247, 250, 255, 0.65);
}

@media (max-width: 720px) {
  /* Tablet-ish: pull wordmark left */
  .wordmark {
    text-align: left;
    align-self: flex-start;
  }

  .word-line--two {
    margin-left: 0;
  }
}

@media (max-width: 540px) {
  /* Phone layout: centered hero and mobile nav */
  .scene {
    min-height: 100vh;
    padding: 1.35rem 1.25rem 2.6rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    gap: 1rem;
  }

  .logo {
    position: absolute;
    top: 1.05rem;
    left: 1.05rem;
    margin: 0;
    padding: 6px;
    border-radius: 10px;
    z-index: 4;
  }

  .logo img {
    height: 30px;
    width: auto;
  }

  .menu-toggle {
    display: inline-flex;
    top: 1.05rem;
    right: 1.05rem;
  }

  .mobile-nav-overlay.is-visible {
    display: block;
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 17, 34, 0.65), rgba(9, 17, 34, 0.45));
    backdrop-filter: blur(2px);
    z-index: 2;
  }

  .mobile-nav {
    position: absolute;
    top: 3.75rem;
    right: 1.05rem;
    background: rgba(12, 24, 48, 0.96);
    border: 1px solid rgba(247, 250, 255, 0.12);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    width: min(16rem, 74vw);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
    z-index: 3;
    display: none;
    flex-direction: column;
    gap: 0.35rem;
  }

  .mobile-nav.is-open {
    display: flex;
  }

  .mobile-nav .link-item {
    padding: 0.35rem 0;
    font-size: 0.96rem;
    color: #f7faff;
    text-decoration: none;
  }

  .mobile-nav .link-item::before {
    display: none;
  }

  .wordmark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0 6%;
    width: 100%;
    text-align: center;
    align-items: center;
    justify-content: center;
    font-size: clamp(3.75rem, 16vw, 5.75rem);
    opacity: 0.16;
    z-index: 0;
    pointer-events: none;
    line-height: 0.92;
    letter-spacing: -0.02em;
  }

  .word-line--one,
  .word-line--two {
    line-height: 1;
  }

  .word-line--one {
    margin-left: 0;
  }

  .word-line--two {
    margin-left: 0;
  }

  .caption {
    position: relative;
    z-index: 2;
    font-size: 1rem;
    line-height: 1.35;
    max-width: 22rem;
    margin-top: auto;
    margin-bottom: 2.35rem;
    text-align: left;
    align-items: flex-start;
    color: rgba(247, 250, 255, 0.9);
    width: 100%;
    padding: 0;
  }

  .caption-line--final {
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 0.35rem;
  }

  .link-stack {
    display: none;
  }
}

/* What is Harbour info panel */
.caption--info {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 10%;
  max-width: none;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  background: radial-gradient(120% 120% at 20% 30%, rgba(17, 34, 64, 0.55), rgba(17, 34, 64, 0.24));
  backdrop-filter: blur(3px);
  z-index: 3;
  overflow: hidden;
}

.caption-info-body {
  font-size: 18px;
  line-height: 1.3;
  color: rgba(247, 250, 255, 0.88);
  max-width: 38rem;
  text-align: left;
  padding: 1.6rem 1.8rem;
  background: rgba(8, 16, 32, 0.22);
  border: 1px solid rgba(247, 250, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
}

.caption-info-body p {
  margin: 0;
}

.caption-info-body p + p {
  margin-top: 0.9rem;
}

/* animation: rise up from the “water” */
@keyframes harbour-info-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes harbour-info-fade-mobile {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* visible state toggle */
.caption--info.is-visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  animation: harbour-info-rise 420ms ease-out forwards;
  overflow-y: auto;
}

/* hide original caption when info is showing */
.caption.is-muted {
  opacity: 0;
  transition: opacity 200ms ease-out;
}

@media (max-width: 640px) {
  .caption--info {
    align-items: flex-start;
    padding: 4.5rem 1.25rem 1.75rem;
    justify-content: center;
    background: radial-gradient(110% 110% at 20% 20%, rgba(17, 34, 64, 0.6), rgba(17, 34, 64, 0.32));
    backdrop-filter: blur(4px);
  }

  .caption--info.is-visible {
    animation: harbour-info-fade-mobile 280ms ease-out forwards;
  }

  .caption-info-body {
    font-size: 0.95rem;
    width: 100%;
    max-width: 28rem;
    background: rgba(8, 16, 32, 0.2);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
  }
}
