/* ==========================================================================
   Direction: Noir — after hedvig.framer.website
   Brand ink as the canvas, cinematic photography, centred bold type,
   stacking cards and scroll-revealed text. Hamerkop orange for every CTA.
   Layered on top of styles.css. Dark is the default; light mode below.
   ========================================================================== */

:root,
:root[data-theme="dark"] {
  --canvas: #0a0a0a;
  --paper: #141414;
  --sand: #1f1f22;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.2);
  --ink: #fafafa;
  --ink-2: rgba(250, 250, 250, 0.84);
  --muted: rgba(250, 250, 250, 0.6);
  --faint: rgba(250, 250, 250, 0.42);
  --accent-soft: #2a1306;
  --band: #141414;
  --band-2: #1f1f22;
  --success-bg: #052e22;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
  --puck-ghost: #fafafa;
  --puck-ghost-arrow: var(--arrow-dark);
  --font-display: "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --heading-weight: 600;
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 14px;
  --stroke: rgba(250, 250, 250, 0.32);
  --stroke-soft: rgba(250, 250, 250, 0.16);
  --nav-bg: rgba(20, 20, 20, 0.82);
  color-scheme: dark;
}

h1 {
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  letter-spacing: -0.04em;
}

h3 {
  font-weight: 600;
  letter-spacing: -0.025em;
}

.muted-line {
  display: block;
  color: var(--faint);
}

/* Reverse logo on the dark canvas; the dark logo in light mode */
.topbar .logo-on-light {
  display: none;
}

.topbar .logo-on-dark {
  display: block;
}

:root[data-theme="light"] .topbar .logo-on-light {
  display: block;
}

:root[data-theme="light"] .topbar .logo-on-dark {
  display: none;
}

.nav-shell {
  background: var(--nav-bg);
}

.section-heading {
  justify-items: center;
  margin-inline: auto;
  text-align: center;
}

.section-heading h2,
.section-heading p:not(.eyebrow) {
  margin-inline: auto;
}

.section-head {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ---------------------------------------------------------------- hero */
.noir-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: end center;
  width: 100vw;
  min-height: clamp(640px, 100vh, 980px);
  margin-top: calc(-1 * var(--nav-space));
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  text-align: center;
}

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

.noir-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #0a0a0a 0%, rgba(10, 10, 10, 0.7) 34%, rgba(10, 10, 10, 0.15) 70%, rgba(10, 10, 10, 0.45) 100%);
}

.noir-hero-inner {
  display: grid;
  justify-items: center;
  gap: 22px;
  width: min(900px, calc(100vw - 32px));
  padding: 0 0 clamp(56px, 9vh, 110px);
}

.noir-hero h1 {
  font-size: clamp(2.8rem, 6.6vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.noir-hero .lede {
  margin: 0;
  color: var(--ink-2);
}

.noir-hero .hero-actions {
  justify-content: center;
  margin-top: 6px;
}

.announce {
  background: rgba(20, 20, 20, 0.8);
  border-color: var(--line-strong);
}

/* ---------------------------------------------------------------- statement */
.statement,
.noir-statement {
  margin-inline: auto;
  max-width: 22em;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.03em;
  text-align: center;
}

.statement span {
  color: var(--faint);
}

/* ---------------------------------------------------------------- portrait cards */
.portrait-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.portrait-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms ease;
}

.portrait-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 10, 10, 0.85), transparent 55%);
}

.portrait-card span {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 1;
  font-weight: 600;
}

.portrait-card:hover img {
  transform: scale(1.06);
}

/* ---------------------------------------------------------------- stacking cards */
.noir-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  min-height: min(78vh, 640px);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--paper);
}

.noir-card:nth-child(even) figure {
  order: 2;
}

.noir-card figure {
  height: 100%;
  min-height: 320px;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
}

.noir-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.noir-card > div {
  display: grid;
  justify-items: start;
  gap: 16px;
  padding: clamp(8px, 3vw, 40px);
}

.noir-card h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.noir-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

/* ---------------------------------------------------------------- feature with image */
.noir-feature {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.noir-feature > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.noir-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.8) 35%, rgba(10, 10, 10, 0.25) 75%);
}

.noir-feature-copy {
  display: grid;
  justify-items: start;
  gap: 18px;
  max-width: 720px;
  padding: clamp(24px, 5vw, 56px);
}

.noir-feature-copy p {
  margin: 0;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- shared components on dark */
.compare-card {
  background: var(--paper);
}

.dark-band,
.cta,
.milestone-panel,
.panel-dark {
  border: 1px solid var(--line);
}

.dark-band {
  background: var(--paper);
}

.cta {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 130%, rgba(234, 88, 12, 0.4), transparent 55%),
    var(--paper);
}

.cta-content h2 {
  margin-inline: auto;
}

.cta-side {
  justify-items: center;
}

.site-footer {
  background: #000;
  border-top: 1px solid var(--line);
}

.marquee-item {
  background: var(--paper);
}

.logo-strip .marquee-item {
  background: #fafafa;
}

/* Inner-page heroes centred like the homepage */
.page-hero .hero-copy {
  display: grid;
  justify-items: center;
  text-align: center;
}

.page-hero h1,
.page-hero .lede {
  margin-inline: auto;
}

.page-hero .hero-actions {
  justify-content: center;
}

@media (max-width: 900px) {
  .portrait-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .noir-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .noir-card:nth-child(even) figure {
    order: 0;
  }

  .noir-card figure {
    min-height: 220px;
    aspect-ratio: 16 / 10;
  }
}

/* ==========================================================================
   Noir v2: cinematic layer
   ========================================================================== */

/* Smooth cross-fade between pages (browsers that support view transitions) */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: nx-page-out 380ms ease both;
}

::view-transition-new(root) {
  animation: nx-page-in 520ms ease both;
}

@keyframes nx-page-out {
  to {
    opacity: 0;
    filter: blur(6px);
  }
}

@keyframes nx-page-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* ---------------------------------------------------------------- opening curtain */
.intro-curtain {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  background: #0a0a0a;
  transition: clip-path 900ms cubic-bezier(0.77, 0, 0.18, 1);
  clip-path: inset(0 0 0 0);
}

.intro-curtain img {
  width: 220px;
  animation: nx-logo-in 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.intro-line {
  display: block;
  width: 220px;
  height: 2px;
  background: var(--brand-orange);
  transform-origin: 0 50%;
  animation: nx-line 1100ms 200ms cubic-bezier(0.65, 0, 0.35, 1) both;
}

.intro-curtain.is-done {
  clip-path: inset(0 0 100% 0);
}

@keyframes nx-logo-in {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(12px);
  }
}

@keyframes nx-line {
  from {
    transform: scaleX(0);
  }
}

.is-intro body {
  overflow: hidden;
}

/* While the curtain is up, hold the hero's own entrance until it lifts */
.is-intro .nx-hero [data-anim="blur-in"] .w {
  transition-delay: calc(1300ms + var(--i, 0) * 70ms);
}

/* ---------------------------------------------------------------- hero */
.nx-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: end center;
  width: 100vw;
  min-height: 100vh;
  margin-top: calc(-1 * var(--nav-space));
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  text-align: center;
  --px: 0;
  --py: 0;
}

.nx-hero-slides {
  position: absolute;
  inset: -4%;
  z-index: -3;
  transform: translate3d(calc(var(--px) * -26px), calc(var(--py) * -18px), 0);
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.nx-hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 1800ms ease, transform 9000ms linear;
  filter: saturate(0.85) contrast(1.05);
}

.nx-hero-slides img.is-active {
  opacity: 1;
  transform: scale(1);
}

.nx-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(0deg, #0a0a0a 0%, rgba(10, 10, 10, 0.72) 30%, rgba(10, 10, 10, 0.18) 65%, rgba(10, 10, 10, 0.55) 100%);
}

.nx-hero-glow {
  position: absolute;
  left: 50%;
  bottom: -30vh;
  z-index: -1;
  width: 90vw;
  height: 60vh;
  background: radial-gradient(closest-side, rgba(234, 88, 12, 0.32), transparent);
  transform: translate(calc(-50% + var(--px) * 60px), 0);
  transition: transform 800ms ease;
  pointer-events: none;
}

.nx-hero-inner {
  display: grid;
  justify-items: center;
  gap: 22px;
  width: min(920px, calc(100vw - 32px));
  padding-bottom: clamp(96px, 14vh, 150px);
  opacity: calc(1 - var(--out, 0) * 1.3);
  transform: translateY(calc(var(--out, 0) * -70px)) scale(calc(1 - var(--out, 0) * 0.06));
  filter: blur(calc(var(--out, 0) * 6px));
}

.nx-hero h1 {
  font-size: clamp(2.9rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.nx-hero .lede {
  margin: 0;
  max-width: 58ch;
  color: var(--ink-2);
}

.nx-hero .hero-actions {
  justify-content: center;
  margin-top: 6px;
}

.nx-odoo-credential {
  position: absolute;
  left: clamp(16px, 3vw, 40px);
  bottom: clamp(20px, 4vh, 36px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #ffffff;
  color: #0a0a0a;
  text-align: left;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  transition: transform 300ms ease;
}

.nx-odoo-credential:hover {
  transform: translateY(-2px);
}

.nx-odoo-credential img {
  width: 64px;
  height: auto;
  padding-right: 14px;
  border-right: 1px solid #e4e4e7;
}

.nx-odoo-credential span {
  display: grid;
  gap: 2px;
}

.nx-odoo-credential strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.nx-odoo-credential small {
  color: #71717a;
  font-size: 0.78rem;
}

.nx-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(250, 250, 250, 0.45);
  border-radius: 14px;
  transform: translateX(-50%);
}

.nx-scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand-orange);
  transform: translateX(-50%);
  animation: nx-cue 1.8s ease-in-out infinite;
}

@keyframes nx-cue {
  0% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 16px); }
}

/* ---------------------------------------------------------------- statement */
.nx-kicker {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Brand rule: orange is a surface colour, never text. Labels get an orange mark instead. */
.nx-kicker::before,
.noir-card .eyebrow::before,
.nx-cta .eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--brand-orange);
}

/* ---------------------------------------------------------------- giant outlined words */
.nx-words {
  width: 100vw;
  margin: clamp(80px, 10vw, 140px) 0 0 calc(50% - 50vw);
  overflow: hidden;
  padding: 10px 0;
}

.nx-words-row {
  display: flex;
  gap: 0.35em;
  width: max-content;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 8.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.05em;
  white-space: nowrap;
  will-change: transform;
}

.nx-words-row:nth-child(2) {
  margin-left: -40vw;
}

.nx-words-row span {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--stroke);
}

.nx-words-row span::after {
  content: " \2014";
  -webkit-text-stroke: 1.5px var(--stroke-soft);
}

.nx-words-row .is-solid {
  color: var(--ink);
  -webkit-text-stroke: 0;
}

.nx-words-row .is-solid:nth-child(4) {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--brand-orange);
}

/* ---------------------------------------------------------------- portrait cards: tilt + spotlight */
.portrait-card {
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1), border-color 300ms ease;
  will-change: transform;
}

.portrait-card:hover {
  border-color: rgba(234, 88, 12, 0.55);
}

.portrait-card img {
  filter: grayscale(0.35) brightness(0.85);
  transition: transform 900ms ease, filter 600ms ease;
}

.portrait-card:hover img {
  filter: none;
}

.portrait-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(234, 88, 12, 0.22), transparent 45%);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}

.portrait-card:hover::before {
  opacity: 1;
}

.portrait-meta {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  display: grid;
  gap: 2px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.portrait-meta small {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.portrait-meta::after {
  content: "\2192";
  position: absolute;
  right: 0;
  bottom: 2px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-orange);
  color: #0a0a0a;
  font-size: 1rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.portrait-card:hover .portrait-meta::after {
  opacity: 1;
  transform: none;
}

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

/* Spotlight on cards across Noir pages */
.feature-card,
.detail-card,
.compare-card,
.journal-card {
  position: relative;
  isolation: isolate;
}

.feature-card::after,
.detail-card::after,
.compare-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(234, 88, 12, 0.14), transparent 50%);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}

.feature-card:hover::after,
.detail-card:hover::after,
.compare-card:hover::after {
  opacity: 1;
}

/* ---------------------------------------------------------------- stacking cards */
.noir-card figure {
  position: relative;
}

.noir-card figure img {
  height: 130%;
  margin-top: -15%;
}

.noir-card .eyebrow,
.nx-cta .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- stats band */
.nx-stats {
  position: relative;
  isolation: isolate;
  width: 100vw;
  margin: clamp(96px, 11vw, 150px) 0 0 calc(50% - 50vw);
  overflow: hidden;
}

.nx-stats-bg {
  position: absolute;
  inset: -28% 0;
  z-index: -2;
  width: 100%;
  height: 156%;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.55);
}

.nx-stats::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #0a0a0a 0%, rgba(10, 10, 10, 0.35) 30%, rgba(10, 10, 10, 0.35) 70%, #0a0a0a 100%);
}

.nx-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: var(--page);
  margin: 0 auto;
  padding: clamp(110px, 14vw, 180px) 0;
}

.nx-stats-grid > div {
  display: grid;
  gap: 8px;
  padding: 0 24px;
  border-left: 1px solid rgba(250, 250, 250, 0.16);
}

.nx-stats-grid b {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}

.nx-stats-grid small {
  margin-left: 6px;
  font-size: 0.35em;
  letter-spacing: 0;
  color: var(--ink-2);
}

.nx-stats-grid > div {
  border-left-color: rgba(234, 88, 12, 0.6) !important;
}

.nx-stats-grid > div > span {
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- comparison list animation */
.motion .compare-cards.is-in .compare-card li {
  animation: nx-li-in 600ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.compare-card li:nth-child(1) { animation-delay: 200ms; }
.compare-card li:nth-child(2) { animation-delay: 280ms; }
.compare-card li:nth-child(3) { animation-delay: 360ms; }
.compare-card li:nth-child(4) { animation-delay: 440ms; }
.compare-card li:nth-child(5) { animation-delay: 520ms; }
.compare-card li:nth-child(6) { animation-delay: 600ms; }

@keyframes nx-li-in {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }
}

/* ---------------------------------------------------------------- curtain-wipe image */
.nx-wipe {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.nx-wipe img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  transition: transform 1600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.motion .nx-wipe {
  clip-path: inset(0 0 0 100%);
  transition: clip-path 1300ms cubic-bezier(0.77, 0, 0.18, 1);
}

.motion .nx-wipe.is-in {
  clip-path: inset(0 0 0 0);
}

.nx-wipe.is-in img {
  transform: scale(1);
}

.noir-feature {
  min-height: 600px;
}

.noir-feature-copy h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.02;
}

/* ---------------------------------------------------------------- closing CTA */
.nx-cta {
  position: relative;
  isolation: isolate;
  width: 100vw;
  margin: clamp(96px, 11vw, 150px) 0 0 calc(50% - 50vw);
  overflow: hidden;
  text-align: center;
}

.nx-cta-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  animation: nx-breathe 14s ease-in-out infinite alternate;
}

@keyframes nx-breathe {
  from {
    transform: scale(1) rotate(0deg);
  }
  to {
    transform: scale(1.18) rotate(-3deg);
  }
}

.nx-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(10, 10, 10, 0.35), #0a0a0a 75%);
}

.nx-cta-inner {
  display: grid;
  justify-items: center;
  gap: 22px;
  width: min(860px, calc(100vw - 32px));
  margin: 0 auto;
  padding: clamp(120px, 16vw, 220px) 0;
}

.nx-cta h2 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.nx-cta p:not(.eyebrow) {
  margin: 0;
  max-width: 56ch;
  color: var(--ink-2);
}


.nx-cta-button {
  margin-top: 10px;
  transition: transform 300ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 200ms ease;
}

[data-magnetic] {
  transition: transform 300ms cubic-bezier(0.2, 0.7, 0.2, 1), background-color 200ms ease, border-color 200ms ease;
}

@media (max-width: 900px) {
  .nx-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }

  .noir-feature {
    min-height: 520px;
  }
}

@media (max-width: 640px) {
  .nx-stats-grid > div {
    padding: 0 14px;
  }

  .nx-scroll-cue {
    display: none;
  }

  .nx-hero-inner {
    padding-bottom: 132px;
  }

  .nx-odoo-credential {
    left: 50%;
    width: max-content;
    max-width: calc(100vw - 32px);
    transform: translateX(-50%);
  }

  .nx-odoo-credential:hover {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nx-hero-slides img {
    transition: none;
  }

  .nx-cta-bg {
    animation: none;
  }

  .nx-hero-inner {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ==========================================================================
   Noir v3: Solutions, Services and Industries
   ========================================================================== */

/* ---------------------------------------------------------------- cinematic image heroes */
.page-hero.has-image {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: end center;
  width: 100vw;
  min-height: 86vh;
  margin-top: calc(-1 * var(--nav-space));
  margin-left: calc(50% - 50vw);
  padding: 0 16px clamp(72px, 11vh, 120px);
  overflow: hidden;
  --px: 0;
  --py: 0;
}

.nx-hub-hero.page-hero.has-image {
  min-height: 100vh;
}

.page-hero-bg {
  position: absolute;
  inset: -3%;
  z-index: -2;
  width: 106%;
  max-width: none;
  height: 106%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
  transform: translate3d(calc(var(--px) * -22px), calc(var(--py) * -14px), 0);
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
  animation: nx-hero-settle 2400ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes nx-hero-settle {
  from {
    opacity: 0;
    scale: 1.14;
    filter: blur(8px) saturate(0.9);
  }
}

.page-hero.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, #0a0a0a 0%, rgba(10, 10, 10, 0.75) 28%, rgba(10, 10, 10, 0.2) 62%, rgba(10, 10, 10, 0.55) 100%),
    radial-gradient(ellipse at 50% 120%, rgba(234, 88, 12, 0.28), transparent 55%);
}

.page-hero.has-image .hero-copy {
  width: min(940px, 100%);
  opacity: calc(1 - var(--out, 0) * 1.3);
  transform: translateY(calc(var(--out, 0) * -60px));
  filter: blur(calc(var(--out, 0) * 5px));
}

.page-hero.has-image h1 {
  max-width: 18ch;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.page-hero.has-image .product-name {
  color: var(--ink-2);
}

.nx-photo-credit,
.nx-band-credit {
  margin: 18px 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(250, 250, 250, 0.5);
}

/* ---------------------------------------------------------------- solution explorer */
.nx-explorer-band {
  padding-top: clamp(40px, 5vw, 64px);
}

.nx-explorer .showcase-media {
  aspect-ratio: 4 / 4.6;
  border-radius: var(--radius-lg);
}

.nx-explorer .showcase-media img {
  transition: opacity 300ms ease, transform 1200ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.nx-explorer .showcase-row {
  padding: 26px 0;
}

.nx-explorer .showcase-name {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  transition: color 250ms ease, transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.nx-explorer .showcase-row.is-active .showcase-name,
.nx-explorer .showcase-row:hover .showcase-name {
  transform: translateX(14px);
}

.nx-explorer .showcase-index {
  font-weight: 600;
  color: var(--faint);
}

.nx-explorer .showcase-row.is-active .showcase-index {
  color: var(--ink);
}

.nx-explorer .showcase-text b {
  display: inline-block;
  margin-left: 6px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid var(--brand-orange);
}

/* ---------------------------------------------------------------- Addis bands */
.nx-band {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100vw;
  min-height: 80vh;
  margin: clamp(96px, 11vw, 150px) 0 0 calc(50% - 50vw);
  overflow: hidden;
  text-align: center;
}

.nx-band-tall {
  min-height: 100vh;
}

.nx-band-bg {
  position: absolute;
  inset: -24% 0;
  z-index: -2;
  width: 100%;
  height: 148%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.65);
}

.nx-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #0a0a0a 0%, rgba(10, 10, 10, 0.25) 25%, rgba(10, 10, 10, 0.35) 70%, #0a0a0a 100%);
}

.nx-band-inner {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(900px, calc(100vw - 32px));
  padding: 120px 0;
}

.nx-band-inner h2 {
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.nx-band-inner p:not(.nx-kicker) {
  margin: 0;
  max-width: 58ch;
  color: var(--ink-2);
}

.nx-band-credit {
  position: absolute;
  right: 20px;
  bottom: 16px;
  margin: 0;
}

/* ---------------------------------------------------------------- pinned service gallery */
.nx-hscroll {
  position: relative;
  width: 100vw;
  margin: clamp(80px, 9vw, 120px) 0 0 calc(50% - 50vw);
}

.hs-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  width: var(--page);
  margin: 0 auto 36px;
}

.hs-head h2 {
  max-width: 16ch;
}

.hs-progress {
  width: 220px;
  height: 2px;
  background: var(--line-strong);
}

.hs-progress span {
  display: block;
  height: 100%;
  background: var(--brand-orange);
  transform: scaleX(var(--hs, 0));
  transform-origin: 0 50%;
}

.hs-track {
  display: flex;
  gap: 20px;
  padding: 0 calc((100vw - var(--page)) / 2) 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.hs-track::-webkit-scrollbar {
  display: none;
}

.nx-hscroll.is-pinned .hs-sticky {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
}

.nx-hscroll.is-pinned .hs-track {
  width: max-content;
  overflow: visible;
  will-change: transform;
}

.hs-card {
  position: relative;
  flex: 0 0 clamp(290px, 30vw, 430px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 16px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  scroll-snap-align: start;
  transition: border-color 300ms ease, transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hs-card:hover {
  border-color: rgba(234, 88, 12, 0.5);
  transform: translateY(-6px);
}

.hs-card figure {
  aspect-ratio: 4 / 3;
  margin: 0 0 8px;
  overflow: hidden;
  border-radius: 14px;
}

.hs-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3);
  transition: transform 900ms ease, filter 500ms ease;
}

.hs-card:hover img {
  transform: scale(1.06);
  filter: none;
}

.hs-num {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 1;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(10, 10, 10, 0.72);
  color: #fafafa;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hs-card h3 {
  padding: 0 6px;
  font-size: 1.5rem;
}

.hs-card p {
  margin: 0;
  padding: 0 6px;
  color: var(--muted);
}

.hs-more {
  margin-top: auto;
  padding: 10px 6px 0;
  font-weight: 600;
}

.hs-more::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  margin-top: 8px;
  background: var(--brand-orange);
  transition: width 400ms ease;
}

.hs-card:hover .hs-more::after {
  width: 100%;
}

/* ---------------------------------------------------------------- delivery timeline */
.nx-delivery-head {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.nx-delivery-head h2 {
  max-width: 16ch;
}

.nx-delivery-head p:not(.nx-kicker) {
  margin: 0;
  max-width: 60ch;
  color: var(--ink-2);
}

.nx-timeline {
  position: relative;
  max-width: 780px;
  margin: 72px auto 0;
  padding: 0;
  list-style: none;
}

.nx-timeline::before,
.nx-timeline::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 0;
  width: 2px;
  background: var(--line-strong);
}

.nx-timeline::before {
  bottom: 0;
}

.nx-timeline::after {
  height: calc(var(--p, 0) * 100%);
  background: linear-gradient(180deg, rgba(234, 88, 12, 0.2), var(--brand-orange));
  box-shadow: 0 0 18px rgba(234, 88, 12, 0.6);
}

.nx-timeline li {
  position: relative;
  padding: 0 0 64px 76px;
  opacity: 0.4;
  transition: opacity 500ms ease;
}

.nx-timeline li.is-reached {
  opacity: 1;
}

.nx-step-dot {
  position: absolute;
  left: 10px;
  top: 4px;
  z-index: 1;
  width: 20px;
  height: 20px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--canvas);
  transition: background-color 400ms ease, border-color 400ms ease, box-shadow 400ms ease;
}

.nx-timeline li.is-reached .nx-step-dot {
  border-color: var(--brand-orange);
  background: var(--brand-orange);
  box-shadow: 0 0 0 7px rgba(234, 88, 12, 0.18);
}

.nx-step-num {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.nx-timeline h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.nx-timeline p {
  margin: 10px 0 0;
  max-width: 54ch;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- industry mosaic */
.nx-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 230px;
  grid-auto-flow: dense;
  gap: 14px;
}

.nx-tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1), border-color 300ms ease;
}

.nx-tile-1 { grid-column: span 2; grid-row: span 2; }
.nx-tile-2 { grid-row: span 2; }
.nx-tile-5 { grid-column: span 2; }
.nx-tile-7 { grid-row: span 2; }
.nx-tile-8 { grid-column: span 2; }

.nx-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) brightness(0.75);
  transition: transform 1000ms ease, filter 600ms ease;
}

.nx-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(234, 88, 12, 0.2), transparent 45%),
    linear-gradient(0deg, rgba(10, 10, 10, 0.92), rgba(10, 10, 10, 0.1) 65%);
}

.nx-tile:hover {
  border-color: rgba(234, 88, 12, 0.55);
}

.nx-tile:hover img {
  transform: scale(1.07);
  filter: none;
}

.nx-tile-body {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  display: grid;
  gap: 2px;
}

.nx-tile-body small {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.nx-tile-body b {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.nx-tile-1 .nx-tile-body b {
  font-size: clamp(2rem, 3.4vw, 3rem);
}

.nx-tile-body em {
  max-height: 0;
  overflow: hidden;
  font-style: normal;
  font-size: 0.92rem;
  color: var(--ink-2);
  opacity: 0;
  transition: max-height 450ms ease, opacity 450ms ease, margin 450ms ease;
}

.nx-tile:hover .nx-tile-body em,
.nx-tile:focus-visible .nx-tile-body em {
  max-height: 5em;
  margin-top: 6px;
  opacity: 1;
}

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

  .nx-tile-1,
  .nx-tile-5,
  .nx-tile-8 {
    grid-column: span 2;
  }

  .nx-tile-2,
  .nx-tile-7 {
    grid-row: span 1;
  }

  .nx-tile-body em {
    max-height: none;
    opacity: 1;
    margin-top: 4px;
  }
}

@media (max-width: 640px) {
  .page-hero.has-image {
    min-height: 78vh;
  }

  .nx-band-credit {
    left: 16px;
    right: auto;
  }

}

@media (prefers-reduced-motion: reduce) {
  .page-hero-bg {
    animation: none;
  }

  .page-hero.has-image .hero-copy {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .nx-timeline li {
    opacity: 1;
  }
}

/* ---------------------------------------------------------------- partner logos */
.nx-partners {
  padding-top: clamp(72px, 8vw, 110px);
}

.nx-partners .logo-strip .marquee-item {
  padding: 26px 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

/* Logos shown in monochrome white on the dark canvas, full colour on hover */
.nx-partners .logo-strip img {
  height: 36px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: filter 400ms ease, opacity 400ms ease;
}

.nx-partners .logo-strip .marquee-item:hover {
  background: #fafafa;
}

.nx-partners .logo-strip .marquee-item:hover img {
  filter: none;
  opacity: 1;
}

/* Abstract art heroes: keep the glow, soften the overlay so the light reads */
.page-hero.has-image .page-hero-bg[src*="1709377195538"],
.page-hero.has-image .page-hero-bg[src*="1700938550585"],
.page-hero.has-image .page-hero-bg[src*="1685625971503"],
.page-hero.has-image .page-hero-bg[src*="1708457753320"] {
  filter: saturate(1.05);
}

/* Abstract-light heroes (Company, Insights, Contact, Security, articles):
   the same treatment as the homepage "Start a conversation" section. */
.page-hero.has-image.is-art .page-hero-bg {
  opacity: 0.85;
  filter: none;
  animation:
    nx-hero-settle 2400ms cubic-bezier(0.2, 0.7, 0.2, 1) both,
    nx-breathe 16s 2400ms ease-in-out infinite alternate;
}

.page-hero.has-image.is-art::after {
  background:
    radial-gradient(ellipse at 50% 55%, rgba(10, 10, 10, 0.25), rgba(10, 10, 10, 0.75) 62%, #0a0a0a 92%),
    linear-gradient(0deg, #0a0a0a 0%, transparent 30%);
}

.is-paused .page-hero-bg {
  animation-play-state: paused;
}

/* Article and category cards in Noir use the same abstract light */
.journal-media img {
  filter: saturate(1.05);
}


/* ==========================================================================
   Light mode
   ========================================================================== */
:root[data-theme="light"] {
  --canvas: #fafafa;
  --paper: #ffffff;
  --sand: #f4f4f5;
  --line: #e4e4e7;
  --line-strong: #d4d4d8;
  --ink: #0a0a0a;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --faint: #a1a1aa;
  --accent-soft: #ffedd5;
  --success-bg: #ecfdf5;
  --shadow: 0 24px 60px rgba(10, 10, 10, 0.1);
  --shadow-soft: 0 10px 30px rgba(10, 10, 10, 0.07);
  --puck-ghost: #0a0a0a;
  --puck-ghost-arrow: var(--arrow-light);
  --stroke: rgba(10, 10, 10, 0.22);
  --stroke-soft: rgba(10, 10, 10, 0.12);
  --nav-bg: rgba(255, 255, 255, 0.86);
  color-scheme: light;
}

/* Photo-led sections stay dark in both modes so text over images keeps its contrast */
.nx-hero,
.page-hero.has-image,
.nx-band,
.nx-stats,
.nx-cta,
.noir-feature,
.dark-band,
.milestone-panel,
.panel-dark,
.cta,
.site-footer,
.portrait-card,
.nx-tile,
.intro-curtain {
  --canvas: #0a0a0a;
  --paper: #141414;
  --sand: #1f1f22;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.2);
  --ink: #fafafa;
  --ink-2: rgba(250, 250, 250, 0.84);
  --muted: rgba(250, 250, 250, 0.6);
  --faint: rgba(250, 250, 250, 0.42);
  --puck-ghost: #fafafa;
  --puck-ghost-arrow: var(--arrow-dark);
  color: var(--ink);
}

:root[data-theme="light"] .dark-band,
:root[data-theme="light"] .cta,
:root[data-theme="light"] .noir-feature {
  background-color: #141414;
}

:root[data-theme="light"] .nav-shell {
  border-color: var(--line);
}

:root[data-theme="light"] .nx-partners .logo-strip img {
  filter: grayscale(1);
  opacity: 0.75;
}

:root[data-theme="light"] .nx-partners .logo-strip .marquee-item:hover img {
  filter: none;
  opacity: 1;
}

:root[data-theme="light"] .site-footer {
  border-top: 0;
}

/* Smooth colour change when switching modes */
body,
.nav-shell,
.feature-card,
.detail-card,
.compare-card,
.noir-card,
.hs-card,
.journal-card {
  transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease;
}

/* ==========================================================================
   Plainer, less template-like details
   ========================================================================== */

/* Labels are plain text: no pills, no dots */
.page-hero .eyebrow {
  padding: 0;
  border: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-hero .eyebrow::before {
  display: none;
}

/* No glowing blobs or cursor spotlights */
.nx-hero-glow,
.portrait-card::before,
.feature-card::after,
.detail-card::after,
.compare-card::after {
  display: none;
}

.nx-tile::after {
  background: linear-gradient(0deg, rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.1) 65%);
}

.page-hero.has-image::after {
  background: linear-gradient(0deg, #0a0a0a 0%, rgba(10, 10, 10, 0.72) 30%, rgba(10, 10, 10, 0.25) 65%, rgba(10, 10, 10, 0.55) 100%);
}

.cta {
  background: var(--paper);
}

/* Headings simply fade in: no blur, no word-by-word stagger */
.motion [data-anim="blur-in"] .w {
  filter: none;
  transform: translateY(12px);
  transition-delay: 0ms;
  transition-duration: 900ms;
}

.is-intro .nx-hero [data-anim="blur-in"] .w {
  transition-delay: 1300ms;
}

.nx-hero-inner,
.page-hero.has-image .hero-copy {
  filter: none;
}

@keyframes nx-logo-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes nx-page-out {
  to {
    opacity: 0;
  }
}

@keyframes nx-hero-settle {
  from {
    opacity: 0;
    scale: 1.08;
  }
}

/* Separators in the large word rows: a simple slash instead of dashes */
.nx-words-row span::after {
  content: " /";
}
