/* ABS Nexora dedicated homepage */

body.home-route .app-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.home-route .site-header {
  background: rgba(249, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(0, 31, 63, 0.08);
}

/* —— Hero (first viewport) —— */
.nx-hero {
  position: relative;
  min-height: calc(100vh - 4.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f4efe6;
  color: #001f3f;
}

.nx-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 78% 42%, rgba(197, 160, 89, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 70% at 12% 80%, rgba(0, 31, 63, 0.08), transparent 50%),
    linear-gradient(165deg, #f9f7f2 0%, #efe8dc 48%, #e7dfd0 100%);
  z-index: 0;
}

.nx-hero-bg::before {
  content: "";
  position: absolute;
  inset: -10%;
  background-image:
    repeating-linear-gradient(
      -18deg,
      transparent 0,
      transparent 14px,
      rgba(0, 31, 63, 0.03) 14px,
      rgba(0, 31, 63, 0.03) 15px
    );
  animation: nx-drift 28s linear infinite;
  opacity: 0.9;
}

.nx-hero-visual {
  position: absolute;
  right: -4%;
  top: 8%;
  width: min(52vw, 620px);
  height: min(78vh, 640px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.92;
}

.nx-hero-visual svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nx-hero-content {
  position: relative;
  z-index: 2;
  width: min(640px, calc(100% - 3rem));
  margin: 0 auto 0 clamp(1rem, 8vw, 6rem);
  padding: 3.5rem 0 4rem;
  text-align: left;
}

.nx-brand {
  margin: 0 0 1.1rem;
  font-family: "Cinzel", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.6rem, 6.5vw, 4.25rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: #001f3f;
  animation: nx-rise 0.9s ease both;
}

.nx-brand span {
  display: block;
  font-size: 0.38em;
  letter-spacing: 0.28em;
  font-weight: 600;
  color: #9a7a3a;
  margin-top: 0.35rem;
  text-transform: uppercase;
}

.nx-hero-title {
  margin: 0 0 0.85rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 600;
  line-height: 1.25;
  color: #132744;
  max-width: 18ch;
  animation: nx-rise 0.9s ease 0.12s both;
}

.nx-hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.08rem;
  line-height: 1.55;
  color: #4a5568;
  max-width: 34ch;
  animation: nx-rise 0.9s ease 0.22s both;
}

.nx-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  animation: nx-rise 0.9s ease 0.32s both;
}

.nx-cta .btn-nx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 2px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nx-cta .btn-nx:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.nx-cta .btn-nx-primary {
  background: #001f3f;
  color: #f9f7f2;
  border: 1px solid #001f3f;
}

.nx-cta .btn-nx-primary:hover {
  background: #0a2d52;
  color: #fff;
}

.nx-cta .btn-nx-ghost {
  background: transparent;
  color: #001f3f;
  border: 1px solid rgba(0, 31, 63, 0.35);
}

.nx-cta .btn-nx-ghost:hover {
  border-color: #001f3f;
  background: rgba(255, 255, 255, 0.45);
}

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

@keyframes nx-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-40px, 24px, 0);
  }
}

@keyframes nx-orbit {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.nx-orbit-ring {
  transform-origin: 280px 280px;
  animation: nx-orbit 48s linear infinite;
}

.nx-orbit-ring-rev {
  transform-origin: 280px 280px;
  animation: nx-orbit 64s linear infinite reverse;
}

/* —— Sections below hero —— */
.nx-section {
  padding: clamp(3.25rem, 7vw, 5.5rem) clamp(1.25rem, 5vw, 4rem);
}

.nx-section-inner {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.nx-kicker {
  margin: 0 0 0.55rem;
  font-family: "Cinzel", "Cormorant Garamond", Georgia, serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9a7a3a;
}

.nx-section h2 {
  margin: 0 0 0.65rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.85rem, 3.5vw, 2.45rem);
  font-weight: 600;
  color: #001f3f;
  line-height: 1.15;
}

.nx-section-lead {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #5a6570;
  max-width: 42rem;
}

.nx-search-section {
  background: #fffefb;
  border-top: 1px solid rgba(0, 31, 63, 0.08);
  border-bottom: 1px solid rgba(0, 31, 63, 0.08);
}

.nx-search-section .search-bar-unified {
  max-width: 720px;
  margin: 0;
}

.nx-search-section .search-bar-shell {
  border-radius: 4px;
  border-color: rgba(0, 31, 63, 0.15);
  box-shadow: none;
}

.nx-search-section .search-bar-shell:focus-within {
  border-color: #c5a059;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.18);
}

.nx-search-section .search-bar-submit {
  border-radius: 3px;
  background: #001f3f;
}

.nx-search-meta {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: #6b7280;
}

/* —— Edition snapshot (homepage analytics) —— */
.nx-snapshot {
  background:
    linear-gradient(180deg, #f7f2e8 0%, #f1ebe0 55%, #ebe4d7 100%);
  border-top: 1px solid rgba(0, 31, 63, 0.06);
}

.nx-snapshot-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 0.25rem;
}

.nx-snapshot-head .nx-section-lead {
  margin-bottom: 0;
}

.nx-snapshot-all {
  font-size: 0.92rem;
  font-weight: 600;
  color: #001f3f;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border-bottom: 1px solid rgba(0, 31, 63, 0.25);
  padding-bottom: 2px;
}

.nx-snapshot-all:hover {
  color: #9a7a3a;
  border-bottom-color: #c5a059;
  text-decoration: none;
}

.nx-snapshot-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.75rem;
  margin: 1.5rem 0 0.25rem;
  padding: 0.95rem 1.1rem;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid rgba(0, 31, 63, 0.1);
  border-radius: 2px;
}

.nx-snapshot-listing,
.nx-snapshot-years {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin: 0;
}

.nx-snapshot-years-label {
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a7a3a;
}

.nx-listing-pills,
.nx-year-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.nx-listing-pill,
.nx-year-pill {
  appearance: none;
  border: 1px solid rgba(0, 31, 63, 0.2);
  background: #fffefb;
  color: #132744;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.nx-listing-pill:hover,
.nx-year-pill:hover {
  border-color: #001f3f;
  background: #fff;
}

.nx-listing-pill.active,
.nx-year-pill.active {
  background: #001f3f;
  border-color: #001f3f;
  color: #f9f7f2;
  box-shadow: 0 8px 18px -14px rgba(0, 31, 63, 0.55);
}

.nx-snap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.35rem;
}

.nx-snap-loading {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.95rem;
  color: #6b7280;
}

.nx-snap-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(165deg, #fffdf8 0%, #f8f3ea 100%);
  border: 1px solid rgba(0, 31, 63, 0.12);
  border-radius: 2px;
  padding: 1.15rem 1.15rem 0.95rem;
  box-shadow: 0 18px 40px -32px rgba(40, 28, 12, 0.45);
  position: relative;
  overflow: hidden;
}

.nx-snap-col::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #001f3f 0%, #c5a059 55%, #001f3f 100%);
}

.nx-snap-col-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem 0.75rem;
  align-items: start;
  margin: 0.15rem 0 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 31, 63, 0.1);
}

.nx-snap-col-num {
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #c5a059;
  padding-top: 0.28rem;
}

.nx-snap-col-titles {
  min-width: 0;
}

.nx-snap-col-head h3 {
  margin: 0 0 0.2rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.42rem;
  font-weight: 600;
  color: #001f3f;
  line-height: 1.15;
}

.nx-snap-col-caption {
  margin: 0;
  font-size: 0.8rem;
  color: #6b7280;
  font-style: italic;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.35;
}

.nx-snap-col-more {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a7a3a;
  text-decoration: none;
  white-space: nowrap;
  padding-top: 0.3rem;
}

.nx-snap-col-more:hover {
  color: #001f3f;
  text-decoration: underline;
}

.nx-snap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.nx-snap-list li {
  display: grid;
  grid-template-columns: 1.55rem minmax(0, 1fr) auto;
  gap: 0.5rem 0.6rem;
  align-items: start;
  padding: 0.58rem 0.15rem;
  border-bottom: 1px solid rgba(0, 31, 63, 0.08);
}

.nx-snap-list li:last-child {
  border-bottom: none;
}

.nx-snap-list li:hover {
  background: rgba(197, 160, 89, 0.06);
}

.nx-snap-rank {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  color: #9a7a3a;
  padding-top: 0.22rem;
}

.nx-snap-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.4rem;
  min-width: 0;
  text-decoration: none;
  color: #132744;
}

.nx-snap-main:hover {
  color: #001f3f;
  text-decoration: none;
}

.nx-snap-main:hover .nx-snap-name {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nx-snap-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.25;
  display: block;
  width: 100%;
  color: #001f3f;
}

.nx-snap-sub {
  display: block;
  width: 100%;
  font-size: 0.76rem;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nx-snap-stat {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  font-weight: 500;
  color: #001f3f;
  padding-top: 0.2rem;
  white-space: nowrap;
}

.nx-snap-empty {
  grid-column: 1 / -1;
  color: #6b7280;
  font-size: 0.9rem;
}

.nx-snap-col-foot {
  margin-top: 0.55rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(0, 31, 63, 0.1);
}

.nx-snap-col-foot a {
  font-size: 0.84rem;
  font-weight: 600;
  color: #001f3f;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nx-snap-col-foot a:hover {
  color: #9a7a3a;
  text-decoration: underline;
}

@media (max-width: 1100px) and (min-width: 901px) {
  .nx-snap-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.nx-pathways {
  background: #f9f7f2;
}

.nx-pathway-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(0, 31, 63, 0.12);
}

.nx-pathway-list li {
  border-bottom: 1px solid rgba(0, 31, 63, 0.12);
}

.nx-pathway-list a {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.35rem 0.15rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, padding-left 0.2s ease;
}

.nx-pathway-list a:hover {
  text-decoration: none;
  background: rgba(197, 160, 89, 0.08);
  padding-left: 0.5rem;
}

.nx-pathway-num {
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: #c5a059;
  font-weight: 600;
}

.nx-pathway-list h3 {
  margin: 0 0 0.25rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: #001f3f;
}

.nx-pathway-list p {
  margin: 0;
  font-size: 0.95rem;
  color: #5a6570;
  line-height: 1.45;
  max-width: 36rem;
}

.nx-pathway-go {
  font-size: 0.85rem;
  font-weight: 600;
  color: #001f3f;
  letter-spacing: 0.04em;
  align-self: center;
}

.nx-coverage {
  background: #001f3f;
  color: #f4efe6;
}

.nx-coverage .nx-kicker {
  color: #c5a059;
}

.nx-coverage h2 {
  color: #f9f7f2;
}

.nx-coverage .nx-section-lead {
  color: rgba(244, 239, 230, 0.72);
}

.nx-coverage-figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nx-coverage-figures li {
  border-top: 1px solid rgba(197, 160, 89, 0.35);
  padding-top: 1rem;
}

.nx-coverage-figures strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: #e8d5a8;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.nx-coverage-figures span {
  font-size: 0.92rem;
  color: rgba(244, 239, 230, 0.7);
  line-height: 1.4;
}

.nx-verify {
  background: #fffefb;
}

.nx-verify-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: end;
}

.nx-verify-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* —— Methodology —— */
.nx-method {
  background: #fffefb;
  border-top: 1px solid rgba(0, 31, 63, 0.06);
}

.nx-method-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 1.5rem;
}

.nx-method-steps li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 1rem 1.05rem;
  background: linear-gradient(165deg, #f9f7f2 0%, #f3eee4 100%);
  border: 1px solid rgba(0, 31, 63, 0.1);
  border-radius: 2px;
}

.nx-method-num {
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #c5a059;
  padding-top: 0.2rem;
}

.nx-method-steps h3 {
  margin: 0 0 0.35rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.28rem;
  font-weight: 600;
  color: #001f3f;
}

.nx-method-steps p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #5a6570;
}

.nx-method-foot {
  margin: 1.5rem 0 0;
  font-size: 0.92rem;
  color: #6b7280;
}

.nx-method-foot a {
  color: #001f3f;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 31, 63, 0.25);
}

.nx-method-foot a:hover {
  color: #9a7a3a;
  border-bottom-color: #c5a059;
}

.nx-method-sep {
  margin: 0 0.65rem;
  color: #cfc5b3;
}

/* —— Featured scholars —— */
.nx-featured {
  background: #f9f7f2;
  border-top: 1px solid rgba(0, 31, 63, 0.06);
}

.nx-featured-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 0.25rem;
}

.nx-featured-head .nx-section-lead {
  margin-bottom: 0;
}

.nx-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.nx-featured-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.15rem 1.15rem 1rem;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(165deg, #fffdf8 0%, #f7f1e6 100%);
  border: 1px solid rgba(0, 31, 63, 0.12);
  border-radius: 2px;
  box-shadow: 0 16px 36px -30px rgba(40, 28, 12, 0.5);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.nx-featured-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: rgba(197, 160, 89, 0.55);
  box-shadow: 0 20px 40px -28px rgba(40, 28, 12, 0.55);
}

.nx-featured-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.nx-featured-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: #001f3f;
  color: #f4efe6;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nx-featured-views {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a7a3a;
}

.nx-featured-views-muted {
  color: #8a8278;
}

.nx-featured-name {
  margin: 0 0 0.35rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.2;
  color: #001f3f;
}

.nx-featured-inst {
  margin: 0 0 0.55rem;
  font-size: 0.86rem;
  color: #5a6570;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nx-featured-meta {
  margin: 0 0 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.35;
}

.nx-featured-rank {
  margin: auto 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(0, 31, 63, 0.1);
  font-size: 0.82rem;
  color: #5a6570;
}

.nx-featured-rank strong {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 500;
  color: #001f3f;
}

/* —— Certificate spotlight —— */
.nx-cert-spotlight {
  background: #001f3f;
  color: #f4efe6;
}

.nx-cert-spotlight .nx-kicker {
  color: #c5a059;
}

.nx-cert-spotlight h2 {
  color: #f9f7f2;
}

.nx-cert-spotlight .nx-section-lead {
  color: rgba(244, 239, 230, 0.78);
}

.nx-cert-spotlight-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.nx-cert-points {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.nx-cert-points li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.15rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(244, 239, 230, 0.82);
  border-bottom: 1px solid rgba(249, 247, 242, 0.1);
}

.nx-cert-points li:last-child {
  border-bottom: none;
}

.nx-cert-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #c5a059;
}

.nx-cert-spotlight .btn-nx-primary {
  background: #c5a059;
  border-color: #c5a059;
  color: #001f3f;
}

.nx-cert-spotlight .btn-nx-primary:hover {
  background: #d4b46e;
  border-color: #d4b46e;
  color: #001f3f;
}

.nx-cert-spotlight .btn-nx-ghost {
  color: #f9f7f2;
  border-color: rgba(249, 247, 242, 0.35);
}

.nx-cert-spotlight .btn-nx-ghost:hover {
  background: rgba(249, 247, 242, 0.08);
  border-color: #f9f7f2;
}

.nx-cert-preview {
  display: flex;
  justify-content: center;
}

.nx-cert-frame {
  width: min(100%, 420px);
  aspect-ratio: 297 / 210;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(197, 160, 89, 0.18), transparent 60%),
    linear-gradient(165deg, #f9f7f2 0%, #efe6d4 100%);
  border: 1px solid rgba(197, 160, 89, 0.45);
  box-shadow:
    0 0 0 6px rgba(0, 31, 63, 0.35),
    0 28px 50px -28px rgba(0, 0, 0, 0.55);
  position: relative;
}

.nx-cert-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(197, 160, 89, 0.35);
  pointer-events: none;
}

.nx-cert-frame-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem 1.5rem;
  color: #001f3f;
}

.nx-cert-frame-kicker {
  margin: 0 0 0.35rem;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9a7a3a;
  font-weight: 600;
}

.nx-cert-frame-title {
  margin: 0 0 0.25rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600;
  color: #001f3f;
}

.nx-cert-frame-line {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-style: italic;
  color: #6b7280;
}

.nx-cert-frame-name {
  margin: 0 0 0.4rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  color: #001f3f;
  border-bottom: 1px solid rgba(197, 160, 89, 0.45);
  padding-bottom: 0.2rem;
}

.nx-cert-frame-meta {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #6b7280;
}

@media (max-width: 900px) {
  .nx-hero-content {
    margin: 0 auto;
    text-align: center;
    padding-top: 2.75rem;
  }

  .nx-hero-title,
  .nx-hero-lead {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .nx-cta {
    justify-content: center;
  }

  .nx-hero-visual {
    opacity: 0.28;
    right: -18%;
    width: 80vw;
  }

  .nx-pathway-list a {
    grid-template-columns: 3rem 1fr;
  }

  .nx-pathway-go {
    display: none;
  }

  .nx-snap-grid {
    grid-template-columns: 1fr;
  }

  .nx-snap-col-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .nx-snap-col-more {
    grid-column: 2;
  }

  .nx-snapshot-controls {
    padding: 0.85rem 0.9rem;
  }

  .nx-coverage-figures {
    grid-template-columns: 1fr;
  }

  .nx-verify-row,
  .nx-cert-spotlight-grid,
  .nx-method-steps,
  .nx-featured-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .nx-featured-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nx-method-steps {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nx-brand,
  .nx-hero-title,
  .nx-hero-lead,
  .nx-cta,
  .nx-hero-bg::before,
  .nx-orbit-ring,
  .nx-orbit-ring-rev {
    animation: none !important;
  }
}
