﻿/* Home navigation theme: changes the shared header from the interior-page
   appearance to the white home-page navigation style. */
body.home-page {
  background: white;
}
.home-page .main-nav {
  background-color: var(--white);
  background-image:
    linear-gradient(var(--white), var(--white)),
    linear-gradient(135deg, #2747a0 0%, #ffbf00 42%, #ff8b00 72%, #d33333 100%);
}
.home-page .main-nav a {
  color: var(--navy);
}
.home-page .login-link {
  border-color: transparent;
  color: white;
}
.home-page .main-nav a:hover,
.home-page .main-nav .active,
.home-page .login-link:hover {
  background: var(--navy);
  color: var(--white);
}
.home-page .login-link:hover {
  background: #fff;
  border-color: transparent;
  color: #000;
  height: 44px;
  padding: 0 16px;
  transform: none;
}

/* Main home-page wrapper and full-screen hero video area. */
.page-main {
  min-height: 100vh;
}
.home-page .page-main {
  position: relative;
  background: white;
}
.hero-media {
  border-radius: 0;
  height: 100%;
  overflow: hidden;
  position: relative;
  width: 100%;
  z-index: 2;
}

/* Floating controls over the hero video: play/pause, volume, mute, and
   fullscreen buttons. */
.video-controls {
  align-items: center;
  bottom: 28px;
  display: flex;
  gap: 10px;
  position: absolute;
  right: 28px;
  z-index: 4;
}
.video-controls button {
  align-items: center;
  background: rgba(0, 43, 69, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  padding: 0;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  width: 44px;
}
.video-controls button:hover,
.video-controls button:focus-visible {
  background: var(--gold);
  color: var(--navy);
  outline: none;
  transform: translateY(-2px);
}

/* Keeps the volume icon readable when its gold hover state is active. */
.volume-btn-wrapper button:hover .video-control-icon,
.volume-btn-wrapper button:focus-visible .video-control-icon {
  color: var(--navy) !important;
  -webkit-text-fill-color: var(--navy);
}
.video-control-icon {
  display: block;
  font-size: 1rem;
  line-height: 1;
}

/* Adds a subtle visual overlay above the video without blocking controls. */
.hero-media::after {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.05)
  );
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}
.hero-video-file {
  /* Fills the hero while preserving the video's aspect ratio. */
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.hero-youtube-video {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

/* Video fallback state shown when the hero media cannot be loaded. */
.hero-media.video-unavailable {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-unavailable .hero-video-file {
  opacity: 0;
}
.video-fallback-logo {
  /* Centers the alternate logo while the video fallback state is active. */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 500px;
  max-height: 300px;
  width: 90%;
  height: auto;
  object-fit: contain;
  z-index: 2;
  display: none;
}
.video-unavailable .video-fallback-logo {
  display: block;
}

/* Disabled video controls and the optional hover-to-reveal play hint. */
/* Vertical volume slider revealed when the volume control is hovered or
   focused. */
.volume-btn-wrapper {
  align-items: center;
  flex-direction: column;
  display: inline-flex;
  position: relative;
}
.volume-slider {
  appearance: none;
  background: #ffffff;
  border-radius: 2px;
  cursor: pointer;
  height: 76px;
  margin: 0;
  opacity: 0;
  outline: none;
  pointer-events: none;
  position: absolute;
  bottom: calc(100% - 1px);
  width: 8px;
  writing-mode: vertical-lr;
  direction: rtl;
}
.volume-btn-wrapper:hover .volume-slider {
  opacity: 1;
  pointer-events: auto;
}
.volume-slider:focus-visible {
  opacity: 1;
  pointer-events: auto;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(255, 191, 0, 0.6);
}
.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 6px rgba(255, 191, 0, 0.6);
}

/* Official home hero (v2): the video comes first, the messaging sits centered
   beneath it, and a layered aurora + particle background fills the first
   screen. The curved edge below it reveals as the visitor scrolls. */
@property --hero-a {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.hero {
  --hero-curve: 90px;
  align-items: stretch;
  background:
    radial-gradient(
      900px 520px at 50% 18%,
      rgba(212, 168, 90, 0.2),
      transparent 62%
    ),
    radial-gradient(
      700px 500px at 0% 100%,
      rgba(20, 58, 99, 0.9),
      transparent 70%
    ),
    linear-gradient(160deg, var(--navy), #0d2c52 60%, #143a63);
  color: var(--white);
  display: flex;
  flex-direction: column;
  isolation: isolate;
  /* The whole first screen shows the background; the extra height is the
     curved transition that appears as the visitor scrolls. */
  min-height: calc(100vh + 220px);
  min-height: calc(100svh + 220px);
  overflow: hidden;
  padding: 0 24px calc(var(--hero-curve) + 60px);
  position: relative;
}

/* Soft drifting aurora glows (pure CSS, no library). */
.hero .aurora {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}
.hero .au {
  animation: hero-drift 18s ease-in-out infinite alternate;
  border-radius: 50%;
  filter: blur(90px);
  position: absolute;
  will-change: transform;
}
.hero .a1 {
  background: #1f5a8a;
  height: 60vmax;
  left: -18%;
  opacity: 0.5;
  top: -28%;
  width: 60vmax;
}
.hero .a2 {
  animation-delay: -9s;
  background: var(--gold);
  bottom: -26%;
  height: 46vmax;
  opacity: 0.22;
  right: -12%;
  width: 46vmax;
}
.hero .a3 {
  animation-delay: -4s;
  animation-duration: 24s;
  background: #2a7fb0;
  height: 38vmax;
  opacity: 0.3;
  right: 6%;
  top: 22%;
  width: 38vmax;
}
@keyframes hero-drift {
  to {
    transform: translate(8vw, 6vh) scale(1.18);
  }
}

/* Container the particle library draws into (see JS/home.js). */
.hero .hero-particles {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

/* Centered stage holding the video, messaging, and calls to action. */
.hero .stage {
  margin: 0 auto;
  position: relative;
  text-align: center;
  width: min(1300px, 100%);
  z-index: 1;
}
.hero-video-column {
  align-items: center;
  display: flex;
  flex-direction: column;
  min-width: 0;
  /* Raises the video slightly while keeping the scroll cue in this viewport. */
  transform: translateY(-20px);
  width: 100%;
}
.hero-video-meta {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  margin-top: 16px;
  width: 100%;
}

/* First screen: only the video, centered in the visible area of the device.
   The messaging below stays out of view until the visitor scrolls. */
.hero-first {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Keeps the video as the first-screen focus while allowing the title block
     to follow naturally in this same hero section on every device. */
  min-height: 100vh;
  min-height: 100svh;
  padding: 92px 0 20px;
  position: relative;
}

/* Hero entrance animation: each item rises in using its own --d delay. */
.hero .in {
  animation: hero-up 0.8s var(--d, 0s) cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  opacity: 0;
  transform: translateY(16px);
}
.hero-first .vwrap.in {
  --d: 0.05s;
}
.hero-first .hint.in {
  --d: 0.2s;
}
@keyframes hero-up {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Framed video card. The width follows the screen height so the video and the
   start of the headline fit in the first view on most laptops. */
.hero .vwrap {
  margin: 0 auto;
  position: relative;
  width: min(100%, 1700px, max(300px, calc((100svh - 80px) * 16 / 9)));
  z-index: 1;
}
/* Animated gold ring around the video: a slow light travels the frame. */
.hero .vwrap::before {
  animation: hero-spin 5s linear infinite;
  background: conic-gradient(
    from var(--hero-a),
    rgba(212, 168, 90, 0.25) 0 55%,
    var(--gold) 82%,
    #f0cf8e 92%,
    rgba(212, 168, 90, 0.25)
  );
  border-radius: 24px;
  content: "";
  inset: -3px;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
  padding: 3px;
  pointer-events: none;
  position: absolute;
  z-index: 3;
}
/* Warm glow beneath the card so it lifts off the background. */
.hero .vwrap::after {
  background: radial-gradient(
    ellipse at center,
    rgba(212, 168, 90, 0.3),
    transparent 70%
  );
  content: "";
  filter: blur(28px);
  inset: 10% 4% -8%;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}
@keyframes hero-spin {
  to {
    --hero-a: 360deg;
  }
}
.hero .vcard {
  aspect-ratio: 16 / 9;
  background: #0d1f36;
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  outline: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
}
.hero .hero-media {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}
.hero .hero-video-file {
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.hero .video-fallback-logo {
  max-height: 70%;
  max-width: 80%;
}
.hero .badge {
  align-self: flex-start;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  color: var(--navy);
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 800;
  margin: 18px 0 0;
  padding: 11px 18px;
  position: relative;
  z-index: 5;
}
.hero-copy .badge {
  align-self: auto;
  margin: 18px auto 0;
}
.hero .badge em {
  /* Pru Life UK signature red for the partner name. */
  -webkit-text-fill-color: #e31837;
  color: #e31837;
  font-style: normal;
}
.hero .hint {
  align-self: start;
  grid-column: 1;
  font-size: 0.82rem;
  justify-self: start;
  margin: 0;
  opacity: 0.7;
  text-align: left;
}

/* Messaging centered beneath the video. */
.hero-copy {
  /* Pushes the title below the first video viewport so the scroll cue remains
     the next visible interaction before the messaging is revealed. */
  margin-top: 0;
  min-width: 0;
  padding: 40px 0 120px;
  /* Leaves room for the fixed header when scrolling to this block. */
  scroll-margin-top: 90px;
}
.hero-title {
  color: var(--white);
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0 0 16px;
}
.hero-title span {
  color: #f0cf8e;
  display: block;
}
.hero-lead {
  color: var(--white);
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0 auto 28px;
  max-width: 36em;
  opacity: 0.9;
}

/* Matches the home footer to the dominant navy used by the hero background. */
.home-page .site-footer {
  background:
    radial-gradient(
      520px 260px at 12% 35%,
      rgba(31, 90, 138, 0.5),
      transparent 72%
    ),
    radial-gradient(
      460px 280px at 88% 70%,
      rgba(217, 168, 92, 0.2),
      transparent 72%
    ),
    var(--navy);
  isolation: isolate;
  overflow: hidden;
}

/* Repeats the hero's soft aurora motion behind the footer content. */
.home-page .site-footer::before {
  background:
    radial-gradient(
      320px 220px at 48% 20%,
      rgba(42, 127, 176, 0.22),
      transparent 72%
    ),
    radial-gradient(
      280px 180px at 72% 90%,
      rgba(217, 168, 92, 0.14),
      transparent 72%
    );
  content: "";
  filter: blur(30px);
  inset: -40px;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}
.home-page .site-footer .footer-content,
.home-page .site-footer .footer-bottom {
  position: relative;
  z-index: 1;
}

/* Hero call-to-action buttons and their gold/outlined variants. */
.hero .cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.hero .btn {
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 15px 28px;
  text-decoration: none;
  transition:
    transform 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.hero .btn-gold {
  background: var(--gold);
  border: 2px solid var(--gold);
  color: var(--navy);
}
.hero .btn-gold:hover {
  background: #f0cf8e;
  box-shadow: 0 10px 24px rgba(212, 168, 90, 0.4);
  transform: translateY(-2px);
}
.hero .btn-line {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
}
.hero .btn-line:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* "See what's happening" link: scrolls to the announcements section. */
.hero .news-cta {
  align-items: center;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: var(--white);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 700;
  gap: 10px;
  margin-top: 22px;
  padding: 10px 20px;
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.hero .news-cta:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--gold);
}
.hero .news-cta .dot {
  animation: hero-pulse 1.6s infinite;
  background: #4ade80;
  border-radius: 50%;
  height: 8px;
  width: 8px;
}
.hero .news-cta .arr {
  animation: hero-bob 1.6s ease-in-out infinite;
  color: #f0cf8e;
}
@keyframes hero-pulse {
  50% {
    opacity: 0.3;
  }
}
@keyframes hero-bob {
  50% {
    transform: translateY(4px);
  }
}

/* Trust indicators below the hero actions. */
.hero .trust {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.88rem;
  font-weight: 700;
  gap: 12px 30px;
  justify-content: center;
  list-style: none;
  margin: 30px auto 0;
  max-width: 780px;
  opacity: 0.95;
  padding: 22px 0 0;
}
.hero .trust li::before {
  align-items: center;
  background: var(--gold);
  border-radius: 50%;
  color: var(--navy);
  content: "\2713";
  display: inline-grid;
  font-size: 11px;
  height: 20px;
  margin-right: 9px;
  place-items: center;
  width: 20px;
}

/* Curved white transition and gold edge separating the hero from news. */
.hero .curve {
  bottom: -1px;
  display: block;
  height: var(--hero-curve);
  left: 0;
  position: absolute;
  right: 0;
  width: 100%;
  z-index: 2;
}
.hero .curve path {
  fill: var(--white);
}
.hero .curve .gold-edge {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
}

/* Home intro and section-heading typography. */
.eyebrow,
.page-kicker {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: transparent;
  color: white;
  max-width: none;
  padding-left: 14vw;
  padding-right: 14vw;
  padding-top: 80px;
  padding-bottom: 80px;
  position: relative;
  text-align: center;
  margin-top: 0;
  z-index: 3;
  display: none;
}
.home-intro h1 {
  margin: 18px 0 24px;
}
.home-intro .lead {
  color: rgba(255, 255, 255, 0.85) !important;
  margin: 0 auto;
  max-width: 650px;
}

.lead {
  color: var(--navy) !important;
  font-size: 1.25rem;
  line-height: 1.4;
}

/* Announcements section: soft background, a visible kicker, spotlight cards,
   and loading placeholders. Cards are inserted by JS/announcements.js. */
html {
  scroll-behavior: smooth;
}
.section-heading {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 45px;
}
.section-heading h2 {
  margin-bottom: 0;
}
.section-heading > p {
  color: rgba(39, 71, 160, 0.6);
  max-width: 340px;
}
.news-section {
  background: linear-gradient(180deg, #fff 0, #f4f7fb 100%);
  color: var(--navy);
  max-width: none;
  overflow: hidden;
  padding: 90px 80px 56px;
  position: relative;
}
/* Faint gold dot texture in the corner of the section. */
.news-section::before {
  background-image: radial-gradient(
    rgba(212, 168, 90, 0.5) 1.5px,
    transparent 1.6px
  );
  background-size: 22px 22px;
  content: "";
  height: 320px;
  -webkit-mask-image: radial-gradient(circle at 100% 0, #000, transparent 70%);
  mask-image: radial-gradient(circle at 100% 0, #000, transparent 70%);
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  width: 460px;
}
.news-section#announcements::before {
  display: none;
}
.announcements-arcs {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}
.announcement-ring {
  background: repeating-radial-gradient(
    circle,
    transparent 0 58px,
    rgba(212, 168, 90, 0.3) 58px 60px
  );
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(
    circle,
    #000 30%,
    transparent 70%
  );
  mask-image: radial-gradient(circle, #000 30%, transparent 70%);
  position: absolute;
}
.announcement-ring-top {
  height: 760px;
  right: -260px;
  top: -260px;
  width: 760px;
}
.announcement-ring-bottom {
  bottom: -220px;
  height: 520px;
  left: -220px;
  opacity: 0.6;
  width: 520px;
}
.news-section > * {
  position: relative;
  z-index: 1;
}
.news-section > .announcements-arcs {
  position: absolute;
  z-index: 0;
}
/* The kicker is hidden elsewhere on the site; show it in this section. */
.news-section .page-kicker {
  align-items: center;
  -webkit-text-fill-color: currentColor;
  background: none;
  color: #a87a22;
  display: flex;
  gap: 12px;
  margin: 0 0 12px;
  max-width: none;
  padding: 0;
  text-align: left;
  z-index: auto;
}
.news-section .page-kicker::before {
  background: var(--gold);
  content: "";
  height: 2px;
  width: 34px;
}
.news-section h2 em {
  color: var(--gold);
  font-style: normal;
}
.news-container {
  background: transparent;
  border-radius: 0;
  margin-top: 40px;
  padding: 0;
}
.news-footer {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}
.view-all-btn {
  align-items: center;
  background: transparent;
  border: 2px solid var(--navy);
  border-radius: 50px;
  color: var(--navy);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 700;
  gap: 8px;
  padding: 12px 40px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.view-all-btn:hover {
  background: #d9a85c;
  border-color: #d9a85c;
  box-shadow: 0 10px 24px rgba(217, 168, 92, 0.4);
  color: black;
  transform: translateY(-2px);
}

/* Dynamic announcement card grid and card content. */
.news-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}
.news-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  border-top: 3px solid var(--gold);
  box-shadow: 0 12px 28px rgba(0, 31, 51, 0.07);
  display: flex;
  flex-direction: column;
  isolation: isolate;
  min-height: 330px;
  overflow: hidden;
  padding: 24px;
  position: relative;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}
/* Spotlight glow that follows the pointer across the card. */
.news-card::before {
  background: radial-gradient(
    340px circle at var(--mx, -50%) var(--my, -50%),
    rgba(212, 168, 90, 0.2),
    transparent 60%
  );
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}
.news-card:hover {
  box-shadow: 0 20px 40px rgba(0, 31, 51, 0.14);
  transform: translateY(-6px);
}
.news-card-image {
  aspect-ratio: 16 / 10;
  background: #f0f0f0;
  border-radius: 4px;
  height: auto;
  overflow: hidden;
  width: 100%;
}
.news-card-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  width: 100%;
}
.news-card:hover .news-card-image img {
  transform: scale(1.05);
}
.news-card .announcement-featured-image {
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  display: block;
  height: auto;
  margin: 0 0 18px;
  object-fit: cover;
  object-position: center;
  transition: filter 0.4s ease;
  width: 100%;
}
.news-card:hover .announcement-featured-image {
  filter: saturate(1.1) contrast(1.03);
}
.news-card h3 {
  -webkit-box-orient: vertical;
  color: var(--navy);
  display: -webkit-box;
  font-size: 1.25rem;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  line-height: 1.3;
  margin: 18px 0 10px;
  overflow: hidden;
}
.news-card p {
  -webkit-box-orient: vertical;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  line-height: 1.65;
  margin: 0;
  overflow: hidden;
}
.news-card .read-more {
  background: transparent;
  border: 0;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  align-self: flex-start;
  margin-top: auto;
  padding: 24px 0 0;
  position: relative;
  text-align: left;
}
/* Underline that draws across the link when the card is hovered. */
.news-card .read-more::after {
  background: var(--gold);
  bottom: -4px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transition: width 0.35s ease;
  width: 0;
}
.news-card:hover .read-more::after,
.news-card .read-more:focus-visible::after {
  width: 100%;
}
.news-card .read-more:hover {
  color: var(--gold);
}
.news-card .event-date {
  color: var(--muted);
  display: block;
  font-size: 0.8rem;
  margin-top: 14px;
}

/* Card entrance: each card rises in as it scrolls into view. JS adds .js-reveal
   to the grid and .in-view to each card, so cards stay visible without JS. */
.news-grid.js-reveal .news-card:not(.in-view) {
  opacity: 0;
}
.news-grid.js-reveal .news-card.in-view {
  animation: card-in 0.7s calc(var(--i, 0) * 0.12s)
    cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}

/* Loading placeholders shown until the announcements arrive. */
.news-skeleton {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  border-top: 3px solid var(--gold);
  min-height: 330px;
  padding: 24px;
}
.news-skeleton i {
  animation: sk-shimmer 1.3s linear infinite;
  background: linear-gradient(90deg, #e8edf3 25%, #f5f8fb 50%, #e8edf3 75%);
  background-size: 200% 100%;
  border-radius: 4px;
  display: block;
  margin-bottom: 14px;
}
.news-skeleton .sk-img {
  aspect-ratio: 16 / 10;
  margin-bottom: 18px;
}
.news-skeleton .sk-chip {
  height: 22px;
  width: 90px;
}
.news-skeleton .sk-line {
  height: 14px;
}
.news-skeleton .w70 {
  width: 70%;
}
.news-skeleton .w85 {
  width: 85%;
}
@keyframes sk-shimmer {
  to {
    background-position: -200% 0;
  }
}
.news-empty {
  color: var(--muted);
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px 0;
  text-align: center;
}

/* Category label displayed on announcement cards and in the detail modal. */
.news-tag {
  align-self: flex-start;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  text-transform: uppercase;
}

/* Announcement detail modal opened when a visitor selects a news card. */
.announcement-modal {
  align-items: center;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  background: rgba(0, 15, 25, 0.78);
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 24px;
  pointer-events: none;
  position: fixed;
  transition: opacity 0.25s ease;
  visibility: hidden;
  z-index: 200;
}
.announcement-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.announcement-modal-card {
  background: var(--white);
  border-top: 4px solid var(--gold);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  max-height: min(680px, calc(100vh - 48px));
  max-width: 700px;
  overflow-y: auto;
  padding: 48px clamp(28px, 6vw, 64px) 56px;
  position: relative;
  transform: translateY(18px);
  transition: transform 0.25s ease;
  width: 100%;
}
.announcement-modal.is-open .announcement-modal-card {
  transform: translateY(0);
}

/* Modal close control and dynamically inserted announcement content. */
.announcement-modal-close {
  align-items: center;
  background: var(--navy);
  border: 0;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  display: flex;
  font-size: 1.6rem;
  height: 40px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 3px;
  position: absolute;
  right: 18px;
  top: 18px;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  width: 40px;
}
.announcement-modal-close:hover,
.announcement-modal-close:focus-visible {
  background: var(--gold);
  color: var(--navy);
  outline: none;
  transform: rotate(90deg);
}
.announcement-modal-card .event-date {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  margin-top: 16px;
}
.announcement-modal-image {
  border-radius: 4px;
  display: block;
  height: auto;
  margin: 0 auto 24px;
  max-height: 420px;
  object-fit: contain;
  object-position: center;
  width: 100%;
}
.announcement-modal-card h2 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
  margin: 24px 0 20px;
}
.announcement-modal-card p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
  margin: 0;
}

/* Tablet: two announcement columns and tighter section padding. */
@media (max-width: 1024px) {
  .news-section {
    padding: 70px 40px 48px;
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Medium and tablet screens: tighter hero spacing. */
@media (max-width: 860px) {
  .hero {
    padding: 0 18px calc(var(--hero-curve) + 80px);
  }
  .hero-first {
    padding: 80px 0 20px;
  }
  /* Keeps the separate badge aligned with the video's left edge on smaller
     screens without covering the video controls. */
  .hero .badge {
    font-size: 0.78rem;
    margin: 18px 0 0;
    padding: 9px 14px;
  }
  .hero-copy .badge {
    margin: 18px auto 0;
  }
  .hero .hint {
    margin: 0;
  }
  .hero .au {
    filter: blur(60px);
  }
}

/* Reduced-motion preference: keeps the hero visible without entrance or
   ambient animation for visitors who request less motion. */
@media (prefers-reduced-motion: reduce) {
  .hero .in {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .hero .au,
  .hero .vwrap::before,
  .hero .news-cta .dot,
  .hero .news-cta .arr,
  .news-skeleton i {
    animation: none;
  }
  .news-grid.js-reveal .news-card.in-view {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Mobile home layout: announcement cards become a swipeable row while the
   full-screen hero is preserved. */
@media (max-width: 760px) {
  .news-section {
    padding: 56px 20px 40px;
  }
  .news-section .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
    text-align: left;
  }
  .news-section .section-heading h2 {
    font-size: 2rem;
    line-height: 1.15;
  }
  .news-section .section-heading > p {
    margin: 0;
    max-width: 100%;
  }
  .news-container {
    margin-top: 24px;
  }
  .news-grid {
    display: flex;
    gap: 16px;
    margin: 0 -20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 6px 20px 18px;
    scroll-padding: 0 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .news-grid::-webkit-scrollbar {
    display: none;
  }
  .news-grid > * {
    flex: 0 0 84%;
    scroll-snap-align: center;
  }
  .news-card .announcement-featured-image {
    height: auto;
  }
  .hero .vcard {
    border-radius: 16px;
  }
  .hero .video-controls {
    bottom: 16px;
    right: 16px;
  }
  .hero .video-controls button {
    height: 38px;
    width: 38px;
  }
  .hero .cta .btn {
    flex: 1 1 100%;
    text-align: center;
  }
}

/* Smooth scrolling (Lenis): rules the library needs so the browser's own
   smooth scrolling does not fight it, and so modals can still scroll. */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* Scroll reveal: elements marked data-reveal fade and rise into place as they
   enter the screen. JS adds .reveal-ready to <html>, so everything stays
   visible if scripts are unavailable or motion is reduced. Optional values:
   data-reveal="up | left | right | zoom | fade" and data-delay="150" (ms). */
[data-reveal] {
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--rd, 0s),
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--rd, 0s);
}
.reveal-ready [data-reveal]:not(.revealed) {
  opacity: 0;
  transform: translateY(28px);
}
.reveal-ready [data-reveal="left"]:not(.revealed) {
  transform: translateX(-36px);
}
.reveal-ready [data-reveal="right"]:not(.revealed) {
  transform: translateX(36px);
}
.reveal-ready [data-reveal="zoom"]:not(.revealed) {
  transform: scale(0.9);
}
.reveal-ready [data-reveal="fade"]:not(.revealed) {
  transform: none;
}

/* Announcement category colors used for dynamically generated news tags. */
.tag-announcement {
  background: rgba(212, 172, 93, 0.15);
  color: #8b7355;
}
.tag-event {
  background: rgba(39, 71, 160, 0.1);
  color: var(--navy);
}
.tag-news {
  background: rgba(39, 71, 160, 0.15);
  color: var(--navy);
}
.tag-update {
  background: rgba(26, 92, 58, 0.1);
  color: var(--green);
}
.tag-opportunity {
  background: rgba(211, 51, 51, 0.1);
  color: var(--red);
}

.tag-opportunity {
  background: rgba(201, 168, 76, 0.15);
  color: var(--orange);
}
.tag-update {
  background: rgba(44, 74, 124, 0.1);
  color: var(--violet);
}

/* Responsive home hero refinements: stack and resize the current design like
   the reference hero without changing its content or visual treatment. */
@media (max-width: 1100px) {
  .hero .stage {
    width: min(100%, 1080px);
  }
  .hero .vwrap {
    width: min(100%, 1250px, calc((100svh - 140px) * 16 / 9));
  }
}

@media (max-width: 860px) {
  .hero {
    min-height: calc(100svh + 180px);
    padding: 0 20px calc(var(--hero-curve) + 40px);
  }
  .hero .stage {
    width: 100%;
  }
  .hero-video-column {
    transform: none;
  }
  .hero-first {
    min-height: 100svh;
    padding: 104px 0 24px;
  }
  .hero .vwrap {
    width: min(100%, calc(100vw - 40px), 900px);
  }
  .hero-video-meta {
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 14px;
  }
  .hero .hint {
    font-size: 0.76rem;
    line-height: 1.35;
    max-width: 30ch;
  }
  .hero-copy {
    padding: 32px 0 96px;
    text-align: center;
  }
  .hero-title {
    font-size: clamp(2rem, 8vw, 3.2rem);
  }
  .hero-lead {
    font-size: 1rem;
    max-width: 42em;
  }
  .hero .cta,
  .hero .trust {
    justify-content: center;
  }
  .hero .trust {
    gap: 12px 20px;
  }
  .hero-copy .badge {
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-inline: 16px;
  }
  .hero-first {
    min-height: calc(100svh - 8px);
    padding-top: 92px;
  }
  .hero .vwrap {
    width: 100%;
  }
  .hero .vcard {
    border-radius: 14px;
  }
  .hero-video-meta {
    align-items: start;
    gap: 12px;
  }
  .hero .hint {
    max-width: 24ch;
  }
  .hero .cta .btn {
    flex-basis: 100%;
  }
  .hero .trust {
    align-items: flex-start;
    flex-direction: column;
    margin-inline: auto;
    text-align: left;
    width: max-content;
  }
  .hero .trust li {
    max-width: 30ch;
  }
  .hero .badge {
    max-width: 100%;
    white-space: normal;
  }
}

/* D2 hero arrangement: text first with a large supporting video. The layout
   stays inside the existing hero section and stacks text above video on
   smaller screens for reliable responsive behavior. */
@media (min-width: 861px) {
  .hero .stage {
    align-items: center;
    column-gap: clamp(36px, 5vw, 72px);
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    min-height: calc(100svh - 40px);
    text-align: left;
    width: min(1700px, 100%);
  }
  .hero-first {
    grid-column: 2;
    grid-row: 1;
    justify-content: center;
    min-height: 0;
    padding: 112px 0 40px;
  }
  .hero-copy {
    grid-column: 1;
    grid-row: 1;
    padding: 104px 0 40px;
    text-align: left;
  }
  .hero .cta,
  .hero .trust {
    justify-content: flex-start;
  }
  .hero .trust {
    margin-left: 0;
  }
  .hero-copy .badge {
    margin-left: 0;
  }
  .hero-video-column {
    transform: none;
  }
  .hero .vwrap {
    width: 100%;
  }
  .hero-video-meta {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (min-width: 1101px) {
  /* Lets the D2 hero use the open side space independently of the navbar
     width while retaining comfortable viewport gutters. */
  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 860px) {
  .hero .stage {
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  .hero-copy {
    display: flex;
    flex-direction: column;
    order: 1;
    padding: 44px 0 56px;
  }
  .hero-first {
    order: 2;
    min-height: 0;
    padding: 24px 0 72px;
  }
  .hero .cta,
  .hero .trust {
    justify-content: center;
  }
  .hero-copy .badge {
    margin-inline: auto;
  }
}
