/* ==========================================================================
   AXIOS HOME — dark editorial redesign
   Shared by the home and Nosotros pages. Brand orange + aqua glow on near-black, initiative cards
   in the hero glow, purpose bento, numbered pillars, arc research, campaign CTA.
   ========================================================================== */

:is(#home, #about) {
  /* Color roles */
  --hx-bg: #07090F;
  --hx-surface: #0C0F16;
  --hx-card: #0F121A;
  --hx-line: rgba(255, 255, 255, 0.08);
  --hx-line-strong: rgba(255, 255, 255, 0.14);
  --hx-text: #F5F6F8;
  --hx-muted: #9AA3B5;
  --hx-dim: #6B7385;
  --hx-orange: #E35309;
  --hx-orange-l: #FF6B1F;
  --hx-ember: #B8360A;
  --hx-amber: #F59E0B;
  --hx-aqua: #22C3D6;
  --hx-cta: #FFFFFF;
  --hx-cta-ink: #0B0D12;

  /* Type scale */
  --hx-h1: clamp(2.1rem, 1.2rem + 2.4vw, 3.4rem);
  --hx-h2: clamp(2rem, 1.25rem + 2.9vw, 3.35rem);
  --hx-lead-size: clamp(1rem, 0.94rem + 0.3vw, 1.125rem);

  /* Shape */
  --hx-r-sm: 10px;
  --hx-r: 18px;
  --hx-r-lg: 26px;
  --hx-gutter: clamp(16px, 4vw, 32px);

  /* Motion: warm and steady */
  --hx-ease: cubic-bezier(.25, 1, .5, 1);
  --hx-dur: .9s;
  --hx-dist: 26px;
  --hx-t-hover: .45s;

  background: var(--hx-bg);
  color: var(--hx-text);
  overflow-x: clip;
  padding-bottom: 0;
}

:is(#home, #about) *, :is(#home, #about) *::before, :is(#home, #about) *::after { box-sizing: border-box; }

/* Decorative fixed glows must never widen the page */
body { overflow-x: clip; }

/* Content never depends on the reveal script: visible without JS or with reduced motion */
html:not(.js) :is(#home, #about) .reveal-on-scroll,
html:not(.js) :is(#home, #about) .reveal-scale { opacity: 1 !important; transform: none !important; }

:is(#home, #about) .hx-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--hx-gutter);
}

:is(#home, #about) .hx-section { padding-top: clamp(88px, 10vw, 150px); }

/* ---------- Shared type ---------- */
:is(#home, #about) .hx-h2 {
  font-size: var(--hx-h2);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--hx-text);
  margin: 0;
  text-wrap: balance;
}

:is(#home, #about) .hx-lead {
  font-size: var(--hx-lead-size);
  line-height: 1.6;
  color: var(--hx-muted);
  margin: 0;
}

:is(#home, #about) .hx-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

:is(#home, #about) .hx-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hx-orange-l);
}

/* ---------- Buttons ---------- */
:is(#home, #about) .hx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-family: var(--font-main);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--hx-t-hover) var(--hx-ease), background var(--hx-t-hover) var(--hx-ease),
              box-shadow var(--hx-t-hover) var(--hx-ease), border-color var(--hx-t-hover) var(--hx-ease);
}

:is(#home, #about) .hx-btn-primary {
  background: var(--hx-cta);
  color: var(--hx-cta-ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), 0 10px 30px -10px rgba(255, 107, 31, 0.55);
}
:is(#home, #about) .hx-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #fff, 0 16px 40px -12px rgba(255, 107, 31, 0.75); }
:is(#home, #about) .hx-btn-primary:active { transform: translateY(0) scale(.98); }

:is(#home, #about) .hx-btn-arrow {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--hx-orange);
  color: #fff;
  font-size: 0.8125rem;
  transition: transform var(--hx-t-hover) var(--hx-ease);
}
:is(#home, #about) .hx-btn:hover .hx-btn-arrow { transform: translateX(3px); }

:is(#home, #about) .hx-btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--hx-text);
  border: 1px solid var(--hx-line-strong);
}
:is(#home, #about) .hx-btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.28); }

:is(#home, #about) .hx-btn-dark {
  background: var(--hx-cta-ink);
  color: #fff;
}
:is(#home, #about) .hx-btn-dark:hover { transform: translateY(-2px); background: #000; }

:is(#home, #about) .hx-btn-sm { min-height: 44px; padding: 0 18px; font-size: 0.875rem; }

:is(#home, #about) a:focus-visible,
:is(#home, #about) button:focus-visible {
  outline: 2px solid var(--hx-aqua);
  outline-offset: 3px;
}

/* ---------- Brand mark chip ---------- */
:is(#home, #about) .hx-mark-chip {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #fff;
  flex-shrink: 0;
}
:is(#home, #about) .hx-mark-chip svg { width: 18px; height: 16px; fill: var(--hx-orange); }

:is(#home, #about) .hx-mark-chip-lg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.06), 0 0 60px rgba(255, 107, 31, 0.5);
}
:is(#home, #about) .hx-mark-chip-lg svg { width: 34px; height: 30px; }

/* ==========================================================================
   HERO
   ========================================================================== */
:is(#home, #about) .hx-hero {
  position: relative;
  isolation: isolate;
}

/* ---------- Top: photo crossfade + two columns ---------- */
:is(#home, #about) .hx-hero-top {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(880px, 100svh);
  padding: clamp(118px, 12vw, 150px) 0 clamp(72px, 8vw, 110px);
}

:is(#home, #about) .hx-hero-media {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  /* first photo doubles as the resting layer between fades */
  background: var(--hx-bg) url('../assets/hero-slide-1.webp') center / cover no-repeat;
}
:is(#home, #about) .hx-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 15, 0.86) 0%, rgba(7, 9, 15, 0.55) 48%, rgba(7, 9, 15, 0.18) 100%),
    linear-gradient(180deg, rgba(7, 9, 15, 0.6) 0%, rgba(7, 9, 15, 0) 28%, rgba(7, 9, 15, 0) 62%, var(--hx-bg) 100%);
}
:is(#home, #about) .hx-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  opacity: 0;
  animation: hx-slide 21s linear infinite;
}
:is(#home, #about) .hx-slide:nth-child(2) { animation-delay: 7s; }
:is(#home, #about) .hx-slide:nth-child(3) { animation-delay: 14s; }

:is(#home, #about) .hx-inits-zone { position: relative; isolation: isolate; }

:is(#home, #about) .hx-hero-glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  /* Box is far larger than every gradient so each glow fades out before its edge */
  top: 55%;
  width: 2400px;
  height: 1400px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(22% 30% at 32% 48%, rgba(227, 83, 9, 0.75), transparent 100%),
    radial-gradient(18% 24% at 41% 61%, rgba(184, 54, 10, 0.55), transparent 100%),
    radial-gradient(20% 28% at 68% 47%, rgba(34, 195, 214, 0.6), transparent 100%),
    radial-gradient(28% 20% at 50% 40%, rgba(255, 255, 255, 0.05), transparent 100%);
  pointer-events: none;
}

:is(#home, #about) .hx-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
:is(#home, #about) .hx-hero-copy { display: flex; flex-direction: column; align-items: flex-start; }

/* Liquid glass card: translucent, refracted backdrop, specular rim */
:is(#home, #about) .hx-card.hx-meaning {
  justify-self: end;
  width: 100%;
  max-width: 400px;
  gap: 16px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 38%, rgba(255, 255, 255, 0.02) 62%, rgba(255, 255, 255, 0.09) 100%),
    rgba(10, 12, 18, 0.32);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 32px rgba(255, 255, 255, 0.06),
    0 24px 60px -24px rgba(0, 0, 0, 0.65);
}
:is(#home, #about) .hx-card.hx-meaning::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(255, 255, 255, 0.22), transparent 55%),
    radial-gradient(80% 50% at 100% 100%, rgba(255, 140, 70, 0.18), transparent 60%);
  pointer-events: none;
}
:is(#home, #about) .hx-meaning > * { position: relative; }
:is(#home, #about) .hx-meaning .hx-kicker { font-size: 0.6875rem; color: #FFB27A; }
:is(#home, #about) .hx-meaning .hx-card-title,
:is(#home, #about) .hx-meaning .hx-card-text { margin-left: 0; margin-right: 0; }
:is(#home, #about) .hx-meaning .hx-card-title { margin-top: 6px; font-size: 1.125rem; }
:is(#home, #about) .hx-meaning .hx-card-text { margin-top: 4px; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.72); }
:is(#home, #about) .hx-meaning .hx-words { border-top-color: rgba(255, 255, 255, 0.16); }
:is(#home, #about) .hx-meaning .hx-words li {
  padding: 9px 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
:is(#home, #about) .hx-meaning .hx-words-n { font-size: 0.6875rem; color: #FFB27A; }
:is(#home, #about) .hx-meaning .hx-verse { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.8); border-left-color: rgba(255, 178, 122, 0.8); }

:is(#home, #about) .hx-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--hx-line-strong);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--hx-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
:is(#home, #about) .hx-pill-mark {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(227, 83, 9, 0.18);
  fill: var(--hx-orange-l);
}

:is(#home, #about) .hx-hero-title {
  font-size: var(--hx-h1);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: none;
  margin: 22px 0 0;
  color: var(--hx-text);
  text-wrap: balance;
}

:is(#home, #about) .hx-hero-line {
  display: block;
}

:is(#home, #about) .hx-highlight {
  display: inline-block;
  background: linear-gradient(120deg, #FF6B1F 0%, #FFA84A 28%, #FFE4A0 50%, #FFA84A 72%, #FF6B1F 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #FF6B1F;
  filter: drop-shadow(0 2px 14px rgba(255, 107, 31, 0.45));
  animation: hx-highlight-flow 5s ease-in-out infinite;
  animation-delay: calc(var(--hl-i, 0) * 0.65s);
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
  cursor: default;
}

:is(#home, #about) .hx-highlight:hover {
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(0 4px 22px rgba(255, 107, 31, 0.7));
}

@keyframes hx-highlight-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (max-width: 640px) {
  :is(#home, #about) .hx-hero-line {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(#home, #about) .hx-highlight {
    animation: none;
    background-position: 0% 50%;
    opacity: 1;
    transform: none;
  }
}

:is(#home, #about) .hx-hero-sub {
  max-width: 560px;
  margin: 22px 0 0;
  font-size: var(--hx-lead-size);
  line-height: 1.6;
  color: #C3CAD6;
}

:is(#home, #about) .hx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* ---------- Initiative cards in the hero glow ---------- */
:is(#home, #about) .hx-inits-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 640px;
  margin: clamp(72px, 9vw, 112px) auto clamp(28px, 4vw, 44px);
  text-align: center;
}
:is(#home, #about) .hx-inits-title {
  margin: 0;
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--hx-text);
}

:is(#home, #about) .hx-inits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1120px;
  margin: 0 auto;
}
:is(#home, #about) .hx-inits .hx-card { background: linear-gradient(180deg, rgba(17, 20, 28, 0.94), rgba(12, 15, 21, 0.96)); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9); }
:is(#home, #about) .hx-inits .hx-card-featured {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #11141C, #0C0F15) padding-box,
    linear-gradient(150deg, var(--hx-aqua), rgba(255, 255, 255, 0.15) 45%, var(--hx-orange-l)) border-box;
  box-shadow: 0 30px 80px -40px rgba(34, 195, 214, 0.6);
}

:is(#home, #about) .hx-checks {
  list-style: none;
  margin: 8px 6px 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--hx-line);
  display: flex;
  flex-direction: column;
  gap: 11px;
}
:is(#home, #about) .hx-checks li {
  display: flex;
  gap: 10px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #D5DAE3;
}
:is(#home, #about) .hx-checks li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 18%, transparent);
  color: var(--c);
  font-size: 0.625rem;
  font-weight: 700;
}

:is(#home, #about) .hx-card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: auto 6px 0;
  padding-top: 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c);
}
:is(#home, #about) .hx-card-more span:last-child { transition: transform var(--hx-t-hover) var(--hx-ease); }
:is(#home, #about) a.hx-card:hover .hx-card-more span:last-child { transform: translateX(3px); }

:is(#home, #about) .hx-frame-chips { display: flex; flex-wrap: wrap; gap: 6px; }

:is(#home, #about) .hx-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 11px;
  border-radius: 8px;
  border: 1px solid var(--hx-line-strong);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.75rem;
  font-weight: 500;
  color: #D5DAE3;
}

/* ==========================================================================
   PURPOSE — split intro + bento (meaning + trust)
   ========================================================================== */
:is(#home, #about) .hx-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 56px);
}
:is(#home, #about) .hx-split-title { max-width: 12ch; }
:is(#home, #about) .hx-split-side { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 420px; }

:is(#home, #about) .hx-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

:is(#home, #about) .hx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 24px;
  border-radius: var(--hx-r);
  background: linear-gradient(180deg, #11141C, #0C0F15);
  border: 1px solid var(--hx-line);
  color: var(--hx-text);
  text-decoration: none;
  overflow: hidden;
  transition: border-color var(--hx-t-hover) var(--hx-ease), transform var(--hx-t-hover) var(--hx-ease);
}
:is(#home, #about) a.hx-card:hover { border-color: rgba(255, 255, 255, 0.2); }

:is(#home, #about) .hx-card-wide { grid-column: span 3; padding: 28px; }
:is(#home, #about) .hx-card-trust.hx-card-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; }
:is(#home, #about) .hx-card-trust > div:last-child { max-width: 640px; }

:is(#home, #about) .hx-card-title {
  margin: 8px 6px 0;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--hx-text);
}
:is(#home, #about) .hx-card-text {
  margin: 0 6px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--hx-muted);
}
:is(#home, #about) .hx-card-wide .hx-card-title,
:is(#home, #about) .hx-card-wide .hx-card-text { margin-left: 0; margin-right: 0; }

:is(#home, #about) .hx-card-visual {
  position: relative;
  height: 220px;
  border-radius: 12px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 100% 28px,
    #0A0C11;
  border: 1px solid var(--hx-line);
  overflow: hidden;
}
:is(#home, #about) .hx-card-visual::before {
  content: "";
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 80%;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%);
  opacity: 0.6;
  transition: opacity var(--hx-t-hover) var(--hx-ease);
}
:is(#home, #about) a.hx-card:hover .hx-card-visual::before { opacity: 1; }

:is(#home, #about) .hx-shot {
  position: absolute;
  left: 50%;
  top: 22px;
  width: 64%;
  height: calc(100% + 10px);
  transform: translateX(-50%);
  border-radius: 12px 12px 0 0;
  padding: 6px 6px 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 0;
  transition: transform var(--hx-t-hover) var(--hx-ease);
}
:is(#home, #about) .hx-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 8px 8px 0 0;
}
:is(#home, #about) a.hx-card:hover .hx-shot { transform: translateX(-50%) translateY(-6px); }

:is(#home, #about) .hx-float-chip {
  position: absolute;
  right: 10px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100% - 20px);
  padding: 7px 11px;
  border-radius: 9px;
  background: rgba(14, 17, 24, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.75rem;
  font-weight: 500;
  color: #E9ECF2;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}
:is(#home, #about) .hx-float-chip i {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 10px var(--c);
}

/* Meaning card */
:is(#home, #about) .hx-card-meaning {
  gap: 22px;
  background:
    radial-gradient(70% 60% at 0% 100%, rgba(227, 83, 9, 0.22), transparent 70%),
    linear-gradient(180deg, #11141C, #0C0F15);
}
:is(#home, #about) .hx-words {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hx-line);
}
:is(#home, #about) .hx-words li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hx-line);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
:is(#home, #about) .hx-words-n { font-size: 0.75rem; font-weight: 600; color: var(--hx-orange-l); letter-spacing: 0.04em; }

:is(#home, #about) .hx-verse {
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid var(--hx-orange);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #C9CFDA;
}

/* Trust card */
:is(#home, #about) .hx-card-trust {
  justify-content: space-between;
  gap: 28px;
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(34, 195, 214, 0.2), transparent 70%),
    linear-gradient(180deg, #11141C, #0C0F15);
}
:is(#home, #about) .hx-card-trust .hx-kicker { color: var(--hx-aqua); }

:is(#home, #about) .hx-seal {
  position: relative;
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
  align-self: center;
}
:is(#home, #about) .hx-seal-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(34, 195, 214, 0), rgba(34, 195, 214, 0.9), rgba(255, 107, 31, 0.9), rgba(255, 107, 31, 0));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  animation: hx-spin 18s linear infinite;
}
:is(#home, #about) .hx-seal::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.16);
}
:is(#home, #about) .hx-seal-mark { width: 64px; height: 57px; fill: #fff; }

/* ==========================================================================
   PILLARS — numbered colored cards that build the "A"
   ========================================================================== */
:is(#home, #about) .hx-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

:is(#home, #about) .hx-step {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: 22px;
  background: #0E1118;
  border: 1px solid var(--hx-line);
}

:is(#home, #about) .hx-step-head {
  min-height: 210px;
  padding: 18px 18px 22px;
  border-radius: 16px;
  background: var(--c);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 18px 40px -18px var(--c);
}
:is(#home, #about) .hx-step-n {
  display: block;
  font-size: clamp(2.25rem, 1.8rem + 1.4vw, 3rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  opacity: 0.85;
}
:is(#home, #about) .hx-step-title {
  margin: 18px 0 6px;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: inherit;
}
:is(#home, #about) .hx-step-text { margin: 0; font-size: 0.875rem; line-height: 1.55; color: inherit; opacity: 0.92; }

:is(#home, #about) .hx-step-visual {
  position: relative;
  display: grid;
  place-items: center;
  height: 170px;
  margin-top: 8px;
  border-radius: 16px;
  background:
    radial-gradient(60% 70% at 50% 100%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 100% 22px,
    #0A0C11;
  border: 1px solid var(--hx-line);
}
:is(#home, #about) .hx-step-visual svg { width: 96px; height: 85px; overflow: visible; }
:is(#home, #about) .hx-step-visual use {
  fill: transparent;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 6;
  stroke-dasharray: 18 14;
  transition: fill .8s var(--hx-ease), stroke .8s var(--hx-ease);
}
/* Each pillar adds a piece of the mark: 1 short stroke, 2 long stroke, 3 both, 4 full A */
:is(#home, #about) [data-build="1"] .p-short,
:is(#home, #about) [data-build="2"] .p-long,
:is(#home, #about) [data-build="3"] .p-short,
:is(#home, #about) [data-build="3"] .p-long,
:is(#home, #about) [data-build="4"] use { fill: var(--c); stroke: transparent; }

/* ==========================================================================
   RESEARCH — glowing arc
   ========================================================================== */
:is(#home, #about) .hx-research {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: clamp(40px, 6vw, 80px);
}
:is(#home, #about) .hx-research::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(40% 30% at 30% 22%, rgba(227, 83, 9, 0.28), transparent 70%),
    radial-gradient(40% 30% at 72% 26%, rgba(34, 195, 214, 0.24), transparent 70%);
}

:is(#home, #about) .hx-arc {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: clamp(40px, 6vw, 90px);
  width: min(640px, 130vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  pointer-events: none;
}
:is(#home, #about) .hx-arc-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 210deg, transparent 0deg, rgba(255, 107, 31, 0.55) 40deg, rgba(255, 190, 120, 0.35) 70deg, rgba(34, 195, 214, 0.5) 110deg, transparent 150deg, transparent 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent 38%, #000 40%, #000 70%, transparent 100%);
          mask: radial-gradient(farthest-side, transparent 38%, #000 40%, #000 70%, transparent 100%);
  animation: hx-spin 26s linear infinite;
}
:is(#home, #about) .hx-arc-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
:is(#home, #about) .hx-arc-ring.r1 { inset: 0; }
:is(#home, #about) .hx-arc-ring.r2 { inset: 22%; border-color: rgba(255, 255, 255, 0.06); }

:is(#home, #about) .hx-research-inner { padding-top: clamp(120px, 14vw, 190px); }
:is(#home, #about) .hx-research .hx-kicker { margin-top: 6px; }

:is(#home, #about) .hx-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

:is(#home, #about) .hx-stat-group {
  padding: 22px;
  border-radius: var(--hx-r);
  background: rgba(12, 15, 22, 0.78);
  border: 1px solid var(--hx-line);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
:is(#home, #about) .hx-stat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hx-line);
  color: var(--hx-orange-l);
}
:is(#home, #about) .hx-stat-head h3 { margin: 0; font-size: 0.9375rem; font-weight: 600; color: var(--hx-text); }

:is(#home, #about) .hx-stat-list { margin: 0; display: flex; flex-direction: column; }
:is(#home, #about) .hx-stat-list > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
:is(#home, #about) .hx-stat-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
:is(#home, #about) .hx-stat-list dt {
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--hx-text);
  font-variant-numeric: tabular-nums;
}
:is(#home, #about) .hx-stat-list dd { margin: 0; font-size: 0.8125rem; line-height: 1.5; color: var(--hx-muted); }

:is(#home, #about) .hx-source {
  max-width: 720px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--hx-dim);
}

/* ==========================================================================
   PROJECTS — pricing-style cards (rendered by app.js)
   ========================================================================== */
:is(#home, #about) .hx-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 370px));
  justify-content: center;
  gap: 14px;
  align-items: stretch;
}

:is(#home, #about) .hx-empty {
  grid-column: 1 / -1;
  padding: 40px 20px;
  border-radius: var(--hx-r);
  border: 1px dashed var(--hx-line-strong);
  text-align: center;
}
:is(#home, #about) .hx-empty p { margin: 0; font-size: 0.9375rem; color: var(--hx-muted); }

:is(#home, #about) .hx-project {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: 22px;
  background: #0E1118;
  border: 1px solid var(--hx-line);
}
:is(#home, #about) .hx-project:nth-child(3n + 2) {
  border: 1px solid transparent;
  background:
    linear-gradient(#0E1118, #0E1118) padding-box,
    linear-gradient(150deg, var(--hx-aqua), rgba(255, 255, 255, 0.15) 45%, var(--hx-orange-l)) border-box;
  box-shadow: 0 30px 80px -40px rgba(34, 195, 214, 0.6);
}

:is(#home, #about) .hx-project-cover {
  position: relative;
  height: 150px;
  border-radius: 16px;
  overflow: hidden;
}
:is(#home, #about) .hx-project-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
:is(#home, #about) .hx-project-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 15, 0.1), rgba(8, 10, 15, 0.75));
}
:is(#home, #about) .hx-project-flag {
  position: absolute;
  z-index: 1;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(8, 10, 15, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.75rem;
  font-weight: 600;
}
:is(#home, #about) .hx-project-flag img { width: 18px; height: 12px; border-radius: 2px; object-fit: cover; }
:is(#home, #about) .hx-project-status {
  position: absolute;
  z-index: 1;
  right: 12px;
  top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--hx-cta-ink);
  font-size: 0.6875rem;
  font-weight: 700;
}

:is(#home, #about) .hx-project-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 18px 12px 12px; }
:is(#home, #about) .hx-project-type { font-size: 0.75rem; font-weight: 600; color: var(--hx-orange-l); }
:is(#home, #about) .hx-project-title { margin: 0; font-size: 1.125rem; font-weight: 600; line-height: 1.3; color: var(--hx-text); }

:is(#home, #about) .hx-project-amount { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
:is(#home, #about) .hx-project-amount strong { font-size: 1.875rem; font-weight: 600; letter-spacing: -0.03em; color: var(--hx-text); }
:is(#home, #about) .hx-project-amount span { font-size: 0.8125rem; color: var(--hx-muted); }

:is(#home, #about) .hx-project-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
:is(#home, #about) .hx-project-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--hx-orange-l), var(--hx-amber)); }

:is(#home, #about) .hx-project-meta { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
:is(#home, #about) .hx-project-meta li { display: flex; gap: 10px; font-size: 0.8125rem; line-height: 1.5; color: #C9CFDA; }
:is(#home, #about) .hx-project-meta li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.625rem;
  color: #fff;
}

:is(#home, #about) .hx-project-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; }
:is(#home, #about) .hx-project-actions .hx-btn { flex: 1; min-height: 44px; padding: 0 12px; font-size: 0.8125rem; border: 0; }

/* ==========================================================================
   CAMPAIGN CTA — gradient banner
   ========================================================================== */
:is(#home, #about) .hx-cta-wrap { padding-top: clamp(88px, 10vw, 150px); padding-bottom: clamp(40px, 6vw, 80px); }

:is(#home, #about) .hx-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px);
  border-radius: 28px;
  color: var(--hx-cta-ink);
  background:
    radial-gradient(60% 90% at 0% 100%, #FF6B1F, transparent 70%),
    radial-gradient(50% 80% at 50% 0%, #FFB15C, transparent 75%),
    radial-gradient(60% 90% at 100% 60%, #22C3D6, transparent 70%),
    linear-gradient(100deg, #FF7A2A, #FFB15C 50%, #6FD8E3);
}
:is(#home, #about) .hx-cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(70% 60% at 50% 50%, rgba(255, 255, 255, 0.28), transparent 70%);
}

:is(#home, #about) .hx-cta-mark {
  position: absolute;
  z-index: -1;
  right: -40px;
  bottom: -70px;
  width: 360px;
  height: 317px;
  fill: rgba(11, 13, 18, 0.07);
}

:is(#home, #about) .hx-cta-badge {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(11, 13, 18, 0.88);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}
:is(#home, #about) .hx-cta-title {
  max-width: 18ch;
  margin: 0;
  font-size: var(--hx-h2);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--hx-cta-ink);
  text-wrap: balance;
}
:is(#home, #about) .hx-cta-text { max-width: 560px; margin: 0; font-size: 1rem; line-height: 1.6; color: #1C1F26; }

:is(#home, #about) .hx-goal { width: 100%; max-width: 520px; margin: 10px 0 8px; }
:is(#home, #about) .hx-goal-bar { height: 10px; border-radius: 99px; background: rgba(11, 13, 18, 0.16); overflow: hidden; }
:is(#home, #about) .hx-goal-fill { height: 100%; border-radius: inherit; background: var(--hx-cta-ink); transition: width 1.2s var(--hx-ease); }
:is(#home, #about) .hx-goal-stats {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 0.875rem;
  color: #1C1F26;
}
:is(#home, #about) .hx-goal-stats strong { color: var(--hx-cta-ink); font-weight: 700; }

/* ==========================================================================
   MOTION
   ========================================================================== */
@keyframes hx-spin { to { rotate: 360deg; } }

/* 3 photos, 7s each: fade in while slowly settling, then fade out */
@keyframes hx-slide {
  0% { opacity: 0; transform: scale(1.08); }
  6% { opacity: 1; }
  33.3% { opacity: 1; }
  40% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}

@keyframes hx-rise {
  from { opacity: 0; transform: translateY(var(--hx-dist)); }
  to { opacity: 1; transform: none; }
}
@keyframes hx-frame-rise {
  from { opacity: 0; transform: translateY(60px) scale(.96); }
  to { opacity: 1; transform: none; }
}
@keyframes hx-glow-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.85); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
/* Signature: the two strokes of the A slide into place */
@keyframes hx-long-in { from { transform: translate(18%, -22%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hx-short-in { from { transform: translate(-22%, 22%); opacity: 0; } to { transform: none; opacity: 1; } }

:is(#home, #about) .stagger-2 { transition-delay: .08s; }
:is(#home, #about) .stagger-3 { transition-delay: .16s; }
:is(#home, #about) .stagger-4 { transition-delay: .24s; }

:is(#home, #about) .hx-in { animation: hx-rise var(--hx-dur) var(--hx-ease) both; animation-delay: calc(var(--d) * 110ms + 380ms); }
:is(#home, #about) .hx-frame-in { animation: hx-frame-rise 1.3s var(--hx-ease) both; animation-delay: 760ms; }
:is(#home, #about) .hx-hero-glow { animation: hx-glow-in 1.8s var(--hx-ease) both; animation-delay: 600ms; }

:is(#home, #about) .hx-pill-mark use { transform-box: fill-box; }
:is(#home, #about) .hx-mark-chip svg,
:is(#home, #about) .hx-pill-mark { overflow: visible; }

/* Pillar visuals build the mark as they enter */
:is(#home, #about) .hx-step.is-visible [data-build] use { animation: hx-rise .8s var(--hx-ease) both; }
:is(#home, #about) .hx-step.is-visible .p-short { animation-delay: .25s !important; }
:is(#home, #about) .hx-step.is-visible .p-long { animation-delay: .4s !important; }
:is(#home, #about) .hx-step.is-visible .p-bars { animation-delay: .55s !important; }

/* Hero signature on the frame chip: strokes assemble */
:is(#home, #about) .hx-sig-long { animation: hx-long-in 1s var(--hx-ease) both 1.2s; }
:is(#home, #about) .hx-sig-short { animation: hx-short-in 1s var(--hx-ease) both 1.35s; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  :is(#home, #about) .hx-steps { grid-template-columns: repeat(2, 1fr); }
  :is(#home, #about) .hx-stats { grid-template-columns: 1fr 1fr; }
  :is(#home, #about) .hx-stats .hx-stat-group:last-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :is(#home, #about) .hx-hero-inner { grid-template-columns: 1fr; }
  :is(#home, #about) .hx-hero-top { min-height: 0; }
  :is(#home, #about) .hx-hero-media::after { background: linear-gradient(180deg, rgba(7, 9, 15, 0.75) 0%, rgba(7, 9, 15, 0.6) 40%, rgba(7, 9, 15, 0.85) 75%, var(--hx-bg) 100%); }
  :is(#home, #about) .hx-card.hx-meaning { justify-self: stretch; max-width: 560px; }
  :is(#home, #about) .hx-inits { grid-template-columns: 1fr; max-width: 560px; }
  :is(#home, #about) .hx-split { grid-template-columns: 1fr; gap: 18px; }
  :is(#home, #about) .hx-split-title { max-width: none; }
  :is(#home, #about) .hx-card-wide { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :is(#home, #about) .hx-hero-title { max-width: none; }
  :is(#home, #about) .hx-actions { width: 100%; flex-direction: column; }
  :is(#home, #about) .hx-actions .hx-btn { width: 100%; }

  :is(#home, #about) .hx-bento { grid-template-columns: 1fr; }
  :is(#home, #about) .hx-card-wide { padding: 22px; }
  :is(#home, #about) .hx-card-trust.hx-card-wide { flex-direction: column; align-items: flex-start; }
  :is(#home, #about) .hx-card.hx-meaning { padding: 20px; }
  :is(#home, #about) .hx-seal { width: 132px; height: 132px; }

  /* Pillars become a swipeable row */
  :is(#home, #about) .hx-steps-wrap { padding-right: 0; }
  :is(#home, #about) .hx-steps {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-right: var(--hx-gutter);
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  :is(#home, #about) .hx-steps::-webkit-scrollbar { display: none; }
  :is(#home, #about) .hx-step { scroll-snap-align: start; }
  :is(#home, #about) .hx-step.reveal-on-scroll { opacity: 1 !important; transform: none !important; }
  :is(#home, #about) .hx-step-head { min-height: 200px; }
  :is(#home, #about) .hx-step-visual { height: 140px; }

  :is(#home, #about) .hx-stats { grid-template-columns: 1fr; }
  :is(#home, #about) .hx-stat-list > div { grid-template-columns: 84px 1fr; }
  :is(#home, #about) .hx-projects { grid-template-columns: 1fr; }
  :is(#home, #about) .hx-goal-stats { flex-direction: column; align-items: center; gap: 4px; }
  :is(#home, #about) .hx-cta .hx-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  :is(#home, #about) .reveal-on-scroll,
  :is(#home, #about) .reveal-scale { opacity: 1 !important; transform: none !important; transition: none !important; }
  :is(#home, #about) .hx-in,
  :is(#home, #about) .hx-frame-in,
  :is(#home, #about) .hx-hero-glow,
  :is(#home, #about) .hx-arc-sweep,
  :is(#home, #about) .hx-seal-ring,
  :is(#home, #about) .hx-sig-long,
  :is(#home, #about) .hx-sig-short,
  :is(#home, #about) .hx-step.is-visible [data-build] use { animation: none !important; }
  :is(#home, #about) .hx-hero-glow { transform: translate(-50%, -50%); }
  :is(#home, #about) .hx-slide { animation: none; }
  :is(#home, #about) .hx-btn, :is(#home, #about) .hx-shot { transition: none; }
}
