.blog-3d-hub {
  --motion-bg: #050707;
  --motion-panel: rgba(13, 17, 17, 0.78);
  --motion-panel-strong: rgba(18, 24, 24, 0.92);
  --motion-line: rgba(160, 255, 250, 0.18);
  --motion-line-hot: rgba(21, 239, 228, 0.58);
  --motion-text: #f3fbfa;
  --motion-muted: #9bb3b0;
  --motion-soft: #6f8582;
  --motion-cyan: #13efe4;
  --motion-amber: #ffb24d;
  --motion-green: #65f2a4;
  --motion-rose: #ff6d5f;
  position: relative;
  isolation: isolate;
  overflow: clip;
  background:
    linear-gradient(90deg, rgba(19, 239, 228, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 178, 77, 0.04) 1px, transparent 1px),
    linear-gradient(122deg, transparent 0 48%, rgba(19, 239, 228, 0.1) 48.2%, transparent 68%),
    linear-gradient(58deg, transparent 0 36%, rgba(255, 178, 77, 0.08) 36.2%, transparent 57%),
    linear-gradient(180deg, #081010 0%, var(--motion-bg) 34rem, #070909 100%);
  background-size: 72px 72px, 72px 72px, auto, auto, auto;
}

.blog-3d-hub .section-eyebrow,
.blog-3d-hub .feature-label,
.blog-3d-hub .start-card span,
.blog-3d-hub .topic-lane > div:first-child span {
  letter-spacing: 0;
}

.blog-3d-stage {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 120px 0 78px;
  overflow: hidden;
}

.blog-3d-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 28%, rgba(19, 239, 228, 0.12) 28.1%, transparent 28.5% 100%),
    linear-gradient(245deg, transparent 0 62%, rgba(255, 178, 77, 0.13) 62.1%, transparent 62.5% 100%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.15), #000 18%, #000 82%, rgba(0, 0, 0, 0.25));
}

.blog-3d-stage-glow {
  position: absolute;
  inset: 10% 0 0 38%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 52% 43%, rgba(19, 239, 228, 0.24), transparent 18rem),
    radial-gradient(circle at 74% 65%, rgba(255, 178, 77, 0.12), transparent 16rem),
    linear-gradient(90deg, transparent, rgba(5, 7, 7, 0.78) 74%, rgba(5, 7, 7, 0.94));
  filter: blur(1px);
}

.blog-3d-stage-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(430px, 0.92fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
}

.blog-3d-hero-copy {
  position: relative;
  max-width: 720px;
}

.blog-3d-hero-copy::before {
  content: "";
  position: absolute;
  inset: -34px -46px -30px -28px;
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 7, 7, 0.92), rgba(5, 7, 7, 0.65) 62%, transparent);
  pointer-events: none;
}

.blog-3d-hero-copy h1 {
  margin: 0;
  max-width: 760px;
  color: var(--motion-text);
  font-family: var(--serif);
  font-size: 5.1rem;
  line-height: 0.95;
  font-weight: 900;
  text-wrap: balance;
}

.blog-3d-hero-copy p {
  max-width: 610px;
  margin: 26px 0 0;
  color: var(--motion-muted);
  font-size: 1.18rem;
  line-height: 1.62;
}

.blog-3d-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.blog-3d-actions .btn {
  border-radius: 8px;
}

.blog-3d-actions .btn-secondary {
  color: var(--motion-text);
  border-color: var(--motion-line);
  background: rgba(255, 255, 255, 0.04);
}

.blog-engine-wrap {
  position: relative;
  min-height: clamp(520px, 66vh, 720px);
  transform-style: preserve-3d;
}

.blog-engine-scene {
  position: relative;
  min-height: inherit;
  isolation: isolate;
  overflow: visible;
  cursor: grab;
}

.blog-engine-scene:active {
  cursor: grabbing;
}

#blog-engine-canvas {
  position: absolute;
  inset: -8% -10% -6% -8%;
  z-index: 2;
  width: 118%;
  height: 114%;
  display: block;
}

.engine-static-core {
  position: absolute;
  inset: 9% 4% 6% 2%;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(19, 239, 228, 0.13) 1px, transparent 1px),
    linear-gradient(180deg, rgba(19, 239, 228, 0.11) 1px, transparent 1px),
    radial-gradient(circle at 52% 46%, rgba(19, 239, 228, 0.26), transparent 9rem),
    radial-gradient(circle at 42% 56%, rgba(255, 178, 77, 0.12), transparent 14rem);
  background-size: 58px 58px, 58px 58px, auto, auto;
  opacity: 0.62;
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 78%, transparent);
  animation: enginePulse 6s ease-in-out infinite;
}

.engine-static-core::before,
.engine-static-core::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.engine-static-core::before {
  inset: 18% 10% 16% 8%;
  border: 1px solid rgba(19, 239, 228, 0.18);
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(19, 239, 228, 0.38) 18.2% 18.7%, transparent 18.9% 42%, rgba(255, 178, 77, 0.28) 42.2% 42.7%, transparent 43%),
    linear-gradient(180deg, transparent 0 34%, rgba(19, 239, 228, 0.32) 34.2% 34.7%, transparent 35% 66%, rgba(19, 239, 228, 0.2) 66.2% 66.7%, transparent 67%);
  transform: skewY(-7deg);
}

.engine-static-core::after {
  left: 10%;
  right: 16%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--motion-cyan), rgba(255, 178, 77, 0.72), transparent);
  box-shadow: 0 0 22px rgba(19, 239, 228, 0.5);
  animation: engineScan 4.8s ease-in-out infinite;
}

.engine-status-panel {
  position: absolute;
  right: 2%;
  bottom: 8%;
  z-index: 5;
  width: min(300px, 52%);
  padding: 18px;
  border-left: 2px solid var(--motion-cyan);
  background: linear-gradient(90deg, rgba(5, 8, 8, 0.88), rgba(5, 8, 8, 0.46));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.engine-status-panel span {
  color: var(--motion-cyan);
  font-size: 0.75rem;
  font-weight: 900;
}

.engine-status-panel strong {
  display: block;
  margin-top: 8px;
  color: var(--motion-text);
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

.engine-status-panel small {
  display: block;
  margin-top: 9px;
  color: var(--motion-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

@keyframes enginePulse {
  0%, 100% {
    transform: scale(0.98);
    opacity: 0.48;
  }

  50% {
    transform: scale(1.02);
    opacity: 0.72;
  }
}

@keyframes engineScan {
  0%, 100% {
    transform: translateY(-84px);
    opacity: 0.2;
  }

  48%, 58% {
    opacity: 0.86;
  }

  50% {
    transform: translateY(84px);
    opacity: 0.72;
  }
}

.motion-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 700ms ease, transform 800ms cubic-bezier(0.19, 1, 0.22, 1);
}

.motion-reveal.in-view,
.blog-3d-ready .fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.blog-scroll-story {
  position: relative;
  z-index: 2;
  padding: 48px 0 112px;
  background-color: var(--motion-bg);
  background:
    linear-gradient(180deg, rgba(5, 8, 8, 0.98) 0%, rgba(5, 8, 8, 0.9) 18rem, transparent 46rem),
    radial-gradient(circle at 18% 22%, rgba(19, 239, 228, 0.12), transparent 28rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 42%);
}

.story-section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(280px, 0.34fr);
  grid-template-areas:
    "eyebrow copy"
    "title copy";
  column-gap: clamp(28px, 5vw, 76px);
  row-gap: 12px;
  align-items: end;
  margin: 0 0 34px;
}

.story-section-head > .section-eyebrow {
  grid-area: eyebrow;
}

.story-section-head h2 {
  grid-area: title;
  margin: 0;
  max-width: 760px;
  color: var(--motion-text);
  font-family: var(--serif);
  font-size: clamp(2.25rem, 3.35vw, 3.62rem);
  line-height: 1;
  text-wrap: balance;
}

.story-section-head p {
  grid-area: copy;
  margin: 0;
  max-width: 430px;
  color: var(--motion-muted);
  font-size: 1rem;
  line-height: 1.62;
}

.blog-scroll-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: start;
}

.story-sticky {
  position: sticky;
  top: 96px;
  min-height: min(680px, calc(100vh - 118px));
  display: grid;
  grid-template-columns: minmax(330px, 0.72fr) minmax(400px, 0.9fr);
  gap: 18px;
  align-items: center;
  perspective: 1400px;
}

.story-copy-panel {
  min-height: 424px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--motion-line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(19, 239, 228, 0.12), rgba(255, 178, 77, 0.035)),
    rgba(8, 12, 12, 0.9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.story-copy-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.story-count {
  color: var(--motion-amber);
  font-size: 0.76rem;
  font-weight: 900;
}

.story-copy-panel h2 {
  margin: 0;
  color: var(--motion-text);
  font-size: clamp(1.78rem, 2.08vw, 2.42rem);
  line-height: 1.06;
  text-wrap: balance;
}

.story-copy-panel p {
  margin: 18px 0 0;
  color: var(--motion-muted);
  font-size: 1rem;
  line-height: 1.62;
}

.story-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 26px;
  color: var(--motion-bg);
  background: var(--motion-cyan);
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 900;
}

.story-progress {
  width: 100%;
  height: 3px;
  margin-top: 28px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.story-progress span {
  display: block;
  width: 25%;
  height: 100%;
  background: linear-gradient(90deg, var(--motion-cyan), var(--motion-amber));
  transition: width 420ms cubic-bezier(0.19, 1, 0.22, 1);
}

.story-image-stage {
  position: relative;
  width: 100%;
  height: min(620px, calc(100vh - 136px));
  min-height: 0;
  border: 1px solid var(--motion-line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(150deg, rgba(19, 239, 228, 0.12), transparent 42%),
    rgba(8, 12, 12, 0.78);
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.38);
  transform-style: preserve-3d;
  will-change: transform;
}

.story-image-stage::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.13);
  pointer-events: none;
}

.story-image-stage::after {
  content: "";
  position: absolute;
  inset: auto 20px 20px 20px;
  z-index: 4;
  height: 22%;
  background: linear-gradient(180deg, transparent, rgba(4, 7, 7, 0.74));
  pointer-events: none;
}

.story-screen-glow {
  position: absolute;
  inset: -20%;
  z-index: 1;
  background:
    radial-gradient(circle at 65% 24%, rgba(19, 239, 228, 0.26), transparent 18rem),
    radial-gradient(circle at 20% 80%, rgba(255, 178, 77, 0.16), transparent 14rem);
  opacity: 0.86;
  pointer-events: none;
}

.story-image {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.08) translateY(34px) rotateZ(1.5deg);
  transition: opacity 520ms ease, transform 760ms cubic-bezier(0.19, 1, 0.22, 1);
  will-change: opacity, transform;
}

.story-image.is-active {
  opacity: 1;
  transform: scale(1) translateY(0) rotateZ(0deg);
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-image figcaption {
  display: none;
}

.story-step-list {
  display: grid;
  gap: 16px;
  padding: 12vh 0 16vh;
}

.story-step {
  min-height: clamp(210px, 34vh, 330px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--motion-line);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(19, 239, 228, 0.07), transparent 46%),
    rgba(14, 20, 20, 0.74);
  opacity: 0.48;
  transform: translateY(0) scale(0.98);
  transition: opacity 260ms ease, border-color 260ms ease, background 260ms ease, transform 260ms ease;
}

.story-step.is-active {
  opacity: 1;
  border-color: var(--motion-line-hot);
  background:
    linear-gradient(150deg, rgba(19, 239, 228, 0.15), rgba(255, 178, 77, 0.035)),
    rgba(13, 22, 22, 0.86);
  transform: translateY(-4px) scale(1);
}

.story-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.story-step-top span {
  color: var(--motion-cyan);
  font-size: 0.78rem;
  font-weight: 900;
}

.story-step-top b {
  color: var(--motion-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.story-step h3 {
  margin: auto 0 10px;
  color: var(--motion-text);
  font-size: clamp(1.12rem, 1.45vw, 1.48rem);
  line-height: 1.12;
}

.story-step p {
  margin: 0;
  color: var(--motion-muted);
  font-size: 0.92rem;
  line-height: 1.58;
}

.featured-article-3d,
.signal-card,
.blog-3d-hub .blog-card {
  transform: translateY(0);
}

.blog-3d-featured {
  position: relative;
  padding-top: 18px;
}

.blog-3d-featured .container {
  max-width: 1400px;
}

.featured-article-3d {
  position: relative;
  grid-template-columns: minmax(0, 0.9fr) minmax(390px, 0.72fr);
  min-height: 430px;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(19, 239, 228, 0.14), transparent 42%),
    linear-gradient(30deg, rgba(255, 109, 95, 0.11), transparent 44%),
    var(--motion-panel);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.34);
}

.featured-article-3d .featured-media {
  min-height: 430px;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(19, 239, 228, 0.12), rgba(255, 178, 77, 0.06)),
    #0c1111;
}

.featured-depth-frame {
  position: absolute;
  inset: 20px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.featured-article-3d .featured-media img {
  transform: scale(1.05);
  filter: saturate(1.08) contrast(1.04);
}

.featured-article-3d:hover,
.signal-card:hover,
.blog-3d-hub .blog-card:hover {
  border-color: var(--motion-line-hot);
  transform: translateY(-6px);
}

.blog-3d-paths {
  padding-top: 12px;
}

.signal-card {
  position: relative;
  min-height: 270px;
  background:
    linear-gradient(150deg, rgba(19, 239, 228, 0.11), rgba(101, 242, 164, 0.05) 45%, rgba(255, 178, 77, 0.07)),
    var(--motion-panel);
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.22);
}

.signal-card::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 72px;
  height: 1px;
  background: linear-gradient(90deg, var(--motion-cyan), transparent);
  opacity: 0.45;
}

.signal-card strong {
  color: var(--motion-amber);
  font-size: 0.88rem;
}

.blog-3d-hub .cat-nav {
  position: sticky;
  top: 76px;
  z-index: 9;
  padding: 12px 0 42px;
  backdrop-filter: blur(18px);
}

.blog-3d-hub .cat-pills {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(5, 8, 8, 0.58);
}

.blog-3d-latest {
  padding-top: 40px;
}

.blog-3d-hub .blog-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(19, 239, 228, 0.08), transparent 36%),
    var(--motion-panel);
}

.blog-3d-hub .blog-card-img {
  transition: transform 600ms ease, filter 600ms ease;
}

.blog-3d-hub .blog-card:hover .blog-card-img {
  transform: scale(1.06);
  filter: saturate(1.12) contrast(1.04);
}

.blog-3d-hub .topic-lane {
  background:
    linear-gradient(120deg, rgba(19, 239, 228, 0.08), rgba(255, 109, 95, 0.04)),
    rgba(10, 14, 14, 0.72);
}

@media (max-width: 1100px) {
  .blog-3d-hero-copy h1 {
    font-size: 4rem;
  }

  .blog-3d-stage-grid,
  .featured-article-3d,
  .blog-scroll-story-grid,
  .story-section-head,
  .story-sticky {
    grid-template-columns: 1fr;
  }

  .story-section-head {
    grid-template-areas:
      "eyebrow"
      "title"
      "copy";
  }

  .story-sticky {
    position: relative;
    top: auto;
    min-height: auto;
  }

  .story-step-list {
    padding-top: 20px;
  }

  .featured-article-3d .featured-media {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 760px) {
  .blog-3d-hub {
    overflow: visible;
  }

  .blog-3d-stage {
    display: block;
    min-height: auto;
    padding: 104px 0 46px;
  }

  .blog-3d-stage-glow {
    inset: 18% 0 0 0;
    opacity: 0.82;
  }

  .blog-3d-stage-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .blog-3d-hero-copy h1 {
    font-size: 2.58rem;
    line-height: 1;
  }

  .blog-3d-hero-copy::before {
    inset: -18px -22px -20px -18px;
    background: linear-gradient(180deg, rgba(5, 7, 7, 0.78), rgba(5, 7, 7, 0.3), transparent);
  }

  .blog-3d-hero-copy p {
    margin-top: 18px;
    font-size: 1rem;
  }

  .blog-3d-actions {
    gap: 10px;
    margin-top: 22px;
  }

  .blog-3d-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .blog-engine-wrap {
    min-height: 390px;
    margin-top: 8px;
  }

  #blog-engine-canvas {
    inset: -10% -18% -4%;
    width: 136%;
    height: 114%;
  }

  .engine-static-core {
    inset: 8% 2% 0;
  }

  .engine-status-panel {
    left: 0;
    right: auto;
    bottom: 4%;
    width: min(260px, 74%);
    padding: 14px;
  }

  .engine-status-panel strong {
    font-size: 1.82rem;
  }

  .blog-scroll-story {
    padding: 26px 0 62px;
  }

  .story-section-head {
    gap: 14px;
    margin-bottom: 18px;
  }

  .story-section-head h2 {
    font-size: 2.28rem;
  }

  .story-section-head p {
    font-size: 0.92rem;
  }

  .blog-scroll-story-grid {
    display: block;
  }

  .story-sticky {
    position: sticky;
    top: 72px;
    z-index: 15;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(132px, 0.82fr);
    gap: 10px;
    align-items: stretch;
    margin: 0 0 18px;
    padding: 10px 0 12px;
    background: linear-gradient(180deg, rgba(5, 8, 8, 0.98), rgba(5, 8, 8, 0.94));
    min-height: auto;
  }

  .story-sticky .motion-reveal {
    opacity: 1;
    transform: none;
  }

  .story-copy-panel {
    min-height: auto;
    padding: 14px;
    justify-content: space-between;
    box-shadow: none;
  }

  .story-copy-top {
    margin-bottom: 14px;
  }

  .story-count {
    font-size: 0.68rem;
  }

  .story-copy-panel h2 {
    font-size: 1.22rem;
    line-height: 1.08;
  }

  .story-copy-panel p {
    min-height: 0;
    margin-top: 10px;
    font-size: 0.82rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .story-link {
    margin-top: 12px;
    padding: 9px 11px;
    font-size: 0.78rem;
  }

  .story-progress {
    margin-top: 14px;
  }

  .story-image-stage {
    height: 216px;
    min-height: 0;
    aspect-ratio: auto;
    box-shadow: none;
  }

  .story-image-stage::before {
    inset: 10px;
  }

  .story-image figcaption {
    display: none;
  }

  .story-step-list {
    padding: 8vh 0 0;
    gap: 18px;
  }

  .story-step {
    min-height: 38vh;
    padding: 20px;
    justify-content: space-between;
  }

  .story-step-top b {
    display: none;
  }

  .story-step h3 {
    font-size: 1.18rem;
  }

  .story-step p {
    font-size: 0.86rem;
  }

  .blog-3d-hub .cat-nav {
    position: relative;
    top: auto;
    padding-top: 0;
    backdrop-filter: none;
  }

  .blog-3d-hub .cat-pills {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding-left: 0;
  }

  .featured-article-3d .featured-media {
    min-height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-reveal,
  .blog-engine-wrap,
  .engine-static-core,
  .story-image,
  .blog-3d-hub .blog-card-img,
  .blog-3d-hub .blog-card,
  .featured-article-3d,
  .signal-card {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }

  .motion-reveal {
    opacity: 1;
  }

  .story-image {
    display: none;
  }

  .story-image.is-active {
    display: block;
    opacity: 1;
  }
}
