/* ==========================================================================
   EFCL HOMEPAGE V2 (below the warehouse hero)
   Design: "EFCL Industrial Red" (Novamira design, efcl-industrial-red)
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wdth-italic.woff2") format("woff2-variations"),
       url("fonts/archivo-latin-wdth-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}

.nx {
  --bg: #0e0c0b;
  --surface: #171413;
  --surface-2: #211d1b;
  --ink: #f4f1ec;
  --muted: #a8a19b;
  --line: #2e2926;
  --accent: #ed1c24;
  --accent-deep: #b60911;
  --bone: #eeeae4;
  --bone-ink: #1a1715;
  --bone-body: #3b3532;
  --bone-muted: #6e6560;
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 24px;
  --gutter: clamp(20px, 4vw, 48px);
  --sec: clamp(96px, 12vw, 180px);
  --font: "Archivo", Arial, Helvetica, sans-serif;
  --bleed: calc((100vw - min(1280px, 100vw)) / 2 + var(--gutter));

  position: relative;
  z-index: 5;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(16px, 1.1vw, 18px);
  font-stretch: 100%;
  line-height: 1.6;
  overflow-x: clip;
  color-scheme: dark;
}

.nx :where(h1, h2, h3, p, ul, ol, dl, dd, dt, figure, figcaption, blockquote) {
  margin: 0;
  padding: 0;
  border: 0;
}

.nx :where(ul, ol) {
  list-style: none;
}

.nx :where(img) {
  display: block;
  max-width: 100%;
}

.nx :where(a) {
  color: inherit;
  text-decoration: none;
}

.nx :where(button) {
  font: inherit;
}

.nx section {
  position: relative;
}

.nx-wrap {
  width: min(1280px, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */

.nx-display {
  font-weight: 800;
  font-stretch: 118%;
  font-size: clamp(42px, 6.2vw, 100px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  max-width: 14ch;
}

.nx-h2 {
  font-weight: 800;
  font-stretch: 115%;
  font-size: clamp(32px, 4.3vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.nx-h3 {
  font-weight: 700;
  font-stretch: 108%;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.nx em {
  font-style: italic;
  color: var(--accent);
  display: inline-block;
  padding-bottom: 0.08em;
}

.nx-lead {
  font-size: clamp(18px, 1.35vw, 21px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 50ch;
}

.nx-body {
  max-width: 62ch;
  color: #d7d1ca;
}

.nx-muted {
  color: var(--muted);
}

.nx-eyebrow {
  font-weight: 700;
  font-stretch: 112%;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.nx-h2 + .nx-body,
.nx-h2 + .nx-lead {
  margin-top: 24px;
}

/* ---------- Buttons and links ---------- */

.nx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 32px;
  border-radius: 999px;
  font-weight: 700;
  font-stretch: 110%;
  font-size: 19px;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nx-btn:active {
  transform: translateY(1px);
}

.nx-btn--primary {
  background: var(--accent);
  color: #faf8f5;
}

.nx-btn--primary:hover {
  background: var(--accent-deep);
}

.nx-btn--ghost {
  border: 1.5px solid rgba(244, 241, 236, 0.5);
  color: var(--ink);
}

.nx-btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(244, 241, 236, 0.06);
}

.nx-btn--dark {
  background: var(--bone-ink);
  color: var(--bone);
  margin-top: 28px;
}

.nx-btn--dark:hover {
  background: var(--accent-deep);
}

.nx-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding-bottom: 4px;
  border-bottom: 2px solid currentColor;
  font-weight: 700;
  font-stretch: 110%;
  color: var(--accent);
}

.nx-link::after {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2.4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2.4'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.25s ease;
}

.nx-link:hover::after {
  transform: translateX(5px);
}

.nx :focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

/* ---------- Light (bone) sections ---------- */

.nx-light {
  background: var(--bone);
  color: var(--bone-ink);
  color-scheme: light;
}

.nx-light .nx-body {
  color: var(--bone-body);
}

.nx-light .nx-muted,
.nx-light .nx-lead {
  color: var(--bone-muted);
}

.nx-light .nx-link,
.nx-light .nx-eyebrow {
  color: var(--accent-deep);
}

/* ---------- Checklist ---------- */

.nx-checks {
  margin-top: 36px;
  border-top: 1px solid rgba(26, 23, 21, 0.16);
}

.nx-checks li {
  position: relative;
  padding: 18px 0 18px 46px;
  border-bottom: 1px solid rgba(26, 23, 21, 0.16);
  font-weight: 600;
  font-stretch: 104%;
  line-height: 1.35;
}

.nx-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}

.nx-checks--dark {
  border-top-color: var(--line);
}

.nx-checks--dark li {
  border-bottom-color: var(--line);
  color: var(--ink);
}

/* ==========================================================================
   INTRO
   ========================================================================== */

.nx-intro {
  padding: var(--sec) 0 calc(var(--sec) * 0.65);
}

.nx-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.nx-intro .nx-display {
  font-size: clamp(40px, 4.6vw, 76px);
  max-width: 15ch;
}

.nx-intro__copy .nx-lead {
  margin-top: 28px;
}

.nx-intro__media {
  position: relative;
  height: clamp(440px, 66vh, 700px);
  margin-right: calc(var(--bleed) * -1);
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}

.nx-intro__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 50%;
}

/* ==========================================================================
   CAPACITY STATS
   ========================================================================== */

.nx-stats {
  padding: calc(var(--sec) * 0.55) 0 var(--sec);
}

.nx-stats__title {
  max-width: 20ch;
}

.nx-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line);
}

.nx-stat {
  padding: clamp(28px, 3.5vw, 48px) clamp(20px, 3vw, 44px) clamp(28px, 3.5vw, 48px) 0;
  border-bottom: 1px solid var(--line);
}

.nx-stat:nth-child(even) {
  padding-left: clamp(20px, 3vw, 44px);
  border-left: 1px solid var(--line);
}

.nx-stat__value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.22em;
  font-weight: 800;
  font-stretch: 122%;
  font-size: clamp(48px, 7vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.nx-stat__value small {
  font-size: 0.26em;
  font-weight: 700;
  font-stretch: 105%;
  letter-spacing: 0;
  color: var(--accent);
}

.nx-stat dd {
  margin-top: 16px;
  color: var(--muted);
  max-width: 28ch;
}

/* ==========================================================================
   SERVICES BENTO
   ========================================================================== */

.nx-services {
  padding: var(--sec) 0 calc(var(--sec) + 120px);
  background: var(--surface);
}

.nx-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 13vw, 200px);
  grid-auto-flow: dense;
  gap: 14px;
  margin-top: clamp(48px, 6vw, 72px);
}

.nx-tile {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(18px, 1.6vw, 24px);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-2);
  color: var(--ink);
  transition: transform 0.35s cubic-bezier(0.22, 0.78, 0.25, 1);
}

.nx-tile:hover {
  transform: translateY(-4px);
}

.nx-tile--xl {
  grid-column: span 2;
  grid-row: span 2;
}

.nx-tile--tall {
  grid-row: span 2;
}

.nx-tile--wide {
  grid-column: span 2;
}

.nx-tile__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.22, 0.78, 0.25, 1);
}

.nx-tile:hover .nx-tile__img {
  transform: scale(1.07);
}

.nx-tile--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(14, 12, 11, 0.88) 0%, rgba(14, 12, 11, 0.15) 55%, rgba(14, 12, 11, 0) 100%);
}

.nx-tile__label {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  font-stretch: 108%;
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.15;
}

.nx-tile__label::after {
  content: "";
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17L17 7M9 7h8v8' fill='none' stroke='white' stroke-width='2.4'/%3E%3C/svg%3E") center / 16px no-repeat;
  transform: scale(0.85);
  transition: transform 0.3s ease;
}

.nx-tile:hover .nx-tile__label::after {
  transform: scale(1) rotate(45deg);
}

.nx-tile--logo {
  background: var(--bone);
  color: var(--bone-ink);
}

.nx-tile__logo {
  position: absolute;
  top: clamp(18px, 1.6vw, 24px);
  left: clamp(18px, 1.6vw, 24px);
  max-width: 62%;
  max-height: 46px;
  object-fit: contain;
  object-position: left center;
}

.nx-tile__logo--square {
  max-height: 54px;
  border-radius: 10px;
}

.nx-tile--accent {
  background: var(--accent);
  color: #faf8f5;
}

.nx-tile--accent .nx-tile__label::after {
  background-color: var(--bone-ink);
}

.nx-tile--plain {
  background: var(--bg);
  border: 1px solid var(--line);
}

.nx-tile__big {
  position: absolute;
  top: clamp(14px, 1.4vw, 22px);
  left: clamp(18px, 1.6vw, 24px);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(54px, 6vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.nx-tile--plain .nx-tile__big {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--muted);
}

.nx-tile--accent .nx-tile__big {
  color: rgba(255, 255, 255, 0.28);
}

/* ==========================================================================
   WHAT WE DO
   ========================================================================== */

.nx-what {
  padding: 0 0 var(--sec);
}

.nx-what__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.nx-what__media {
  position: relative;
  z-index: 2;
  height: clamp(460px, 74vh, 760px);
  margin-top: -120px;
  margin-left: calc(var(--bleed) * -1);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  overflow: hidden;
  background: var(--surface);
}

.nx-what__img {
  width: 100%;
  height: 118%;
  object-fit: cover;
}

.nx-what__copy {
  padding-top: clamp(40px, 5vw, 80px);
}

/* ==========================================================================
   ORDER JOURNEY (pinned horizontal)
   ========================================================================== */

.nx-journey {
  padding-top: var(--sec);
  background: var(--bg);
}

.nx-journey__pin {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--bleed);
  scrollbar-width: none;
}

.nx-journey__pin::-webkit-scrollbar {
  display: none;
}

.nx-journey__track {
  display: flex;
  align-items: stretch;
  gap: clamp(20px, 2vw, 32px);
  width: max-content;
  padding: 0 var(--bleed) var(--sec);
}

.nx-panel {
  flex: none;
  width: min(540px, 84vw);
  scroll-snap-align: start;
}

.nx-panel--intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  width: min(560px, 88vw);
  padding-right: clamp(0px, 3vw, 48px);
}

.nx-panel--card {
  display: flex;
  flex-direction: column;
  padding-bottom: 36px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}

.nx-panel__media {
  height: clamp(260px, 44vh, 440px);
  overflow: hidden;
}

.nx-panel__img {
  width: 116%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}

.nx-panel__num {
  display: block;
  margin: 30px 34px 0;
  font-weight: 800;
  font-stretch: 125%;
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
}

.nx-panel--card .nx-h3 {
  margin: 14px 34px 0;
}

.nx-panel--card .nx-body {
  margin: 14px 34px 0;
  color: var(--muted);
}

/* ==========================================================================
   FILM
   ========================================================================== */

.nx-film {
  padding: 0 0 var(--sec);
}

.nx-film__stage {
  margin-top: clamp(48px, 6vw, 72px);
  padding-inline: var(--gutter);
}

.nx-film__frame {
  position: relative;
  width: 100%;
  max-width: 1600px;
  aspect-ratio: 16 / 9;
  max-height: 88vh;
  margin-inline: auto;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg);
  will-change: transform;
}

.nx-film__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62);
}

.nx-film__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 76px;
  padding: 0 34px 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #faf8f5;
  font-weight: 700;
  font-stretch: 110%;
  font-size: 19px;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, background-color 0.2s ease;
}

.nx-film__play svg {
  width: 50px;
  height: 50px;
  padding: 13px;
  border-radius: 50%;
  background: #faf8f5;
  color: var(--accent);
}

.nx-film__play:hover {
  background: var(--accent-deep);
  transform: translate(-50%, -50%) scale(1.04);
}

.nx-film__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */

.nx-steps {
  padding: var(--sec) 0;
  background: var(--surface);
}

.nx-steps__grid {
  --steps-gap: clamp(40px, 6vw, 96px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--steps-gap);
  margin-top: clamp(48px, 6vw, 80px);
}

.nx-steps__visual {
  position: sticky;
  top: 12vh;
  align-self: start;
  height: 76vh;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg);
}

.nx-steps__frames {
  position: relative;
  height: 100%;
}

.nx-steps__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.8s ease, transform 1.4s cubic-bezier(0.22, 0.78, 0.25, 1);
}

.nx-steps__img.is-active {
  opacity: 1;
  transform: scale(1);
}

.nx-steps__list {
  position: relative;
  padding-left: 56px;
}

.nx-step {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  padding: 7vh 0;
  opacity: 0.32;
  transition: opacity 0.45s ease;
}

.nx-step.is-active {
  opacity: 1;
}

.nx-step__n {
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(36px, 3.6vw, 56px);
  line-height: 1;
  color: var(--accent);
}

.nx-step p {
  margin-top: 12px;
  max-width: 42ch;
  color: var(--muted);
}

.nx-steps__rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% + var(--steps-gap) / 2 + 10px);
  width: 2px;
  background: var(--line);
}

.nx-steps__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform-origin: top;
}

/* ==========================================================================
   MARQUEES (platforms, brands)
   ========================================================================== */

.nx-marquee {
  overflow: hidden;
  margin-top: clamp(48px, 6vw, 72px);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 7%, black 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 7%, black 93%, transparent);
}

.nx-marquee + .nx-marquee {
  margin-top: 14px;
}

.nx-marquee__track {
  display: flex;
  width: max-content;
  animation: nx-marquee 46s linear infinite;
}

.nx-marquee--reverse .nx-marquee__track {
  animation-direction: reverse;
}

.nx-marquee:hover .nx-marquee__track {
  animation-play-state: paused;
}

.nx-marquee__group {
  display: flex;
  gap: 14px;
  padding-right: 14px;
}

.nx-marquee__item {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(150px, 14vw, 210px);
  height: clamp(84px, 7vw, 104px);
  padding: 18px 22px;
  border-radius: var(--r-md);
  background: #faf8f5;
}

.nx-marquee__item img {
  max-width: 100%;
  max-height: 54px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.nx-marquee__item:hover img {
  filter: none;
  opacity: 1;
}

@keyframes nx-marquee {
  to {
    transform: translateX(-50%);
  }
}

.nx-platforms {
  padding: var(--sec) 0;
}

.nx-platforms__head .nx-body {
  margin-top: 24px;
}

.nx-brands {
  padding: var(--sec) 0 calc(var(--sec) * 0.8);
}

.nx-brands__head .nx-body {
  margin-top: 20px;
}

.nx-brands .nx-marquee__item {
  background: var(--bone);
}

/* ==========================================================================
   WHY EFCL (stacked cards)
   ========================================================================== */

.nx-why {
  padding: var(--sec) 0;
}

.nx-why__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.nx-why__head {
  position: sticky;
  top: 14vh;
}

.nx-why__head .nx-body {
  margin-top: 24px;
}

.nx-stack {
  display: grid;
  gap: 28px;
}

.nx-card {
  position: sticky;
  top: calc(14vh + var(--i, 0) * 16px);
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(300px, 48vh, 460px);
  padding: clamp(28px, 3vw, 46px);
  border-radius: var(--r-lg);
  overflow: hidden;
  transform-origin: 50% 0;
  box-shadow: 0 -24px 48px -28px rgba(0, 0, 0, 0.7);
}

.nx-card:nth-child(1) { --i: 0; }
.nx-card:nth-child(2) { --i: 1; }
.nx-card:nth-child(3) { --i: 2; }
.nx-card:nth-child(4) { --i: 3; }
.nx-card:nth-child(5) { --i: 4; }
.nx-card:nth-child(6) { --i: 5; }

.nx-card__n {
  position: absolute;
  top: clamp(22px, 2.6vw, 38px);
  left: clamp(28px, 3vw, 46px);
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(56px, 6vw, 96px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.nx-card .nx-h3 {
  font-size: clamp(26px, 2.4vw, 38px);
  font-stretch: 112%;
}

.nx-card p {
  margin-top: 12px;
  max-width: 44ch;
}

.nx-card--surface {
  background: var(--surface);
}

.nx-card--surface p,
.nx-card--surface2 p {
  color: var(--muted);
}

.nx-card--surface2 {
  background: var(--surface-2);
}

.nx-card--accent {
  background: var(--accent);
  color: #faf8f5;
}

.nx-card--accent .nx-card__n {
  color: rgba(255, 255, 255, 0.35);
}

.nx-card--bone {
  background: var(--bone);
  color: var(--bone-ink);
}

.nx-card--bone p {
  color: var(--bone-body);
}

.nx-card--bone .nx-card__n {
  color: var(--accent-deep);
}

.nx-card--photo {
  color: var(--ink);
}

.nx-card__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nx-card--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(14, 12, 11, 0.92) 0%, rgba(14, 12, 11, 0.35) 55%, rgba(14, 12, 11, 0.2) 100%);
}

.nx-card--photo p {
  color: #e2dcd5;
}

/* ==========================================================================
   MORE FROM EFCL (index)
   ========================================================================== */

.nx-more {
  padding: var(--sec) 0;
  border-top: 1px solid var(--line);
}

.nx-more__intro {
  margin-top: 24px;
}

.nx-index {
  margin-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--line);
}

.nx-index__link {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 44px;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(24px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--line);
}

.nx-index__link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s cubic-bezier(0.22, 0.78, 0.25, 1);
}

.nx-index__link:hover::before,
.nx-index__link:focus-visible::before {
  transform: scaleX(1);
}

.nx-index__thumb {
  display: none;
}

.nx-index__title {
  font-weight: 800;
  font-stretch: 115%;
  font-size: clamp(22px, 2.5vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  transition: transform 0.4s cubic-bezier(0.22, 0.78, 0.25, 1), color 0.25s ease;
}

.nx-index__link:hover .nx-index__title {
  transform: translateX(14px);
  color: var(--accent);
}

.nx-index__desc {
  color: var(--muted);
  max-width: 46ch;
}

.nx-index__arrow svg {
  display: block;
  width: 32px;
  height: 32px;
  transition: transform 0.35s ease;
}

.nx-index__link:hover .nx-index__arrow svg {
  transform: rotate(-45deg);
  color: var(--accent);
}

.nx-index__float {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  width: 320px;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.22, 0.78, 0.25, 1);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}

.nx-index__float.is-on {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.nx-index__float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   COURIERS
   ========================================================================== */

.nx-couriers {
  padding: var(--sec) 0;
}

.nx-couriers__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.nx-couriers__copy .nx-body + .nx-body {
  margin-top: 16px;
}

.nx-logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.nx-logos li {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  padding: 16%;
  border-radius: var(--r-md);
  background: #faf8f5;
  box-shadow: 0 1px 0 rgba(26, 23, 21, 0.08), 0 14px 30px -24px rgba(26, 23, 21, 0.4);
  transition: transform 0.3s ease;
}

.nx-logos li:hover {
  transform: translateY(-4px);
}

.nx-logos img {
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.nx-logos li:hover img {
  filter: none;
  opacity: 1;
}

/* ==========================================================================
   REVIEWS + COMMUNITY
   ========================================================================== */

.nx-reviews {
  padding: calc(var(--sec) * 0.6) 0 calc(var(--sec) * 0.3);
}

.nx-community {
  padding: calc(var(--sec) * 0.5) 0 var(--sec);
}

.nx-community__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.nx-community__img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  transform: rotate(-2deg);
  box-shadow: 0 30px 60px -30px rgba(26, 23, 21, 0.5);
}

.nx-community__media figcaption {
  margin-top: 22px;
  max-width: 56ch;
  font-size: 14px;
  line-height: 1.5;
  color: var(--bone-muted);
}

.nx-community__copy .nx-body + .nx-body {
  margin-top: 16px;
}

/* ==========================================================================
   QUOTE
   ========================================================================== */

.nx-quote {
  padding: var(--sec) 0;
  overflow: hidden;
}

.nx-quote__bg {
  position: absolute;
  inset: -12% 0;
  z-index: 0;
}

.nx-quote__bgimg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nx-quote__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 12, 11, 0.97) 0%, rgba(14, 12, 11, 0.9) 46%, rgba(14, 12, 11, 0.62) 100%);
}

.nx-quote__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 580px);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.nx-quote__copy .nx-lead {
  margin-top: 28px;
  color: #d7d1ca;
}

.nx-quote__panel {
  padding: clamp(20px, 3vw, 40px);
  border-radius: var(--r-lg);
  background: #faf8f5;
  color: var(--bone-ink);
  color-scheme: light;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.85);
}

/* ==========================================================================
   MOTION GATES (no-JS and reduced motion stay fully visible)
   ========================================================================== */

.nx-js .nx [data-nx-reveal],
.nx-js .nx [data-nx-stagger] > * {
  opacity: 0;
  transform: translateY(36px);
}

.nx-js .nx .nx-split {
  visibility: hidden;
}

.nx-js .nx .nx-split.is-split {
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .nx-js .nx [data-nx-reveal],
  .nx-js .nx [data-nx-stagger] > * {
    opacity: 1;
    transform: none;
  }

  .nx-js .nx .nx-split {
    visibility: visible;
  }

  .nx-marquee__track {
    animation: none;
  }

  .nx-tile,
  .nx-tile__img,
  .nx-steps__img,
  .nx-index__title {
    transition: none;
  }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1023px) {
  .nx-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 160px;
  }

  .nx-tile--tall {
    grid-row: span 2;
  }

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

  .nx-why__head {
    position: static;
  }

  .nx-logos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nx-couriers__grid,
  .nx-community__grid,
  .nx-quote__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 899px) {
  .nx-journey__pin {
    overflow: visible;
  }

  .nx-journey__track {
    flex-direction: column;
    width: auto;
    padding: 0 var(--gutter) var(--sec);
  }

  .nx-panel,
  .nx-panel--intro {
    width: 100%;
    padding-right: 0;
  }

  .nx-panel__img {
    width: 100%;
  }

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

  .nx-steps__visual {
    position: relative;
    top: 0;
    height: 300px;
  }

  .nx-steps__list {
    padding-left: 34px;
  }

  .nx-steps__rail {
    left: 10px;
    top: 340px;
  }

  .nx-step {
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 28px 0;
    opacity: 1;
  }
}

@media (max-width: 760px) {
  .nx-intro__grid,
  .nx-what__grid {
    grid-template-columns: 1fr;
  }

  .nx-intro__media {
    height: 380px;
    margin-right: calc(var(--gutter) * -1);
  }

  .nx-what {
    padding-top: calc(var(--sec) * 0.6);
  }

  .nx-what__media {
    height: 380px;
    margin-top: 0;
    margin-left: calc(var(--gutter) * -1);
  }

  .nx-what__copy {
    padding-top: 0;
  }

  .nx-services {
    padding-bottom: var(--sec);
  }

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

  .nx-stat:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .nx-bento {
    gap: 10px;
    grid-auto-rows: 132px;
  }

  .nx-tile__label {
    font-size: 15px;
  }

  .nx-tile__label::after {
    width: 28px;
    height: 28px;
  }

  .nx-index__link {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 6px 16px;
  }

  .nx-index__thumb {
    display: block;
    grid-row: span 2;
    width: 64px;
    height: 64px;
    border-radius: var(--r-sm);
    overflow: hidden;
  }

  .nx-index__thumbimg {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .nx-index__arrow {
    display: none;
  }

  .nx-index__float {
    display: none;
  }

  .nx-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nx-actions .nx-btn {
    flex: 1 1 100%;
  }

  .nx-card {
    top: calc(84px + var(--i, 0) * 12px);
  }

  .nx-film__play {
    height: 60px;
    padding: 0 22px 0 8px;
    font-size: 16px;
  }

  .nx-film__play svg {
    width: 44px;
    height: 44px;
    padding: 11px;
  }
}

/* Elementor's kit resets every <button>; keep the film button on-brand. */
.nx button.nx-film__play {
  background: var(--accent) !important;
  color: #faf8f5 !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  padding: 0 34px 0 14px !important;
  min-height: 0 !important;
}

.nx button.nx-film__play:hover {
  background: var(--accent-deep) !important;
}

@media (max-width: 760px) {
  .nx button.nx-film__play {
    padding: 0 22px 0 8px !important;
  }
}

@media (max-width: 760px) {
  .nx-bento {
    grid-auto-rows: 148px;
  }

  .nx-tile__logo {
    max-height: 30px;
    max-width: 66%;
  }

  .nx-tile__logo--square {
    max-height: 34px;
  }

  .nx-tile__big {
    font-size: 46px;
  }
}

/* Desktop pinned journey: centre the panels in the viewport while pinned. */
@media (min-width: 900px) {
  .nx-js .nx-journey__pin {
    display: flex;
    align-items: center;
    height: 100vh;
  }

  .nx-js .nx-journey__track {
    padding-bottom: 0;
  }

  .nx-js .nx-journey {
    padding-bottom: calc(var(--sec) * 0.4);
  }
}

/* Phones: service tiles keep label and arrow inside the tile. */
@media (max-width: 760px) {
  .nx-tile {
    padding: 14px;
  }

  .nx-tile__label {
    gap: 8px;
    font-size: 14px;
    letter-spacing: 0;
  }

  .nx-tile__label::after {
    width: 24px;
    height: 24px;
    background-size: 12px;
  }

  .nx-tile__logo {
    top: 14px;
    left: 14px;
  }
}

.nx-reviews__more {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

/* Keep tall marks (UPS) in scale with the rest. */
.nx-logos img {
  max-height: 52px;
}

@media (max-width: 760px) {
  .nx-logos img {
    max-height: 40px;
  }
}

/* The parent theme sets smooth scrolling on <html>, which breaks ScrollTrigger's
   re-measuring (pins fire at the wrong place). Anchor links are smoothed in home.js. */
html.nx-js {
  scroll-behavior: auto !important;
}

/* Quote headline must not run under the form panel. */
.nx-quote .nx-display {
  font-size: clamp(38px, 4.4vw, 72px);
}

/* Google Business Profile panel */
.nx-gbp {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin-top: clamp(48px, 6vw, 80px);
}

.nx-gbp .nx-btn--dark {
  margin-top: 0;
}

.nx-gbp__map {
  height: clamp(320px, 42vh, 460px);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bone);
  box-shadow: 0 30px 60px -36px rgba(26, 23, 21, 0.5);
}

.nx-gbp__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 899px) {
  .nx-gbp {
    grid-template-columns: 1fr;
  }

  .nx-gbp__map {
    height: 320px;
  }
}

/* When the reviews widget is absent, the Google panel leads the section. */
.nx-reviews > .nx-gbp:first-child {
  margin-top: 0;
}

.nx-reviews {
  padding-top: var(--sec);
}

/* ==========================================================================
   LIGHT PATTERNS ON DARK SECTIONS
   Subtle texture so large dark areas do not read as flat black.
   ========================================================================== */

.nx-stats::before,
.nx-services::before,
.nx-journey::before,
.nx-film::before,
.nx-steps::before,
.nx-why::before,
.nx-more::before,
.nx-brands::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.nx-stats > *,
.nx-services > *,
.nx-journey > *,
.nx-film > *,
.nx-steps > *,
.nx-why > *,
.nx-more > *,
.nx-brands > * {
  position: relative;
  z-index: 1;
}

/* Dot grid, fading away from one corner */
.nx-stats::before,
.nx-more::before {
  background-image: radial-gradient(rgba(244, 241, 236, 0.1) 1.2px, transparent 1.3px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 100% 0%, black 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 85% at 100% 0%, black 0%, transparent 72%);
}

.nx-more::before {
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 0% 100%, black 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 85% at 0% 100%, black 0%, transparent 72%);
}

/* Fine blueprint grid */
.nx-services::before,
.nx-steps::before {
  background-image:
    linear-gradient(rgba(244, 241, 236, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 236, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 62%);
  mask-image: linear-gradient(to bottom, black 0%, transparent 62%);
}

/* Diagonal hairlines with a soft red glow */
.nx-journey::before,
.nx-why::before {
  background-image:
    radial-gradient(ellipse 50% 60% at 88% 12%, rgba(237, 28, 36, 0.16), transparent 70%),
    repeating-linear-gradient(135deg, rgba(244, 241, 236, 0.04) 0 1px, transparent 1px 22px);
}

.nx-why::before {
  background-image:
    radial-gradient(ellipse 50% 60% at 6% 90%, rgba(237, 28, 36, 0.14), transparent 70%),
    repeating-linear-gradient(135deg, rgba(244, 241, 236, 0.04) 0 1px, transparent 1px 22px);
}

/* Dots plus glow behind the video and the brand marquee */
.nx-film::before,
.nx-brands::before {
  background-image:
    radial-gradient(ellipse 60% 55% at 50% 100%, rgba(237, 28, 36, 0.13), transparent 70%),
    radial-gradient(rgba(244, 241, 236, 0.07) 1.2px, transparent 1.3px);
  background-size: auto, 30px 30px;
}
