/* ==========================================================================
   HERO — elegant editorial layout (all pages; home has extra elements)
   ========================================================================== */
:root {
  --hero-bg: #0d1a27;
  --ivory: #f4efe6;
  --ivory-dim: rgba(244, 239, 230, .68);
  --gold: #c9a86a;
  --hairline: rgba(244, 239, 230, .16);
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
}

.hero-row__hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(201, 168, 106, .22), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(201, 168, 106, .12), transparent 60%),
    var(--hero-bg);
  color: var(--ivory);
}
/* fine grain */
.hero-row__hero::before {
  content: "";
  position: absolute; inset: 0;
  opacity: .07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* vertical hairlines (editorial grid) */
.hero-row__hero::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--hairline), var(--hairline)) calc(50% - 600px) 0 / 1px 100% no-repeat,
    linear-gradient(var(--hairline), var(--hairline)) calc(50% + 600px) 0 / 1px 100% no-repeat;
}

.hero-row__banner {
  position: relative;
  z-index: 1;
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: 80px;
  width: min(1200px, 100% - 64px);
  height: auto !important;
  margin: 0 auto;
  padding: 96px 0 110px;
  overflow: visible !important;
}

/* ---------- text ---------- */
.hero-row__banner .hero-row__banner-text {
  grid-column: 1; grid-row: 1;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start !important;
  width: 100% !important;
  left: auto !important;
  padding: 0 !important;
  text-align: left !important;
}
.nx-hero__kicker,
.hero-row__banner .hero-row__banner-text::before {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
}
.nx-hero__kicker i { font-family: var(--font-serif); font-style: italic; letter-spacing: .05em; text-transform: none; font-size: 15px; }
/* inner pages get a small kicker automatically */
.hero-row__banner .hero-row__banner-text::before {
  content: "Admiral Recruitment";
  display: flex;
  align-items: center;
  gap: 14px;
}
.nx-hero .hero-row__banner-text::before { content: none; }

.hero-row__banner .hero-row__banner-text .hero-row__banner-title {
  width: 100% !important;
  margin: 26px 0 28px;
  font-family: var(--font-serif) !important;
  font-weight: 300 !important;
  font-size: clamp(2.6rem, 5.4vw, 5rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.025em;
  color: var(--ivory) !important;
  text-transform: none;
}
/* inner-page titles are uppercase in the content: render them as refined small caps */
.hero-row__hero.no-search .hero-row__banner-title,
.hero-row__hero:not(.nx-hero-home) .hero-row__banner-title {
  font-size: clamp(2.2rem, 4.4vw, 4rem) !important;
  text-transform: lowercase !important;
}
.hero-row__hero:not(.nx-hero-home) .hero-row__banner-title::first-letter { text-transform: uppercase; }
.hero-row__banner .hero-row__banner-title em {
  font-style: italic;
  font-weight: 300;
  color: #e3cf9f;
}
.hero-row__banner .hero-row__banner-text .hero-row__banner-subtitle {
  max-width: 540px;
  margin: 0;
  padding-left: 22px;
  border-left: 1px solid var(--gold);
  font-family: var(--font-body);
  font-size: 16.5px !important;
  line-height: 1.8 !important;
  font-weight: 400 !important;
  color: var(--ivory-dim) !important;
  width: auto !important;
}
.hero-row__hero:not(.nx-hero-home) .hero-row__banner-subtitle {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* actions */
.nx-hero__actions { display: flex; align-items: center; gap: 34px; margin-top: 44px; }
.nx-hero__primary {
  display: inline-flex;
  align-items: center;
  padding: 17px 34px;
  border-radius: 999px;
  background: var(--ivory);
  color: var(--hero-bg) !important;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  text-decoration: none;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.nx-hero__primary:hover { background: var(--gold); transform: translateY(-2px); }
.nx-hero__link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--ivory) !important;
  text-decoration: none;
  position: relative;
  padding-bottom: 6px;
}
.nx-hero__link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ivory);
  transform-origin: left;
  transition: transform .35s ease;
}
.nx-hero__link:hover::after { transform: scaleX(.35); }
.nx-hero__link span { display: inline-block; transition: transform .3s; }
.nx-hero__link:hover span { transform: translateX(4px); }

/* stats */
.nx-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  margin: 64px 0 0;
  padding: 0;
}
.nx-hero__stats div { margin: 0; padding: 0 40px; border-left: 1px solid var(--hairline); }
.nx-hero__stats div:first-child { padding-left: 0; border-left: 0; }
.nx-hero__stats dt {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 44px;
  line-height: 1;
  color: var(--ivory);
}
.nx-hero__stats dt sup { font-size: .45em; color: var(--gold); vertical-align: top; position: relative; top: .3em; margin-left: 2px; }
.nx-hero__stats dd {
  margin: 10px 0 0;
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

/* ---------- media ---------- */
.hero-row__banner > .hero-row__banner-image,
.nx-hero__media { grid-column: 2; grid-row: 1; justify-self: end; }
.nx-hero__media { position: relative; width: 100%; max-width: 460px; }
.nx-hero__arch,
.hero-row__banner > .hero-row__banner-image {
  border-radius: 999px 999px 18px 18px;
}
.nx-hero__arch {
  position: relative;
  aspect-ratio: 4 / 5.2;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 50px 90px -45px rgba(0, 0, 0, .9);
}
/* thin offset frame */
.nx-hero__media::before,
.hero-row__banner::after {
  content: "";
  position: absolute;
  border: 1px solid var(--gold);
  border-radius: 999px 999px 18px 18px;
  pointer-events: none;
}
.nx-hero__media::before { inset: -18px 18px 18px -18px; z-index: 0; }
.hero-row__banner .hero-row__banner-video,
.nx-hero__arch .hero-row__banner-video {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover;
  filter: saturate(.85) contrast(1.05) !important;
  border-radius: 0;
}
.hero-row__banner > .hero-row__banner-image {
  position: relative !important;
  top: auto !important; left: auto !important;
  width: 100% !important;
  max-width: 440px;
  height: auto !important;
  aspect-ratio: 4 / 5;
  min-height: 0 !important;
  object-fit: cover;
  object-position: 50% 35% !important;
  filter: saturate(.85) contrast(1.05) !important;
  -webkit-filter: saturate(.85) contrast(1.05) !important;
  box-shadow: 0 50px 90px -45px rgba(0, 0, 0, .9);
  z-index: 1;
}
/* frame for inner pages: sits behind the image in the right column */
.hero-row__banner::after {
  right: 18px;
  top: calc(50% - (min(440px, 37vw) * 1.25) / 2 - 18px);
  width: min(440px, 37vw);
  aspect-ratio: 4 / 5;
  z-index: 0;
}
.nx-hero::after { content: none; }

/* floating note */
.nx-hero__note {
  position: absolute;
  z-index: 3;
  left: -54px; bottom: 54px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-radius: 16px;
  background: rgba(13, 26, 39, .62);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--hairline);
  color: var(--ivory-dim);
  font-size: 12px;
  letter-spacing: .06em;
}
.nx-hero__note strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0;
  color: var(--ivory);
}
.nx-pulse {
  flex: 0 0 9px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #e3cf9f;
  box-shadow: 0 0 0 0 rgba(227, 207, 159, .7);
  animation: nx-pulse 2.2s infinite;
}
@keyframes nx-pulse {
  70% { box-shadow: 0 0 0 12px rgba(227, 207, 159, 0); }
  100% { box-shadow: 0 0 0 0 rgba(227, 207, 159, 0); }
}

/* rotating seal */
.nx-hero__seal {
  position: absolute;
  z-index: 3;
  right: -46px; top: 64px;
  width: 116px; height: 116px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--hero-bg);
  border: 1px solid var(--hairline);
}
.nx-hero__seal svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  animation: nx-spin 22s linear infinite;
}
.nx-hero__seal text {
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  fill: var(--gold);
}
.nx-hero__seal b {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 34px;
  color: var(--ivory);
}
@keyframes nx-spin { to { transform: rotate(360deg); } }

/* scroll cue */
.nx-hero__scroll {
  position: absolute;
  left: 0; bottom: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ivory-dim) !important;
  text-decoration: none;
}
.nx-hero__scroll span {
  position: relative;
  width: 48px; height: 1px;
  background: var(--hairline);
  overflow: hidden;
}
.nx-hero__scroll span::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--gold);
  animation: nx-line 2.4s ease-in-out infinite;
}
@keyframes nx-line { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* entrance */
.nx-hero__copy > *, .nx-hero__media { animation: nx-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.nx-hero__copy > :nth-child(2) { animation-delay: .08s; }
.nx-hero__copy > :nth-child(3) { animation-delay: .16s; }
.nx-hero__copy > :nth-child(4) { animation-delay: .24s; }
.nx-hero__copy > :nth-child(5) { animation-delay: .32s; }
.nx-hero__media { animation-delay: .2s; }
@keyframes nx-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .nx-hero__copy > *, .nx-hero__media, .nx-hero__seal svg, .nx-pulse, .nx-hero__scroll span::after { animation: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero-row__banner { gap: 56px; }
  .nx-hero__seal { right: -20px; }
  .nx-hero__note { left: -24px; }
}
@media (max-width: 900px) {
  .hero-row__hero::after { display: none; }
  .hero-row__banner { grid-template-columns: 1fr; gap: 56px; padding: 64px 0 90px; width: calc(100% - 40px); }
  .hero-row__banner > .hero-row__banner-image,
  .nx-hero__media { grid-column: 1; grid-row: 2; justify-self: center; }
  .hero-row__banner::after { display: none; }
  .hero-row__banner > .hero-row__banner-image { max-width: 380px; outline: 1px solid var(--gold); outline-offset: 12px; }
  .nx-hero__media { max-width: 380px; margin-left: 18px; }
  .nx-hero__note { left: -18px; bottom: 30px; }
  .nx-hero__seal { right: -14px; top: 30px; width: 96px; height: 96px; }
  .nx-hero__scroll { display: none; }
}
@media (max-width: 560px) {
  .hero-row__banner .hero-row__banner-text .hero-row__banner-title { font-size: 2.6rem !important; }
  .nx-hero__actions { flex-wrap: wrap; gap: 22px; }
  .nx-hero__stats div { padding: 0 18px; }
  .nx-hero__stats dt { font-size: 32px; }
  .nx-hero__stats dd { font-size: 10px; letter-spacing: .12em; }
  .nx-hero__seal { display: none; }
}

/* polish */
.hero-row__banner > .hero-row__banner-image { border-radius: 999px 999px 18px 18px !important; }
.hero-row__hero::after {
  background:
    linear-gradient(var(--hairline), var(--hairline)) calc(50% - 650px) 0 / 1px 100% no-repeat,
    linear-gradient(var(--hairline), var(--hairline)) calc(50% + 650px) 0 / 1px 100% no-repeat;
}
.nx-hero__stats dd { white-space: nowrap; }
.hero-row__banner::after { right: 36px; top: calc(50% - (min(440px, 37vw) * 1.25) / 2 - 18px); }
@media (max-width: 1340px) { .hero-row__hero::after { display: none; } }
.hero-row__banner .hero-row__banner-text { min-width: 0; }
@media (max-width: 560px) {
  .nx-hero__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .nx-hero__stats div { padding: 0 12px; }
  .nx-hero__stats dd { white-space: normal; line-height: 1.5; }
  .hero-row__banner .hero-row__banner-text .hero-row__banner-subtitle { padding-left: 16px; font-size: 15.5px !important; }
}

/* ---------- compact height ---------- */
.hero-row__banner { padding: 60px 0 72px; gap: 64px; }
.hero-row__banner .hero-row__banner-text .hero-row__banner-title {
  margin: 18px 0 20px;
  font-size: clamp(2.4rem, 4.6vw, 4.3rem) !important;
}
.hero-row__hero:not(.nx-hero-home) .hero-row__banner-title { font-size: clamp(2rem, 3.8vw, 3.4rem) !important; }
.nx-hero__actions { margin-top: 32px; }
.nx-hero__stats { margin-top: 42px; }
.nx-hero__stats dt { font-size: 38px; }
.nx-hero__media { max-width: 400px; }
.nx-hero__arch { aspect-ratio: 4 / 4.6; }
.hero-row__banner > .hero-row__banner-image { max-width: 380px; aspect-ratio: 4 / 4.4; }
.hero-row__banner::after {
  width: min(380px, 33vw);
  aspect-ratio: 4 / 4.4;
  top: calc(50% - (min(380px, 33vw) * 1.1) / 2 - 18px);
}
.nx-hero__scroll { bottom: 22px; }
.nx-hero__seal { top: 40px; width: 104px; height: 104px; }
@media (max-width: 900px) {
  .hero-row__banner { padding: 44px 0 60px; gap: 40px; }
  .nx-hero__media, .hero-row__banner > .hero-row__banner-image { max-width: 320px; }
}
@media (max-width: 560px) {
  .nx-hero__media { max-width: calc(100% - 36px); }
}

/* mobile overflow fixes (intro block, slider dots) */
html, body { overflow-x: clip; }
@media (max-width: 767px) {
  .resources-text-row { width: auto !important; box-sizing: border-box; }
  .carousel-banner-wrapper .slick-dots { width: 100%; left: 0; right: 0; }
}
