/* Neurona V12 — targeted responsive, simulator, team and form refinements. */
:root { --v12-blue: #0d79f2; --v12-ink: #07101d; }

/* Logo 01 at entry; Logo 02 after the header contracts. */
.site-header .brand-v12 { position: relative; width: clamp(12rem, 15vw, 15rem) !important; height: 3.8rem; }
.brand-v12__stage { position: absolute; inset: 0; display: block !important; opacity: 1; transition: opacity .2s ease; }
.brand-v12__stage .brand__logo--full { width: 100% !important; max-height: 3.25rem; object-fit: contain; object-position: left center; }
.brand-v12__stage--scrolled { opacity: 0; pointer-events: none; }
.site-header.is-scrolled .brand-v12 { width: clamp(5.8rem, 7vw, 7.2rem) !important; }
.site-header.is-scrolled .brand-v12__stage--initial { opacity: 0; pointer-events: none; }
.site-header.is-scrolled .brand-v12__stage--scrolled { opacity: 1; }

/* The About page keeps its older header markup, but uses the same V12 assets and states. */
.site-header .brand:not(.brand-v12) { position: relative; width: clamp(12rem, 15vw, 15rem) !important; height: 3.8rem; }
.site-header .brand:not(.brand-v12) .brand__logo { display: none !important; }
.site-header .brand:not(.brand-v12)::before,
.site-header .brand:not(.brand-v12)::after { position: absolute; inset: 0; background-position: left center; background-repeat: no-repeat; background-size: contain; content: ""; transition: opacity .2s ease; }
html[data-theme="dark"] .site-header .brand:not(.brand-v12)::before { background-image: url("assets/reference-v12/logo-01-white.png"); }
html[data-theme="light"] .site-header .brand:not(.brand-v12)::before { background-image: url("assets/reference-v12/logo-01-blue.png"); }
html[data-theme="dark"] .site-header .brand:not(.brand-v12)::after { background-image: url("assets/reference-v12/logo-02-white.png"); }
html[data-theme="light"] .site-header .brand:not(.brand-v12)::after { background-image: url("assets/reference-v12/logo-02-blue.png"); }
.site-header .brand:not(.brand-v12)::after { opacity: 0; }
.site-header.is-scrolled .brand:not(.brand-v12) { width: clamp(5.8rem, 7vw, 7.2rem) !important; }
.site-header.is-scrolled .brand:not(.brand-v12)::before { opacity: 0; }
.site-header.is-scrolled .brand:not(.brand-v12)::after { opacity: 1; }

/* Authored title lines stay intact at every supported width. */
.hero__title { width: 100%; max-width: none !important; }
.hero__title > span:not(.hero__title-echo) { white-space: nowrap; }
.hardware-strip__copy h2,
.gallery__head .display-heading,
.about__head .display-heading,
.faq__head .display-heading,
.contact__copy .display-heading { width: 100% !important; max-width: none !important; }
.hardware-strip__copy h2 > span,
.gallery__head .display-heading > span,
.about__head .display-heading > span,
.faq__head .display-heading > span,
.contact__copy .display-heading > span { white-space: nowrap !important; }

/* Simulator frames: readable spacing, black words rather than black underlines, and a larger white CTA. */
.simulator-showcase-v11 h2 { font-size: clamp(1.8rem, 2.35vw, 2.95rem); line-height: 1.12; letter-spacing: -.02em; }
.simulator-showcase-v11__contrast,
html[data-theme="light"] .simulator-showcase-v11__contrast { width: auto; max-width: 100%; padding: 0; background: transparent; color: #05070a; }
.simulator-showcase-v11__copy p { max-width: 43ch; margin-top: 6%; font-size: clamp(.76rem, 1.05vw, 1rem); line-height: 1.55; }
.simulator-showcase-v11__cta,
.simulator-showcase-v11__cta.button--primary { min-width: clamp(14rem, 18vw, 18rem); min-height: 3.7rem; border-color: #fff !important; background: #fff !important; color: #07101d !important; font-size: clamp(.72rem, .9vw, .88rem); }
.simulator-showcase-v11__cta:hover { border-color: #07101d !important; background: #07101d !important; color: #fff !important; }
.simulator-showcase-v11--home .simulator-showcase-v11__cta { top: 66%; }
.simulator-showcase-v11--catalogue h2 { margin-top: 15%; font-size: clamp(2rem, 3.7vw, 4.1rem); line-height: 1.08; }
.simulator-showcase-v11--catalogue .simulator-showcase-v11__copy p { max-width: 45ch; margin-top: 7%; }

/* Title + animated terms form a complete viewport; the playing video begins below it. */
.experience { padding-top: 0 !important; }
.experience-v12__prelude { display: flex; min-height: 100svh; flex-direction: column; justify-content: center; padding-block: clamp(6rem, 9vw, 9rem); }
.experience__intro { display: block; margin-bottom: clamp(2.5rem, 5vh, 4.5rem); }
.experience__intro .display-heading { width: 100%; max-width: none; font-size: clamp(3rem, 5.15vw, 6rem); }
.experience__intro .display-heading > span { white-space: nowrap; }
.experience-v12__prelude .text-tunnel { margin: 0 !important; }
.experience-v12__prelude .text-tunnel__stage { height: clamp(17rem, 36vh, 24rem) !important; }
.experience .video-frame { margin-top: 0 !important; }

/* Subpage introductions remain left aligned and use the full mobile measure. */
.subpage-hero__layout { grid-template-columns: minmax(0, 1fr) minmax(18rem, 1fr); align-items: start; }
.subpage-hero h1 { grid-column: 1; width: 100%; max-width: none !important; font-size: clamp(3.4rem, 5.2vw, 6.25rem) !important; }
.subpage-hero h1 > span { white-space: nowrap; }
.subpage-hero__layout > p { grid-column: 1; width: 100%; max-width: 58ch; margin-top: 1.5rem; }

/* Technical panels keep a strict title/content split on wide screens. */
.technical-panel-v11 { grid-template-columns: minmax(13rem, .62fr) minmax(0, 1.38fr); }
.technical-panel-v11 h2 { font-size: clamp(2rem, 3.35vw, 4rem); line-height: .96; }
.technical-panel-v11__body { min-width: 0; }

/* Team portrait and previously hidden direction items. */
.team-profile__photo { display: block; overflow: hidden; }
.team-profile__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.values-signal__item,
.values-v7__item { opacity: 1 !important; visibility: visible !important; clip-path: none !important; transform: none !important; }

/* Form titles use the same Poppins Semibold language as functional headings. */
.form-panel h3 { font-family: Poppins, system-ui, sans-serif !important; font-size: clamp(1.5rem, 2.4vw, 2.25rem) !important; font-weight: 600 !important; line-height: 1.15 !important; letter-spacing: .01em !important; text-transform: uppercase; }
.form-trap { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; }
.form-status.is-error { border-color: var(--error); color: var(--error); }
.form-status.is-success { border-color: var(--v12-blue); color: var(--text); }

/* Contact title gives the company name the dominant line. */
.neurona-v12 .contact__copy .display-heading { font-size: clamp(2.6rem, 4vw, 4.9rem) !important; line-height: .9; }
.neurona-v12 .contact__copy .display-heading > span:nth-child(1) { font-size: .64em; }
.neurona-v12 .contact__copy .display-heading > span:nth-child(2) { font-size: 1.22em; }
.neurona-v12 .contact__copy .display-heading > span:nth-child(3) { font-size: .62em; }
.neurona-v12 .contact__copy .display-heading > span:nth-child(4) { font-size: .58em; }

/* Calls to action never lose their button on touch layouts. */
.page-cta--v7 .button { display: inline-flex !important; align-items: center; justify-content: center; }

@media (max-width: 64rem) {
  .subpage-hero__layout { grid-template-columns: 1fr; }
  .subpage-hero h1,
  .subpage-hero__layout > p { grid-column: 1; }
  .technical-panel-v11 { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .simulator-showcase-v11 h2 { font-size: clamp(1.55rem, 7vw, 2.6rem); line-height: 1.12; }
  .simulator-showcase-v11__copy p { max-width: 88%; font-size: clamp(.72rem, 3vw, .94rem); }
  .simulator-showcase-v11__cta,
  .simulator-showcase-v11__cta.button--primary { min-width: 12.8rem; min-height: 3.4rem; }
  .simulator-showcase-v11--catalogue h2 { font-size: clamp(1.55rem, 6.6vw, 2.35rem); line-height: 1.1; }
}

@media (max-width: 42rem) {
  .site-header .brand-v12,
  .site-header .brand:not(.brand-v12) { width: 9.4rem !important; }
  .site-header.is-scrolled .brand-v12,
  .site-header.is-scrolled .brand:not(.brand-v12) { width: 5.7rem !important; }
  .hero__title { font-size: clamp(1.65rem, 7.2vw, 3.4rem) !important; line-height: .94 !important; }
  .hero__title-echo { display: none !important; }
  .experience-v12__prelude { min-height: 100svh; padding-block: 6.5rem 4rem; }
  .experience__intro { margin-bottom: 2rem; }
  .experience__intro .display-heading { font-size: clamp(1.55rem, 6.8vw, 2rem) !important; line-height: .95; }
  .experience-v12__prelude .text-tunnel__stage { height: 48vh !important; min-height: 17rem; }
  .hardware-strip__copy h2,
  .gallery__head .display-heading { font-size: clamp(1.55rem, 6.8vw, 2rem) !important; line-height: .98 !important; }
  .about__head .display-heading { font-size: clamp(1.35rem, 5.8vw, 1.85rem) !important; line-height: .98 !important; }
  .faq__head .display-heading { font-size: clamp(1.35rem, 5.8vw, 1.85rem) !important; line-height: .98 !important; }
  .neurona-v12 .contact__copy .display-heading { font-size: clamp(2rem, 9vw, 2.75rem) !important; line-height: .9; }
  .neurona-v12 .contact__copy .display-heading > span:nth-child(1) { font-size: .58em; }
  .neurona-v12 .contact__copy .display-heading > span:nth-child(2) { font-size: 1.18em; }
  .neurona-v12 .contact__copy .display-heading > span:nth-child(3) { font-size: .54em; }
  .neurona-v12 .contact__copy .display-heading > span:nth-child(4) { font-size: .52em; }
  .subpage-hero { min-height: 76svh; }
  .subpage-hero h1 { font-size: clamp(1.75rem, 7.7vw, 2.5rem) !important; line-height: .94 !important; }
  .subpage-hero__layout > p { max-width: none; margin-top: 1.5rem; font-size: 1rem; }
  .technical-panel-v11 { width: 100%; padding: 1.2rem; gap: 1.5rem; }
  .technical-panel-v11 h2 { max-width: 100%; font-size: clamp(1.65rem, 8vw, 2.25rem); line-height: 1; overflow-wrap: anywhere; }
  .technical-panel-v11__body p,
  .technical-panel-v11__body li { overflow-wrap: anywhere; }
  .page-cta__inner { align-items: center !important; text-align: center; }
  .page-cta h2 { width: 100%; font-size: clamp(1.55rem, 7vw, 2.2rem); }
  .page-cta h2 > span { white-space: normal; }
  .page-cta--v7 .button { width: min(100%, 18rem) !important; margin-inline: auto; }
  .team-profile__photo { min-height: 25rem; }
  .values-signal,
  .values-signal__list,
  .values-signal__item { width: 100% !important; max-width: 100% !important; min-width: 0 !important; box-sizing: border-box; }
  .values-v7 .values-signal { width: calc(100% - 2rem) !important; margin-inline: auto !important; }
  .values-signal__item { grid-template-columns: 2rem minmax(0, 1fr) !important; }
  .values-signal__item h3,
  .values-signal__item p { width: auto !important; max-width: 100% !important; min-width: 0 !important; white-space: normal !important; overflow-wrap: anywhere; }
  .values-signal__item p { grid-column: 2; }
}

@media (max-width: 350px) {
  .hero__title { font-size: 1.45rem !important; }
  .neurona-v12 .contact__copy .display-heading { font-size: 1.85rem !important; }
}
