/* =========================================================
   BTH — Design System Variables
   ========================================================= */
:root {
  /* Brand colors */
  --bth-purple: #782AFF;
  --bth-purple-deep: #6D26E8;
  --bth-purple-100: #D5BDFF;
  --bth-purple-50: #EDE2FF;
  --bth-blue: #2563EB;
  --bth-blue-light: #0EA5E9;
  --bth-dark: #0F172A;
  --bth-dark-2: #1A2238;
  --bth-neutral: #6B7280;
  --bth-grey-50: #F0F1F2;
  --bth-white: #FFFFFF;

  /* Status */
  --bth-success: #10B981;
  --bth-warning: #F59E0B;
  --bth-error: #EF4444;
  --bth-info: #0EA5E9;

  /* Type scale (base 16, ratio 1.25) */
  --fs-xs: 0.625rem;     /* 10px */
  --fs-sm: 0.813rem;     /* 13px */
  --fs-base: 1rem;       /* 16px */
  --fs-md: 1.25rem;      /* 20px */
  --fs-lg: 1.563rem;     /* 25px */
  --fs-xl: 1.938rem;     /* 31px */
  --fs-2xl: 2.438rem;    /* 39px */
  --fs-3xl: 3.063rem;    /* 49px */
  --fs-4xl: 3.813rem;    /* 61px */
  --fs-5xl: clamp(4rem, 8vw, 7.5rem);
  --fs-6xl: clamp(5rem, 12vw, 11rem);

  /* Type families */
  --ff-display: 'Space Grotesk', sans-serif;
  --ff-mono: 'Geist Mono', monospace;
  --ff-body: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --space-2xl: 12rem;

  /* Easing */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* =========================================================
   Reset & Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--bth-dark);
  background: var(--bth-grey-50);
  overflow-x: hidden;
  cursor: none;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: none; border: none; background: none; }
a { color: inherit; text-decoration: none; cursor: none; }

h1, h2, h3, h4, h5, h6 { font-family: var(--ff-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }

/* =========================================================
   Custom cursor — two-element pattern.
   1) .cursor-dot   : a tiny center point that tracks the pointer
                      with zero lag. Marks the actual click point.
   2) .cursor-triangle : an outlined right-pointing triangle that
                      follows with a soft lerp easing, providing
                      the brand-recall flourish + the "trailing"
                      premium feel. Outline only, semi-rounded
                      corners via stroke-linejoin="round".
   ========================================================= */
.cursor-dot, .cursor-triangle {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 10000;
  transform: translate3d(-50%, -50%, 0);
  opacity: 0;
  will-change: transform, opacity;
  mix-blend-mode: difference;
}

.cursor-dot {
  width: 6px; height: 6px;
  background: var(--bth-purple-100);
  border-radius: 50%;
  transition:
    opacity 0.5s var(--ease-out),
    width 0.3s var(--ease-out),
    height 0.3s var(--ease-out);
}
.cursor-dot.is-ready { opacity: 1; }
.cursor-dot.is-hover { width: 0; height: 0; }

.cursor-triangle {
  /* Larger outer follower. Sized in px so the stroke weight reads
     consistently across viewports. */
  width: 44px; height: 44px;
  color: var(--bth-purple-100);
  transition:
    opacity 0.5s var(--ease-out),
    width 0.4s var(--ease-out),
    height 0.4s var(--ease-out),
    color 0.3s var(--ease-out);
}
.cursor-triangle.is-ready { opacity: 0.85; }
.cursor-triangle svg {
  width: 100%; height: 100%; display: block;
  transform-origin: 50% 50%;
  transition: transform 0.45s var(--ease-out);
}
/* Hover state — grows + saturates to brand purple, no fill. The
   triangle stroke is what does the work, so only the colour and
   size shift. */
.cursor-triangle.is-hover {
  width: 72px; height: 72px;
  color: var(--bth-purple);
}
/* Tiny tactile pulse on press. */
.cursor-triangle.is-press svg { transform: scale(0.92); }

/* Touch / small viewports — restore the OS cursor and hide both
   custom elements. Pointer-only flourish. */
@media (hover: none), (pointer: coarse), (max-width: 900px) {
  body { cursor: auto; }
  .cursor-dot, .cursor-triangle { display: none; }
  button, a { cursor: pointer; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-dot, .cursor-triangle, .cursor-triangle svg {
    transition-duration: 0.001s;
  }
}

/* =========================================================
   Custom scrollbar
   ========================================================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bth-purple); border-radius: 3px; }

/* =========================================================
   Loading screen
   ========================================================= */
.loader {
  position: fixed; inset: 0;
  background: var(--bth-dark);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-skip .loader { display: none; }
.loader-logo {
  font-family: var(--ff-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--bth-white);
  display: flex; align-items: center; gap: 0.45rem;
  letter-spacing: -0.04em;
  line-height: 1;
}
.loader-logo-mark { display: inline-flex; width: 0.85em; height: 0.85em; }
.loader-logo-mark svg { width: 100%; height: 100%; display: block; }
.loader-bar {
  width: 240px; height: 1px;
  background: rgba(255,255,255,0.1);
  margin-top: 2rem;
  overflow: hidden;
}
.loader-bar::after {
  content: '';
  display: block;
  width: 30%; height: 100%;
  background: var(--bth-purple);
  animation: loaderSlide 1.4s ease-in-out infinite;
}
@keyframes loaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}
.loader-text {
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.5);
  margin-top: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s, padding 0.4s;
}
.nav.scrolled {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem 2.5rem;
}
.nav.light-section {
  background: rgba(240, 241, 242, 0.85);
}
.nav-logo {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--bth-white);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  line-height: 1;
  transition: color 0.4s var(--ease-out);
}
.nav.light-section .nav-logo { color: var(--bth-dark); }
.nav-logo-text { display: inline-block; }
/* Brand-mark triangle — rendered as inline SVG so it stays crisp at
   every pixel density and keeps its purple gradient on both light
   and dark sections (independent of the wordmark colour). */
.nav-logo-mark {
  display: inline-flex;
  width: 0.95em;
  height: 0.95em;
  flex-shrink: 0;
  /* Optical alignment with the BTH cap-line of the wordmark. */
  margin-top: 0.05em;
}
.nav-logo-mark svg { width: 100%; height: 100%; display: block; }
@media (max-width: 600px) {
  .nav-logo { font-size: 1.35rem; gap: 0.35rem; }
}

.nav-links {
  display: flex; gap: 2.5rem;
  align-items: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.nav-link {
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bth-white);
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s;
}
.nav.light-section .nav-link { color: var(--bth-dark); }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--bth-purple);
  transition: width 0.4s var(--ease-out);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--bth-purple); }

.nav-cta {
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--bth-purple);
  color: var(--bth-white);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  transition: background 0.3s, transform 0.3s var(--ease-out);
}
.nav-cta:hover { background: var(--bth-purple-deep); transform: translateY(-2px); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-right: 1rem;
  padding: 0.35rem;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s, background 0.3s;
}
.nav.light-section .lang-switch { border-color: rgba(15,23,42,0.18); background: rgba(15,23,42,0.04); }
.lang-switch button {
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  color: rgba(255,255,255,0.55);
  transition: color 0.3s, background 0.3s;
}
.nav.light-section .lang-switch button { color: rgba(15,23,42,0.55); }
.lang-switch button.active { color: var(--bth-white); background: var(--bth-purple); }
.nav.light-section .lang-switch button.active { color: var(--bth-white); }
.lang-switch button:hover:not(.active) { color: var(--bth-white); }
.nav.light-section .lang-switch button:hover:not(.active) { color: var(--bth-dark); }

@media (max-width: 900px) {
  .lang-switch { margin-right: 0.5rem; padding: 0.25rem; }
  .lang-switch button { padding: 0.2rem 0.45rem; }
}

/* Floating language switcher — fixed bottom-left */
.lang-switch-floating {
  position: fixed;
  left: 1.75rem;
  bottom: 1.75rem;
  z-index: 95;
  margin-right: 0;
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.25);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), background 0.3s, border-color 0.3s;
}
.lang-switch-floating button {
  color: rgba(255, 255, 255, 0.7);
}
.lang-switch-floating button.active {
  color: var(--bth-white);
  background: var(--bth-purple);
}
.lang-switch-floating button:hover:not(.active) {
  color: var(--bth-white);
}
@media (max-width: 600px) {
  .lang-switch-floating { left: 1rem; bottom: 1rem; }
}

.nav-mobile-toggle { display: none; }
.mobile-menu { display: none; }

@media (max-width: 900px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 32px; height: 32px;
    justify-content: center;
    align-items: center;
  }
  .nav-mobile-toggle span {
    width: 24px; height: 2px;
    background: var(--bth-white);
    transition: all 0.3s;
  }
  .nav.light-section .nav-mobile-toggle span { background: var(--bth-dark); }
  .nav-mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--bth-purple); }
  .nav-mobile-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--bth-purple); }

  .mobile-menu {
    display: flex;
    position: fixed;
    top: 0; right: 0;
    width: 100%; height: 100vh;
    background: var(--bth-dark);
    z-index: 99;
    flex-direction: column;
    justify-content: center; align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out);
  }
  .mobile-menu.open { transform: translateX(0); }
  .mobile-menu .nav-link {
    color: var(--bth-white);
    font-size: var(--fs-2xl);
    font-family: var(--ff-display);
    text-transform: none;
    letter-spacing: -0.02em;
  }
}

/* =========================================================
   Page system
   ========================================================= */
.page { display: block; }

/* =========================================================
   Hero (Home)
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--bth-dark);
  color: var(--bth-white);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 10rem 2.5rem 6rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg::before {
  content: '';
  position: absolute;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 42, 255, 0.4) 0%, transparent 60%);
  top: -200px; right: -200px;
  filter: blur(40px);
  animation: floatA 18s ease-in-out infinite;
}
.hero-bg::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.3) 0%, transparent 60%);
  bottom: -100px; left: -100px;
  filter: blur(40px);
  animation: floatB 22s ease-in-out infinite;
}
@keyframes floatA {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-80px, 60px); }
}
@keyframes floatB {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(60px, -40px); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 1;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 30%, transparent 80%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  /* Two-column layout on desktop: text holds the wider left column,
     the isometric image breathes in the right column. Single column
     below 1100px so the text remains the priority on tablet/mobile. */
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
}
.hero-text { max-width: 720px; }
.hero-visual {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Isometric brand image — sized to roughly match the height of the
   text block, blended with the dark hero background so it feels
   composed into the section, not pasted on top. */
.hero-iso-image {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
  /* Atmospheric treatment — slight transparency, screen blend mode
     so the dark base of the asset dissolves into the hero gradient,
     and a soft purple glow halo to anchor it visually. */
  opacity: 0.92;
  mix-blend-mode: screen;
  filter:
    saturate(1.05)
    drop-shadow(0 20px 60px rgba(120, 42, 255, 0.35))
    drop-shadow(0 0 90px rgba(120, 42, 255, 0.18));
  transition: transform 0.8s var(--ease-out), opacity 0.6s var(--ease-out);
  will-change: transform;
}
/* Subtle parallax/breathe — drifts very slowly so the image feels
   alive without distracting from the headline. */
@keyframes heroIsoFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.hero-iso-image { animation: heroIsoFloat 9s ease-in-out infinite; }

@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-text { max-width: 900px; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
}
@media (max-width: 700px) {
  /* On phones the image becomes a backdrop accent — keep it small and
     opt out of the screen blend so it stays legible. */
  .hero-visual { max-width: 320px; opacity: 0.85; }
  .hero-iso-image { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-iso-image { animation: none; }
}

.hero-eyebrow {
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bth-purple-100);
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-eyebrow::before {
  content: '';
  width: 30px; height: 1px;
  background: var(--bth-purple);
}

.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(2.3rem, 4.4vw, 3.85rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 2rem;
  /* Wider cap + text-wrap: balance distributes the words across exactly
     three balanced lines so "humano" never falls alone on a fourth. The
     pre-balance ch limit keeps modern engines from going wider than this. */
  max-width: 34ch;
  text-wrap: balance;
  /* Older browsers without text-wrap: balance still get a controlled
     visual block via the max-width and word-break heuristics above. */
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--bth-purple-100);
  position: relative;
}
.hero-title em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.1em;
  height: 4px;
  background: var(--bth-purple);
  transform: scaleX(0);
  transform-origin: left;
  animation: revealLine 1s var(--ease-out) 1.4s forwards;
}
@keyframes revealLine { to { transform: scaleX(1); } }

.hero-sub {
  font-size: var(--fs-md);
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  /* Match the visual width of the headline above so the two text
     blocks share the same composition column instead of leaving
     awkward whitespace to the right of the paragraph. */
  max-width: 56ch;
  margin-bottom: 3rem;
  line-height: 1.55;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary, .btn-secondary {
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--bth-purple);
  color: var(--bth-white);
}
.btn-primary:hover {
  background: var(--bth-purple-deep);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(120, 42, 255, 0.4);
}
.btn-secondary {
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--bth-white);
}
.btn-secondary:hover {
  border-color: var(--bth-purple);
  background: rgba(120, 42, 255, 0.1);
  transform: translateY(-3px);
}
.btn-arrow {
  width: 18px; height: 18px;
  display: inline-block;
  position: relative;
}
.btn-arrow::before {
  content: '→';
  font-family: serif;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}
.btn-primary:hover .btn-arrow::before,
.btn-secondary:hover .btn-arrow::before { transform: translateX(4px); }

.hero-meta {
  position: absolute;
  bottom: 2.5rem;
  left: 2.5rem;
  right: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  z-index: 3;
}
.hero-meta-stat {
  display: flex; flex-direction: column; gap: 0.25rem;
}
.hero-meta-stat .num {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--bth-white);
  letter-spacing: -0.02em;
}

/* =========================================================
   Hero — Isometric stack visual
   ========================================================= */
.iso-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  perspective: 2000px;
}
.iso-layer {
  position: absolute;
  left: 50%;
  width: 75%;
  height: 22%;
  transform-style: preserve-3d;
  transform: translateX(-50%) rotateX(58deg) rotateZ(-45deg);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(255,255,255,0.15);
  transition: transform 0.6s var(--ease-out);
}
.iso-layer-1 { top: 5%; background: linear-gradient(135deg, rgba(120,42,255,0.95), rgba(109,38,232,0.85)); color: var(--bth-white); box-shadow: 0 30px 60px rgba(120,42,255,0.3); }
.iso-layer-2 { top: 28%; background: linear-gradient(135deg, rgba(213,189,255,0.95), rgba(120,42,255,0.7)); color: var(--bth-dark); box-shadow: 0 30px 60px rgba(120,42,255,0.2); }
.iso-layer-3 { top: 51%; background: linear-gradient(135deg, rgba(240,241,242,0.95), rgba(213,189,255,0.85)); color: var(--bth-dark); box-shadow: 0 30px 60px rgba(120,42,255,0.15); }
.iso-layer-4 { top: 74%; background: linear-gradient(135deg, rgba(37,99,235,0.95), rgba(14,165,233,0.85)); color: var(--bth-white); box-shadow: 0 30px 60px rgba(37,99,235,0.3); }

.iso-layer:hover {
  transform: translateX(-50%) rotateX(58deg) rotateZ(-45deg) translateZ(40px);
}

.iso-tag {
  position: absolute;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bth-purple-100);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--bth-purple);
  border-radius: 999px;
  background: rgba(120, 42, 255, 0.1);
  backdrop-filter: blur(10px);
  white-space: nowrap;
}
.iso-tag-1 { top: 10%; right: -10%; }
.iso-tag-2 { top: 33%; right: -5%; }
.iso-tag-3 { top: 56%; right: -8%; }
.iso-tag-4 { top: 79%; right: -3%; }

.iso-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--bth-purple), transparent);
  width: 80px;
}
.iso-line-1 { top: 13%; right: 10%; }
.iso-line-2 { top: 36%; right: 18%; }
.iso-line-3 { top: 59%; right: 14%; }
.iso-line-4 { top: 82%; right: 20%; }

@media (max-width: 1100px) {
  .hero-meta { display: none; }
}

/* =========================================================
   BTH Architecture Diagram (interactive)
   ========================================================= */
.bth-diagram {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}

.bth-diagram-stage {
  position: relative;
  aspect-ratio: 814 / 820;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* PNG base */
.bth-diagram-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  filter: drop-shadow(0 30px 80px rgba(120, 42, 255, 0.25));
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: opacity 1.2s var(--ease-out), transform 1.4s var(--ease-out);
}
.bth-diagram.assembled .bth-diagram-img {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* SVG overlay for animations */
.bth-diagram-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Hotspots (clickable layers) */
.bth-hotspot {
  position: absolute;
  z-index: 3;
  cursor: none;
  border-radius: 16px;
  transition: all 0.5s var(--ease-out);
  background: transparent;
}
.bth-hotspot::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 20px;
  background: radial-gradient(circle at center, rgba(120, 42, 255, 0.25), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
}
.bth-hotspot:hover::before, .bth-hotspot.active::before { opacity: 1; }

/* Side labels — hidden, the PNG already has its own native labels integrated */
.bth-label {
  display: none;
}

/* Clickable hotspots cover BOTH the layer AND its native label area on the right */
.bth-hotspot-orquestacion { top: 4%; left: 22%; width: 75%; height: 22%; }
.bth-hotspot-workflows { top: 32%; left: 16%; width: 78%; height: 17%; }
.bth-hotspot-ontologia { top: 55%; left: 20%; width: 75%; height: 18%; }
.bth-hotspot-data { top: 78%; left: 13%; width: 80%; height: 17%; }

/* Subtle hover indicator */
.bth-hotspot::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: border-color 0.4s var(--ease-out);
}
.bth-hotspot:hover::after, .bth-hotspot.active::after {
  border-color: rgba(120, 42, 255, 0.5);
}

/* Description panel */
.bth-detail {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.bth-detail-empty {
  font-family: var(--ff-display);
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
  line-height: 1.5;
  max-width: 420px;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  opacity: 1;
  transition: opacity 0.4s var(--ease-out);
}
.bth-detail.has-active .bth-detail-empty { opacity: 0; pointer-events: none; }

.bth-detail-empty-tag {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--bth-purple);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.bth-detail-empty-tag::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--bth-purple);
}
.bth-detail-empty-tag::after {
  content: '↶';
  color: var(--bth-purple);
  font-size: 1.1rem;
  margin-left: 0.4rem;
}

.bth-detail-empty p { color: rgba(255, 255, 255, 0.7); }
.bth-detail-empty strong {
  color: var(--bth-purple-100);
  font-weight: 500;
  font-style: italic;
}

.bth-detail-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateX(40px);
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out), transform 0.7s var(--ease-out);
}
.bth-detail-card.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.bth-detail-step {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--bth-purple);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.bth-detail-step::before {
  content: '';
  width: 30px; height: 1px;
  background: var(--bth-purple);
}

.bth-detail-card h3 {
  font-family: var(--ff-display);
  font-size: var(--fs-3xl);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  line-height: 1;
  color: var(--bth-white);
}
.bth-detail-card h3 em { font-style: italic; font-weight: 300; color: var(--bth-purple-100); }

.bth-detail-card p {
  font-size: var(--fs-base);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.5rem;
}

.bth-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.bth-detail-tags span {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bth-purple-100);
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(213, 189, 255, 0.3);
  border-radius: 999px;
  background: rgba(120, 42, 255, 0.08);
}

.bth-detail-close {
  position: absolute;
  top: 0; right: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--bth-white);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: all 0.3s;
}
.bth-detail-close:hover {
  background: var(--bth-purple);
  border-color: var(--bth-purple);
  transform: rotate(90deg);
}

/* SVG dotted lines & particles */
.bth-line {
  stroke: var(--bth-purple);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
  fill: none;
  opacity: 0.5;
  stroke-dashoffset: 1000;
  animation: drawLine 2.5s var(--ease-out) forwards;
  transition: opacity 0.4s var(--ease-out), stroke-width 0.4s var(--ease-out);
}
@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}
.bth-line.active {
  opacity: 1;
  stroke-width: 2.5;
  /* Replace dash pattern with a flowing light effect */
  stroke-dasharray: 14 8;
  filter: drop-shadow(0 0 6px rgba(120, 42, 255, 0.85));
  animation: lineFlow 1.4s linear infinite;
}
@keyframes lineFlow {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -44; } /* 14 + 8 = 22 → multiple of pattern (-44 = 2 cycles) for smoother loop */
}
.bth-line.dimmed { opacity: 0.15; }

.bth-particle {
  fill: var(--bth-purple);
  filter: drop-shadow(0 0 6px var(--bth-purple));
  opacity: 0;
}
.bth-particle.active { opacity: 1; animation: particleTravel 2.5s linear infinite; }
@keyframes particleTravel {
  0% { offset-distance: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* Responsive diagram */
@media (max-width: 1100px) {
  .bth-diagram { grid-template-columns: 1fr; gap: 3rem; }
  .bth-diagram-stage { max-width: 500px; }
  .bth-detail { min-height: 280px; }
  .bth-detail-empty { position: relative; min-height: 200px; }
}
@media (max-width: 700px) {
  .bth-detail-card h3 { font-size: var(--fs-2xl); }
}

/* Servicios page hero variant — diagrama protagonista */
.diagram-hero {
  background: var(--bth-dark);
  color: var(--bth-white);
  padding: 12rem 2.5rem 6rem;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}
.diagram-hero::before {
  content: '';
  position: absolute;
  width: 1200px; height: 1200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 42, 255, 0.18) 0%, transparent 60%);
  top: 50%; left: 30%;
  transform: translate(-50%, -50%);
  filter: blur(60px);
  pointer-events: none;
}
.diagram-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 30%, transparent 80%);
}

.diagram-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1500px;
  margin: 0 auto;
}

.diagram-hero-header {
  text-align: center;
  margin-bottom: 5rem;
}
.diagram-hero-header h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 1.5rem auto 1.5rem;
  max-width: 1000px;
}
.diagram-hero-header h1 em { font-style: italic; font-weight: 300; color: var(--bth-purple-100); }
.diagram-hero-header p {
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.7);
  max-width: 700px;
  margin: 0 auto;
}

.diagram-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--bth-purple-100);
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(213, 189, 255, 0.2);
  border-radius: 999px;
  background: rgba(120, 42, 255, 0.08);
}
.diagram-hint::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bth-purple);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

@media (max-width: 900px) {
  .diagram-hero { padding: 8rem 1.5rem 4rem; }
  .diagram-hero-header h1 { font-size: var(--fs-3xl); }
}

/* =========================================================
   Section: Problem statement (light)
   ========================================================= */
.section-light {
  background: var(--bth-grey-50);
  color: var(--bth-dark);
  padding: 8rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.section-eyebrow {
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bth-purple);
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.section-eyebrow::before {
  content: '';
  width: 30px; height: 1px;
  background: var(--bth-purple);
}

.problem-wrap {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}
.problem-title {
  font-family: var(--ff-display);
  font-size: var(--fs-4xl);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.problem-title strong { color: var(--bth-purple); font-weight: 700; }
.problem-content { font-size: var(--fs-md); color: var(--bth-neutral); line-height: 1.6; }
.problem-content p + p { margin-top: 1.5rem; }

.problem-list {
  margin-top: 3rem;
  display: grid;
  gap: 1px;
  background: rgba(0,0,0,0.08);
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.problem-item {
  background: var(--bth-grey-50);
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 2rem;
  transition: padding 0.4s var(--ease-out), background 0.4s;
  cursor: none;
}
.problem-item:hover {
  padding: 2rem 1rem;
  background: var(--bth-white);
}
.problem-num {
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  color: var(--bth-purple);
  letter-spacing: 0.1em;
}
.problem-text {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--bth-dark);
}
.problem-arrow {
  font-family: var(--ff-mono);
  color: var(--bth-neutral);
  font-size: var(--fs-md);
  transition: transform 0.4s, color 0.4s;
}
.problem-item:hover .problem-arrow { transform: translateX(8px); color: var(--bth-purple); }

@media (max-width: 900px) {
  .problem-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .problem-title { font-size: var(--fs-3xl); }
}

/* =========================================================
   Section: Maturity Model (dark, scroll narrative)
   ========================================================= */
.section-dark {
  background: var(--bth-dark);
  color: var(--bth-white);
  padding: 8rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 30% 50%, rgba(0,0,0,1) 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, rgba(0,0,0,1) 30%, transparent 80%);
}

.maturity-header {
  max-width: 1400px;
  margin: 0 auto 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  position: relative;
  z-index: 2;
}
.maturity-title {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.maturity-title em { font-style: italic; font-weight: 300; color: var(--bth-purple-100); }
.maturity-desc {
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.7);
  align-self: end;
}

.maturity-stages {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.stage {
  display: grid;
  grid-template-columns: 100px 1fr 2fr;
  gap: 3rem;
  padding: 4rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  align-items: start;
  position: relative;
  transition: background 0.4s;
}
.stage:last-child { border-bottom: 1px solid rgba(255,255,255,0.1); }
.stage:hover {
  background: linear-gradient(to right, rgba(120,42,255,0.05), transparent);
}

.stage-num {
  font-family: var(--ff-display);
  font-size: var(--fs-3xl);
  font-weight: 300;
  color: var(--bth-purple);
  line-height: 1;
}
.stage-num small {
  display: block;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.stage-title {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stage-content { display: grid; gap: 1.5rem; }
.stage-content p { color: rgba(255,255,255,0.7); font-size: var(--fs-base); line-height: 1.6; }
.stage-features {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem;
}
.stage-features span {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bth-purple-100);
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(213, 189, 255, 0.3);
  border-radius: 999px;
}

@media (max-width: 900px) {
  .maturity-header { grid-template-columns: 1fr; gap: 1.5rem; }
  .maturity-title { font-size: var(--fs-3xl); }
  .stage { grid-template-columns: 1fr; gap: 1.5rem; padding: 3rem 0; }
  .stage-num { font-size: var(--fs-2xl); }
}

/* =========================================================
   Section: Architecture (dark, isometric reveal)
   ========================================================= */
.architecture {
  background: var(--bth-dark);
  color: var(--bth-white);
  padding: 8rem 2.5rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.arch-glow {
  position: absolute;
  width: 1200px; height: 1200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 42, 255, 0.15) 0%, transparent 60%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(60px);
  pointer-events: none;
}

.arch-header {
  max-width: 1200px; margin: 0 auto 5rem;
  text-align: center; position: relative; z-index: 2;
}
.arch-header h2 {
  font-size: var(--fs-4xl);
  margin-top: 1.5rem;
}
.arch-header h2 em {
  font-style: italic; font-weight: 300;
  color: var(--bth-purple-100);
}

.arch-stack {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.25rem;
}
.arch-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  transition: all 0.5s var(--ease-out);
  position: relative;
  backdrop-filter: blur(20px);
}
.arch-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--bth-purple), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.arch-card:hover {
  transform: translateY(-4px);
  border-color: var(--bth-purple);
  background: linear-gradient(135deg, rgba(120,42,255,0.1), rgba(255,255,255,0.02));
}
.arch-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bth-purple), var(--bth-purple-deep));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-mono);
  font-weight: 700;
  font-size: var(--fs-md);
  color: var(--bth-white);
  flex-shrink: 0;
}
.arch-card:nth-child(2) .arch-icon { background: linear-gradient(135deg, var(--bth-purple-100), var(--bth-purple)); color: var(--bth-dark); }
.arch-card:nth-child(3) .arch-icon { background: linear-gradient(135deg, var(--bth-grey-50), var(--bth-purple-100)); color: var(--bth-dark); }
.arch-card:nth-child(4) .arch-icon { background: linear-gradient(135deg, var(--bth-blue), var(--bth-blue-light)); }

.arch-info h3 {
  font-family: var(--ff-display);
  font-size: var(--fs-md);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.arch-info p {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}
.arch-tag {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bth-purple-100);
  padding: 0.4rem 1rem;
  border: 1px solid var(--bth-purple);
  border-radius: 999px;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .arch-card { grid-template-columns: auto 1fr; padding: 1.5rem; }
  .arch-tag { display: none; }
}

/* =========================================================
   Section: Value Message (light, big type)
   ========================================================= */
.value {
  background: var(--bth-white);
  color: var(--bth-dark);
  padding: 10rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.value::before {
  content: 'BTH';
  position: absolute;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 38vw;
  color: var(--bth-purple-50);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  letter-spacing: -0.06em;
  z-index: 0;
  user-select: none;
  pointer-events: none;
}

.value-inner {
  max-width: 1100px; margin: 0 auto;
  position: relative; z-index: 2;
}
.value-quote {
  font-family: var(--ff-display);
  font-size: var(--fs-4xl);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 3rem;
}
.value-quote strong { color: var(--bth-purple); font-weight: 700; }
.value-quote em { font-style: italic; font-weight: 300; }

.value-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(0,0,0,0.1);
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bth-neutral);
}
.value-meta-line { width: 60px; height: 1px; background: var(--bth-purple); }

@media (max-width: 900px) {
  .value-quote { font-size: var(--fs-2xl); }
}

/* =========================================================
   CTA section (purple)
   ========================================================= */
.cta-section {
  background: var(--bth-purple);
  color: var(--bth-white);
  padding: 6rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255,255,255,0.15), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(15,23,42,0.3), transparent 50%);
}
.cta-inner { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.cta-section h2 {
  font-size: var(--fs-4xl);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.cta-section h2 em { font-style: italic; font-weight: 300; }
.cta-section p {
  font-size: var(--fs-md);
  margin-bottom: 3rem;
  opacity: 0.9;
}
.cta-section .btn-primary {
  background: var(--bth-white);
  color: var(--bth-purple);
}
.cta-section .btn-primary:hover {
  background: var(--bth-dark);
  color: var(--bth-white);
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--bth-dark);
  color: var(--bth-white);
  padding: 5rem 2.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}
.footer-brand h3 {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1;
}
.footer-logo-mark { display: inline-flex; width: 0.7em; height: 0.7em; flex-shrink: 0; }
.footer-logo-mark svg { width: 100%; height: 100%; display: block; }
.footer-brand p {
  color: rgba(255,255,255,0.6);
  max-width: 380px;
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.footer-col h4 {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bth-purple-100);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: grid; gap: 0.75rem; }
.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: var(--fs-sm);
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--bth-purple-100); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
}


/* =========================================================
   Floating contact CTA
   ========================================================= */
.floating-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.3rem;
  background: var(--bth-purple);
  color: var(--bth-white);
  border-radius: 999px;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  box-shadow: 0 12px 40px rgba(120, 42, 255, 0.5);
  z-index: 80;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.5s, background 0.3s;
  cursor: none;
}
.floating-cta.visible {
  transform: translateY(0);
  opacity: 1;
}
.floating-cta:hover {
  background: var(--bth-purple-deep);
  box-shadow: 0 16px 50px rgba(120, 42, 255, 0.6);
  transform: translateY(-4px);
}
.floating-cta-icon {
  font-size: 1.1rem;
  animation: starPulse 2.5s ease-in-out infinite;
}
@keyframes starPulse {
  0%, 100% { transform: scale(1) rotate(0); opacity: 1; }
  50% { transform: scale(1.2) rotate(45deg); opacity: 0.85; }
}

/* Hide on contact page itself */
body[data-page="contacto"] .floating-cta { display: none; }

@media (max-width: 700px) {
  .floating-cta { bottom: 1rem; right: 1rem; padding: 0.85rem 1.2rem; font-size: 0.65rem; }
  .floating-cta-text { display: none; }
  .floating-cta { padding: 1rem; }
  .floating-cta-icon { font-size: 1.4rem; }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* =========================================================
   Service page
   ========================================================= */
.page-hero {
  background: var(--bth-dark);
  color: var(--bth-white);
  padding: 12rem 2.5rem 6rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 42, 255, 0.25) 0%, transparent 60%);
  top: -300px; right: -200px;
  filter: blur(40px);
  z-index: 0;
}
.page-hero-inner {
  max-width: 1400px; margin: 0 auto;
  position: relative; z-index: 2;
}
.page-hero-eyebrow {
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bth-purple-100);
  margin-bottom: 1.5rem;
}
.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
  max-width: 1000px;
}
.page-hero h1 em { font-style: italic; font-weight: 300; color: var(--bth-purple-100); }
.page-hero p {
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.7);
  max-width: 700px;
  margin-top: 2rem;
}

.services-grid {
  background: var(--bth-grey-50);
  padding: 4.5rem 2.5rem 5rem;
}
.services-inner { max-width: 1400px; margin: 0 auto; display: grid; gap: 1.5rem; }
.services-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2.25rem;
}
.services-header h2 {
  font-family: var(--ff-display);
  font-size: var(--fs-3xl);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 1.5rem 0;
  line-height: 1.05;
}
.services-header h2 em { font-style: italic; font-weight: 300; color: var(--bth-purple); }
.services-header p {
  font-size: var(--fs-md);
  color: var(--bth-neutral);
}
.services-header .section-eyebrow { justify-content: center; }
.service-card {
  background: var(--bth-white);
  border-radius: 24px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  transition: all 0.5s var(--ease-out);
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}
.service-card:nth-child(even) { background: var(--bth-dark); color: var(--bth-white); }
.service-card:nth-child(even) .service-num { color: var(--bth-purple-100); }
.service-card:nth-child(even) p { color: rgba(255,255,255,0.7); }

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
}
.service-num {
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  color: var(--bth-purple);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}
.service-card h3 {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.service-card p {
  color: var(--bth-neutral);
  font-size: var(--fs-base);
  margin-bottom: 1.5rem;
}
.service-features {
  display: grid; gap: 0.75rem;
  margin-top: 2rem;
}
.service-features li {
  list-style: none;
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: var(--fs-sm);
  font-family: var(--ff-mono);
  letter-spacing: 0.05em;
}
.service-features li::before {
  content: '→';
  color: var(--bth-purple);
  font-weight: 700;
}
.service-visual {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--bth-purple-50), var(--bth-grey-50));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.service-card:nth-child(even) .service-visual {
  background: linear-gradient(135deg, rgba(120,42,255,0.2), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.05);
}

.service-visual-num {
  font-family: var(--ff-display);
  font-size: 12rem;
  font-weight: 700;
  color: var(--bth-purple);
  letter-spacing: -0.05em;
  opacity: 0.9;
  line-height: 1;
}
.service-card:nth-child(even) .service-visual-num { color: var(--bth-purple-100); opacity: 0.5; }

@media (max-width: 900px) {
  .service-card { grid-template-columns: 1fr; padding: 2rem; gap: 2rem; }
  .service-visual-num { font-size: 6rem; }
  .page-hero h1 { font-size: var(--fs-3xl); }
}

/* =========================================================
   Cases page
   ========================================================= */
.cases-grid {
  background: var(--bth-grey-50);
  padding: 6rem 2.5rem;
}
.cases-inner { max-width: 1400px; margin: 0 auto; }
.cases-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(0,0,0,0.1);
}
.case-row {
  display: grid;
  grid-template-columns: 100px 1fr 1.5fr auto;
  gap: 2rem;
  padding: 3rem 1rem;
  align-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  transition: all 0.4s var(--ease-out);
  position: relative;
}
.case-row:hover {
  background: var(--bth-white);
  padding: 3rem 2rem;
}
.case-num {
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  color: var(--bth-purple);
  letter-spacing: 0.15em;
}
.case-industry {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bth-neutral);
}
.case-title {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.case-arrow {
  font-family: var(--ff-mono);
  color: var(--bth-purple);
  font-size: var(--fs-md);
  transition: transform 0.4s;
}
.case-row:hover .case-arrow { transform: translateX(8px); }

.case-detail {
  display: none;
}

@media (max-width: 900px) {
  .case-row { grid-template-columns: 1fr; gap: 0.75rem; padding: 2rem 0; }
  .case-row:hover { padding: 2rem 1rem; }
  .case-title { font-size: var(--fs-md); }
}

/* =========================================================
   Blog page
   ========================================================= */
.blog-toolbar {
  background: var(--bth-grey-50);
  padding: 3rem 2.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.blog-toolbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.blog-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bth-white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
  transition: all 0.3s var(--ease-out);
  max-width: 600px;
}
.blog-search:focus-within {
  border-color: var(--bth-purple);
  box-shadow: 0 0 0 4px rgba(120, 42, 255, 0.1);
}
.blog-search-icon {
  font-size: 1.3rem;
  color: var(--bth-purple);
}
.blog-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  color: var(--bth-dark);
  outline: none;
  cursor: none;
}
.blog-search-input::placeholder { color: var(--bth-neutral); }

.blog-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.blog-filter {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.6rem 1.1rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 999px;
  background: transparent;
  color: var(--bth-neutral);
  transition: all 0.3s var(--ease-out);
  cursor: none;
  white-space: nowrap;
}
.blog-filter:hover {
  border-color: var(--bth-purple);
  color: var(--bth-purple);
}
.blog-filter.active {
  background: var(--bth-purple);
  border-color: var(--bth-purple);
  color: var(--bth-white);
}

@media (max-width: 900px) {
  .blog-toolbar-inner { grid-template-columns: 1fr; }
  .blog-filters { overflow-x: auto; padding-bottom: 0.5rem; }
}

/* Featured article */
.blog-featured {
  background: var(--bth-grey-50);
  padding: 4rem 2.5rem;
}
.blog-featured-inner {
  max-width: 1400px;
  margin: 0 auto;
}
.blog-featured-card {
  background: var(--bth-white);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: stretch;
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
}
.blog-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
}
.blog-featured-content {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}
.blog-featured-tag {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bth-purple);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.blog-featured-tag::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--bth-purple);
}
.blog-featured-content h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.blog-featured-content h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--bth-purple);
}
.blog-featured-content p {
  color: var(--bth-neutral);
  font-size: var(--fs-base);
  line-height: 1.6;
}
.blog-featured-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bth-neutral);
}
.blog-meta-dot { opacity: 0.4; }
.blog-featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bth-white);
  background: var(--bth-purple);
  padding: 1rem 1.75rem;
  border-radius: 999px;
  width: fit-content;
  margin-top: 0.5rem;
  transition: all 0.4s var(--ease-out);
}
.blog-featured-cta:hover {
  background: var(--bth-purple-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(120, 42, 255, 0.4);
}

.blog-featured-visual {
  background: linear-gradient(135deg, var(--bth-purple-50) 0%, var(--bth-purple-100) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.blog-featured-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(120,42,255,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120,42,255,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}
.blog-featured-graphic {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.blog-graphic-symbol {
  font-family: var(--ff-display);
  font-size: 8rem;
  color: var(--bth-purple);
  font-weight: 300;
  line-height: 1;
}
.blog-graphic-label {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--bth-purple-deep);
}

@media (max-width: 900px) {
  .blog-featured-card { grid-template-columns: 1fr; }
  .blog-featured-content { padding: 2.5rem; }
  .blog-featured-visual { min-height: 200px; }
  .blog-graphic-symbol { font-size: 5rem; }
}

/* Articles grid */
.blog-grid {
  background: var(--bth-grey-50);
  padding: 5rem 2.5rem 8rem;
}
.blog-grid-inner {
  max-width: 1400px;
  margin: 0 auto;
}
.blog-grid-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 1rem 0 4rem;
  max-width: 800px;
}
.blog-grid-title em { font-style: italic; font-weight: 300; color: var(--bth-purple); }

.blog-articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1100px) {
  .blog-articles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .blog-articles { grid-template-columns: 1fr; }
}

.blog-card {
  background: var(--bth-white);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.5s var(--ease-out);
  cursor: none;
}
.blog-card.hidden { display: none; }
.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--bth-purple);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}
.blog-card-tag {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bth-purple);
  width: fit-content;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(120, 42, 255, 0.2);
  border-radius: 999px;
  background: rgba(120, 42, 255, 0.05);
}
.blog-card h3 {
  font-family: var(--ff-display);
  font-size: var(--fs-md);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--bth-dark);
  margin-top: 0.5rem;
}
.blog-card p {
  color: var(--bth-neutral);
  font-size: var(--fs-sm);
  line-height: 1.6;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bth-neutral);
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.blog-card-link {
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bth-purple);
  font-weight: 500;
  transition: gap 0.3s var(--ease-out), color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
}
.blog-card:hover .blog-card-link { color: var(--bth-purple-deep); gap: 0.75rem; }

.blog-empty {
  display: none;
  padding: 4rem 0;
  text-align: center;
  color: var(--bth-neutral);
  font-family: var(--ff-display);
  font-size: var(--fs-md);
  font-weight: 300;
}
.blog-empty.show { display: block; }

/* Blog CTA section */
.blog-cta {
  background: var(--bth-dark);
  color: var(--bth-white);
  padding: 8rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.blog-cta::before {
  content: '';
  position: absolute;
  width: 1000px; height: 1000px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 42, 255, 0.15) 0%, transparent 60%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(60px);
}
.blog-cta-inner {
  position: relative; z-index: 2;
  max-width: 900px; margin: 0 auto;
  text-align: center;
}
.blog-cta-content .section-eyebrow {
  justify-content: center;
  color: var(--bth-purple-100);
}
.blog-cta-content .section-eyebrow::before {
  background: var(--bth-purple-100);
}
.blog-cta-content h2 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 1.5rem 0;
}
.blog-cta-content h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--bth-purple-100);
}
.blog-cta-content p {
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.7);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   Article page — plantilla para artículos individuales del blog
   ========================================================= */
.article-page {
  background: var(--bth-white);
  color: var(--bth-dark);
  padding: 8rem 2.5rem 6rem;
  min-height: 100vh;
}
.article-container {
  max-width: 760px;
  margin: 0 auto;
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  color: var(--bth-neutral);
  text-decoration: none;
  margin-bottom: 3rem;
  transition: color 0.3s, gap 0.3s var(--ease-out);
}
.article-back:hover {
  color: var(--bth-purple);
  gap: 0.75rem;
}
.article-tag {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bth-purple);
  padding: 0.4rem 0.9rem;
  background: rgba(120, 42, 255, 0.08);
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.article-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 1.5rem;
  color: var(--bth-dark);
}
.article-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--bth-purple);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--ff-mono);
  font-size: 0.85rem;
  color: var(--bth-neutral);
  padding-bottom: 2.5rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.article-meta-dot { opacity: 0.4; }
.article-lead {
  font-family: var(--ff-display);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--bth-grey-700);
  margin-bottom: 3rem;
  letter-spacing: -0.01em;
}
.article-content {
  font-family: var(--ff-body);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--bth-grey-700);
}
.article-content > * + * { margin-top: 1.5rem; }
.article-content h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--bth-dark);
  margin-top: 4rem;
  margin-bottom: 1rem;
}
.article-content h3 {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--bth-dark);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.article-content p { margin: 0; }
.article-content strong { color: var(--bth-dark); font-weight: 600; }
.article-content em { font-style: italic; }
.article-content a {
  color: var(--bth-purple);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.3s;
}
.article-content a:hover { color: var(--bth-purple-deep); }
.article-content ul,
.article-content ol {
  padding-left: 1.5rem;
  margin: 1.25rem 0;
}
.article-content ul li,
.article-content ol li {
  margin-bottom: 0.6rem;
  padding-left: 0.25rem;
}
.article-content ul li::marker { color: var(--bth-purple); }
.article-content blockquote {
  border-left: 3px solid var(--bth-purple);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 300;
  color: var(--bth-dark);
  line-height: 1.5;
}
.article-content figure {
  margin: 2.5rem 0;
}
.article-content figure img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}
.article-content figcaption {
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  color: var(--bth-neutral);
  text-align: center;
  margin-top: 0.75rem;
}
.article-callout {
  background: rgba(120, 42, 255, 0.05);
  border: 1px solid rgba(120, 42, 255, 0.15);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
}
.article-callout-label {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bth-purple);
  margin-bottom: 0.75rem;
  display: block;
}
.article-callout p {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--bth-dark);
  margin: 0;
  line-height: 1.55;
}

/* CTA al final del artículo */
.article-cta {
  background: var(--bth-dark);
  color: var(--bth-white);
  padding: 5rem 2.5rem;
  margin-top: 6rem;
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.article-cta::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 42, 255, 0.2) 0%, transparent 60%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(40px);
}
.article-cta-inner {
  position: relative; z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}
.article-cta h3 {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 1rem;
}
.article-cta h3 em {
  font-style: italic;
  font-weight: 300;
  color: var(--bth-purple-100);
}
.article-cta p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 2rem;
  font-size: var(--fs-md);
}

@media (max-width: 800px) {
  .article-page { padding: 6rem 1.5rem 4rem; }
  .article-content { font-size: 1rem; }
  .article-cta { padding: 3.5rem 1.5rem; border-radius: 14px; }
}

/* =========================================================
   Inline CTA — repeating throughout the journey
   ========================================================= */
.inline-cta {
  max-width: 1400px;
  margin: 4rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  flex-wrap: wrap;
}
.inline-cta p {
  font-family: var(--ff-display);
  font-size: var(--fs-md);
  color: var(--bth-dark);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}
.btn-link {
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bth-purple);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--bth-purple);
  transition: gap 0.3s var(--ease-out);
}
.btn-link:hover { gap: 1.25rem; }

.section-dark .inline-cta { border-top-color: rgba(255,255,255,0.1); }
.section-dark .inline-cta p { color: var(--bth-white); }

/* =========================================================
   Pillars section
   ========================================================= */
.pillars-section {
  background: var(--bth-white);
  padding: 8rem 2.5rem 11rem;
  position: relative;
  overflow: hidden;
}
.pillars-section::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 42, 255, 0.05) 0%, transparent 60%);
  top: -200px; right: -200px;
  pointer-events: none;
}
.pillars-inner {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.pillars-header {
  max-width: 800px;
  margin: 0 auto 5rem;
  text-align: center;
}
.pillars-header h2 {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 1.5rem 0;
}
.pillars-header h2 em { font-style: italic; font-weight: 300; color: var(--bth-purple); }
.pillars-header p {
  font-size: var(--fs-md);
  color: var(--bth-neutral);
}
.pillars-header .section-eyebrow { justify-content: center; }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 5rem;
}
@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: 1fr; }
}

.pillar-card {
  background: var(--bth-grey-50);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease-out);
  cursor: none;
}
.pillar-card:hover {
  background: var(--bth-white);
  border-color: var(--bth-purple);
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(120, 42, 255, 0.12);
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--bth-purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.pillar-card:hover::before { transform: scaleX(1); }

.pillar-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--bth-purple-50), var(--bth-purple-100));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--bth-purple);
  transition: all 0.4s var(--ease-out);
}
.pillar-card:hover .pillar-icon {
  background: linear-gradient(135deg, var(--bth-purple), var(--bth-purple-deep));
  color: var(--bth-white);
  transform: rotate(-6deg);
}
.pillar-icon-glyph {
  font-family: var(--ff-display);
  font-weight: 300;
}
.pillar-num {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--bth-neutral);
  margin-top: 0.5rem;
}
.pillar-card h3 {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--bth-dark);
}
.pillar-card p {
  color: var(--bth-neutral);
  font-size: var(--fs-sm);
  line-height: 1.6;
  flex: 1;
}
.pillar-tag {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bth-purple);
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-top: 0.5rem;
}
.pillars-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .pillars-cta { flex-direction: column; gap: 1rem; }
}

.stats-banner {
  background: var(--bth-purple);
  color: var(--bth-white);
  padding: 5rem 2.5rem;
}
.stats-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.stat {
  position: relative;
  border-left: 1px solid rgba(255,255,255,0.2);
  padding: 0.5rem 1.25rem 0.5rem 2rem;
  border-radius: 14px;
  transition:
    transform 0.5s var(--ease-out),
    background 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out);
  cursor: default;
}
.stat:first-child { border-left: none; padding-left: 0.25rem; }
.stat::before {
  content: '';
  position: absolute;
  left: 1.25rem; right: 1.25rem; bottom: -2px;
  height: 1px;
  background: rgba(255, 255, 255, 0.85);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.stat:first-child::before { left: 0.25rem; }
.stat:hover {
  transform: translateY(-4px) scale(1.02);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}
.stat:hover::before { transform: scaleX(1); }
.stat:hover .stat-num { letter-spacing: -0.03em; }
.stat:hover .stat-label { opacity: 1; }

.stat-num {
  font-family: var(--ff-display);
  font-size: var(--fs-4xl);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.5rem;
  transition: letter-spacing 0.5s var(--ease-out);
}
.stat-label {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.8;
  transition: opacity 0.5s var(--ease-out);
}

@media (max-width: 900px) {
  .stats-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .stat { border-left: none; padding-left: 0.25rem; }
  .stat::before { left: 0.25rem; }
}

/* =========================================================
   Contact page
   ========================================================= */
.contact-section {
  background: var(--bth-dark);
  color: var(--bth-white);
  padding: 12rem 2.5rem 6rem;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}
.contact-section::before {
  content: '';
  position: absolute;
  width: 1000px; height: 1000px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 42, 255, 0.2) 0%, transparent 60%);
  top: -300px; right: -300px;
  filter: blur(40px);
}
.contact-inner {
  max-width: 1400px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  position: relative; z-index: 2;
}
.contact-info h1 {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 2rem;
}
.contact-info h1 em { font-style: italic; font-weight: 300; color: var(--bth-purple-100); }
.contact-info p {
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.7);
  margin-bottom: 3rem;
}

.contact-channels { display: grid; gap: 1.5rem; margin-top: 3rem; }
.contact-channel {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  transition: padding 0.4s var(--ease-out);
}
.contact-channel:hover { padding: 1.5rem 1rem; }
.contact-channel:last-child { border-bottom: 1px solid rgba(255,255,255,0.1); }
.contact-channel-label {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bth-purple-100);
  min-width: 80px;
}
.contact-channel-value {
  font-family: var(--ff-display);
  font-size: var(--fs-md);
  font-weight: 500;
}

.contact-form {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 3rem;
  backdrop-filter: blur(20px);
}
.form-group {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.form-label {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bth-purple-100);
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding: 0.75rem 0;
  color: var(--bth-white);
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  transition: border-color 0.3s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--bth-purple);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-select { color: var(--bth-white); }
.form-select option { background: var(--bth-dark); color: var(--bth-white); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.form-submit {
  background: var(--bth-purple);
  color: var(--bth-white);
  padding: 1.25rem 2rem;
  border-radius: 999px;
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  width: 100%;
  transition: background 0.3s, transform 0.3s var(--ease-out);
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.form-submit:hover {
  background: var(--bth-purple-deep);
  transform: translateY(-2px);
}


/* =========================================================
   Contact page — strategic refinement
   ========================================================= */
.privacy-shield {
  background: linear-gradient(135deg, rgba(120, 42, 255, 0.12), rgba(120, 42, 255, 0.04));
  border: 1px solid rgba(213, 189, 255, 0.25);
  border-radius: 18px;
  padding: 2rem;
  margin: 2.5rem 0;
  position: relative;
  overflow: hidden;
}
.privacy-shield::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--bth-purple), var(--bth-blue));
}
.privacy-shield-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.privacy-shield-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bth-purple), var(--bth-purple-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bth-white);
  font-size: 1.4rem;
  flex-shrink: 0;
}
.privacy-shield-header h3 {
  font-family: var(--ff-display);
  font-size: var(--fs-md);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--bth-white);
  line-height: 1.1;
}
.privacy-shield-header h3 em { font-style: italic; font-weight: 300; color: var(--bth-purple-100); }
.privacy-shield p {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.privacy-shield p strong { color: var(--bth-purple-100); font-weight: 500; }
.privacy-shield-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.privacy-shield-tags span {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bth-purple-100);
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(213, 189, 255, 0.3);
  border-radius: 999px;
  background: rgba(120, 42, 255, 0.08);
}

.contact-channels-title {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--bth-purple-100);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.contact-channels-title::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--bth-purple);
}

a.contact-channel { display: flex; }
a.contact-channel:hover .contact-channel-value { color: var(--bth-purple-100); }
.contact-channel { transition: padding 0.4s var(--ease-out), background 0.3s; }
.contact-channel:hover { background: rgba(120, 42, 255, 0.05); }

/* Form header */
.form-header { margin-bottom: 2rem; }
.form-header h2 {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--bth-white);
  margin-top: 0.75rem;
}
.form-header-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bth-success);
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-disclaimer {
  margin-top: 1.25rem;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  line-height: 1.5;
}

/* Form success state */
.form-success {
  text-align: center;
  padding: 2rem 0;
  display: none;
}
.contact-form.submitted .form-success { display: block; }
.contact-form.submitted .form-row,
.contact-form.submitted .form-group,
.contact-form.submitted .form-submit,
.contact-form.submitted .form-disclaimer,
.contact-form.submitted .form-header { display: none; }

.form-success-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bth-success), #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: var(--bth-white);
  animation: successPop 0.6s var(--ease-out);
}
@keyframes successPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
.form-success h3 {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--bth-white);
  margin-bottom: 1rem;
}
.form-success h3 em { font-style: italic; font-weight: 300; color: var(--bth-purple-100); }
.form-success p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-md);
  margin-bottom: 2rem;
}
.form-success-steps {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  text-align: left;
}
.form-success-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.form-success-step-num {
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  color: var(--bth-purple-100);
  letter-spacing: 0.15em;
  min-width: 30px;
}
.form-success-step-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

/* Trust signals */
.trust-signals {
  max-width: 1400px;
  margin: 6rem auto 0;
  padding: 0 0 0;
  position: relative;
  z-index: 2;
}
.trust-signals-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.trust-signal {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.trust-signal:last-child { border-right: none; }
.trust-signal-num {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--bth-purple-100);
  line-height: 1;
}
.trust-signal-label {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 700px) {
  .trust-signals-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-signal:nth-child(2) { border-right: none; }
  .trust-signal:nth-child(1), .trust-signal:nth-child(2) { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
}

@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .contact-section { padding: 8rem 1.5rem 4rem; }
  .contact-info h1 { font-size: var(--fs-3xl); }
  .contact-form { padding: 2rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* =========================================================
   Reveal animations
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* =========================================================
   Drag indicator (Weima-inspired)
   ========================================================= */
.drag-bar {
  position: relative;
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 0.5rem;
  margin-top: 4rem;
  overflow: hidden;
}
.drag-bar-track {
  position: relative;
  height: 56px;
  display: flex;
  align-items: center;
}
.drag-bar-handle {
  position: absolute;
  left: 0;
  width: calc(33.33% - 6px);
  height: 56px;
  background: var(--bth-purple);
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  font-family: var(--ff-mono);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bth-white);
  cursor: grab;
  transition: background 0.3s;
  user-select: none;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(120, 42, 255, 0.4);
}
.drag-handle-text {
  font-size: var(--fs-xs);
  font-weight: 600;
}
.drag-handle-hint {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  opacity: 0.65;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.drag-handle-hint::before, .drag-handle-hint::after {
  content: '⇆';
  font-size: 0.7rem;
  opacity: 0.7;
}
.drag-bar-handle:active { cursor: grabbing; background: var(--bth-purple-deep); }
.drag-bar-stages {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4);
  pointer-events: none;
  padding: 0 0.5rem;
}
.drag-bar-stages span {
  transition: color 0.3s, opacity 0.3s;
  text-align: center;
  font-weight: 500;
}
.drag-bar-stages span.active {
  color: var(--bth-white);
  opacity: 0;
}

@media (max-width: 700px) {
  .drag-bar-handle { font-size: 0.55rem; }
  .drag-handle-hint { font-size: 0.5rem; }
  .drag-bar-stages { font-size: 0.55rem; padding: 0 0.5rem; }
}

/* =========================================================
   Stages slider (página servicios — modelo de maduración)
   ========================================================= */
.stages-slider {
  margin-top: 4rem;
  position: relative;
}
.stages-slider-viewport {
  overflow: hidden;
  border-radius: 28px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.stages-slider-viewport.is-dragging { cursor: grabbing; }
.stages-slider-track {
  display: flex;
  align-items: stretch;
  transition: transform 0.6s var(--ease-out);
  will-change: transform;
}
.stages-slider-track.no-transition { transition: none; }
.stages-slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0 !important;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out), filter 0.5s var(--ease-out), transform 0.6s var(--ease-out);
  opacity: 0.35;
  filter: blur(2px);
  transform: scale(0.97);
}
.stages-slide.is-active {
  pointer-events: auto;
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}
/* Reuse .service-card visuals but neutralise reveal stagger inside slider */
.stages-slide.reveal { opacity: 0.35; transform: scale(0.97); }
.stages-slide.is-active.reveal { opacity: 1; transform: scale(1); }

/* Slider controls — placed ABOVE the slides so the stage navigation
   reads as the entry point of the section */
.stages-slider-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0 0 1.75rem;
  padding: 0 0.5rem;
}
.stages-arrow {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--bth-white);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: var(--bth-dark);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
.stages-arrow:hover {
  background: var(--bth-purple);
  color: var(--bth-white);
  border-color: var(--bth-purple);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(120, 42, 255, 0.25);
}
.stages-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}
.stages-arrow:disabled:hover {
  background: var(--bth-white);
  color: var(--bth-dark);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.stages-slider-progress {
  flex: 1;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding-bottom: 1.25rem;
}
.stages-progress-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.stages-progress-fill {
  height: 100%;
  width: 33.333%;
  background: linear-gradient(90deg, var(--bth-purple), var(--bth-blue));
  border-radius: 999px;
  transition: width 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.stages-dot {
  background: transparent;
  border: none;
  padding: 0.4rem 0.5rem 0.9rem;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
  transition: opacity 0.3s;
  opacity: 0.45;
}
.stages-dot:hover { opacity: 0.85; }
.stages-dot.active { opacity: 1; }
.stages-dot-num {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  color: var(--bth-purple);
  font-weight: 600;
}
.stages-dot-label {
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--bth-dark);
  letter-spacing: -0.01em;
}
.stages-slider-hint {
  margin-top: 1rem;
  text-align: center;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.4);
}

/* Maturity slider — middle-ground geometry: enough room for the
   slide copy, the controls and a real image inside the right tile,
   without the original oversized card height. */
.stages-slider { margin-top: 2.5rem; }
.stages-slide.service-card {
  padding: 2.5rem 2.75rem;
  gap: 3rem;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
}
.stages-slide .service-num   { margin-bottom: 0.75rem; }
.stages-slide h3             { margin-bottom: 1rem; font-size: var(--fs-2xl); }
.stages-slide p              { margin-bottom: 1rem; font-size: var(--fs-base); line-height: 1.6; }
.stages-slide .service-features { gap: 0.55rem; margin-top: 1.25rem; }
.stages-slide .service-features li { font-size: var(--fs-sm); letter-spacing: 0.04em; }

.stages-slide .service-visual {
  /* Square-ish container with deliberate breathing room so a future
     image (1, 2, 3) sits centered with margin around it. */
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 320px;
  max-height: 320px;
  margin-left: auto;
  border-radius: 18px;
}
.stages-slide .service-visual-num { font-size: 8.5rem; }

@media (max-width: 1100px) {
  .stages-slide.service-card { grid-template-columns: 1.45fr 1fr; gap: 2rem; padding: 2rem 2rem; }
  .stages-slide .service-visual { max-width: 240px; max-height: 240px; }
  .stages-slide .service-visual-num { font-size: 6.5rem; }
}

@media (max-width: 800px) {
  .stages-slider-controls { gap: 0.75rem; }
  .stages-arrow { width: 44px; height: 44px; }
  .stages-dot-label { display: none; }
  .stages-dot { padding: 0.3rem 0.3rem 0.8rem; }
  .stages-slider-progress { gap: 0; }
  .stages-slide.service-card { grid-template-columns: 1fr; padding: 1.75rem; gap: 1.5rem; }
  .stages-slide .service-visual { max-width: 100%; max-height: 180px; aspect-ratio: 16 / 9; }
  .stages-slide .service-visual-num { font-size: 5rem; }
}

/* =========================================================
   Marquee
   ========================================================= */
.marquee {
  background: var(--bth-dark);
  color: var(--bth-white);
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 4rem;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee span {
  font-family: var(--ff-display);
  font-size: var(--fs-3xl);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  gap: 4rem;
}
.marquee span::after {
  content: '◆';
  color: var(--bth-purple);
  font-size: 1rem;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Logos marquee — clientes y aliados (escala de grises uniforme) */
.logos-marquee {
  background: var(--bth-dark);
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
}
.logos-marquee::before,
.logos-marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}
.logos-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bth-dark), rgba(15, 23, 42, 0));
}
.logos-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bth-dark), rgba(15, 23, 42, 0));
}
.logos-marquee-track {
  display: flex;
  align-items: center;
  gap: 4.5rem;
  width: max-content;
  animation: logosMarquee 38s linear infinite;
}
.logos-marquee:hover .logos-marquee-track {
  animation-play-state: paused;
}
.logo-item {
  flex-shrink: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
  transition: opacity 0.4s var(--ease-out), filter 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.logo-item img {
  max-height: 100%;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.4s var(--ease-out);
}
.logo-item:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.logo-item:hover img {
  filter: grayscale(0) contrast(1);
}
@keyframes logosMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 800px) {
  .logos-marquee { padding: 1.75rem 0; }
  .logos-marquee-track { gap: 3rem; }
  .logo-item { height: 40px; }
}

/* =========================================================
   Page transition
   ========================================================= */
.page-transition {
  position: fixed; inset: 0;
  background: var(--bth-purple);
  z-index: 999;
  transform: translateY(100%);
  pointer-events: none;
}
.page-transition.active {
  animation: pageTransition 1.2s var(--ease-in-out);
}
@keyframes pageTransition {
  0% { transform: translateY(100%); }
  50% { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}

/* =========================================================
   Editorial readability — justified body copy
   Long-form text in editorial blocks is justified for a
   clean, magazine-style composition. Short labels, eyebrows,
   tags and headings stay left-aligned (or remain centered
   where the design already centers them).
   ========================================================= */
.problem-content,
.problem-content p,
.maturity-desc,
.stage-content p,
.diagram-hero-header p,
.arch-info p,
.pillar-card p,
.contact-info p,
.privacy-shield p,
.blog-featured-content p,
.blog-card p,
.article-lead,
.article-content p,
.article-content li,
.bth-detail-card p,
.bth-detail-empty p,
.service-card p,
.services-header p,
.pillars-header p,
.bth-schema-header p,
.hero-sub {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

/* Centered editorial leads keep their centering — only justify
   the inline word spacing, never the alignment axis. */
.services-header p,
.pillars-header p,
.bth-schema-header p,
.diagram-hero-header p {
  text-align: justify;
  text-align-last: center;
}

/* =========================================================
   BTH Schema section (problem-first restructure)
   Hosts the interactive architecture diagram as the
   "logical solution" section right after the problem block.
   ========================================================= */
.bth-schema-section {
  background: var(--bth-dark);
  color: var(--bth-white);
  padding: 8rem 2.5rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.bth-schema-section::before {
  content: '';
  position: absolute;
  width: 1200px; height: 1200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 42, 255, 0.18) 0%, transparent 60%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.bth-schema-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 30%, transparent 80%);
  z-index: 1;
}
.bth-schema-inner {
  max-width: 1500px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.bth-schema-header {
  max-width: 1100px;
  margin: 0 auto 4.5rem;
  text-align: center;
}
.bth-schema-header h2 {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 1.5rem auto;
}
.bth-schema-header h2 em { font-style: italic; font-weight: 300; color: var(--bth-purple-100); }
.bth-schema-header p {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.72);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}
.bth-schema-header .section-eyebrow { justify-content: center; color: var(--bth-purple-100); }
.bth-schema-header .section-eyebrow::before { background: var(--bth-purple-100); }

@media (max-width: 900px) {
  .bth-schema-section { padding: 6rem 1.5rem; }
}

/* =========================================================
   BTH Diagram — explicit navigation arrows
   Makes the layered diagram's interactivity obvious by
   exposing prev / next controls below the diagram and a
   live progress label.
   ========================================================= */
.bth-diagram-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.75rem auto 0;
  position: relative;
  z-index: 4;
  flex-wrap: wrap;
}
.bth-diagram-nav-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(213, 189, 255, 0.35);
  background: rgba(120, 42, 255, 0.12);
  color: var(--bth-purple-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease-out), color 0.3s, box-shadow 0.3s;
  flex-shrink: 0;
}
.bth-diagram-nav-btn:hover {
  background: var(--bth-purple);
  border-color: var(--bth-purple);
  color: var(--bth-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(120, 42, 255, 0.35);
}
.bth-diagram-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.bth-diagram-nav-btn svg { width: 20px; height: 20px; }
.bth-diagram-nav-label {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--bth-purple-100);
  min-width: 220px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.bth-diagram-nav-label .nav-step {
  color: var(--bth-purple);
  font-weight: 600;
}
.bth-diagram-nav-hint {
  margin-top: 1rem;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

/* When the diagram lives inside a light-section, recolor for contrast */
.section-light .bth-diagram-nav-btn,
.bth-schema-section.light .bth-diagram-nav-btn {
  border-color: rgba(120, 42, 255, 0.25);
  background: rgba(120, 42, 255, 0.08);
  color: var(--bth-purple);
}
.section-light .bth-diagram-nav-label,
.bth-schema-section.light .bth-diagram-nav-label {
  color: var(--bth-purple);
}

/* Pulsing affordance on the "next" arrow when the user
   hasn't advanced yet — communicates "you can continue". */
@keyframes bthNextHint {
  0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 4px 14px rgba(120, 42, 255, 0.25); }
  50%      { transform: translateY(-2px) scale(1.06); box-shadow: 0 12px 28px rgba(120, 42, 255, 0.55); }
}
.stages-arrow-next.hint-pulse,
.bth-diagram-nav-btn.hint-pulse {
  background: var(--bth-purple);
  border-color: var(--bth-purple);
  color: var(--bth-white);
  animation: bthNextHint 2.2s ease-in-out infinite;
}
.stages-arrow-next.hint-pulse:hover,
.bth-diagram-nav-btn.hint-pulse:hover { animation: none; }

/* "Next →" label inline with the slider's next arrow for
   stronger affordance on the maturation slider */
.stages-arrow-next-wrap,
.stages-arrow-prev-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.stages-arrow-cta {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--bth-dark);
  font-weight: 500;
  white-space: nowrap;
}
.stages-arrow-prev-wrap .stages-arrow-cta { color: var(--bth-neutral); }
@media (max-width: 800px) {
  .stages-arrow-cta { display: none; }
}

/* =========================================================
   "Who We Are" page — editorial, grid-based, cinematic
   ========================================================= */
.who-hero {
  background: var(--bth-dark);
  color: var(--bth-white);
  padding: 12rem 2.5rem 8rem;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.who-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.who-hero-bg::before {
  content: '';
  position: absolute;
  width: 900px; height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 42, 255, 0.32) 0%, transparent 60%);
  top: -250px; right: -200px;
  filter: blur(40px);
  animation: floatA 20s ease-in-out infinite;
}
.who-hero-bg::after {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, transparent 60%);
  bottom: -200px; left: -150px;
  filter: blur(40px);
  animation: floatB 24s ease-in-out infinite;
}
.who-hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 30% 50%, rgba(0,0,0,1) 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, rgba(0,0,0,1) 30%, transparent 80%);
}
.who-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 5rem;
  align-items: center;
}
.who-hero-eyebrow {
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--bth-purple-100);
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.who-hero-eyebrow::before {
  content: '';
  width: 30px; height: 1px;
  background: var(--bth-purple);
}
.who-hero-title {
  font-family: var(--ff-display);
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 2rem;
  max-width: 18ch;
}
.who-hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--bth-purple-100);
}
.who-hero-lead {
  font-size: var(--fs-md);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  line-height: 1.55;
}

.who-hero-side {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(20px);
}
.who-hero-fact {
  background: rgba(15, 23, 42, 0.72);
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  align-items: center;
  transition: background 0.4s var(--ease-out);
}
.who-hero-fact:hover { background: rgba(120, 42, 255, 0.08); }
.who-hero-fact-num {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--bth-purple-100);
  line-height: 1;
}
.who-hero-fact-text {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}

@media (max-width: 1100px) {
  .who-hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .who-hero { padding: 9rem 1.5rem 5rem; min-height: auto; }
}

/* Philosophy block — "Back to Human" concept */
.who-philosophy {
  background: var(--bth-grey-50);
  color: var(--bth-dark);
  padding: 9rem 2.5rem;
  position: relative;
  overflow: hidden;
}
/* Giant ghost wordmark anchored to the bottom-right of the section.
   Sits inside the section's inner padding so the full phrase is
   always horizontally visible — no characters cropped at any width.
   Allowed to bleed slightly off the bottom for the editorial feel. */
.who-philosophy::before {
  content: 'Back to Human';
  position: absolute;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 10vw, 9.5rem);
  color: rgba(120, 42, 255, 0.06);
  bottom: -0.6em;
  right: 2.5rem;
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
  line-height: 0.85;
  white-space: nowrap;
  max-width: calc(100% - 5rem);
}
@media (max-width: 700px) {
  .who-philosophy::before { right: 1rem; max-width: calc(100% - 2rem); }
}
.who-philosophy-inner {
  max-width: 1500px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.who-philosophy-header {
  max-width: 880px;
  margin-bottom: 5rem;
}
.who-philosophy-header h2 {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 1.5rem 0;
}
.who-philosophy-header h2 em { font-style: italic; font-weight: 300; color: var(--bth-purple); }
.who-philosophy-header p {
  font-size: var(--fs-md);
  color: var(--bth-neutral);
  line-height: 1.6;
  max-width: 720px;
}

.who-philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}
.who-philosophy-cell {
  padding: 3rem 2.5rem;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: transparent;
  transition: background 0.4s var(--ease-out);
  position: relative;
}
.who-philosophy-cell:last-child { border-right: none; }
.who-philosophy-cell:hover { background: var(--bth-white); }
.who-philosophy-cell-num {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bth-purple);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.who-philosophy-cell-num::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--bth-purple);
}
.who-philosophy-cell h3 {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--bth-dark);
}
.who-philosophy-cell p {
  font-size: var(--fs-base);
  color: var(--bth-neutral);
  line-height: 1.6;
}
.who-philosophy-cell-tag {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bth-purple);
}
@media (max-width: 900px) {
  .who-philosophy-grid { grid-template-columns: 1fr; }
  .who-philosophy-cell { border-right: none; border-bottom: 1px solid rgba(15, 23, 42, 0.08); }
  .who-philosophy-cell:last-child { border-bottom: none; }
  .who-philosophy { padding: 6rem 1.5rem; }
}

/* Mission & Vision */
.who-mv {
  background: var(--bth-dark);
  color: var(--bth-white);
  padding: 9rem 2.5rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.who-mv::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 30%, transparent 80%);
}
.who-mv-inner {
  max-width: 1500px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(20px);
}
.who-mv-block {
  padding: 4rem 3rem;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  transition: background 0.5s var(--ease-out);
}
.who-mv-block:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.who-mv-block:hover {
  background: rgba(120, 42, 255, 0.08);
}
.who-mv-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--bth-purple);
  transition: width 0.6s var(--ease-out);
}
.who-mv-block:hover::before { width: 100%; }

.who-mv-mark {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.who-mv-eyebrow {
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--bth-purple-100);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.who-mv-eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--bth-purple);
}
.who-mv-title {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--bth-white);
  margin: 0.5rem 0 1rem;
}
.who-mv-title em { font-style: italic; font-weight: 300; color: var(--bth-purple-100); }
.who-mv-block p {
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}
.who-mv-block p strong {
  color: var(--bth-purple-100);
  font-weight: 500;
}

@media (max-width: 900px) {
  .who-mv-inner { grid-template-columns: 1fr; }
  .who-mv-block:first-child { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .who-mv { padding: 6rem 1.5rem; }
  .who-mv-block { padding: 2.5rem 1.75rem; }
}

/* =========================================================
   Ontology Comparison Slider — "The Power of Ontology"
   Two simulated chat windows revealed by a central drag handle.
   ========================================================= */
.ontology-power {
  background: var(--bth-dark);
  color: var(--bth-white);
  padding: 9rem 2.5rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.ontology-power::before {
  content: '';
  position: absolute;
  width: 1100px; height: 1100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 42, 255, 0.18) 0%, transparent 60%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(60px);
  pointer-events: none;
}
.ontology-power-inner {
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.ontology-power-header {
  max-width: 760px;
  margin: 0 auto 4rem;
  text-align: center;
}
.ontology-power-header h2 {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 1.5rem 0;
}
.ontology-power-header h2 em { font-style: italic; font-weight: 300; color: var(--bth-purple-100); }
.ontology-power-header p {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}
.ontology-power-header .section-eyebrow { justify-content: center; color: var(--bth-purple-100); }
.ontology-power-header .section-eyebrow::before { background: var(--bth-purple-100); }

.ontology-slider {
  --ontology-pos: 50%;
  position: relative;
  margin: 0 auto;
  max-width: 1100px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  backdrop-filter: blur(20px);
  user-select: none;
  -webkit-user-select: none;
}
.ontology-slider-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  min-height: 480px;
}
.ontology-chat {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.75rem 1.75rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(20, 28, 50, 0.96));
}
.ontology-chat-with {
  background:
    radial-gradient(ellipse at top right, rgba(120, 42, 255, 0.12), transparent 65%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(22, 14, 50, 0.96));
}
.ontology-chat-without {
  /* Clipped via clip-path so it covers only the LEFT portion */
  clip-path: inset(0 calc(100% - var(--ontology-pos)) 0 0);
  -webkit-clip-path: inset(0 calc(100% - var(--ontology-pos)) 0 0);
  z-index: 2;
  background: linear-gradient(180deg, rgba(20, 22, 30, 0.96), rgba(35, 35, 45, 0.96));
  /* Smooth transition for the auto-demo & click-to-jump.
     Disabled while the user is actively dragging — see .dragging rule. */
  transition: clip-path 0.55s var(--ease-out), -webkit-clip-path 0.55s var(--ease-out);
}

.ontology-chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}
.ontology-chat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bth-success);
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.55);
}
.ontology-chat-dot.dimmed {
  background: var(--bth-neutral);
  box-shadow: none;
}
.ontology-chat-title {
  color: var(--bth-white);
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: var(--fs-sm);
  text-transform: none;
}
.ontology-chat-title em { font-style: normal; color: var(--bth-purple-100); margin-left: 0.25rem; }
.ontology-chat-without .ontology-chat-title em { color: rgba(255, 255, 255, 0.45); }
.ontology-chat-status {
  margin-left: auto;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.ontology-chat-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
  overflow: hidden;
}
.ontology-msg {
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  line-height: 1.55;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  max-width: 86%;
  text-align: left;
}
.ontology-msg-user {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom-right-radius: 4px;
}
.ontology-msg-ai {
  align-self: flex-start;
  background: rgba(120, 42, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(213, 189, 255, 0.18);
  border-bottom-left-radius: 4px;
}
.ontology-chat-without .ontology-msg-ai {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.06);
}
.ontology-msg-meta {
  margin-top: 0.7rem;
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: rgba(213, 189, 255, 0.7);
  text-transform: uppercase;
}
.ontology-chat-without .ontology-msg-meta { color: rgba(255, 255, 255, 0.4); }

/* Divider handle */
.ontology-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--ontology-pos);
  width: 2px;
  background: linear-gradient(to bottom,
    rgba(120, 42, 255, 0) 0%,
    rgba(213, 189, 255, 0.85) 20%,
    rgba(213, 189, 255, 0.85) 80%,
    rgba(120, 42, 255, 0) 100%);
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
  transition: left 0.55s var(--ease-out);
}
.ontology-slider.dragging .ontology-chat-without,
.ontology-slider.dragging .ontology-divider {
  transition: none;
}
.ontology-divider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bth-white);
  border: 1px solid rgba(15, 23, 42, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  pointer-events: auto;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.45), 0 0 0 6px rgba(120, 42, 255, 0.18);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s, color 0.25s;
  color: var(--bth-purple);
  /* Prevent the browser from interpreting the touch as a scroll/zoom — the
     drag handler owns the gesture entirely. */
  touch-action: none;
}
.ontology-slider.dragging .ontology-divider-handle {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 16px 40px rgba(120, 42, 255, 0.55), 0 0 0 10px rgba(120, 42, 255, 0.22);
  background: var(--bth-purple);
  color: var(--bth-white);
}
.ontology-divider-handle:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: var(--bth-purple);
  color: var(--bth-white);
}
/* BTH-mark triangle inside the handle — points right by default, gently
   shifts left/right as a hint when the slider is idle vs being dragged. */
.ontology-divider-mark {
  width: 18px;
  height: 18px;
  color: currentColor;
  transition: transform 0.3s var(--ease-out);
  pointer-events: none;
}
.ontology-divider-handle:hover .ontology-divider-mark {
  transform: translateX(1px);
}
.ontology-slider.dragging .ontology-divider-mark {
  transform: translateX(0) scale(1.05);
}

/* Corner labels — stay outside the clipped layer */
.ontology-label {
  position: absolute;
  bottom: 1.25rem;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(10px);
  white-space: nowrap;
}
.ontology-label-without {
  left: 1.25rem;
  background: rgba(15, 23, 42, 0.7);
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ontology-label-with {
  right: 1.25rem;
  background: rgba(120, 42, 255, 0.18);
  color: var(--bth-purple-100);
  border: 1px solid rgba(213, 189, 255, 0.25);
}
.ontology-label::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

.ontology-slider-hint {
  margin-top: 1.5rem;
  text-align: center;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* Three quick takeaway pills under the slider */
.ontology-takeaways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.ontology-takeaway {
  padding: 1.5rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.4s, background 0.4s;
}
.ontology-takeaway:hover {
  border-color: var(--bth-purple);
  background: rgba(120, 42, 255, 0.06);
}
.ontology-takeaway-num {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bth-purple-100);
}
.ontology-takeaway-title {
  font-family: var(--ff-display);
  font-size: var(--fs-md);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--bth-white);
}
.ontology-takeaway-desc {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}
@media (max-width: 800px) {
  .ontology-takeaways { grid-template-columns: 1fr; gap: 0.75rem; }
  .ontology-power { padding: 6rem 1.25rem; }
  .ontology-slider-stage { aspect-ratio: 9 / 14; min-height: 540px; }
  .ontology-chat { padding: 1rem 1rem 1.25rem; }
  .ontology-msg { font-size: 0.78rem; padding: 0.7rem 0.9rem; }
  .ontology-divider-handle { width: 44px; height: 44px; }
  .ontology-divider-mark { width: 14px; height: 14px; }
  .ontology-label { font-size: 0.6rem; padding: 0.35rem 0.65rem; }
}

/* Justify the editorial paragraphs added in this section */
.who-hero-lead,
.who-philosophy-cell p,
.who-mv-block p,
.ontology-power-header p,
.ontology-takeaway-desc {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.ontology-power-header p { text-align-last: center; }

