:root {
  --nyvm-blue: #2440b8;
  --nyvm-blue-bright: #5d84ff;
  --nyvm-orange: #ff8a22;
  --nyvm-ink: #061126;
  --nyvm-panel: rgba(7, 24, 56, .84);
  --nyvm-line: rgba(113, 158, 255, .24);
  --nyvm-text: #f5f8ff;
  --nyvm-muted: #b8c7e7;
}

.nyvm-reveal {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(34px) scale(.985);
  transition: opacity .85s cubic-bezier(.22,.8,.22,1), transform .9s cubic-bezier(.22,.8,.22,1), filter .9s ease;
}

.nyvm-reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

.nyvm-spotlight {
  --nyvm-x: 50%;
  --nyvm-y: 50%;
  position: relative;
  isolation: isolate;
}

.nyvm-spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(480px circle at var(--nyvm-x) var(--nyvm-y), rgba(83,132,255,.16), transparent 42%), radial-gradient(360px circle at calc(var(--nyvm-x) + 8%) calc(var(--nyvm-y) + 8%), rgba(255,138,34,.12), transparent 38%);
  opacity: .9;
}

.nyvm-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(112,157,255,.28);
  border-radius: 999px;
  color: #86bcff;
  background: rgba(68,112,235,.08);
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: 11px;
  font-weight: 900;
}

.nyvm-section-heading {
  max-width: 830px;
  margin-bottom: 24px;
}

.nyvm-section-heading h2,
.nyvm-feature-copy h2,
.nyvm-inner-copy h2,
.nyvm-proof-copy h2 {
  margin: 12px 0 10px;
  color: var(--nyvm-text);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: -.035em;
  background: linear-gradient(90deg, #fff 0%, #bcd5ff 48%, #ffd0a1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nyvm-section-heading p,
.nyvm-feature-copy p,
.nyvm-inner-copy p,
.nyvm-proof-copy p {
  margin: 0;
  color: var(--nyvm-muted);
  font-size: 16px;
  line-height: 1.72;
}

/* Hero image layer */
.ny-v3-hero {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate;
}

.ny-v3-hero > .ny-v3-hero-copy,
.ny-v3-hero > .ny-v3-command-card {
  position: relative;
  z-index: 3;
}

.nyvm-hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.nyvm-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.035);
  filter: saturate(.92) contrast(1.03);
  transition: transform 8s ease-out;
}

.ny-v3-hero:hover .nyvm-hero-image {
  transform: scale(1.085);
}

.nyvm-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2,8,22,.96) 0%, rgba(2,8,22,.84) 43%, rgba(2,8,22,.48) 72%, rgba(2,8,22,.62) 100%),
    linear-gradient(180deg, rgba(7,20,47,.08), rgba(2,8,22,.82));
}

.nyvm-hero-sweep {
  position: absolute;
  inset: -30%;
  background: linear-gradient(110deg, transparent 35%, rgba(69,117,255,.11) 47%, rgba(255,138,34,.14) 52%, transparent 63%);
  transform: translateX(-35%) rotate(3deg);
  animation: nyvm-sweep 9s ease-in-out infinite;
}

@keyframes nyvm-sweep {
  0%, 18% { transform: translateX(-42%) rotate(3deg); opacity: .25; }
  50% { transform: translateX(28%) rotate(3deg); opacity: 1; }
  82%, 100% { transform: translateX(44%) rotate(3deg); opacity: .2; }
}

/* Interactive media button */
.nyvm-media,
.nyvm-media-button {
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #0a1937;
  cursor: zoom-in;
  box-shadow: 0 22px 56px rgba(0,0,0,.26);
  border: 1px solid rgba(108,153,255,.22);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), border-radius .65s ease, box-shadow .45s ease, border-color .45s ease;
}

figure.nyvm-media {
  cursor: default;
}

.nyvm-media:hover,
.nyvm-media:focus-visible,
.nyvm-media-button:hover,
.nyvm-media-button:focus-visible {
  transform: translateY(-5px) scale(1.012);
  border-radius: 32px 16px 32px 16px;
  border-color: rgba(255,138,34,.48);
  box-shadow: 0 30px 74px rgba(0,0,0,.34);
  outline: none;
}

.nyvm-media img,
.nyvm-media-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.25s cubic-bezier(.2,.8,.2,1), filter .6s ease;
}

.nyvm-media:hover img,
.nyvm-media:focus-visible img,
.nyvm-media-button:hover img,
.nyvm-media-button:focus-visible img {
  transform: scale(1.055);
  filter: saturate(1.06) contrast(1.02);
}

.nyvm-media > span,
.nyvm-media-button > span {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(2,8,22,.76);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(-8px);
  transition: .3s ease;
}

.nyvm-media:hover > span,
.nyvm-media:focus-visible > span,
.nyvm-media-button:hover > span,
.nyvm-media-button:focus-visible > span {
  opacity: 1;
  transform: none;
}

/* Proof strip */
.nyvm-proof-strip {
  width: min(100%, 1240px);
  margin: 28px auto 54px;
  padding: clamp(18px, 2.7vw, 30px);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(10,30,70,.9), rgba(4,13,32,.96));
  border: 1px solid var(--nyvm-line);
  display: grid;
  grid-template-columns: .9fr 1.5fr;
  gap: 26px;
  align-items: center;
  overflow: hidden;
}

.nyvm-proof-copy span {
  color: #ffad61;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.nyvm-proof-copy h2 {
  font-size: clamp(26px, 3vw, 40px);
}

.nyvm-proof-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}

.nyvm-proof-image {
  height: 190px;
  border-radius: 18px;
}

.nyvm-proof-image:nth-child(2) {
  transform: translateY(14px);
}

/* Shared feature sections */
.nyvm-feature,
.nyvm-outreach,
.nyvm-community,
.nyvm-impact-gallery,
.nyvm-inner-feature,
.nyvm-bursary-mosaic,
.nyvm-program-media,
.nyvm-report-media {
  width: min(100%, 1240px);
  margin: 58px auto;
}

.nyvm-feature {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  padding: clamp(22px, 3vw, 38px);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(10,31,72,.88), rgba(4,12,29,.96));
  border: 1px solid var(--nyvm-line);
}

.nyvm-feature-media {
  position: relative;
}

.nyvm-feature-media::before {
  content: "";
  position: absolute;
  inset: 8% -6% -8% 8%;
  border-radius: 38px;
  background: linear-gradient(135deg, rgba(36,64,184,.28), rgba(255,138,34,.22));
  filter: blur(30px);
  z-index: -1;
}

.nyvm-feature-button {
  height: clamp(340px, 42vw, 520px);
}

.nyvm-feature-copy {
  padding: 10px 6px;
}

.nyvm-mini-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.nyvm-mini-proof b {
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 12px;
  color: #d7e4ff;
  border: 1px solid rgba(111,157,255,.26);
  background: rgba(255,255,255,.035);
}

/* Outreach */
.nyvm-outreach-grid {
  display: grid;
  grid-template-columns: 1.55fr .75fr;
  grid-template-rows: repeat(2, minmax(180px, 1fr));
  gap: 14px;
}

.nyvm-outreach-main {
  grid-row: 1 / span 2;
  min-height: 520px;
}

.nyvm-outreach-small {
  min-height: 250px;
}

/* Impact rail */
.nyvm-impact-gallery {
  overflow: hidden;
}

.nyvm-impact-rail {
  overflow: hidden;
  padding: 8px 0 18px;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.nyvm-impact-track {
  display: flex;
  width: max-content;
  gap: 16px;
  animation: nyvm-rail 46s linear infinite;
}

.nyvm-impact-rail:hover .nyvm-impact-track,
.nyvm-impact-rail:focus-within .nyvm-impact-track {
  animation-play-state: paused;
}

@keyframes nyvm-rail {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 8px)); }
}

.nyvm-impact-card {
  width: min(76vw, 360px);
  flex: 0 0 auto;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(10,31,72,.94), rgba(4,13,32,.98));
  border: 1px solid var(--nyvm-line);
  box-shadow: 0 18px 44px rgba(0,0,0,.24);
}

.nyvm-impact-image {
  height: 230px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.nyvm-impact-card > div {
  padding: 16px 18px 19px;
}

.nyvm-impact-card strong {
  display: block;
  color: #fff;
  font-size: 18px;
  margin-bottom: 6px;
}

.nyvm-impact-card span {
  display: block;
  color: var(--nyvm-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Community */
.nyvm-community {
  padding: clamp(22px, 3vw, 36px);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(10,31,72,.84), rgba(4,13,32,.96));
  border: 1px solid var(--nyvm-line);
}

.nyvm-community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}

.nyvm-community-wide {
  grid-column: 1 / -1;
  min-height: 430px;
}

.nyvm-community-card {
  min-height: 310px;
}

/* Inner pages */
.nyvm-inner-feature {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--nyvm-line);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(10,31,72,.88), rgba(4,13,32,.96));
}

.nyvm-inner-feature-reverse .nyvm-inner-collage { order: 2; }
.nyvm-inner-feature-reverse .nyvm-inner-copy { order: 1; }

.nyvm-inner-collage {
  display: grid;
  grid-template-columns: 1fr .62fr;
  align-items: end;
  gap: 14px;
}

.nyvm-inner-primary {
  height: 420px;
}

.nyvm-inner-secondary {
  height: 270px;
  margin-bottom: -24px;
}

/* Bursary mosaic */
.nyvm-bursary-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  grid-template-rows: repeat(2, 250px) 310px;
  gap: 14px;
}

.nyvm-bursary-large { grid-row: 1 / span 2; }
.nyvm-bursary-wide { grid-column: 1 / -1; }

/* Program page */
.nyvm-program-grid,
.nyvm-report-grid {
  display: grid;
  grid-template-columns: 1.45fr .75fr;
  grid-template-rows: repeat(2, minmax(210px,1fr));
  gap: 14px;
}

.nyvm-program-main,
.nyvm-report-wide {
  grid-row: 1 / span 2;
  min-height: 500px;
}

.nyvm-program-side,
.nyvm-report-card {
  min-height: 240px;
}

/* Lightbox */
.nyvm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(1,5,14,.92);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.nyvm-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.nyvm-lightbox img {
  max-width: min(94vw, 1600px);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 32px 90px rgba(0,0,0,.58);
  transform: scale(.96);
  filter: blur(8px);
  transition: .38s cubic-bezier(.2,.8,.2,1);
}

.nyvm-lightbox.is-open img {
  transform: none;
  filter: blur(0);
}

.nyvm-lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(12,25,54,.82);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nyvm-proof-strip,
  .nyvm-feature,
  .nyvm-inner-feature {
    grid-template-columns: 1fr;
  }

  .nyvm-proof-images {
    grid-template-columns: repeat(3, minmax(150px,1fr));
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .nyvm-proof-image:nth-child(2) { transform: none; }

  .nyvm-outreach-grid,
  .nyvm-program-grid,
  .nyvm-report-grid,
  .nyvm-bursary-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .nyvm-outreach-main,
  .nyvm-program-main,
  .nyvm-report-wide,
  .nyvm-bursary-large,
  .nyvm-bursary-wide {
    grid-column: auto;
    grid-row: auto;
    min-height: 320px;
  }

  .nyvm-community-wide { min-height: 330px; }
  .nyvm-community-card { min-height: 260px; }

  .nyvm-inner-feature-reverse .nyvm-inner-collage,
  .nyvm-inner-feature-reverse .nyvm-inner-copy { order: initial; }

  .nyvm-inner-primary { height: 330px; }
  .nyvm-inner-secondary { height: 220px; }
}

@media (max-width: 640px) {
  .nyvm-feature,
  .nyvm-outreach,
  .nyvm-community,
  .nyvm-impact-gallery,
  .nyvm-inner-feature,
  .nyvm-bursary-mosaic,
  .nyvm-program-media,
  .nyvm-report-media,
  .nyvm-proof-strip {
    margin-top: 34px;
    margin-bottom: 34px;
  }

  .nyvm-proof-images,
  .nyvm-community-grid,
  .nyvm-inner-collage {
    grid-template-columns: 1fr;
  }

  .nyvm-proof-image { height: 230px; }
  .nyvm-community-wide,
  .nyvm-community-card { grid-column: auto; min-height: 270px; }
  .nyvm-inner-primary,
  .nyvm-inner-secondary { height: 280px; margin: 0; }

  .nyvm-hero-shade {
    background: linear-gradient(180deg, rgba(2,8,22,.88), rgba(2,8,22,.94));
  }

  .nyvm-impact-track { animation-duration: 58s; }
}

@media (prefers-reduced-motion: reduce) {
  .nyvm-reveal {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }

  .nyvm-hero-image,
  .nyvm-media img,
  .nyvm-media-button img,
  .nyvm-lightbox img {
    transform: none !important;
    transition: none !important;
  }

  .nyvm-hero-sweep,
  .nyvm-impact-track {
    animation: none !important;
  }
}
