/* ============================================================
   XTOPIA — Components
   Cursor · Nav · Loader · Footer · Buttons · Ticker · Cards ·
   Grid texture · Scroll progress · Grain
   ============================================================ */

/* ---------- Grid texture overlay ---------- */
.grid-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  background-image:
    repeating-linear-gradient(to right, var(--color-cream) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(to bottom, var(--color-cream) 0 1px, transparent 1px 80px);
}

.grid-texture--strong::before {
  opacity: 0.08;
}

.grid-texture>* {
  position: relative;
  z-index: 2;
}

/* ---------- Film grain ---------- */
.grain {
  position: relative;
  overflow: hidden;
}

.grain::after {
  content: '';
  position: absolute;
  inset: -50%;
  pointer-events: none;
  z-index: 3;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.7s steps(3) infinite;
}

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-cursor);
  pointer-events: none;
  mix-blend-mode: difference;
  will-change: transform;
  transition: opacity 0.3s ease;
}

.cursor__dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-cream);
  transform: translate(-50%, -50%);
}

.cursor__ring {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-cream);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--color-cream);
  text-transform: uppercase;
}

.cursor__ring span {
  opacity: 0;
  transform: scale(0.6);
}

.cursor.is-hover .cursor__ring {
  transform: translate(-50%, -50%) scale(1);
}

.cursor.is-view .cursor__ring {
  transform: translate(-50%, -50%) scale(1.5);
}

.cursor.is-view .cursor__ring span {
  opacity: 1;
  transform: scale(1);
}

.cursor.is-view .cursor__dot {
  opacity: 0;
}

@media (hover: none),
(pointer: coarse) {
  .cursor {
    display: none;
  }
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 2px;
  height: 100vh;
  z-index: var(--z-progress);
  pointer-events: none;
}

.scroll-progress__bar {
  width: 100%;
  height: 100%;
  background: var(--color-cream);
  transform: scaleY(0);
  transform-origin: top;
}

/* ---------- Page loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  background: var(--c-void);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.loader.is-done {
  pointer-events: none;
}

.loader__mark {
  width: min(46vw, 420px);
}

.loader__mark svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.loader__logo {
  width: 100%;
  height: auto;
  display: block;
  animation: loader-pulse 1.8s var(--ease-in-out) infinite;
}

.loader__mark path,
.loader__mark text {
  fill: none;
  stroke: var(--color-cream);
  stroke-width: 1.4;
}

.loader__count {
  position: absolute;
  top: clamp(1.5rem, 4vw, 3rem);
  right: clamp(1.5rem, 4vw, 3rem);
  font-family: var(--font-heading), monospace;
  font-weight: 200;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--color-cream-dim);
  font-variant-numeric: tabular-nums;
}

.loader__wipe {
  position: absolute;
  inset: 0;
  background: var(--c-void);
  transform-origin: top;
}

.loader__progress {
  position: absolute;
  left: 50%;
  bottom: clamp(2.5rem, 7vh, 4.5rem);
  transform: translateX(-50%);
  width: min(46vw, 420px);
  height: 1px;
  background: rgba(240, 237, 227, 0.14);
  overflow: hidden;
}

.loader__progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--color-cream);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem var(--gutter);
  transition: background var(--dur-fast) ease, backdrop-filter var(--dur-fast) ease,
    border-color var(--dur-fast) ease, padding var(--dur-fast) ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(17, 16, 16, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(240, 237, 227, 0.1);
  padding-block: 1rem;
}

/* Adaptive contrast while transparent: invert against whatever is behind,
   so links read light over dark areas and dark over light areas — even on
   the split contact layout. Disabled once the solid dark bar appears. */
/* Transparent navbar defaults (for dark pages like index, verticals, etc.) */
.nav:not(.is-scrolled) .nav__link {
  color: var(--color-cream);
}

.nav:not(.is-scrolled) .nav__link::after {
  background: var(--color-cream);
}

.nav:not(.is-scrolled) .nav__cta {
  color: var(--color-cream);
  border-color: var(--c-line-bright);
}

.nav:not(.is-scrolled) .nav__cta:hover {
  background: var(--color-cream);
  color: var(--c-void);
}

.nav:not(.is-scrolled) .nav__burger span {
  background: var(--color-cream);
}

.nav:not(.is-scrolled) .nav__logo img {
  filter: none;
  /* White logo */
}

/* Page variant: Split layout (about, contact). Left split is dark (logo stays white), right split is light (links become dark) */
.nav.nav--light-links:not(.is-scrolled) .nav__link {
  color: var(--c-void);
}

.nav.nav--light-links:not(.is-scrolled) .nav__link::after {
  background: var(--c-void);
}

.nav.nav--light-links:not(.is-scrolled) .nav__cta {
  color: var(--c-void);
  border-color: rgba(17, 16, 16, 0.3);
}

.nav.nav--light-links:not(.is-scrolled) .nav__cta:hover {
  background: var(--c-void);
  color: var(--color-cream);
}

.nav.nav--light-links:not(.is-scrolled) .nav__burger span {
  background: var(--c-void);
}

/* Page variant: Fully light layout (projects, community). Both logo and links are over a light background, so all become dark */
.nav.nav--light-all:not(.is-scrolled) .nav__logo img {
  filter: brightness(0);
  /* Black logo */
}

.nav.nav--light-all:not(.is-scrolled) .nav__link {
  color: var(--c-void);
}

.nav.nav--light-all:not(.is-scrolled) .nav__link::after {
  background: var(--c-void);
}

.nav.nav--light-all:not(.is-scrolled) .nav__cta {
  color: var(--c-void);
  border-color: rgba(17, 16, 16, 0.3);
}

.nav.nav--light-all:not(.is-scrolled) .nav__cta:hover {
  background: var(--c-void);
  color: var(--color-cream);
}

.nav.nav--light-all:not(.is-scrolled) .nav__burger span {
  background: var(--c-void);
}

/* The dropdown menu is kept normal, unblended, and consistent across all pages */
.dropdown__menu {
  mix-blend-mode: normal !important;
}

.nav__logo img {
  height: 26px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.75rem);
}

.nav__link {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 200;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-cream);
  padding-block: 0.4rem;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--color-cream);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-out);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.nav__cta {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-cream);
  border: 1px solid var(--c-line-bright);
  border-radius: 100px;
  padding: 0.75rem 1.5rem;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.nav__cta:hover {
  background: var(--color-cream);
  color: var(--c-void);
}

.nav__burger {
  display: none;
  width: 34px;
  height: 20px;
  position: relative;
}

.nav__burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--color-cream);
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast);
}

.nav__burger span:nth-child(1) {
  top: 2px;
}

.nav__burger span:nth-child(2) {
  bottom: 2px;
}

.nav.is-open .nav__burger span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}

.nav.is-open .nav__burger span:nth-child(2) {
  bottom: 9px;
  transform: rotate(-45deg);
}

/* Mobile overlay menu */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 79;
  background: var(--c-void);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: 3rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-med) var(--ease-out), visibility var(--dur-med);
}

.nav-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    repeating-linear-gradient(to right, var(--color-cream) 0 1px, transparent 1px 70px),
    repeating-linear-gradient(to bottom, var(--color-cream) 0 1px, transparent 1px 70px);
  pointer-events: none;
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* ---------- Navigation Dropdowns (Desktop Hover Flyouts) ---------- */
.nav__item {
  position: relative;
}

.dropdown__menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(26, 25, 25, 0.98);
  /* Solid charcoal with high opacity */
  border: 1px solid var(--c-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 0;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-top: 0.5rem;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown__sub-link {
  font-family: var(--font-heading);
  font-weight: 200;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-cream-dim);
  padding: 0.6rem 1.5rem;
  transition: color var(--dur-fast) ease, background var(--dur-fast) ease, padding-left var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  text-align: left;
  display: block;
}

.dropdown__sub-link:hover {
  color: var(--color-cream);
  background: rgba(240, 237, 227, 0.05);
  padding-left: 1.8rem;
}

/* Adjustments for the last item (Contact) to align right instead of center-overshoot */
.nav__links .dropdown:last-child .dropdown__menu {
  left: auto;
  right: 0;
  transform: translateY(10px);
}

.nav__links .dropdown:last-child:hover .dropdown__menu {
  transform: translateY(0);
}

/* ---------- Ecosystem mega-menu (logo + sector per business) ---------- */
.dropdown__menu--mega {
  flex-direction: row;
  padding: 1.5rem;
  gap: 0.25rem;
  min-width: min(90vw, 680px);
  --logo-scale: 0.6;
}
.dropdown__mega-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1rem 0.75rem;
  border-radius: 8px;
  flex: 1 1 0;
  transition: background var(--dur-fast) ease;
  white-space: normal;
}
.dropdown__mega-item:hover {
  background: rgba(240, 237, 227, 0.06);
}
.dropdown__mega-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--color-cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.dropdown__mega-sector {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--color-cream-dim);
  line-height: 1.4;
}
.dropdown__mega-tag {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-void);
  background: var(--accent-number-dark);
  border-radius: 100px;
  padding: 0.2rem 0.55rem;
}
@media (max-width: 1200px) {
  .dropdown__menu--mega { flex-wrap: wrap; min-width: min(90vw, 420px); }
  .dropdown__mega-item { flex: 1 1 40%; }
}

/* ---------- Mobile Overlay Accordion ---------- */
.nav-overlay__item-wrap {
  border-bottom: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  position: relative;
  transform: translateY(40px);
  opacity: 0;
}

.nav-overlay.is-open .nav-overlay__item-wrap {
  animation: overlay-item-in 0.6s var(--ease-out) forwards;
}

.nav-overlay.is-open .nav-overlay__item-wrap:nth-child(1) {
  animation-delay: 0.05s;
}

.nav-overlay.is-open .nav-overlay__item-wrap:nth-child(2) {
  animation-delay: 0.12s;
}

.nav-overlay.is-open .nav-overlay__item-wrap:nth-child(3) {
  animation-delay: 0.19s;
}

.nav-overlay.is-open .nav-overlay__item-wrap:nth-child(4) {
  animation-delay: 0.26s;
}

.nav-overlay__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem var(--gutter);
}

.nav-overlay__link {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(1.8rem, 6vw, 3rem);
  color: var(--color-cream);
  text-decoration: none;
  transition: color var(--dur-fast);
}

.nav-overlay__link:hover {
  color: var(--color-sage);
}

.nav-overlay__toggle {
  background: transparent;
  border: none;
  color: var(--color-cream);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-overlay__toggle .arrow {
  font-size: 1.5rem;
  transition: transform var(--dur-med) var(--ease-out);
}

.nav-overlay__item-wrap.is-open .nav-overlay__toggle .arrow {
  transform: rotate(180deg);
}

.nav-overlay__sub {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s var(--ease-in-out), opacity 0.3s ease, margin-bottom 0.4s var(--ease-in-out);
  padding-inline: calc(var(--gutter) + 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0;
}

.nav-overlay__item-wrap.is-open .nav-overlay__sub {
  max-height: 300px;
  opacity: 1;
  margin-bottom: 1.5rem;
}

.nav-overlay__sub a {
  font-family: var(--font-heading);
  font-weight: 200;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-cream-dim);
  padding: 0.4rem 0;
  transition: color var(--dur-fast);
}

.nav-overlay__sub a:hover {
  color: var(--color-cream);
}

/* ---------- Buttons / CTAs ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 200;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.btn__arrow {
  transition: transform var(--dur-fast) var(--ease-out);
}

.btn:hover .btn__arrow {
  transform: translateX(6px);
}

.btn--pill {
  border: 1px solid var(--c-line-bright);
  border-radius: 100px;
  padding: 1rem 2rem;
  color: var(--color-cream);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.btn--pill:hover {
  background: var(--color-cream);
  color: var(--c-void);
}

.btn--solid {
  background-color: var(--color-dark-olive);
  color: var(--color-cream);
  border-color: var(--color-dark-olive);
}

.btn--solid:hover {
  background-color: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-cream);
}

.section--cream .btn--pill,
.bg-cream .btn--pill,
.theme-light .btn--pill {
  border-color: rgba(17, 16, 16, 0.25);
  color: var(--c-void);
}

.section--cream .btn--pill:hover,
.bg-cream .btn--pill:hover,
.theme-light .btn--pill:hover {
  background: var(--c-void);
  color: var(--color-cream);
}

.section--cream .btn--solid,
.bg-cream .btn--solid {
  background-color: var(--color-dark-olive);
  color: var(--color-cream);
  border-color: var(--color-dark-olive);
}

.ticker__label {
  font-family: var(--font-heading);
  font-weight: 200;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-cream-dim);
}

.ticker__sep {
  color: var(--color-sage);
  font-size: 28px;
  padding-inline: 0.4rem;
}

/* Logo ticker (awards / partners) */
.logo-ticker__track {
  animation: marquee 45s linear infinite;
}

.logo-ticker__item {
  padding-inline: clamp(2rem, 4vw, 4.5rem);
  display: inline-flex;
  align-items: center;
}

.logo-ticker__item img {
  height: clamp(28px, 4vw, 52px);
  width: auto;
  opacity: 0.85;
  transition: opacity var(--dur-fast);
}

.logo-ticker__item img:hover {
  opacity: 1;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  background: var(--c-void);
  color: var(--color-cream);
  padding-block: clamp(4rem, 9vh, 8rem) 2.5rem;
  overflow: hidden;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}

.footer__logo img {
  height: 30px;
}

.footer__tag {
  margin-top: 1rem;
  color: var(--color-cream-dim);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

.footer__col h4 {
  font-family: var(--font-heading);
  font-weight: 200;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-cream);
  margin-bottom: 1.25rem;
}

.footer__col a {
  display: block;
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--color-cream-dim);
  padding-block: 0.4rem;
  transition: color var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}

.footer__col a:hover {
  color: var(--color-cream);
  transform: translateX(4px);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
}

.footer__copy {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--color-cream-dim);
}

.footer__social {
  display: flex;
  gap: 1.25rem;
}

.footer__social a svg {
  width: 18px;
  height: 18px;
  fill: var(--color-cream);
  transition: fill var(--dur-fast);
}

.footer__social a:hover svg {
  fill: var(--color-sage);
}

/* ---------- Reusable cards ---------- */
.card {
  position: relative;
  overflow: hidden;
  background: var(--c-charcoal);
}

.card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 16, 16, 0.92) 0%, rgba(17, 16, 16, 0.1) 60%, transparent 100%);
}

/* ============================================================
   Responsive — nav + footer
   ============================================================ */
@media (max-width: 1023px) {
  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 2.5rem;
  }
}

@media (max-width: 860px) {
  .nav__links {
    display: none;
  }

  .nav__burger {
    display: block;
  }
}

@media (max-width: 767px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ============================================================
   PREMIUM EDITORIAL ACCENTS
   ============================================================ */
/* Navigation Links Hover */
.nav__link:hover,
.dropdown__sub-link:hover {
  color: var(--color-sage);
}

/* Dividers & Borders */
hr {
  border: none;
  border-top: 1px solid var(--color-light-blue);
  opacity: 0.3;
}

.section--dark hr {
  border-top: 1px solid var(--color-sage);
  opacity: 0.2;
}

/* Interactive Elements */
.career-accordion__toggle:hover {
  color: var(--color-dark-olive);
}

.section--dark .career-accordion__toggle:hover {
  color: var(--color-sage);
}

/* Make sure the form inputs have a nice soft focus ring */
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-light-blue);
  box-shadow: 0 0 0 2px rgba(191, 212, 221, 0.2);
  /* color-light-blue with opacity */
}

.section--dark input:focus,
.section--dark textarea:focus {
  border-color: var(--color-sage);
  box-shadow: 0 0 0 2px rgba(193, 198, 163, 0.2);
  /* color-sage with opacity */
}

/* ============================================================
   October 2026 — new reusable components (Phase 0.3)
   ============================================================ */

/* ---------- Split title: sentence-case line + italic second line ---------- */
.title-split {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}
.title-split__line1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.title-split__line2 {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 4.5rem);
  line-height: 1.05;
  color: var(--accent-italic);
}
.theme-dark .title-split__line2 { color: var(--text-on-dark); }

/* ---------- Stat row: big number · bracketed label · thin dividers ---------- */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.stat-row__item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 1.5rem;
  padding-right: clamp(1.5rem, 3vw, 3rem);
  border-left: 1px solid var(--color-taupe);
}
.stat-row__item:first-child { padding-left: 0; border-left: none; }
.theme-dark .stat-row__item { border-left-color: var(--c-line-bright); }
.stat-row__num {
  font-family: var(--font-number);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1;
  color: var(--accent-number);
}
.theme-dark .stat-row__num { color: var(--accent-number-dark); }
/* Barques (--font-number) has no usable '%' glyph — render that character in the heading font instead */
.stat-row__num--suffix { font-family: var(--font-heading); font-weight: 700; }
.stat-row__label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-taupe-text);
}
.stat-row__label::before { content: '[ '; }
.stat-row__label::after { content: ' ]'; }
.theme-dark .stat-row__label { color: var(--accent-number-dark); }

/* ---------- X-mask media: image clipped to the XTOPIA X shape ---------- */
.x-mask {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  -webkit-mask-image: url('../assets/images/rebrand-2026/logos/x-monogram-dark.svg');
  mask-image: url('../assets/images/rebrand-2026/logos/x-monogram-dark.svg');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
}
.x-mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.x-mask--lg { max-width: 760px; margin-inline: auto; }
.x-mask--card { max-width: 340px; }
.theme-dark .x-mask {
  -webkit-mask-image: url('../assets/images/rebrand-2026/logos/x-monogram-white.svg');
  mask-image: url('../assets/images/rebrand-2026/logos/x-monogram-white.svg');
}

/* ---------- X-watermark: huge low-opacity X behind light sections ---------- */
.x-watermark { position: relative; overflow: hidden; }
.x-watermark::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(90vw, 1400px);
  height: min(90vw, 1400px);
  transform: translate(-50%, -50%);
  background-color: currentColor;
  opacity: 0.07;
  -webkit-mask-image: url('../assets/images/rebrand-2026/logos/x-monogram-dark.svg');
  mask-image: url('../assets/images/rebrand-2026/logos/x-monogram-dark.svg');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  pointer-events: none;
  z-index: 0;
}
.x-watermark > * { position: relative; z-index: 1; }
.theme-dark.x-watermark::before {
  -webkit-mask-image: url('../assets/images/rebrand-2026/logos/x-monogram-white.svg');
  mask-image: url('../assets/images/rebrand-2026/logos/x-monogram-white.svg');
}

/* ---------- Business cover: light bg, X-mask image + logo + italic line ---------- */
.biz-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  padding-block: clamp(4rem, 10vh, 7rem);
  padding-inline: var(--gutter);
}
.biz-cover__media { width: min(60vw, 420px); }
.biz-cover__logo { height: clamp(36px, 5vw, 56px); width: auto; }
.biz-cover__tag {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  color: var(--accent-italic);
  max-width: 28ch;
}

/* ---------- Logo optical sizing: equal visual weight across very
   different logo aspect ratios (e.g. BEYOND is ~7x wider than tall,
   MHYA is almost square) — same height/scale would make the wide
   logo loom and the square one disappear, so each logo gets its own
   calibrated base height (--logo-h), scaled uniformly per context
   via --logo-scale on a shared ancestor. ---------- */
.logo-optical {
  display: block;
  width: auto;
  height: calc(var(--logo-h) * var(--logo-scale, 1));
  max-width: 100%;
  object-fit: contain;
}
.logo--arada   { --logo-h: 39px; }
.logo--xtopia  { --logo-h: 33px; }
.logo--mhya    { --logo-h: 72px; }
.logo--trofi   { --logo-h: 41px; }
.logo--beyond  { --logo-h: 36px; }
.logo--xeed    { --logo-h: 58px; }
.logo--soho    { --logo-h: 42px; }

/* ---------- Numbered points: 01 / 02 / 03 / 04 ---------- */
.points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}
.points__item { display: flex; flex-direction: column; gap: 0.75rem; }
.points__num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--color-taupe-text);
}
.theme-dark .points__num { color: var(--accent-number-dark); }
.points__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.25;
}
.points__text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.7;
  color: var(--color-taupe-text);
}
.theme-dark .points__text { color: var(--color-cream-dim); }
@media (max-width: 767px) {
  .points { grid-template-columns: 1fr; }
}