/* ============================================
   LANCER ORTHODONTICS — Editorial Landing
   Paleta: azul corporativo + crema + grafito
   ============================================ */

:root {
  --blue: #2669f0;
  --blue-deep: #1a4fc4;
  --blue-ink: #0b1a3a;
  --green: #10b981;
  --cream: #f6f3ec;
  --cream-2: #efe9dd;
  --paper: #fbfaf6;
  --ink: #0e1320;
  --ink-soft: #2b3147;
  --muted: #6b7280;
  --line: rgba(14, 19, 32, 0.08);
  --line-strong: rgba(14, 19, 32, 0.18);

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1240px;
  --radius: 18px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.lancer-logo {
  width: 120px;
  height: auto;
}


/* ============================================
   Tipografía utilitaria
   ============================================ */
.h-display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.8vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144;
}

.h-display em {
  font-style: italic;
  color: var(--blue);
  font-variation-settings: "opsz" 144, "wght" 500;
}

.h-display--light {
  color: var(--cream);
}

.h-display--light em {
  color: #b9d0ff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 22px;
}

.eyebrow--dark {
  color: var(--ink-soft);
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   Botones
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: -0.005em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  border: 1px solid transparent;
}

.btn--sm {
  padding: 10px 18px;
  font-size: 0.85rem;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(38, 105, 240, 0.55);
}

.btn--primary:hover {
  background: var(--blue-deep);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  background: var(--cream);
}

.btn--white {
  background: #fff;
  color: var(--blue-ink);
}

.btn--white:hover {
  transform: translateY(-2px);
}

.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.92rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: gap .2s ease;
}

.link-arrow:hover {
  gap: 12px;
}

.link-arrow--lg {
  font-size: 1.05rem;
  margin-top: 12px;
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(251, 250, 246, 0.78);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.nav__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 600;
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.nav__logo-text small {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--muted);
  margin-top: 3px;
}

.nav__links {
  display: flex;
  gap: 32px;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav__links a {
  position: relative;
  color: var(--ink-soft);
  transition: color .2s ease;
}

.nav__links a:hover {
  color: var(--blue);
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width .25s ease;
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__lang {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
}

@media (max-width: 880px) {
  .nav__links {
    display: none;
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: 60px 0 0;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(38, 105, 240, 0.08), transparent 60%),
    radial-gradient(ellipse at 0% 100%, rgba(16, 185, 129, 0.05), transparent 60%),
    var(--paper);
  overflow: hidden;
}

.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
  opacity: 0.7;
}

.hero__container {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px 60px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  min-height: 80vh;
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.5);
  margin-bottom: 28px;
}

.hero__eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  50% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.08);
  }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.2vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  font-variation-settings: "opsz" 144;
}

.hero__title em {
  font-style: italic;
  color: var(--blue);
  font-variation-settings: "opsz" 144, "wght" 500;
  position: relative;
  white-space: nowrap;
}

.hero__title em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.05em;
  height: 0.18em;
  background: rgba(38, 105, 240, 0.16);
  z-index: -1;
}

.hero__lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: 40px;
  list-style: none;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.hero__stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
  color: var(--blue-ink);
}

.hero__stats span {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Visor 3D */
.hero__viewer {
  position: relative;
  z-index: 2;
}

.hero__viewer-frame {
  position: relative;
  aspect-ratio: 1 / 1.05;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, #ffffff 0%, #f4f0e6 45%, #e8e1d0 100%);
  box-shadow:
    0 30px 60px -25px rgba(11, 26, 58, 0.35),
    0 12px 24px -12px rgba(11, 26, 58, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.bracket-canvas {
  position: absolute;
  inset: 0;
  cursor: grab;
  user-select: none;
}

.bracket-canvas:active {
  cursor: grabbing;
}

.bracket-canvas canvas {
  display: block;
}

.bracket-canvas__hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(11, 26, 58, 0.78);
  color: #fff;
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 0.72rem;
  z-index: 10;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

@media (hover: none) and (pointer: coarse) {
  .bracket-canvas__hint {
    display: none;
  }
}

.bracket-canvas__loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(251, 250, 246, 0.92);
  z-index: 5;
  transition: opacity .5s ease;
}

.bracket-canvas__loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.bracket-canvas__loader p {
  font-size: 0.85rem;
  color: var(--muted);
}

.spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(38, 105, 240, 0.15);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hero__viewer-caption {
  margin-top: 18px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Marquee */
.marquee {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  overflow: hidden;
  padding: 18px 0;
}

.marquee__track {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.marquee__track span:nth-child(even) {
  color: var(--blue);
  font-style: normal;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ============================================
   PRECISION
   ============================================ */
.precision {
  padding: 120px 0;
  background: var(--paper);
}

.precision__grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.precision__intro p {
  margin-top: 24px;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 460px;
}

.precision__intro strong {
  color: var(--ink);
  font-weight: 600;
}

.precision__cards {
  display: grid;
  gap: 18px;
}

.pcard {
  position: relative;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.pcard:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  box-shadow: 0 20px 40px -20px rgba(38, 105, 240, 0.25);
}

.pcard--accent {
  background: var(--blue-ink);
  color: var(--cream);
  border-color: var(--blue-ink);
}

.pcard--accent h3 {
  color: #fff;
}

.pcard--accent p {
  color: rgba(255, 255, 255, 0.75);
}

.pcard--accent .pcard__num {
  color: rgba(255, 255, 255, 0.4);
}

.pcard__num {
  position: absolute;
  top: 22px;
  right: 28px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--muted);
}

.pcard h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.pcard p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ============================================
   PRODUCTOS
   ============================================ */
.products {
  padding: 120px 0;
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.products__header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 64px;
  max-width: 900px;
}

.products__header .eyebrow {
  margin: 0;
  align-self: end;
  padding-bottom: 8px;
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  position: relative;
  padding: 32px;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
  transition: transform .3s ease, box-shadow .3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 50px -30px rgba(11, 26, 58, 0.25);
}

.product-card--feature {
  grid-column: span 2;
  background: linear-gradient(135deg, #fff 0%, #f1f6ff 100%);
  border-color: rgba(38, 105, 240, 0.25);
}

.product-card__tag {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--blue);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.7rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.product-card--feature h3 {
  font-size: 2.2rem;
  color: var(--blue-ink);
}

.product-card__desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex: 1;
}

.product-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.product-card__features li {
  padding-left: 16px;
  position: relative;
}

.product-card__features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

/* ============================================
   SPEC (sección oscura técnica)
   ============================================ */
.spec {
  padding: 140px 0;
  background:
    radial-gradient(ellipse at top right, rgba(38, 105, 240, 0.18), transparent 50%),
    var(--blue-ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.spec::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at right, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at right, black, transparent 70%);
}

.spec__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.spec__lead {
  margin-top: 28px;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 500px;
}

.spec__list {
  margin-top: 48px;
  display: grid;
  gap: 0;
}

.spec__list>div {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.spec__list>div:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.spec__list dt {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
}

.spec__list dd {
  font-weight: 500;
  color: #fff;
  font-size: 0.98rem;
}

.spec__viz {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spec__ring {
  position: absolute;
  inset: 25%;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: rotate 30s linear infinite;
}

.spec__ring--2 {
  inset: 12%;
  border-style: solid;
  border-color: rgba(38, 105, 240, 0.4);
  animation-duration: 50s;
  animation-direction: reverse;
}

.spec__ring--3 {
  inset: 0;
  border-color: rgba(255, 255, 255, 0.1);
  animation-duration: 80s;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

.spec__center {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--blue) 0%, var(--blue-deep) 100%);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 30px 60px -20px rgba(38, 105, 240, 0.5),
    inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.spec__center-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
}

.spec__center-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-top: 4px;
}

.spec__pin {
  position: absolute;
  z-index: 3;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  backdrop-filter: blur(6px);
}

.spec__pin--1 {
  top: 8%;
  left: 30%;
}

.spec__pin--2 {
  top: 22%;
  right: 8%;
}

.spec__pin--3 {
  bottom: 18%;
  right: 14%;
}

.spec__pin--4 {
  bottom: 8%;
  left: 22%;
}

/* ============================================
   HISTORIA
   ============================================ */
.story {
  padding: 120px 0;
  background: var(--paper);
}

.story__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}

.story__copy p {
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.story__copy em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--blue);
  font-weight: 500;
}

.story__copy strong {
  font-weight: 600;
  color: var(--ink);
}

/* ============================================
   CTA
   ============================================ */
.cta {
  padding: 100px 0 120px;
  background: var(--cream);
}

.cta__box {
  background: var(--blue-ink);
  color: var(--cream);
  padding: 80px 64px;
  border-radius: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top left, rgba(38, 105, 240, 0.4), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(16, 185, 129, 0.15), transparent 50%),
    var(--blue-ink);
}

.cta__box .eyebrow {
  margin-bottom: 24px;
}

.cta__box p {
  max-width: 560px;
  margin: 28px auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.cta__actions {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand p {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.footer h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer a {
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: color .2s ease;
}

.footer a:hover {
  color: var(--blue);
}

.footer__bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 28px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 980px) {
  .hero__container {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-bottom: 80px;
  }

  .hero__stats {
    gap: 24px;
  }

  .precision__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-card--feature {
    grid-column: span 2;
  }

  .products__header {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .spec__grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .story__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta__box {
    padding: 60px 32px;
  }
}

@media (max-width: 640px) {
  .products__grid {
    grid-template-columns: 1fr;
  }

  .product-card--feature {
    grid-column: span 1;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
  }

  .hero__stats {
    flex-wrap: wrap;
  }

  .hero__stats strong {
    font-size: 1.6rem;
  }

  .cta__actions {
    flex-direction: column;
  }

  .cta__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   3D SPATIAL LABELS — CSS2DRenderer overlay
   ============================================ */

.bracket-labels-root {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  transform: translateZ(0);   /* promote to same GPU layer as canvas */
  will-change: transform;
}

.bracket-canvas.is-dragging .label-mim {
  pointer-events: none;
}

.label-slot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: none;
  will-change: transform;
}

.label-slot__tag {
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(14, 19, 32, 0.18);
  padding: 4px 8px;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.label-slot__leader {
  width: 1px;
  height: 20px;
  background: rgba(14, 19, 32, 0.25);
  margin-left: 12px;
}

.label-mim {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: auto;
  cursor: pointer;
  will-change: transform;
}

.label-mim__badge {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue);
  padding: 6px 10px;
  white-space: nowrap;
  box-shadow: 0 6px 16px -6px rgba(38, 105, 240, 0.55);
  transition: background 0.18s ease;
  user-select: none;
}

.label-mim__badge:hover {
  background: var(--blue-deep, #1a50c4);
}

.label-mim__badge.is-zoomed {
  background: var(--ink);
  box-shadow: none;
}

.label-mim__leader {
  width: 1px;
  height: 16px;
  background: rgba(38, 105, 240, 0.5);
  margin-left: 10px;
}