@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
  --nx-ink: #0a1f2e;
  --nx-ink-soft: #15374b;
  --nx-gold: #c7a145;
  --nx-gold-light: #efd58a;
  --nx-paper: #f6f1e8;
  --nx-mist: #e9f0ee;
  --nx-line: rgba(10, 31, 46, 0.13);
}

html {
  scroll-behavior: smooth;
}

body.nextera-polished {
  background: var(--nx-paper);
  color: var(--nx-ink);
  font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
}

body.nextera-polished h1,
body.nextera-polished h2,
body.nextera-polished h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: -0.025em;
}

body.nextera-polished header.nx-header {
  background: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid rgba(10, 31, 46, 0.09) !important;
  box-shadow: 0 12px 36px rgba(10, 31, 46, 0.07) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.nextera-polished header.nx-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--nx-gold) 50%, transparent 95%);
  content: "";
  opacity: 0.5;
}

.nx-header-comrem {
  display: inline-flex;
  align-items: center;
  margin-right: 0.8rem;
  padding: 0.58rem 1rem;
  border: 1px solid rgba(199, 161, 69, 0.42);
  border-radius: 999px;
  background: #fff8e7;
  color: var(--nx-ink) !important;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.nx-header-platform {
  margin-right: 0.5rem;
  color: var(--nx-ink) !important;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.nx-platform-actions {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 2rem;
  align-items: center;
  padding: 2rem clamp(1.25rem, 7vw, 8rem);
  background: #fff;
  border-bottom: 1px solid var(--nx-line);
}

.nx-platform-actions p,
.nx-inline-platform-cta span {
  margin: 0 0 0.25rem;
  color: #8c6b20;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nx-platform-actions h2,
.nx-inline-platform-cta h2 { margin: 0; color: var(--nx-ink); font-size: clamp(1.8rem, 3vw, 2.8rem); }
.nx-platform-actions__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
.nx-platform-actions__links a { padding: 0.85rem 1rem; border: 1px solid var(--nx-line); border-radius: 999px; color: var(--nx-ink) !important; font-weight: 700; text-align: center; text-decoration: none; }
.nx-platform-actions__links a:hover { border-color: var(--nx-gold); background: var(--nx-gold-light); transform: translateY(-2px); }

.nx-inline-platform-cta {
  display: flex; gap: 2rem; align-items: center; justify-content: space-between;
  margin: 0; padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 7vw, 8rem);
  background: linear-gradient(110deg, #efd58a, #f9eac1);
}
.nx-inline-platform-cta p { max-width: 680px; color: rgba(10,31,46,.68); }
.nx-inline-platform-cta > a { flex: 0 0 auto; padding: .9rem 1.2rem; border-radius: 999px; background: var(--nx-ink); color: white !important; font-weight: 700; text-decoration: none; }
.nx-contact-consent { display: flex; gap: .65rem; align-items: flex-start; color: rgba(10,31,46,.72); font-size: .82rem; line-height: 1.45; }
.nx-contact-consent input { margin-top: .2rem; }
.nx-contact-status { margin: .75rem 0 0; color: var(--nx-ink); font-weight: 600; }

.nx-header-comrem:hover {
  border-color: var(--nx-gold);
  background: var(--nx-gold-light);
  transform: translateY(-1px);
}

.nx-mobile-comrem {
  display: none;
  margin-left: auto;
  margin-right: 0.35rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: var(--nx-gold-light);
  color: var(--nx-ink) !important;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

body.nextera-polished main > div > section {
  isolation: isolate;
}

body.nextera-polished .nx-hero {
  min-height: min(820px, calc(100svh - 3.5rem)) !important;
  background:
    linear-gradient(90deg, rgba(4, 19, 29, 0.94) 0%, rgba(6, 27, 39, 0.78) 52%, rgba(7, 29, 40, 0.38) 100%),
    url("/media/zambia-victoria-falls.jpg") center 46% / cover no-repeat !important;
}

body.nextera-polished .nx-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 96px 96px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

body.nextera-polished .nx-hero h1 {
  max-width: none;
  font-size: clamp(3.4rem, 7vw, 6.8rem) !important;
  font-weight: 600 !important;
  line-height: 0.96 !important;
  text-wrap: balance;
}

body.nextera-polished .nx-hero > div {
  width: 100%;
  max-width: 1240px;
}

body.nextera-polished .nx-hero h1 > span:last-child {
  display: block;
  min-height: 1.15em;
  font-size: clamp(1.15rem, 5.4vw, 5rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: nowrap;
  white-space: nowrap;
}

body.nextera-polished .nx-hero p {
  max-width: 720px;
  line-height: 1.75;
}

body.nextera-polished .nx-about {
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.98), rgba(246, 241, 232, 0.94)),
    var(--nx-paper) !important;
}

body.nextera-polished .nx-about h2,
body.nextera-polished .nx-services h2,
body.nextera-polished .nx-cta h2 {
  font-size: clamp(2.8rem, 5vw, 5.2rem) !important;
  font-weight: 600 !important;
  line-height: 0.98 !important;
}

body.nextera-polished .nx-model {
  background:
    radial-gradient(circle at 90% 10%, rgba(239, 213, 138, 0.14), transparent 30%),
    linear-gradient(145deg, #0a1f2e, #143a4d) !important;
}

body.nextera-polished .nx-model h2 {
  font-size: clamp(2.8rem, 5vw, 5rem) !important;
  line-height: 1 !important;
}

body.nextera-polished .nx-services {
  background:
    radial-gradient(circle at 8% 15%, rgba(199, 161, 69, 0.09), transparent 22%),
    #fff !important;
}

body.nextera-polished .nx-cta {
  background:
    radial-gradient(circle at 15% 30%, rgba(199, 161, 69, 0.22), transparent 25%),
    linear-gradient(120deg, #122f40, #071923) !important;
}

body.nextera-polished .nx-cta h2 {
  color: #fff !important;
  text-shadow: 0 3px 30px rgba(0, 0, 0, 0.28);
}

body.nextera-polished .nx-cta p {
  color: rgba(255, 255, 255, 0.82) !important;
}

body.nextera-polished .nx-cta span[class*="text-primary"] {
  color: rgba(255, 255, 255, 0.72) !important;
}

body.nextera-polished .nx-cta span[class*="uppercase"] {
  color: #efd58a !important;
}

.nx-comrem-banner {
  position: relative;
  z-index: 3;
  padding: 1.25rem clamp(1.25rem, 7vw, 8rem);
  border-top: 1px solid rgba(239, 213, 138, 0.35);
  border-bottom: 1px solid rgba(239, 213, 138, 0.35);
  background: linear-gradient(105deg, #c7a145, #efd58a 48%, #f8e7b4);
  color: var(--nx-ink);
}

.nx-comrem-banner__inner {
  display: grid;
  grid-template-columns: minmax(190px, 0.55fr) minmax(300px, 1.3fr) auto;
  gap: 2rem;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
}

.nx-comrem-banner__label {
  display: block;
  margin-bottom: 0.18rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.nx-comrem-banner h2 {
  margin: 0;
  color: var(--nx-ink);
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  font-weight: 700;
  line-height: 1;
}

.nx-comrem-banner p {
  margin: 0;
  max-width: 680px;
  color: rgba(10, 31, 46, 0.76);
  font-size: 0.93rem;
  line-height: 1.55;
}

.nx-comrem-banner a {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  padding: 0.78rem 1.15rem;
  border-radius: 999px;
  background: var(--nx-ink);
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(10, 31, 46, 0.18);
}

.nx-comrem-banner a:hover {
  background: #fff;
  color: var(--nx-ink) !important;
  transform: translateY(-2px);
}

body.nextera-polished button,
body.nextera-polished a {
  transition-duration: 260ms;
}

body.nextera-polished main a:hover,
body.nextera-polished main button:hover {
  transform: translateY(-2px);
}

.nx-comrem {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 7vw, 8rem);
  background:
    radial-gradient(circle at 76% 22%, rgba(71, 132, 139, 0.28), transparent 25%),
    radial-gradient(circle at 18% 85%, rgba(199, 161, 69, 0.17), transparent 28%),
    linear-gradient(135deg, #061722 0%, #0d2a3b 58%, #123945 100%);
  color: #fff;
  scroll-margin-top: 4rem;
}

.nx-comrem::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 30px 30px;
  content: "";
  opacity: 0.18;
  mask-image: linear-gradient(90deg, transparent, black, transparent);
}

.nx-comrem__inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
}

.nx-comrem__eyebrow {
  margin: 0 0 1rem;
  color: var(--nx-gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.nx-comrem__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
}

.nx-comrem h2 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 600;
  line-height: 0.95;
}

.nx-comrem__lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  line-height: 1.75;
}

.nx-comrem__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(3rem, 6vw, 5.5rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.13);
}

.nx-comrem__card {
  min-height: 270px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: rgba(7, 25, 35, 0.88);
}

.nx-comrem__number {
  color: var(--nx-gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.nx-comrem__card h3 {
  margin: 3rem 0 0.9rem;
  color: #fff;
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  font-weight: 600;
  line-height: 1;
}

.nx-comrem__card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.7;
}

.nx-comrem__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
}

.nx-comrem__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.nx-comrem__contact-link {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
}

.nx-comrem__contact-link:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

.nx-comrem__sectors {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nx-comrem__link {
  display: inline-flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.95rem 1.45rem;
  border-radius: 999px;
  background: var(--nx-gold-light);
  color: var(--nx-ink) !important;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(199, 161, 69, 0.18);
}

.nx-comrem__link:hover {
  background: #fff;
  transform: translateY(-3px) !important;
}

.nx-footer-product {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.12);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
}

.nx-footer-product a {
  color: var(--nx-gold-light);
  font-weight: 700;
  text-decoration: none;
}

.nx-visual-story {
  padding: clamp(4.5rem, 8vw, 8rem) clamp(1.25rem, 6vw, 6rem);
  overflow: hidden;
  background: #f4efe6;
}

.nx-visual-story__heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1.45fr);
  gap: 2rem;
  align-items: end;
  max-width: 1240px;
  margin: 0 auto clamp(2.25rem, 5vw, 4rem);
}

.nx-visual-story__heading p {
  margin: 0 0 0.6rem;
  color: #8b681c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nx-visual-story__heading h2 {
  max-width: 780px;
  margin: 0;
  color: var(--nx-ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.94;
}

.nx-visual-story__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.85fr;
  grid-template-rows: repeat(2, minmax(260px, 34vw));
  gap: 1rem;
  max-width: 1240px;
  margin: 0 auto;
}

.nx-editorial-photo {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #183746;
}

.nx-editorial-photo--feature {
  grid-row: 1 / span 2;
}

.nx-editorial-photo:nth-child(2) {
  grid-column: 2 / span 2;
}

.nx-editorial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 500ms ease;
}

.nx-editorial-photo:hover img {
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.025);
}

.nx-editorial-photo::after {
  position: absolute;
  inset: 34% 0 0;
  background: linear-gradient(to bottom, transparent, rgba(4, 18, 27, 0.86));
  content: "";
  pointer-events: none;
}

.nx-editorial-photo figcaption {
  position: absolute;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  left: clamp(1rem, 2.5vw, 2rem);
  z-index: 1;
  display: grid;
  gap: 0.28rem;
  color: #fff;
}

.nx-editorial-photo figcaption span {
  color: #f0ce79;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nx-editorial-photo figcaption strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.55rem, 2.5vw, 2.7rem);
  font-weight: 600;
  line-height: 1;
}

.nx-editorial-photo figcaption a {
  width: fit-content;
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.66rem;
  text-decoration: none;
}

.nx-editorial-photo figcaption a:hover {
  color: #fff;
  text-decoration: underline;
}

.nx-page-hero-photo {
  position: relative;
  isolation: isolate;
  min-height: clamp(430px, 62vh, 680px) !important;
  overflow: hidden;
  color: #fff !important;
  background-image:
    linear-gradient(90deg, rgba(5, 20, 30, 0.94) 0%, rgba(7, 28, 40, 0.82) 48%, rgba(8, 31, 43, 0.48) 100%),
    var(--nx-page-hero-image) !important;
  background-position: center, var(--nx-page-hero-position, center) !important;
  background-size: cover !important;
}

.nx-page-hero-photo::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 90px 90px;
  content: "";
  pointer-events: none;
  mask-image: linear-gradient(90deg, black, transparent 72%);
}

.nx-page-hero-photo > *:not(.nx-page-hero-credit) {
  position: relative;
  z-index: 1;
}

.nx-page-hero-photo h1,
.nx-page-hero-photo h2,
.nx-page-hero-photo h3,
.nx-page-hero-photo p {
  color: #fff !important;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.24);
}

.nx-page-hero-photo p {
  color: rgba(255, 255, 255, 0.82) !important;
}

.nx-page-hero-photo--work .nx-page-hero-copy {
  width: min(100%, 780px);
  max-width: 780px;
  margin-left: auto;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-left: 3px solid #e7bd50;
  background: linear-gradient(135deg, rgba(5, 22, 32, 0.82), rgba(8, 31, 43, 0.68));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nx-page-hero-photo--work .nx-page-hero-copy p {
  color: #fff !important;
  font-weight: 500;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.nx-page-hero-credit {
  position: absolute;
  right: clamp(1.25rem, 5vw, 5rem);
  bottom: 1.2rem;
  z-index: 2;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nx-page-hero-credit:hover {
  color: #fff;
  text-decoration: underline;
}

.nx-page-visual {
  max-width: 1240px;
  margin: clamp(1.5rem, 4vw, 3.5rem) auto;
  padding: 0 clamp(1.25rem, 5vw, 3.5rem);
}

.nx-editorial-photo--page {
  height: clamp(320px, 52vw, 620px);
  border-radius: 2px;
}

.nx-editorial-photo--page figcaption strong {
  font-size: clamp(2rem, 4vw, 4.2rem);
}

.nx-reveal {
  opacity: 0;
  filter: blur(8px);
  transform: translate3d(0, 52px, 0) scale(0.985);
  transition:
    opacity 820ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 820ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 820ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nx-reveal[data-reveal-direction="down"] {
  transform: translate3d(0, -52px, 0) scale(0.985);
}

.nx-reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
}

@media (max-width: 800px) {
  .nx-platform-actions { grid-template-columns: 1fr; }
  .nx-platform-actions__links { grid-template-columns: 1fr; }
  .nx-inline-platform-cta { align-items: flex-start; flex-direction: column; }
  .nx-header-platform { display: none; }
  .nx-visual-story__heading { grid-template-columns: 1fr; gap: 0.75rem; }
  .nx-visual-story__grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .nx-editorial-photo,
  .nx-editorial-photo--feature,
  .nx-editorial-photo:nth-child(2) { grid-column: auto; grid-row: auto; min-height: 380px; }
  .nx-page-visual { margin-top: 1rem; padding: 0 1.25rem; }
  .nx-editorial-photo--page { height: 440px; min-height: 0; }
  .nx-page-hero-photo {
    min-height: 500px !important;
    background-image:
      linear-gradient(180deg, rgba(5, 20, 30, 0.68), rgba(5, 20, 30, 0.8)),
      var(--nx-page-hero-image) !important;
    background-position: center, var(--nx-page-hero-position, center) !important;
  }
  .nx-page-hero-credit { right: auto; bottom: 0.85rem; left: 1.25rem; }
  .nx-page-hero-photo--work .nx-page-hero-copy {
    position: absolute !important;
    right: 1.25rem;
    bottom: 3.5rem;
    left: 1.25rem;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 1.4rem 1.25rem;
    border-left-width: 2px;
    background: rgba(5, 22, 32, 0.78);
  }
  body.nextera-polished .nx-hero h1 {
    font-size: clamp(3.1rem, 15vw, 5rem) !important;
  }

  .nx-mobile-comrem {
    display: inline-flex;
  }

  .nx-comrem-banner__inner {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .nx-comrem-banner {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .nx-comrem-banner a {
    width: fit-content;
    margin-top: 0.25rem;
  }

  .nx-comrem__intro,
  .nx-comrem__grid {
    grid-template-columns: 1fr;
  }

  .nx-comrem__card {
    min-height: auto;
  }

  .nx-comrem__card h3 {
    margin-top: 1.8rem;
  }

  .nx-comrem__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .nx-comrem__links {
    align-items: flex-start;
    flex-direction: column;
  }

  .nx-footer-product {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .nx-reveal,
  .nx-reveal.is-visible {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}
