body {
  background: var(--navy);
}
/* --- NEW TOP NAVIGATION --- */
.logo-word-small {
  color: var(--off-white);    
}

/* Remove obsolete background video/image rules (.domain-hero-bg, etc.) and add: */

.product-hero-image-wrapper {
  margin-top: 36px;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* --- DOMAIN PAGE HERO --- */
/* --- DOMAIN PAGE HERO --- */
.domain-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  overflow: hidden;
}

.domain-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.domain-hero-bg img {
  filter: brightness(0.75);
}

.domain-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,8,36,0.15) 0%, rgba(2,8,36,0.75) 100%);
}

.domain-hero-content {
  position: relative;
  z-index: 10;
  margin-top: auto;
  padding: 48px var(--content-gutter) 80px;
}

.domain-hero-title {
  font-family: var(--font-word);
  color: var(--off-white);
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: none;
  margin-bottom: 28px;
  max-width: 900px;
}

.domain-hero-desc {
  font-family: var(--font-body);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .domain-grid { grid-template-columns: 1fr; gap: 16px; }
  .domain-card { aspect-ratio: 3 / 2; }
  .domain-hero-content { padding: 32px 20px 60px; }
}

/* --- CTA SECTION --- */
.cta-section {
  position: relative;
  z-index: 2; 
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 80px var(--content-gutter);
  background-color: var(--ink); 
  min-height: 500px;
  overflow: hidden;
}

.cta-bg-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none; 
  z-index: 5;
}

.cta-text {
  position: relative;
  z-index: 10; 
  font-family: var(--font-word);
  font-size: clamp(1.2rem, 4vw, 2.2rem); 
  font-weight: 300;
  color: #ffffff;
  margin: 0;
  max-width: 600px;
  text-align: left;
}

.cta-btn {
  position: relative;
  z-index: 10; 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--navy);
  font-family: var(--font-word);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600; 
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 18px 32px;
  border-radius: 0; 
  margin: 0; 
  white-space: nowrap;
  transition: opacity 0.3s var(--ease);
}

.cta-btn:hover {
  opacity: 0.85;
}


@media (max-width: 900px) {
  .domain-grid { grid-template-columns: 1fr; gap: 16px; }
  .domain-card { aspect-ratio: 3 / 2; }
  .domain-hero-content { padding: 32px 20px 60px; }
   .cta-section {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 28px;
    padding: 60px var(--content-gutter) 100px;
    min-height: 320px;
  }

  .cta-text { max-width: 100%; }

  .cta-btn {
    font-size: 0.65rem;
    padding: 12px 15px;
    white-space: normal;
    align-self: flex-start;
  }

}



.article-nav a {
  color: var(--off-white);
}

.nav-toggle span{
  background: var(--off-white);
}

/* Hero: inherits .domain-hero from the main stylesheet, this just adds the meta pills */
.product-meta-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.meta-pill {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--off-white);
  border: 1px solid rgba(238, 238, 238, 0.25);
  border-radius: 999px;
  padding: 6px 14px;
}

.domain-hero{
  margin-bottom: 10vh;
}
/* Section headings */
.section {
  padding: 20px 32px 42px;
}
.section-title {
  font-family: var(--font-word);
  padding-left: 0px;
  color: var(--off-white);
  font-weight: 700;
  font-size: 2.2rem;
  margin-bottom: 28px;
}

/* Interactive viewer, hidden until a product supplies one */
.viewer-section {
  display: none;
}
.viewer-section.is-visible {
  display: block;
}

.viewer-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 520px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--navy);
  border: 1px solid rgba(249, 255, 255, 0.14);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.viewer-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #00051b;
  z-index: 1;
}

.viewer-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}

.viewer-frame iframe.is-ready {
  opacity: 1;
}

/* Center Loading Screen (covers VTK icon) */
.viewer-loader {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
  pointer-events: none;
}

.viewer-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.viewer-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.viewer-loader-spinner {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(105, 222, 245, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: viewerSpin 0.9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes viewerSpin {
  to { transform: rotate(360deg); }
}

.viewer-loader-title {
  font-family: var(--font-word);
  font-size: 1.15rem;
  letter-spacing: 0.25em;
  color: var(--off-white);
  animation: viewerPulse 1.8s ease-in-out infinite;
}

@keyframes viewerPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.viewer-loader-sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

/* Top HUD */
.viewer-hud-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
  pointer-events: none;
}

.viewer-status-badge {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(249, 255, 255, 0.16);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--off-white);
}

.status-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2bf5a0;
  box-shadow: 0 0 10px #2bf5a0;
  animation: statusBlink 2.2s infinite ease-in-out;
}

@keyframes statusBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Interactive viewer badge (original pill style) */
.viewer-interact-badge {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 5, 27, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(249, 255, 255, 0.16);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--off-white);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.viewer-interact-badge[aria-pressed="true"] {
  border-color: var(--accent);
}

/* hover: fill with the accent color */
.viewer-interact-badge:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--navy);
}

.interact-icon {
  width: 14px;
  height: 14px;
  stroke: var(--accent);
  transition: stroke 0.3s var(--ease);
}

.viewer-interact-badge:hover .interact-icon {
  stroke: var(--navy);
}

/* 3D viewer is locked until the user launches it */
.viewer-frame iframe {
  pointer-events: none;
}
.viewer-container.is-interactive .viewer-frame iframe {
  pointer-events: auto;
}

/* Bottom HUD: Meta Cards */
.viewer-hud-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;            /* stretch across the full width */
  padding: 24px;
  z-index: 3;
  pointer-events: none;
}

.viewer-meta-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* add this */
  gap: 12px;
}

.viewer-meta-card {
  pointer-events: auto;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 4px;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
  min-width: 110px;
}

.meta-card-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta-card-value {
  font-family: var(--font-word);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  color: var(--off-white);
  white-space: nowrap;
}

/* Capabilities */
.capability-tabs {
  display: flex;
  gap: 36px;
  border-bottom: 1px solid rgba(238, 238, 238, 0.15);
  margin-bottom: 32px;
}
.capability-tab {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0 0 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.3s var(--ease);
}
.capability-tab.active {
  color: var(--off-white);
  border-bottom-color: var(--off-white);
}

.capability-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--off-white);
  color: var(--ink);
  border-radius: 8px;
  overflow: hidden;
  min-height: 362px;
}
.capability-text {
  padding: 70px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.capability-text h3 {
  font-family: var(--font-word);
  font-size: 32px;
  margin-bottom: 20px;
}
.capability-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
}
.capability-index {
  font-family: var(--font-word);
  font-size: 0.8rem;
  color: var(--muted-navy);
  margin-top: 40px;
}
.capability-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 15px;
  border-radius: 20px;
}

.capability-frame {
  width: 100%;
  height: 100%;
  min-height: 362px;
  border: none;
  border-radius: 20px;
  padding: 15px;
}
.capability-frame-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
}

.domain-hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  filter: brightness(0.35);
  z-index: 1;
}

.interact-prompt {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translate(-50%, -30%);
  backdrop-filter: blur(4px);
  color: var(--text-muted, rgba(255, 255, 255, 0.75));
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  pointer-events: none; /* Allows mouse/touch events to pass through to the 3D canvas */
  user-select: none;
}
/* Use cases */
.use-cases {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 700px;
  min-height: 300px;
}

.accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
  cursor: pointer;
  text-align: left;
}

.accordion-header-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.accordion-number {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-body);
}

.accordion-title {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.accordion-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.3s ease, 
              margin-top 0.3s ease;
}

.accordion-item.active .accordion-content {
  max-height: 200px;
  opacity: 1;
  margin-top: 16px;
}

.accordion-content p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  padding-left: 44px;
  max-width: 680px;
}

.demo-video-container {
  width: 100%;
  margin-top: 32px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 900px) {
  .logo-mark-small { width: 60px; height: 60px; }
  .logo-word-small { font-size: 0.85rem; }
  .article-nav { display: none; }
  .article-header{
    padding: 10px 12px 0px;
  }
  .section {
    padding: 20px 12px 42px;
  }
  .capability-card { 
    grid-template-columns: 1fr; 
  }
  .capability-text {
    padding: 30px 15px;
  }
  .capability-text h3 {
    font-size: 22px;
  }
  .capability-text p {
    font-size: 0.85rem;
  }
  .accordion-item{
    width: 90%;
  }
  .accordion-header{
    width: 90%;
  }
  .accordion-title{
    font-size: 1.2rem;
  }
  .accordion-content p {
    font-size: 0.85rem;
  }
  .cta-text {
    font-size: 1.4rem;
  }
  .viewer-container {
    aspect-ratio: 4 / 3;
    min-height: 380px;
  }
  .viewer-hud-top {
    padding: 12px 5px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }
  .viewer-status-badge, .viewer-interact-badge {
    padding: 5px 8px;
    font-size: 0.58rem;
    gap: 5px;
  }
  .viewer-hud-bottom {
    padding: 14px;
  }
  .viewer-meta-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .viewer-meta-card {
    padding: 5px 6px;
    min-width: 0;
  }
  .viewer-meta-card {
    padding: 6px 10px;
    min-width: 85px;
  }
  .meta-card-label {
    font-size: 0.5rem;
  }
  .meta-card-value {
    font-size: 0.62rem;
    white-space: normal;
  }
}

/* ==========================================================================
   Image viewer: a photo with numbered hotspots (built by product_script.js)
   Used when a product supplies <meta name="product-viewer-image">.
   ========================================================================== */
.viewer-container.is-image {
  background: var(--navy);
}
.viewer-container.is-image .viewer-frame { display: none; }

/* the stage leaves room for the top and bottom HUD; the photo is "contained" inside it */
.viewer-image-stage {
  position: absolute;
  inset: 64px 32px 100px;
  z-index: 2;
  container-type: size;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}
.viewer-image-stage.is-ready { opacity: 1; }

/* hotspots are placed in % of this box, so they stay on the right parts at any size */
.viewer-photo {
  --ratio: 1.5568;                       /* overwritten from the real image once loaded */
  position: relative;
  flex: none;
  width: min(100cqw, calc(100cqh * var(--ratio)));
  aspect-ratio: var(--ratio);
}
.viewer-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 28px 28px rgba(0, 0, 0, 0.45));
}

/* ---- hotspot buttons: hidden until the viewer is launched ---- */
.hotspot {
  position: absolute;
  z-index: 2;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  color: var(--off-white);
  background: rgba(0, 5, 27, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1.5px solid var(--accent);
  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  scale: 0.4;
  transition:
    opacity 0.35s var(--ease) calc(var(--i, 0) * 0.07s),
    scale 0.5s var(--ease) calc(var(--i, 0) * 0.07s),
    visibility 0s linear 0.6s,
    background 0.25s var(--ease),
    color 0.25s var(--ease);
}
.viewer-container.is-interactive .hotspot {
  opacity: 1;
  visibility: visible;
  scale: 1;
  transition:
    opacity 0.35s var(--ease) calc(var(--i, 0) * 0.07s),
    scale 0.5s var(--ease) calc(var(--i, 0) * 0.07s),
    visibility 0s,
    background 0.25s var(--ease),
    color 0.25s var(--ease);
}

/* soft ping so people can tell the markers are clickable */
.hotspot::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0;
  pointer-events: none;
  animation: hotspotPing 2.4s calc(var(--i, 0) * 0.3s) ease-out infinite;
}
@keyframes hotspotPing {
  0%   { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0;   transform: scale(1.9); }
}

.viewer-container.is-interactive .hotspot:hover,
.viewer-container.is-interactive .hotspot:focus-visible { scale: 1.12; }
.hotspot:hover,
.hotspot:focus-visible,
.hotspot[aria-expanded="true"] {
  background: var(--accent);
  color: var(--navy);
}
.hotspot[aria-expanded="true"]::before { animation: none; }
.hotspot:focus-visible { outline: 2px solid var(--off-white); outline-offset: 3px; }

/* hover / focus label */
.hotspot-tag {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--off-white);
  background: rgba(0, 5, 27, 0.9);
  border: 1px solid rgba(249, 255, 255, 0.16);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}
.hotspot[data-side="right"] .hotspot-tag { left: calc(100% + 10px); }
.hotspot[data-side="left"]  .hotspot-tag { right: calc(100% + 10px); }
.hotspot:hover .hotspot-tag,
.hotspot:focus-visible .hotspot-tag { opacity: 1; }
.hotspot[aria-expanded="true"] .hotspot-tag { opacity: 0; }

/* ---- the details card ---- */
.hotspot-card {
  position: absolute;
  z-index: 5;
  width: min(270px, calc(100% - 24px));
  padding: 16px 18px 18px;
  border-radius: 8px;
  background: rgba(0, 5, 27, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(105, 222, 245, 0.45);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  translate: 0 8px;
  pointer-events: none;
  transition:
    opacity 0.3s var(--ease),
    translate 0.4s var(--ease),
    left 0.4s var(--ease),
    top 0.4s var(--ease),
    visibility 0s linear 0.4s;
}
.hotspot-card.is-open {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
  transition-delay: 0s;     /* pointer-events stays none: the card never blocks the markers */
}
.hotspot-card-count {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.hotspot-card h4 {
  margin: 0 0 8px;
  font-family: var(--font-word);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--off-white);
}
.hotspot-card p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(249, 255, 255, 0.78);
}

@media (max-width: 900px) {
  .viewer-container.is-image { min-height: 440px; }
  .viewer-image-stage { inset: 56px 16px 118px; }
  .hotspot { width: 30px; height: 30px; margin: -15px 0 0 -15px; font-size: 0.66rem; }
  .hotspot-card { padding: 14px 16px 16px; }
  .hotspot-card p { font-size: 0.76rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hotspot::before { animation: none; }
  .hotspot, .viewer-container.is-interactive .hotspot,
  .hotspot-card, .viewer-image-stage { transition: none; }
}
/* mobile overflow fixes */
.demo-video-container { width: auto; }

@media (max-width: 900px) {
  .capability-tabs {
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .capability-tabs::-webkit-scrollbar { display: none; }
  .capability-tab { white-space: nowrap; flex: none; }
  .capability-card { grid-template-columns: minmax(0, 1fr); }
}