/* Resident landing — layout only. Brand tokens/chrome in theme.css */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.home-landing {
  margin: 0;
  min-height: 100vh;
  color: var(--hl-ink);
  font-family: var(--hl-body);
  font-size: 16px;
  line-height: 1.55;
  background: var(--hl-paper);
  overflow-x: hidden;
}

body.home-landing a {
  color: var(--hl-blue);
  text-decoration: none;
  font-weight: 600;
}

body.home-landing a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hl-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--hl-navy);
  color: #fff;
}

.hl-skip:focus {
  left: 1rem;
  top: 1rem;
}

/* —— Atmospheric canvas —— */
.hl-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 80% 55% at 12% 8%,
      rgba(61, 116, 212, calc(0.18 * var(--atmosphere-strength))),
      transparent 58%
    ),
    radial-gradient(
      ellipse 70% 50% at 88% 18%,
      rgba(47, 95, 176, calc(0.14 * var(--atmosphere-strength))),
      transparent 55%
    ),
    radial-gradient(
      ellipse 60% 45% at 70% 88%,
      rgba(167, 198, 232, calc(0.35 * var(--atmosphere-strength))),
      transparent 60%
    ),
    linear-gradient(165deg, var(--atm-stop-1) 0%, var(--atm-stop-2) 42%, var(--atm-stop-3) 100%);
}

.hl-atmosphere__mesh {
  position: absolute;
  inset: -10% -5% auto;
  height: min(78vh, 820px);
  opacity: calc(0.55 * var(--atmosphere-strength));
  animation: hl-mesh-drift 22s var(--hl-ease) infinite alternate;
}

.hl-atmosphere__glow {
  position: absolute;
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  border-radius: 50%;
  filter: blur(60px);
  background: rgba(61, 116, 212, calc(0.16 * var(--atmosphere-strength)));
  top: 12%;
  right: 8%;
  animation: hl-glow-breathe 8s ease-in-out infinite;
}

@keyframes hl-mesh-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-2%, 2%, 0) scale(1.04); }
}

@keyframes hl-glow-breathe {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes hl-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hl-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* —— Shell —— */
.hl-shell {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* —— Header / nav —— */
.hl-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: var(--header-frost);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.hl-header.is-scrolled {
  border-bottom-color: var(--hl-line);
  background: var(--header-frost-scrolled);
}

.hl-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: var(--brand-header-pad) 0;
}

.hl-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: inherit;
}

.hl-brand:hover {
  text-decoration: none;
}

.hl-brand img,
.hl-brand .productLogo {
  height: 42px;
  width: auto;
  max-width: min(280px, 62vw);
  display: block;
  object-fit: contain;
}

.hl-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hl-nav a {
  color: var(--hl-navy-soft);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
}

.hl-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--hl-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--hl-ease);
}

.hl-nav a:hover {
  color: var(--hl-navy);
  text-decoration: none;
}

.hl-nav a:hover::after,
.hl-nav a:focus-visible::after {
  transform: scaleX(1);
}

.hl-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hl-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  padding: 0;
}

.hl-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--hl-navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.hl-nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hl-nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hl-nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* —— Hero —— */
.hl-hero {
  position: relative;
  display: grid;
  align-items: center;
  padding: 2rem 0 1.5rem;
}

.hl-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hl-hero__title-block {
  margin: 0 0 0.85rem;
}

.hl-hero__symbol {
  width: min(280px, 68%);
  height: auto;
  display: block;
  margin: 0 0 1.15rem;
  animation: hl-rise 0.9s var(--hl-ease) both;
}

.hl-hero__eyebrow {
  margin: 0 0 0.65rem;
  font-family: var(--hl-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hl-blue);
  animation: hl-rise 0.9s var(--hl-ease) 0.08s both;
}

.hl-hero h1 {
  margin: 0;
  font-family: var(--hl-display);
  font-size: clamp(2.6rem, 6vw, 4.35rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--hl-navy);
  animation: hl-rise 0.95s var(--hl-ease) 0.14s both;
}

.hl-hero__lede {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--hl-muted);
  animation: hl-rise 0.95s var(--hl-ease) 0.22s both;
}

.hl-login {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(11, 31, 68, 0.1);
  border-radius: calc(var(--hl-radius) + 4px);
  padding: 1.45rem 1.4rem 1.5rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 18px 50px rgba(19, 45, 90, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: hl-rise 1s var(--hl-ease) 0.28s both;
}

.hl-login h2 {
  margin: 0 0 0.35rem;
  font-family: var(--hl-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--hl-navy);
  letter-spacing: -0.02em;
}

.hl-login p {
  margin: 0 0 1.15rem;
  color: var(--hl-muted);
  font-size: 0.95rem;
}

.hl-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.hl-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--hl-navy-soft);
  letter-spacing: 0.02em;
}

.hl-field input {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(11, 31, 68, 0.16);
  border-radius: 12px;
  background: #fff;
  color: var(--hl-ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hl-field input:focus {
  outline: none;
  border-color: var(--hl-blue);
  box-shadow: 0 0 0 4px rgba(47, 95, 176, 0.15);
}

.hl-submit {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  background: var(--hl-navy);
  color: #fff;
  font-family: var(--hl-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.15s ease;
  box-shadow: none;
}

.hl-submit:hover {
  background: var(--hl-blue);
}

.hl-submit:active {
  background: var(--hl-navy-soft);
}

.hl-login__note {
  margin: 0.9rem 0 0 !important;
  font-size: 0.82rem !important;
  color: var(--hl-muted);
}

.hl-flash {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  font-size: 0.92rem;
  border: 1px solid transparent;
}

.hl-flash.info {
  background: #eaf2ff;
  color: var(--hl-navy);
  border-color: #c7daf8;
}

.hl-flash.ok,
.hl-flash.success {
  background: #e8f6ee;
  color: var(--hl-ok);
  border-color: #c5e6d2;
}

.hl-flash.warning {
  background: #fff6e5;
  color: var(--hl-warn);
  border-color: #f0d9a0;
}

.hl-flash.error {
  background: #fdecee;
  color: var(--hl-danger);
  border-color: #f0c4ca;
}

/* —— Sections (below hero) —— */
.hl-section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  position: relative;
}

.hl-section__label {
  margin: 0 0 0.7rem;
  font-family: var(--hl-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hl-blue);
}

.hl-section h2 {
  margin: 0 0 1rem;
  font-family: var(--hl-display);
  font-size: clamp(1.85rem, 3.6vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--hl-navy);
  max-width: 16ch;
}

.hl-section p {
  margin: 0;
  max-width: 48ch;
  color: var(--hl-muted);
  font-size: 1.06rem;
  line-height: 1.65;
}

.hl-section--split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
}

/* About — one frosted story panel; pull closer to hero login */
.hl-section--story {
  padding-top: 1.25rem;
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.hl-section__panel {
  position: relative;
  max-width: 44rem;
  padding: clamp(1.75rem, 3.5vw, 2.6rem) clamp(1.5rem, 3vw, 2.4rem);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(238, 243, 249, 0.88) 100%);
  border: 1px solid rgba(11, 31, 68, 0.1);
  border-radius: calc(var(--hl-radius) + 2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 20px 48px rgba(19, 45, 90, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hl-section__panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  bottom: 1.25rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--hl-blue-bright), var(--hl-navy));
}

.hl-section__panel .hl-section__label,
.hl-section__panel h2,
.hl-section__panel p {
  padding-left: 0.85rem;
}

.hl-section__panel h2 {
  max-width: 14ch;
}

/* Get Entraris — full-bleed navy band */
.hl-section--band {
  background:
    radial-gradient(ellipse 70% 80% at 12% 20%, rgba(61, 116, 212, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 60% at 88% 80%, rgba(47, 95, 176, 0.18), transparent 50%),
    linear-gradient(165deg, #0b1f44 0%, #13233f 48%, #1a3566 100%);
  color: #fff;
  overflow: hidden;
}

.hl-section--band .hl-section__label {
  color: #9db8e8;
}

.hl-section--band h2 {
  color: #fff;
  max-width: 12ch;
}

.hl-section--band p {
  color: rgba(232, 240, 250, 0.86);
  max-width: 42ch;
}

.hl-section__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.35rem;
}

.hl-section__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 12px;
  background: #fff;
  color: var(--hl-navy) !important;
  font-family: var(--hl-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s var(--hl-ease), box-shadow 0.2s var(--hl-ease);
}

.hl-section__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

/* Contact — interactive list surface */
.hl-section--contact {
  background: linear-gradient(180deg, rgba(238, 243, 249, 0.55) 0%, rgba(248, 250, 252, 0.2) 100%);
  border-top: 1px solid transparent;
}

.hl-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.hl-contact-list li {
  margin: 0;
  padding: 0;
  border: none;
}

.hl-contact-list__item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.05rem 1.15rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(11, 31, 68, 0.1);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  text-decoration: none !important;
  transition: border-color 0.15s ease, transform 0.15s var(--hl-ease), box-shadow 0.15s ease;
}

a.hl-contact-list__item:hover {
  border-color: rgba(47, 95, 176, 0.4);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.hl-contact-list strong {
  font-family: var(--hl-display);
  color: var(--hl-navy);
  font-size: 0.92rem;
  font-weight: 700;
}

.hl-contact-list span {
  color: var(--hl-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

a.hl-contact-list__item span {
  color: var(--hl-blue);
  font-weight: 600;
}

/* —— Footer —— */
.hl-footer {
  border-top: 1px solid var(--hl-line);
  padding: 1.5rem 0 2rem;
  text-align: center;
  color: var(--hl-muted);
  font-size: 0.78rem;
  background: rgba(248, 250, 252, 0.65);
}

.hl-footer a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hl-footer a:hover {
  color: var(--hl-navy);
}

/* —— Modal (property choice) —— */
.hl-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(11, 31, 68, 0.4);
  backdrop-filter: blur(4px);
  animation: hl-fade 0.25s ease both;
}

.hl-modal {
  width: min(520px, 100%);
  max-height: 85vh;
  overflow: auto;
  background: #fff;
  border-radius: var(--hl-radius);
  border: 1px solid var(--hl-line);
  padding: 1.35rem;
  box-shadow: 0 24px 60px rgba(11, 31, 68, 0.22);
}

.hl-modal h2 {
  margin: 0 0 0.4rem;
  font-family: var(--hl-display);
  font-size: 1.35rem;
  color: var(--hl-navy);
}

.hl-modal > p {
  margin: 0 0 1rem;
  color: var(--hl-muted);
  font-size: 0.95rem;
}

.hl-choice-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
}

.hl-choice-option {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--hl-line);
  border-radius: 12px;
  background: var(--hl-mist);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.hl-choice-option:hover {
  border-color: rgba(47, 95, 176, 0.45);
  background: #fff;
}

.hl-choice-option input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.hl-choice-option span {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.hl-choice-option strong {
  color: var(--hl-navy);
  font-size: 0.95rem;
}

.hl-choice-option .muted {
  color: var(--hl-muted);
  font-size: 0.85rem;
}

.hl-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.hl-modal__actions button {
  border: 0;
  border-radius: 12px;
  padding: 0.75rem 1.05rem;
  background: var(--hl-navy);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.hl-modal__actions a {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.05rem;
  border-radius: 12px;
  border: 1px solid var(--hl-line);
  background: #fff;
  color: var(--hl-navy-soft);
  font-weight: 600;
  text-decoration: none;
}

.hl-modal__actions a:hover {
  background: var(--hl-mist);
  text-decoration: none;
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .hl-hero__grid,
  .hl-section--split {
    grid-template-columns: 1fr;
  }

  .hl-hero {
    min-height: auto;
    padding: 1.5rem 0 1.25rem;
  }

  .hl-hero__symbol {
    width: min(220px, 72%);
  }

  .hl-hero h1 {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
  }
}

@media (max-width: 720px) {
  .hl-shell {
    width: min(1120px, calc(100% - 1.5rem));
  }

  .hl-nav-toggle {
    display: inline-flex;
  }

  .hl-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem 1.25rem 1.1rem;
    background: rgba(248, 250, 252, 0.97);
    border-bottom: 1px solid var(--hl-line);
    box-shadow: 0 12px 28px rgba(11, 31, 68, 0.08);
  }

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

  .hl-nav a {
    padding: 0.7rem 0.25rem;
  }

  .hl-brand .productLogo,
  .hl-brand img {
    height: 34px;
    max-width: min(220px, 70vw);
  }

  .hl-login {
    padding: 1.2rem 1.1rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* —— 404 —— */
body.hl-404 {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.hl-404__main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 2.5rem 0 3.5rem;
}

.hl-404__panel {
  max-width: 36rem;
  text-align: left;
  animation: hl-rise 0.9s var(--hl-ease) both;
}

.hl-404__symbol {
  width: min(220px, 55%);
  height: auto;
  display: block;
  margin: 0 0 1.25rem;
  animation: hl-rise 0.9s var(--hl-ease) both;
}

.hl-404__panel h1 {
  margin: 0 0 0.85rem;
  font-family: var(--hl-display);
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--hl-navy);
}

.hl-404__lede {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  font-size: clamp(1.05rem, 2vw, 1.15rem);
  color: var(--hl-muted);
}

.hl-404__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.35rem;
  border-radius: 12px;
  background: var(--hl-navy);
  color: #fff !important;
  font-family: var(--hl-display);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: none;
  transition: background 0.15s ease;
}

.hl-404__cta:hover {
  background: var(--hl-blue);
  color: #fff !important;
}

.hl-nav--simple {
  display: flex;
}

@media (max-width: 720px) {
  .hl-nav--simple {
    display: flex;
  }

  .hl-404__main {
    padding: 1.75rem 0 2.75rem;
  }

  .hl-404__panel h1 {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
  }
}
