/* ==========================================================================
   Landing page — Hero (#nsrl-hero-section)
   Full-bleed banner carousel behind everything, text centered on a dark overlay,
   info chips in the lower corners, services ticker along the bottom.

   banner.js prepends two .nsrl-hero__bg-layer slides to the hero and adds .is-loaded.
   Layers:  ::after fallback art (0) · slides (1) · overlay (.nsrl-hero__frame, 2)
            · skeleton sweep ::before (3) · text / chips / ticker (4)
   ========================================================================== */

.nsrl-hero {
  --hero-top: calc(var(--nsrl-header-h, 88px) + 40px);
  --hero-ticker-h: 64px;
  --nsrl-skel-base: rgba(255, 255, 255, 0.12);
  --nsrl-skel-shine: rgba(255, 255, 255, 0.26);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  width: 100%;
  min-height: 760px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: var(--hero-top) 0 calc(var(--hero-ticker-h) + 88px);
  color: var(--nsrl-color-on-dark);
  background-color: var(--nsrl-color-green-950);
  text-align: center;
}

/* ---------- Background layers (all full-bleed) ---------- */
.nsrl-hero::after,
.nsrl-hero:not(.is-loaded)::before,
.nsrl-hero__bg-layer,
.nsrl-hero__frame {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* Fallback art while there are no banner images */
.nsrl-hero::after {
  content: "";
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(50% 60% at 80% 20%, rgba(8, 127, 135, 0.45) 0%, rgba(8, 127, 135, 0) 70%),
    radial-gradient(45% 55% at 15% 85%, rgba(201, 162, 39, 0.25) 0%, rgba(201, 162, 39, 0) 70%),
    linear-gradient(160deg, var(--nsrl-color-green-800) 0%, var(--nsrl-color-green-950) 100%);
}

/* Carousel slides */
.nsrl-hero__bg-layer {
  z-index: 1;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  opacity: 0;
  -webkit-transform: scale(1.06);
  transform: scale(1.06);
  -webkit-transition: opacity 1s ease-in-out, -webkit-transform 9s ease-out;
  transition: opacity 1s ease-in-out, transform 9s ease-out;
  will-change: opacity, transform;
}
.nsrl-hero__bg-layer video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nsrl-hero__bg-layer.is-visible {
  opacity: 1;
  -webkit-transform: scale(1);
  transform: scale(1);
}

/* Readability overlay (centered vignette + bottom fade) — also holds the corner chips */
.nsrl-hero__frame {
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(70% 65% at 50% 48%, rgba(6, 40, 24, 0.55) 0%, rgba(6, 40, 24, 0.82) 100%),
    linear-gradient(180deg, rgba(6, 40, 24, 0.45) 0%, rgba(6, 40, 24, 0) 30%, rgba(6, 40, 24, 0) 65%, rgba(6, 40, 24, 0.75) 100%);
}

/* Skeleton sweep while the banner loads */
.nsrl-hero:not(.is-loaded)::before {
  content: "";
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 25%, rgba(255, 255, 255, 0.07) 50%, rgba(255, 255, 255, 0) 75%);
  background-size: 200% 100%;
  -webkit-animation: nsrl-skel-sweep 1.8s ease-in-out infinite;
  animation: nsrl-skel-sweep 1.8s ease-in-out infinite;
}

/* faint grid over the photo */
.nsrl-hero__grid::before {
  content: "";
  position: absolute;
  top: -100vh;
  right: 0;
  bottom: -100vh;
  left: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(50% 40% at 50% 50%, #000 0%, transparent 80%);
  mask-image: radial-gradient(50% 40% at 50% 50%, #000 0%, transparent 80%);
}

/* ---------- Centered text ---------- */
.nsrl-hero__grid {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: var(--nsrl-container-wide);
  margin: 0 auto;
  padding: 0 var(--nsrl-gutter);
}
.nsrl-hero__content {
  max-width: 920px;
  margin: 0 auto;
  display: -webkit-box;
  display: flex;
  -webkit-box-orient: vertical;
  flex-direction: column;
  -webkit-box-align: center;
  align-items: center;
}
.nsrl-hero__content > * {
  -webkit-animation: nsrl-hero-rise 1s var(--nsrl-ease-out) both;
  animation: nsrl-hero-rise 1s var(--nsrl-ease-out) both;
}
.nsrl-hero__content > :nth-child(2) { -webkit-animation-delay: 0.08s; animation-delay: 0.08s; }
.nsrl-hero__content > :nth-child(3) { -webkit-animation-delay: 0.16s; animation-delay: 0.16s; }
.nsrl-hero__content > :nth-child(4) { -webkit-animation-delay: 0.24s; animation-delay: 0.24s; }
.nsrl-hero__content > :nth-child(5) { -webkit-animation-delay: 0.32s; animation-delay: 0.32s; }

.nsrl-hero__chip {
  display: -webkit-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 7px 16px 7px 12px;
  font-size: var(--nsrl-fs-xs);
  font-weight: var(--nsrl-fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--nsrl-radius-pill);
}
.nsrl-hero__chip-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nsrl-color-gold-400);
}
.nsrl-hero__chip-dot::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -4px;
  bottom: -4px;
  left: -4px;
  border-radius: 50%;
  border: 2px solid var(--nsrl-color-gold-400);
  opacity: 0;
  -webkit-animation: nsrl-hero-ping 2.4s var(--nsrl-ease-out) infinite;
  animation: nsrl-hero-ping 2.4s var(--nsrl-ease-out) infinite;
}

.nsrl-hero h1.nsrl-hero__heading {
  max-width: 16ch;
  margin: 0 auto 24px;
  font-family: var(--nsrl-font-display);
  font-size: clamp(2.75rem, 1.4rem + 4.6vw, 5.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: #ffffff;
  text-transform: none;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
  text-wrap: balance;
  font-variation-settings: "opsz" 144;
}
.nsrl-hero p.nsrl-hero__text {
  max-width: 58ch;
  margin: 0 auto 36px;
  font-family: var(--nsrl-font-body);
  font-size: var(--nsrl-fs-lead);
  line-height: var(--nsrl-lh-body);
  color: var(--nsrl-color-on-dark-muted);
}
.nsrl-hero__buttons {
  display: -webkit-box;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  justify-content: center;
  gap: 12px;
}

/* Buttons on the dark hero: gold primary, white outline secondary */
html body .nsrl-hero a.nsrl-btn--solid:is(:link, :visited, :hover, :focus, :active) {
  background-color: var(--nsrl-color-gold-500);
  border-color: var(--nsrl-color-gold-500);
  color: var(--nsrl-color-green-950);
  box-shadow: 0 12px 28px -12px rgba(201, 162, 39, 0.7);
}
html body .nsrl-hero a.nsrl-btn--solid:is(:hover, :focus-visible) {
  background-color: var(--nsrl-color-gold-400);
  border-color: var(--nsrl-color-gold-400);
}
html body .nsrl-hero a.nsrl-btn--solid::after { background: rgba(6, 40, 24, 0.12); }
html body .nsrl-hero a.nsrl-btn--outline:is(:link, :visited) {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}
html body .nsrl-hero a.nsrl-btn--outline:is(:hover, :focus-visible, :active) {
  background-color: #ffffff;
  border-color: #ffffff;
  color: var(--nsrl-color-green-950);
}
html body .nsrl-hero a.nsrl-btn--outline::after { background: rgba(255, 255, 255, 0.14); }
html body .nsrl-hero a.nsrl-btn--outline:is(:hover, :focus-visible)::after { background: rgba(6, 40, 24, 0.08); }

.nsrl-hero ul.nsrl-hero__stats {
  display: -webkit-box;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  justify-content: center;
  margin: 48px auto 0;
  padding: 24px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.nsrl-hero__stats li {
  display: -webkit-box;
  display: flex;
  -webkit-box-orient: vertical;
  flex-direction: column;
  -webkit-box-align: center;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0 36px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.nsrl-hero__stats li:first-child { border-left: 0; }
.nsrl-hero__stats strong {
  font-family: var(--nsrl-font-display);
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.015em;
  color: #ffffff;
}
.nsrl-hero__stats span {
  font-size: var(--nsrl-fs-sm);
  color: var(--nsrl-color-on-dark-faint);
}

.nsrl-hero__divider { display: none; }

/* ---------- Corner notes (inside the overlay) ----------
   Plain information, deliberately NOT button-like: no card, no shadow, no motion,
   not clickable (the overlay has pointer-events: none). */
.nsrl-hero__float {
  position: absolute;
  bottom: calc(var(--hero-ticker-h) + 32px);
  display: -webkit-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  align-items: center;
  gap: 12px;
  padding: 0;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: default;
}
.nsrl-hero__float--top { left: var(--nsrl-gutter); }
.nsrl-hero__float--bottom { right: var(--nsrl-gutter); -webkit-box-orient: horizontal; -webkit-box-direction: reverse; flex-direction: row-reverse; text-align: right; }

.nsrl-hero__float-icon {
  -webkit-box-flex: 0;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}
.nsrl-hero__float-icon--clock {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8cf7a' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}
.nsrl-hero__float-icon--calendar {
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8cf7a' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E");
}
.nsrl-hero__float-text {
  display: -webkit-box;
  display: flex;
  -webkit-box-orient: vertical;
  flex-direction: column;
  line-height: 1.35;
  white-space: nowrap;
}
.nsrl-hero__float-text strong {
  font-size: var(--nsrl-fs-xs);
  font-weight: var(--nsrl-fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.nsrl-hero__float-text span {
  font-size: var(--nsrl-fs-xs);
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Services ticker (dark glass strip) ---------- */
.nsrl-ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  height: var(--hero-ticker-h);
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 40, 24, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.nsrl-ticker__track {
  display: -webkit-box;
  display: flex;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  -webkit-animation: nsrl-ticker 48s linear infinite;
  animation: nsrl-ticker 48s linear infinite;
}
.nsrl-ticker:hover .nsrl-ticker__track { -webkit-animation-play-state: paused; animation-play-state: paused; }
.nsrl-hero ul.nsrl-ticker__list {
  display: -webkit-box;
  display: flex;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  -webkit-box-align: center;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nsrl-ticker__list li {
  display: -webkit-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  align-items: center;
  margin: 0;
  padding: 0 28px;
  font-family: var(--nsrl-font-display);
  font-size: 1.125rem;
  font-style: italic;
  font-weight: 400;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.88);
}
.nsrl-ticker__list li::before {
  content: "\2726";
  margin-right: 28px;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--nsrl-color-gold-400);
}

/* ---------- Motion ---------- */
@-webkit-keyframes nsrl-hero-rise {
  from { opacity: 0; -webkit-transform: translate3d(0, 24px, 0); }
  to   { opacity: 1; -webkit-transform: none; }
}
@keyframes nsrl-hero-rise {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
  to   { opacity: 1; transform: none; }
}
@-webkit-keyframes nsrl-hero-float {
  0%, 100% { -webkit-transform: translateY(0); }
  50%      { -webkit-transform: translateY(-8px); }
}
@keyframes nsrl-hero-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@-webkit-keyframes nsrl-hero-ping {
  0%   { opacity: 0.8; -webkit-transform: scale(0.6); }
  80%, 100% { opacity: 0; -webkit-transform: scale(1.6); }
}
@keyframes nsrl-hero-ping {
  0%   { opacity: 0.8; transform: scale(0.6); }
  80%, 100% { opacity: 0; transform: scale(1.6); }
}
@-webkit-keyframes nsrl-ticker {
  from { -webkit-transform: translateX(0); }
  to   { -webkit-transform: translateX(-50%); }
}
@keyframes nsrl-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .nsrl-hero__content > *,
  .nsrl-hero__float,
  .nsrl-hero__chip-dot::after,
  .nsrl-ticker__track { -webkit-animation: none; animation: none; }
  .nsrl-hero__bg-layer { -webkit-transition: opacity 0.3s linear; transition: opacity 0.3s linear; -webkit-transform: none; transform: none; }
  .nsrl-ticker { overflow-x: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nsrl-hero__float { display: none; }
}

@media (max-width: 900px) {
  .nsrl-hero {
    --hero-top: calc(var(--nsrl-header-h, 72px) + 40px);
    --hero-ticker-h: 54px;
    padding-bottom: calc(var(--hero-ticker-h) + 56px);
  }
  .nsrl-hero__stats li { padding: 0 22px; }
  .nsrl-ticker__list li { font-size: 1rem; padding: 0 20px; }
  .nsrl-ticker__list li::before { margin-right: 20px; }
}

@media (max-width: 480px) {
  .nsrl-hero__chip { margin-bottom: 20px; font-size: 0.6875rem; letter-spacing: 0.06em; }
  .nsrl-hero h1.nsrl-hero__heading { font-size: clamp(2.375rem, 11vw, 3rem); }
  .nsrl-hero__buttons { -webkit-box-orient: vertical; flex-direction: column; width: 100%; }
  .nsrl-hero__buttons .nsrl-btn { width: 100%; -webkit-box-pack: justify; justify-content: space-between; }
  .nsrl-hero ul.nsrl-hero__stats { margin-top: 36px; }
  .nsrl-hero__stats li { padding: 0 14px; }
  .nsrl-hero__stats strong { font-size: 1.875rem; }
  .nsrl-hero__stats span { font-size: var(--nsrl-fs-xs); }
}
