/* Neurona V8 — authored assets, measured motion and WordPress-safe refinements */
:root {
  --v8-blue: #0d79f2;
  --v8-ink: #050c16;
  --v8-paper: #f4f7fb;
}

/* Exact theme assets: never recolor or brighten supplied backgrounds. */
.hero__background,
.subpage-hero::before,
.experience-loop::before,
.simulator-detail::before {
  filter: none !important;
  mix-blend-mode: normal !important;
}

html[data-theme='dark'] .hero__background,
html:not([data-theme]) .hero__background,
html[data-theme='dark'] .subpage-hero::before,
html:not([data-theme]) .subpage-hero::before {
  background-image: url('assets/reference-v8/background-10.webp') !important;
  opacity: 1 !important;
}

html[data-theme='light'] .hero__background,
html[data-theme='light'] .subpage-hero::before {
  background-image: url('assets/reference-v8/background-10-light.webp') !important;
  opacity: 1 !important;
}

html[data-theme='dark'] .experience-loop::before,
html:not([data-theme]) .experience-loop::before {
  background-image: url('assets/reference-v8/background-09.webp') !important;
  opacity: 1 !important;
}

html[data-theme='light'] .experience-loop::before {
  background-image: url('assets/reference-v8/background-09-light.webp') !important;
  opacity: 1 !important;
}

html[data-theme='dark'] .simulator-detail::before,
html:not([data-theme]) .simulator-detail::before {
  background-image: url('assets/reference-v8/background-13.webp') !important;
  opacity: 1 !important;
}

html[data-theme='light'] .simulator-detail::before {
  background-image: url('assets/reference-v8/background-13-light.webp') !important;
  opacity: 1 !important;
}

/* Full Logo 01 at page entry, compact Logo 02 while the navbar follows scroll. */
.site-header .brand {
  position: relative;
  display: grid !important;
  place-items: center start;
  width: clamp(10.5rem, 13vw, 13.5rem);
  height: 3.75rem;
  overflow: visible !important;
}

.v8-theme-logo,
.v8-footer-logo {
  grid-area: 1 / 1;
  max-width: 100%;
  max-height: 3.4rem;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease;
}

html[data-theme='dark'] .site-header:not(.is-scrolled) .v8-theme-logo--hero-dark,
html:not([data-theme]) .site-header:not(.is-scrolled) .v8-theme-logo--hero-dark,
html[data-theme='light'] .site-header:not(.is-scrolled) .v8-theme-logo--hero-light,
html[data-theme='dark'] .site-header.is-scrolled .v8-theme-logo--sticky-dark,
html:not([data-theme]) .site-header.is-scrolled .v8-theme-logo--sticky-dark,
html[data-theme='light'] .site-header.is-scrolled .v8-theme-logo--sticky-light {
  opacity: 1;
  visibility: visible;
}

.site-header.is-scrolled .brand {
  width: 3.5rem;
}

.site-header.is-scrolled .v8-theme-logo {
  max-height: 2.55rem;
}

.site-footer .brand {
  display: grid !important;
  place-items: center start;
}

html[data-theme='dark'] .v8-footer-logo--dark,
html:not([data-theme]) .v8-footer-logo--dark,
html[data-theme='light'] .v8-footer-logo--light {
  opacity: 1;
  visibility: visible;
}

/* A readable title scale with a short, visible decode phase. */
.v8-title {
  opacity: 1 !important;
  visibility: visible !important;
}

.v8-title span:not(.hero__title-echo) {
  opacity: 1 !important;
  visibility: visible !important;
}

.hero__title {
  font-size: clamp(4.1rem, 6.4vw, 7.25rem) !important;
  line-height: 0.82 !important;
  max-width: 12ch;
}

.hero__title .hero__title-line--accent {
  font-size: 0.72em !important;
  line-height: 0.9 !important;
}

.subpage-hero h1 {
  font-size: clamp(4rem, 7vw, 7.75rem) !important;
  line-height: 0.82 !important;
}

.subpage-hero h1 span + span,
.display-heading span + span {
  font-size: 0.74em !important;
}

.display-heading,
.product__head h2,
.simulator-detail__title {
  font-size: clamp(3.8rem, 6.2vw, 7rem) !important;
  line-height: 0.84 !important;
}

/* The exact authored image remains untouched; the video and CTA sit behind/above it. */
.product-authored-frame {
  position: relative !important;
  width: min(100%, 98rem) !important;
  aspect-ratio: 1569 / 867 !important;
  margin-inline: auto;
  background: transparent !important;
  overflow: hidden;
}

.product-authored-frame__video {
  position: absolute !important;
  z-index: 1 !important;
  left: 31.25% !important;
  top: 2.9% !important;
  width: 66.9% !important;
  height: 94.1% !important;
  object-fit: cover !important;
  border: 0 !important;
  filter: none !important;
}

.product-authored-frame__overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 3 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  filter: none !important;
  pointer-events: none;
}

.product-authored-frame__play {
  z-index: 4 !important;
}

.product-authored-frame__cta {
  position: absolute !important;
  z-index: 5 !important;
  left: 1.8% !important;
  bottom: 4.2% !important;
  width: 24.4%;
  min-height: 3.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  background: var(--v8-blue) !important;
  border: 1px solid var(--v8-blue) !important;
  font: 600 0.76rem/1 Poppins, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.product-authored-frame__cta:hover,
.product-authored-frame__cta:focus-visible {
  color: var(--v8-blue) !important;
  background: #fff !important;
}

/* Autonomous list loop: centered, compact and never overlaps. */
.experience-loop {
  min-height: clamp(48rem, 82svh, 64rem) !important;
  overflow: hidden;
}

.experience-loop__inner {
  min-height: inherit !important;
  display: grid !important;
  grid-template-rows: auto 1fr auto !important;
  align-items: start !important;
}

.experience-loop__words {
  position: relative !important;
  inset: auto !important;
  width: min(92vw, 76rem) !important;
  min-height: 33rem !important;
  margin: clamp(2rem, 5vh, 4rem) auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: clamp(0.75rem, 1.3vw, 1.35rem) !important;
  transform: none !important;
}

.experience-loop__word {
  position: static !important;
  inset: auto !important;
  margin: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  font-size: clamp(3rem, 6vw, 6.4rem) !important;
  line-height: 0.84 !important;
  text-align: center !important;
  white-space: nowrap;
  opacity: 0 !important;
  transform: translateY(1rem) scale(0.96) !important;
  animation: none !important;
  transition: opacity 240ms ease, transform 320ms cubic-bezier(.2,.8,.2,1) !important;
}

.experience-loop__word.is-listed {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

html[data-theme='light'] .experience-loop__word:not(.experience-loop__word--blue):not(.experience-loop__word--orange) {
  color: #080d15 !important;
}

/* Hardware is a short, quiet strip. Hover is glow only—no card border. */
.hardware-strip,
.hardware-v7 {
  min-height: 0 !important;
  padding-block: clamp(3.5rem, 5vw, 5.5rem) !important;
}

.hardware-strip__inner,
.hardware-v7__inner {
  grid-template-columns: minmax(18rem, 0.85fr) minmax(34rem, 1.6fr) !important;
  gap: clamp(2rem, 4vw, 5rem) !important;
  align-items: center !important;
}

.hardware-strip__copy h2,
.hardware-v7__copy h2 {
  max-width: 11ch !important;
  font-size: clamp(3.1rem, 4.6vw, 5rem) !important;
  line-height: 0.84 !important;
}

.hardware-strip__objects,
.hardware-v7__objects {
  gap: clamp(0.25rem, 1vw, 1rem) !important;
  align-items: end !important;
}

.hardware-strip__objects figure,
.hardware-v7__object {
  position: relative;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0.35rem !important;
}

.hardware-strip__objects figure::before,
.hardware-v7__object::before {
  content: '';
  position: absolute;
  inset: 20% 10%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(13, 121, 242, 0);
  filter: blur(2rem);
  transition: background 220ms ease, transform 220ms ease;
}

.hardware-strip__objects figure:hover::before,
.hardware-strip__objects figure:focus-within::before,
.hardware-v7__object:hover::before,
.hardware-v7__object:focus-within::before {
  background: rgba(13, 121, 242, 0.72);
  transform: scale(1.2);
}

.hardware-strip__objects figure img,
.hardware-v7__object img {
  filter: none !important;
  transition: transform 220ms ease;
}

.hardware-strip__objects figure:hover img,
.hardware-v7__object:hover img {
  transform: translateY(-0.35rem) scale(1.04);
}

/* One official mark, once, with a controlled blue halo and tighter section rhythm. */
.about-v6 {
  padding-bottom: clamp(3rem, 5vw, 5rem) !important;
}

.about-v6__signature,
.about-composition__object {
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
}

.about-composition__object {
  filter: drop-shadow(0 0 0.8rem rgba(13,121,242,.95)) drop-shadow(0 0 2.4rem rgba(13,121,242,.65)) !important;
}

.about-v6__signature::before,
.about-v6__signature::after {
  content: none !important;
}

.faq,
.faq-v6 {
  padding-top: clamp(3rem, 5vw, 5rem) !important;
}

/* Contact hierarchy: four authored lines that stay clear of the form. */
#contact-title,
.contact-v6__title {
  max-width: 10.6ch !important;
  font-size: clamp(3.2rem, 5vw, 5.5rem) !important;
  line-height: 0.8 !important;
  overflow: visible !important;
}

.contact-v8__line {
  display: block !important;
  width: max-content;
  max-width: 100%;
}

.contact-v8__line--1 { font-size: 0.76em !important; }
.contact-v8__line--2 { font-size: 1em !important; color: var(--v8-blue) !important; }
.contact-v8__line--3 { font-size: 0.63em !important; }
.contact-v8__line--4 { font-size: 0.63em !important; color: var(--v8-blue) !important; }

html[data-theme='light'] .contact-v8__line--light { color: #080d15 !important; }
html[data-theme='dark'] .contact-v8__line--light,
html:not([data-theme]) .contact-v8__line--light { color: #fff !important; }

/* Simulator catalogue: preserve the supplied frames and keep the supporting case visible. */
.simulators-catalogue-v7 {
  padding-block: clamp(4rem, 6vw, 7rem) !important;
}

.authored-showcase__current {
  position: relative;
}

.authored-showcase img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: none !important;
}

.authored-showcase__cta {
  position: absolute;
  z-index: 2;
  left: 2.75%;
  bottom: 15.4%;
  min-width: 11rem;
  min-height: 3.35rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--v8-blue);
  border: 1px solid var(--v8-blue);
  color: #fff;
  text-decoration: none;
  font: 600 0.76rem/1 Poppins, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.authored-showcase__cta:hover,
.authored-showcase__cta:focus-visible {
  color: var(--v8-blue);
  background: #fff;
}

.simulator-detail {
  min-height: 0 !important;
  padding-block: clamp(5rem, 7vw, 8rem) !important;
  opacity: 1 !important;
  visibility: visible !important;
  overflow: hidden;
}

.simulator-detail__inner {
  position: relative;
  z-index: 1;
}

.simulator-detail__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1rem !important;
}

.tech-evidence,
.simulator-detail__card {
  min-height: 16rem !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Values appear 01–04, then type in place. */
.values-signal__item,
.values-v7__item {
  opacity: 0;
  transform: translateY(1rem);
  clip-path: inset(0 100% 0 0);
  transition: opacity 220ms ease, transform 300ms ease, clip-path 440ms cubic-bezier(.2,.8,.2,1);
}

.values-signal__item.is-v8-visible,
.values-v7__item.is-v8-visible {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0);
}

.values-signal__item p,
.values-v7__item p {
  min-height: 3.8em;
}

/* Light cards/FAQ retain readable open-state titles. */
html[data-theme='light'] .faq-item:has(button[aria-expanded='true']) button b,
html[data-theme='light'] .faq-v6__item[open] .faq-v6__question,
html[data-theme='light'] .faq-v6__item[open] summary {
  color: #fff !important;
}

@media (max-width: 900px) {
  .site-header .brand { width: 9.5rem; }
  .hero__title { font-size: clamp(3.55rem, 13vw, 5.6rem) !important; }
  .subpage-hero h1,
  .display-heading,
  .product__head h2,
  .simulator-detail__title { font-size: clamp(3.4rem, 12vw, 5.3rem) !important; }
  .experience-loop__word { white-space: normal; font-size: clamp(2.8rem, 12vw, 4.8rem) !important; }
  .experience-loop__words { min-height: 34rem !important; }
  .hardware-strip__inner,
  .hardware-v7__inner { grid-template-columns: 1fr !important; }
  .hardware-strip__objects,
  .hardware-v7__objects { grid-template-columns: repeat(2, 1fr) !important; }
  #contact-title,
  .contact-v6__title { max-width: 100% !important; }
  .simulator-detail__grid { grid-template-columns: 1fr !important; }
  .authored-showcase__cta { bottom: 14%; min-width: 8rem; min-height: 2.7rem; font-size: 0.62rem; }
}

@media (max-width: 640px) {
  .product-authored-frame__cta {
    left: 2% !important;
    bottom: 3.5% !important;
    width: 25%;
    min-height: 2.1rem;
    font-size: 0.52rem;
    letter-spacing: 0.06em;
  }
  #contact-title,
  .contact-v6__title { font-size: clamp(2.9rem, 15vw, 4.1rem) !important; }
}

@media (prefers-reduced-motion: reduce) {
  .experience-loop__word,
  .values-signal__item,
  .values-v7__item {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
}
