/* Sector gateway — hub variant (photonic BLIO scene from source SVG) */

:root {
  --hub-bg: #000000;
  --hub-violet: #8153f4;
  --hub-violet-bright: #cbb8ff;
  --hub-violet-deep: #452483;
  --hub-text: #f7f3ea;
  --hub-muted: #cbb8ff;
  --hub-yellow: #e8b93f;
  --hub-tile-0: #a78bfa;
  --hub-tile-1: #f59e0b;
  --hub-tile-2: #34d399;
  --hub-tile-3: #60a5fa;
  --hub-tile-4: #f472b6;
  --hub-tile-5: #fbbf24;
  --hub-tile-6: #22d3ee;
  --hub-tile-7: #c084fc;
  --hub-tile-8: #4ade80;
  --hub-tile-9: #fb7185;
}

html:has(.sector-variant-hub),
.sector-variant-hub {
  min-height: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--hub-bg);
  color: var(--hub-text);
}

.sector-variant-hub {
  margin: 0;
  font-family: Manrope, "Segoe UI", sans-serif;
}

.sector-hub {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(100% - 16px, 1680px);
  margin: 0 auto;
}

/* Landscape PC: full-bleed panoramic stage (4136×1880). */
.sector-hub:not(.is-portrait-fallback) {
  width: 100%;
  max-width: none;
  margin: 0;
}

.sector-hub-landscape {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-height: 100dvh;
  min-width: 0;
  width: 100%;
}

.sector-hub-sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: #000;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  color: #111;
  padding: 10px 14px;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sector-variant-hub .sector-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 40px;
  padding-top: 4px;
  background: transparent;
  border: 0;
}

.sector-hub-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sector-lang {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid #d7d4d1;
  background: #ffffff;
  color: #666674;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.sector-lang .is-active {
  color: #8153f4;
}

.sector-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 12px;
  background: #241b3d;
  color: #f7f3ea;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #241b3d;
}

.sector-hub-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 0;
  margin: 2px 0 0;
  padding: 4px 10px;
  border: 0;
  border-bottom: 1px solid rgba(129, 83, 244, 0.28);
  border-radius: 0;
  background: rgba(23, 19, 31, 0.88);
  backdrop-filter: blur(8px);
  transition: opacity 180ms ease, transform 180ms ease, max-height 180ms ease, margin 180ms ease, padding 180ms ease;
  max-height: 36px;
  overflow: hidden;
}

/* Landscape only: lower the banner so it slightly overlaps the stage top. */
.sector-hub-landscape > .sector-hub-banner {
  position: relative;
  z-index: 5;
  top: 14px;
  margin-bottom: -14px;
}

.sector-hub-banner.is-dismissed {
  opacity: 0;
  transform: translateY(-4px);
  max-height: 0;
  margin: 0;
  padding-block: 0;
  border-width: 0;
  pointer-events: none;
}

.sector-hub-banner-text {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffe566;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 12px rgba(255, 229, 102, 0.28);
}

.sector-hub-banner-mark {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--hub-yellow);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  box-shadow: 0 0 8px rgba(232, 185, 63, 0.45);
}

.sector-hub-banner-close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #5e477f;
  border-radius: 8px;
  background: #241b3d;
  color: #f7f3ea;
  cursor: pointer;
}

.sector-hub-banner-close svg {
  width: 12px;
  height: 12px;
}

.sector-variant-hub .sector-main {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  padding-block: 0;
}

.sector-hub-landscape .sector-main {
  place-items: stretch;
  width: 100%;
  padding-top: 10px;
}

.sector-hub-stage {
  position: relative;
  width: 100%;
  max-width: none;
}

.sector-hub-tv {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 45;
  width: min(34vw, 420px);
  max-width: calc(100% - 48px);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.sector-hub-tv[hidden] {
  display: block !important;
  visibility: hidden;
}

.sector-hub-tv.is-on {
  visibility: visible;
  opacity: 1;
}

.sector-hub-laser-svg {
  position: absolute;
  inset: 0;
  z-index: 40;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  opacity: 0;
}

.sector-hub-laser-svg.is-firing {
  opacity: 1;
}

.sector-hub-laser-line {
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: none;
}

.sector-hub-laser-svg.is-firing .sector-hub-laser-line {
  transition: stroke-dashoffset 600ms cubic-bezier(0.18, 0.72, 0.2, 1);
}

.sector-hub-laser-burst {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  opacity: 0;
}

.sector-hub-laser-svg.is-firing .sector-hub-laser-burst {
  animation: hub-laser-burst 470ms ease-out 550ms forwards;
}

.sector-hub-tv-bezel {
  padding: 10px;
  border: 1px solid rgba(129, 83, 244, 0.45);
  border-radius: 14px;
  background:
    linear-gradient(160deg, rgba(36, 27, 61, 0.96), rgba(12, 12, 18, 0.98));
  box-shadow:
    0 0 0 1px rgba(232, 185, 63, 0.12),
    0 18px 48px rgba(0, 0, 0, 0.55),
    0 0 36px rgba(129, 83, 244, 0.22);
  transform: scale(0.22);
  filter: brightness(2.6) contrast(1.4);
  opacity: 0;
  transform-origin: center;
}

.sector-hub-tv.is-on .sector-hub-tv-bezel {
  animation: hub-tv-laser-materialize 700ms cubic-bezier(0.2, 0.85, 0.25, 1) 35ms forwards;
}

.sector-hub-tv-screen {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 16px;
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(129, 83, 244, 0.2), transparent 55%),
    linear-gradient(180deg, #17131f, #0b0b10 72%);
  color: #f7f3ea;
}

.sector-hub-tv-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.045) 0 1px,
      transparent 1px 3px
    );
  opacity: 0.55;
  mix-blend-mode: soft-light;
}

.sector-hub-tv-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 55%;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(255, 229, 102, 0.16), transparent 62%);
  opacity: 0;
}

.sector-hub-tv.is-on .sector-hub-tv-glow {
  animation: hub-tv-flash 700ms ease-out 35ms forwards;
}

.sector-hub-tv-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  color: #cbb8ff;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
}

.sector-hub-tv-title {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: #ffe566;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
  opacity: 0;
}

.sector-hub-tv-examples {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.sector-hub-tv-examples li {
  margin: 0;
  padding: 8px 10px;
  border-left: 2px solid rgba(232, 185, 63, 0.7);
  background: rgba(255, 255, 255, 0.04);
  color: #f7f3ea;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(4px);
}

.sector-hub-tv-continue {
  display: none;
  position: relative;
  z-index: 2;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 10px;
  padding: 0 18px;
  border: 1px solid rgba(255, 229, 102, 0.6);
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe566, #e8b93f);
  color: #17131f;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  opacity: 0;
  transform: translateY(4px);
}

.sector-hub-tv.is-on .sector-hub-tv-kicker,
.sector-hub-tv.is-on .sector-hub-tv-title {
  animation: hub-tv-fade-in 190ms ease 200ms forwards;
}

.sector-hub-tv.is-on .sector-hub-tv-examples li {
  animation: hub-tv-fade-in 215ms ease forwards;
}

.sector-hub-tv.is-on .sector-hub-tv-examples li:nth-child(1) { animation-delay: 250ms; }
.sector-hub-tv.is-on .sector-hub-tv-examples li:nth-child(2) { animation-delay: 300ms; }
.sector-hub-tv.is-on .sector-hub-tv-examples li:nth-child(3) { animation-delay: 355ms; }
.sector-hub-tv.is-on .sector-hub-tv-examples li:nth-child(4) { animation-delay: 410ms; }
.sector-hub-tv.is-on .sector-hub-tv-examples li:nth-child(5) { animation-delay: 465ms; }
.sector-hub-tv.is-on .sector-hub-tv-examples li:nth-child(6) { animation-delay: 520ms; }
.sector-hub-tv.is-on .sector-hub-tv-examples li:nth-child(7) { animation-delay: 575ms; }
.sector-hub-tv.is-on .sector-hub-tv-examples li:nth-child(8) { animation-delay: 630ms; }

.sector-hub.is-mobile-landscape .sector-hub-tv {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 2147483000;
  width: min(58vw, 430px);
  max-width: calc(100% - 16px);
  max-height: calc(100dvh - 12px);
  pointer-events: auto;
  touch-action: pan-y;
  isolation: isolate;
  transform: translate3d(-50%, -50%, 0);
  -webkit-transform: translate3d(-50%, -50%, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, opacity;
}

.sector-hub.is-mobile-landscape .sector-hub-tv::before {
  position: absolute;
  z-index: -1;
  inset: -100vmax;
  content: "";
  pointer-events: none;
  background: rgba(3, 2, 8, 0.42);
  opacity: 0;
  transition: opacity 180ms ease;
}

.sector-hub.is-mobile-landscape .sector-hub-tv.is-on::before {
  opacity: 1;
}

.sector-hub.is-mobile-landscape .sector-hub-tv-bezel {
  padding: 6px;
  border-radius: 10px;
}

.sector-hub.is-mobile-landscape .sector-hub-tv-screen {
  box-sizing: border-box;
  max-height: calc(100dvh - 24px);
  padding: 10px;
  border-radius: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sector-hub.is-mobile-landscape .sector-hub-tv-kicker {
  margin-bottom: 4px;
  font-size: 9px;
}

.sector-hub.is-mobile-landscape .sector-hub-tv-title {
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.sector-hub.is-mobile-landscape .sector-hub-tv-examples {
  gap: 3px;
}

.sector-hub.is-mobile-landscape .sector-hub-tv-examples li {
  padding: 4px 7px;
  font-size: 10px;
  line-height: 1.18;
}

.sector-hub.is-mobile-landscape .sector-hub-tv-continue {
  display: flex;
}

.sector-hub.is-mobile-landscape .sector-hub-tv.is-on .sector-hub-tv-continue {
  animation: hub-tv-fade-in 215ms ease 685ms forwards;
}

.sector-hub.is-mobile-landscape .sector-main,
.sector-hub.is-mobile-landscape .sector-hub-stage {
  z-index: 1000;
  overflow: visible;
  isolation: isolate;
}

.sector-hub.is-mobile-landscape .sector-hub-banner {
  position: relative;
  z-index: 2147483646;
}

.sector-hub.is-mobile-landscape .sector-hub-scene {
  z-index: 1;
}

.sector-hub.is-mobile-landscape .sector-hub-laser-svg {
  z-index: 2147482990;
}

@keyframes hub-laser-burst {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }
  30% {
    transform: scale(1.45);
    opacity: 1;
  }
  100% {
    transform: scale(0.35);
    opacity: 0;
  }
}

@keyframes hub-tv-laser-materialize {
  0% {
    transform: scale(0.18);
    filter: brightness(3) contrast(1.5);
    opacity: 0;
    box-shadow:
      0 0 0 1px rgba(255, 229, 102, 0.55),
      0 0 28px rgba(255, 229, 102, 0.65),
      0 0 48px rgba(129, 83, 244, 0.45);
  }
  28% {
    transform: scale(1.04, 0.08);
    filter: brightness(2.2) contrast(1.3);
    opacity: 1;
  }
  52% {
    transform: scale(0.98, 1.03);
    filter: brightness(1.35) contrast(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1, 1);
    filter: brightness(1) contrast(1);
    opacity: 1;
    box-shadow:
      0 0 0 1px rgba(232, 185, 63, 0.12),
      0 18px 48px rgba(0, 0, 0, 0.55),
      0 0 36px rgba(129, 83, 244, 0.22);
  }
}

@keyframes hub-tv-flash {
  0% { opacity: 0.95; }
  55% { opacity: 0.35; }
  100% { opacity: 0; }
}

@keyframes hub-tv-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sector-hub-scene {
  position: relative;
  width: min(100%, calc((100dvh - 96px) * 1672 / 941));
  aspect-ratio: 1672 / 941;
  max-height: min(calc(100dvh - 96px), 980px);
  margin-inline: auto;
}

.sector-hub-landscape .sector-hub-scene {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  margin-inline: 0;
}

.sector-hub-landscape .sector-hub-stage {
  height: 100%;
  min-height: 0;
}

.sector-hub-landscape .sector-top {
  position: relative;
  z-index: 6;
}

.sector-hub-scene > svg,
.sector-hub-stage-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sector-hub-scene image#embedded-background {
  pointer-events: none;
}

/* Landscape: one discreet data point traveling each sector link. */
.sector-hub-landscape .connection-pulse {
  stroke: #f7f3ea !important;
  stroke-width: 2.4px !important;
  stroke-linecap: round !important;
  stroke-dasharray: 1.2 98.8 !important;
  opacity: 0.7 !important;
  filter: none !important;
  animation: hub-connection-flow 4.8s linear infinite !important;
}

@keyframes hub-connection-flow {
  to {
    stroke-dashoffset: -100;
  }
}

.sector-variant-hub .sector-footer-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 4px 0 8px;
  border-top: 1px solid rgba(48, 48, 57, 0.95);
  color: #747486;
  font-size: 11px;
  background: rgba(15, 16, 21, 0.72);
  backdrop-filter: blur(8px);
}

/* Landscape: footer spans the full panoramic stage width. */
.sector-hub-landscape .sector-footer-bar {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin-left: 0;
  padding-inline: clamp(16px, 3vw, 48px);
  background: rgba(12, 12, 16, 0.92);
}

.sector-hub-landscape .sector-top,
.sector-hub-landscape .sector-hub-banner {
  padding-inline: clamp(16px, 3vw, 48px);
  box-sizing: border-box;
}

.sector-hub-copy {
  margin: 0;
}

.sector-hub-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.sector-hub-legal a,
.sector-hub-origin {
  color: inherit;
  text-decoration: none;
}

.sector-hub-legal a:hover,
.sector-hub-origin:hover,
.sector-hub-legal a:focus-visible,
.sector-hub-origin:focus-visible {
  color: #f7f3ea;
  outline: none;
  text-decoration: underline;
}

.sector-hub-origin {
  justify-self: end;
}

@media (max-width: 900px) {
  .sector-hub {
    width: min(100% - 16px, 1600px);
  }

  .sector-hub-scene {
    width: 100%;
    max-height: none;
    aspect-ratio: 1672 / 941;
  }
}

/* Portrait fallback — vertical card carousel + detail; landscape untouched. */
.sector-hub-portrait {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  flex-direction: column;
  /* Density (0.6) × browser-zoom compensation (--vv-comp = 1 / visualViewport.scale). */
  --portrait-density: 0.6;
  --vv-comp: 1;
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(129, 83, 244, 0.28), transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(232, 185, 63, 0.08), transparent 40%),
    linear-gradient(180deg, #120f1a 0%, #07060b 55%, #050508 100%);
  color: var(--hub-text);
  overflow: hidden;
}

.sector-hub-portrait[hidden] {
  display: none !important;
}

.sector-hub.is-portrait-fallback .sector-hub-portrait {
  display: flex;
}

/*
 * Portrait zoom layer: always fills the fixed overlay visually.
 * At browser zoom 50% → --vv-comp: 2 → larger content, full bleed (same idea as /scale).
 * Avoid CSS zoom — ignored on some mobile browsers (half-width bug).
 */
.sector-hub-portrait-zoom {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: calc(100% / (var(--portrait-density) * var(--vv-comp)));
  height: calc(100% / (var(--portrait-density) * var(--vv-comp)));
  flex-direction: column;
  transform: scale(calc(var(--portrait-density) * var(--vv-comp)));
  transform-origin: top left;
}

.sector-hub.is-portrait-fallback .sector-hub-landscape {
  display: none !important;
}

.sector-hub.is-portrait-fallback {
  width: 100%;
  margin: 0;
  min-height: 100dvh;
}

.sector-hub.is-portrait-fallback .skip-link {
  z-index: 50;
}

.sector-hub-carousel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.sector-hub-carousel[hidden] {
  display: none !important;
}

.sector-hub-portrait.is-detail-open .sector-hub-carousel {
  visibility: hidden;
  pointer-events: none;
}

.sector-hub-carousel-top {
  flex: 0 0 auto;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 4px;
}

.sector-hub-carousel-brand {
  margin: 0 0 8px;
  line-height: 0;
}

.sector-hub-carousel-brand .brand-mark {
  display: block;
  width: auto;
  height: clamp(2.8rem, 10vw, 3.6rem);
  object-fit: contain;
}

.sector-hub-carousel-chips {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sector-hub-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #f4f1ea;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.sector-hub-chip:active {
  transform: scale(0.97);
}

.sector-hub-chip-contact {
  background: #fff;
  color: #111018;
  border-color: #fff;
}

.sector-hub-carousel-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 0 4px calc(10px + env(safe-area-inset-bottom, 0px));
  perspective: none;
  touch-action: none;
  user-select: none;
  overflow: hidden;
}

.sector-hub-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.sector-hub-float-lead {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 96px;
  z-index: 55;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.sector-hub-float-lead-text {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(7, 6, 11, 0.72);
  backdrop-filter: blur(8px);
  color: #ffe566;
  font-size: clamp(1.05rem, 4.4vw, 1.28rem);
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-align: center;
  text-wrap: balance;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  text-shadow:
    0 0 16px rgba(255, 229, 102, 0.35),
    0 1px 0 rgba(0, 0, 0, 0.45);
}

.sector-hub-portrait.is-detail-open .sector-hub-float-lead {
  display: none;
}

.sector-hub-card {
  position: absolute;
  left: 50%;
  top: 50%;
  isolation: isolate;
  display: grid;
  place-items: center;
  gap: 12px;
  width: calc(100% - 2px);
  max-width: none;
  height: clamp(210px, 32vh, 300px);
  margin: 0;
  padding: 22px 16px;
  border: 0;
  border-radius: 30px;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--card-accent) 35%, transparent), transparent 42%),
    linear-gradient(160deg, var(--card-a), var(--card-b));
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: translate3d(-50%, -50%, 0) scale(0.96);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 280ms ease,
    box-shadow 280ms ease;
  -webkit-tap-highlight-color: transparent;
}

.sector-hub-carousel-stage.is-dragging .sector-hub-card {
  transition: none;
}

.sector-hub-card.is-active {
  pointer-events: auto;
  filter: brightness(1.14) saturate(1.08);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 0 36px rgba(255, 255, 255, 0.18),
    0 22px 48px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.sector-hub-card.is-dimmed {
  filter: brightness(0.55) saturate(0.85);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sector-hub-card.is-peek {
  filter: brightness(0.42) saturate(0.75);
}

.sector-hub-card-glow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 40%),
    repeating-linear-gradient(
      -18deg,
      transparent 0 10px,
      rgba(255, 255, 255, 0.03) 10px 11px
    );
  pointer-events: none;
  z-index: 0;
}

.sector-hub-card-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border-radius: 26px;
  color: #fff;
  background: rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.sector-hub-card-icon svg {
  width: 72px;
  height: 72px;
}

.sector-hub-card-label {
  position: relative;
  z-index: 1;
  max-width: 18ch;
  font-size: clamp(1.4rem, 6vw, 1.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
  text-wrap: balance;
}

.sector-hub-detail {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding:
    calc(12px + env(safe-area-inset-top, 0px))
    18px
    calc(18px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(129, 83, 244, 0.22), transparent 55%),
    linear-gradient(180deg, #100e16, #07060b 70%);
  animation: portrait-detail-in 280ms cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.sector-hub-detail[hidden] {
  display: none !important;
}

.sector-hub-detail-close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}

.sector-hub-detail-close svg {
  width: 20px;
  height: 20px;
}

.sector-hub-detail-stage {
  flex: 0 1 auto;
  display: grid;
  place-items: center;
  min-height: 0;
  max-height: calc(100% - 180px);
  padding: 52px 0 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sector-hub-detail-card {
  width: min(100%, 420px);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 34px 26px 30px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 15%, color-mix(in srgb, var(--card-accent, #cbb8ff) 30%, transparent), transparent 45%),
    linear-gradient(160deg, var(--card-a, #2a1848), var(--card-b, #5b3a9e));
  color: #fff;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.42);
  animation: portrait-card-pop 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sector-hub-detail-icon {
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  border-radius: 28px;
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
}

.sector-hub-detail-icon svg {
  width: 77px;
  height: 77px;
}

.sector-hub-detail-title {
  margin: 0;
  font-size: clamp(1.45rem, 6vw, 1.9rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
  text-wrap: balance;
}

.sector-hub-detail-examples-label {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sector-hub-detail-examples {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  gap: 8px;
}

.sector-hub-detail-examples li {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
}

.sector-hub-detail-remember {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin: 14px 0 1.35em;
  padding: 0 4px;
  color: rgba(244, 241, 234, 0.92);
  font-size: clamp(1.47rem, 5.7vw, 1.62rem);
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  user-select: none;
}

.sector-hub-detail-remember-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 0.92em;
  height: 0.92em;
  margin-top: -0.15em;
  padding: 0;
  border: 1px solid rgba(244, 241, 234, 0.72);
  border-radius: 50%;
  background: transparent;
  color: rgba(244, 241, 234, 0.88);
  font-size: 0.48em;
  font-weight: 800;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0;
  vertical-align: super;
  cursor: pointer;
}

.sector-hub-detail-remember-info-mark {
  display: block;
  transform: translateY(-0.02em);
}

.sector-hub-detail-remember-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.sector-hub-detail-remember-phrase {
  display: inline;
  min-width: 0;
  text-wrap: balance;
}

.sector-hub-detail-remember-lead {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  cursor: pointer;
}

.sector-hub-detail-remember-text {
  display: inline;
  margin: 0;
  cursor: pointer;
}

.sector-hub-detail-remember-switch {
  position: relative;
  flex: 0 0 auto;
  width: 3.6rem;
  height: 2.1rem;
  cursor: pointer;
}

.sector-hub-detail-remember-input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.sector-hub-detail-remember-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.28);
  transition: background 180ms ease, border-color 180ms ease;
}

.sector-hub-detail-remember-track::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.18rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: #f4f1ea;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transform: translateY(-50%);
  transition: transform 180ms ease, background 180ms ease;
}

.sector-hub-detail-remember-input:checked + .sector-hub-detail-remember-track {
  background: linear-gradient(135deg, #9b6cff, #8153f4 55%, #6a3fd4);
  border-color: rgba(203, 184, 255, 0.55);
}

.sector-hub-detail-remember-input:checked + .sector-hub-detail-remember-track::after {
  transform: translate(1.5rem, -50%);
  background: #fff;
}

.sector-hub-detail-remember-input:focus-visible + .sector-hub-detail-remember-track {
  outline: 2px solid #cbb8ff;
  outline-offset: 3px;
}

.sector-hub-detail-remember-popover {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 8;
  width: min(100%, 22rem);
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(18, 16, 28, 0.96);
  color: rgba(244, 241, 234, 0.94);
  font-size: 0.72em;
  font-weight: 550;
  line-height: 1.4;
  text-align: left;
  text-wrap: balance;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
  pointer-events: none;
}

.sector-hub-detail-remember-popover::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 10px;
  height: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(18, 16, 28, 0.96);
  transform: translate(-50%, -55%) rotate(45deg);
}

.sector-hub-detail-actions {
  flex: 0 0 auto;
  display: grid;
  gap: 18px;
  width: 100%;
  margin-top: 16px;
  padding-top: 0;
}

.sector-hub-detail-continue {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 68px;
  border-radius: 999px;
  background: linear-gradient(135deg, #9b6cff, #8153f4 55%, #6a3fd4);
  color: #fff;
  font-size: clamp(1.2rem, 5vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(129, 83, 244, 0.35);
}

.sector-hub-detail-continue:active {
  transform: scale(0.985);
}

.sector-hub-detail-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f4f1ea;
  font-size: clamp(1.05rem, 4.4vw, 1.2rem);
  font-weight: 750;
  cursor: pointer;
}

.sector-hub-detail-back:active {
  transform: scale(0.985);
}

@keyframes portrait-detail-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes portrait-card-pop {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sector-hub-card,
  .sector-hub-detail,
  .sector-hub-detail-card,
  .sector-hub-chip,
  .sector-hub-detail-continue,
  .sector-hub-detail-back {
    animation: none !important;
    transition: none !important;
  }
}

/* While auto-locking landscape, keep a black hold if still portrait and fallback not ready. */
@media (orientation: portrait), (max-aspect-ratio: 10/11) {
  html:has(.sector-variant-hub):not(:has(.sector-hub.is-portrait-fallback)) {
    background: #000;
  }
}

@media (max-width: 640px) and (orientation: landscape) {
  .sector-variant-hub .sector-top {
    min-height: 36px;
  }

  .sector-hub-banner {
    max-height: none;
    white-space: normal;
  }

  .sector-hub-banner-text {
    font-size: 11px;
  }

  .sector-hub-scene {
    width: 100%;
    max-height: none;
  }

  .sector-variant-hub .sector-footer-bar {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 4px;
    padding-bottom: 6px;
  }

  .sector-hub-origin {
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sector-hub-banner,
  .sector-hub-scene .connection-pulse,
  .sector-hub-landscape .connection-pulse,
  .sector-hub-scene .core-breath,
  .sector-hub-scene .ambient-particle,
  .sector-hub-scene .surface-trace {
    animation: none !important;
    transition: none !important;
  }

  .sector-hub-landscape .connection-pulse animate {
    display: none;
  }
}
