/* Additive refinements: preserve the owner's cinematic composition and palette. */
:root {
  --ui-radius: 4px;
}
/* Sharp surfaces, rounded buttons: artwork circles and all button radii are retained. */
:root
  :is(
    .research-cells,
    .research-cell,
    .systems-teaser,
    .lab-shell,
    .research-chapters,
    .chapter-graphic,
    .topic-group > b,
    .tech-art,
    .systems-explorer,
    .standards-grid,
    .about-vision,
    .contact-topics span,
    .contact-status,
    .fund-chiprow span,
    .fund-page .fund-status strong,
    .fund-page .fund-map,
    .fund-network-node,
    .fund-page .fund-feature,
    .fund-page .fund-canvas,
    .fund-page .fund-stage-visual,
    .fund-page .fund-faq details,
    .fund-page .fund-cta,
    .fund-page .fund-request,
    .fund-page .fund-request textarea,
    .form-field input,
    .form-field select,
    .form-field textarea,
    .contact-form-card .local-form-notice
  ) {
  border-radius: var(--ui-radius);
}

/* Each research illustration loops independently without moving its card or text. */
.research-motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 6px 12px;
  border: 1px solid rgba(101, 193, 255, 0.22);
  border-radius: 999px;
  background: transparent;
  color: #a6c8e6;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.research-motion-toggle:hover {
  color: #d4f9ff;
  border-color: #65dfff;
}
.research-patterns .section-heading > .research-motion-toggle {
  justify-self: end;
  align-self: end;
}
.research-patterns .research-wave-loop {
  animation: research-wave 5.2s ease-in-out infinite;
  animation-delay: var(--pattern-delay);
}
.research-patterns .research-orbit-loop {
  transform-origin: 91px 82px;
  animation: research-orbit 24s linear infinite;
}
.research-patterns .research-search-loop {
  animation: research-search 4.8s ease-in-out infinite;
  animation-delay: var(--pattern-delay);
}
.research-patterns .research-layer-loop {
  animation: research-layer 6s ease-in-out infinite;
  animation-delay: var(--pattern-delay);
}
.research-patterns .research-pattern-trace {
  animation: research-trace 5s linear infinite;
  stroke-linecap: round;
}
.research-patterns [data-research-pattern] :is(path, g) {
  animation-play-state: paused;
}
.research-patterns[data-motion='running'] [data-research-pattern] :is(path, g) {
  animation-play-state: running;
}
@keyframes research-wave {
  0%,
  100% {
    transform: translateY(0);
    opacity: var(--pattern-opacity);
  }
  50% {
    transform: translateY(-4px);
    opacity: 1;
  }
}
@keyframes research-orbit {
  to {
    transform: rotate(360deg);
  }
}
@keyframes research-search {
  0%,
  100% {
    opacity: var(--pattern-opacity);
  }
  50% {
    opacity: 1;
    transform: translate(2px, -2px);
  }
}
@keyframes research-layer {
  0%,
  100% {
    transform: translateY(0);
    opacity: var(--pattern-opacity);
  }
  50% {
    transform: translateY(-6px);
    opacity: 1;
  }
}
@keyframes research-trace {
  to {
    stroke-dashoffset: -100;
  }
}
@media (prefers-reduced-motion: reduce) {
  .research-patterns [data-research-pattern] :is(path, g) {
    animation: none !important;
  }
  .research-motion-toggle {
    display: none !important;
  }
}
[hidden] {
  display: none !important;
}
.primary-nav a[aria-current='page'],
.footer nav a[aria-current='page'] {
  color: #74dfff;
}
.primary-nav {
  gap: 20px;
}
.primary-nav a {
  white-space: nowrap;
}
.footer-email,
.legal-copy a,
.contact-form-card a:not(.pill) {
  color: #80dcff;
  text-underline-offset: 4px;
}
.footer-email {
  font-size: 13px;
}
.contact-form-card {
  overflow: visible;
}
.contact-form-card h3 {
  margin-top: 20px;
}
.contact-form-card form {
  margin-top: 26px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  min-width: 0;
}
.form-field label {
  color: #e3efff;
  font-size: 13px;
  font-weight: 600;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(121, 192, 255, 0.35);
  border-radius: 9px;
  background: #06162e;
  color: #e3efff;
  font: inherit;
  font-size: 14px;
  padding: 12px 13px;
  min-height: 46px;
}
.form-field textarea {
  resize: vertical;
  line-height: 1.7;
}
.form-field select {
  color-scheme: dark;
}
.form-field :is(input, select, textarea):focus-visible,
.form-consent input:focus-visible {
  outline: 2px solid #62d9ff;
  outline-offset: 3px;
  border-color: #62d9ff;
}
.form-field small {
  font-size: 11px;
  line-height: 1.7;
  color: #abc6e2;
}
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #b9cee6;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 22px;
}
.form-consent input {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 3px;
  accent-color: #30b5ff;
}
.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form-card .local-form-notice {
  padding: 12px 14px;
  border: 1px solid rgba(104, 192, 255, 0.35);
  border-radius: 9px;
  background: rgba(22, 90, 159, 0.18);
  color: #c5e7ff;
  font-size: 12px;
}
.contact-form-card .form-feedback {
  min-height: 24px;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}
.contact-form-card .form-feedback[data-state='success'] {
  color: #a4f0d4;
}
.contact-form-card .form-feedback[data-state='error'] {
  color: #ffb9bb;
}
.form-feedback:empty {
  display: none;
}
.form-feedback:focus {
  outline: 0;
}
.contact-form-card button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.cf-turnstile {
  margin-bottom: 20px;
  min-height: 65px;
}
.legal-copy {
  max-width: 850px;
  line-height: 1.85;
  color: #bcd0e9;
}
.legal-copy h2 {
  font-size: 28px;
  color: #e3efff;
  margin-top: 38px;
}
.legal-copy h2:first-child {
  margin-top: 0;
}
.legal-copy .pill {
  margin-top: 24px;
}
@media (max-width: 1100px) {
  .primary-nav {
    display: none;
  }
  .nav-actions {
    margin-left: auto;
  }
  .menu-toggle {
    display: flex;
  }
  .mobile-nav {
    display: grid;
    gap: 0;
    padding: 10px 22px 18px;
    background: #06142b;
    border-top: 1px solid var(--stroke);
  }
  .mobile-nav a {
    display: flex;
    align-items: center;
    min-height: 41px;
    padding: 9px 13px;
    color: #c4d4ee;
    border-bottom: 1px solid rgba(88, 156, 235, 0.1);
  }
  .mobile-nav a[aria-current='page'] {
    color: #64d6ff;
  }
}
@media (max-width: 1100px) {
  html:not(.js) .mobile-nav[hidden] {
    display: grid !important;
  }
  html:not(.js) .menu-toggle {
    display: none;
  }
}
@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-form-card {
    padding: 22px 18px;
  }
  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 16px;
  }
  .contact-form-card .pill {
    width: 100%;
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* The funding feature shares the main site column at every breakpoint. */
.fund-home .fund-inner {
  width: var(--shell);
  max-width: none;
}
.technology-motion-control {
  display: flex;
  justify-content: flex-end;
  margin-top: -12px;
  margin-bottom: 12px;
}

/* Funding scenes follow the shared luminous, unboxed hero language. */
.fund-page .fund-hero-art {
  border: 0;
  background: none;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}
.fund-hero-art .fund-map-top {
  font-size: 0.56rem;
  letter-spacing: 0.12em;
}
.fund-hero-art .fund-map-graph {
  height: auto;
  aspect-ratio: 480 / 340;
}
.fund-hero-art .fund-map-graph > svg {
  position: static;
  display: block;
  width: 100%;
  height: auto;
}
.fund-hero-art .fund-network-node {
  background: none;
  border: 0;
  box-shadow: none;
  min-width: 0;
  min-height: 0;
  padding: 0;
  font-size: clamp(0.48rem, 0.68vw, 0.65rem);
  width: 35%;
  transform: translateX(-50%);
  line-height: 1.5;
  color: #b8dafa;
}
.fund-hero-art .fund-network-node.a {
  left: 18.75%;
  top: 0;
}
.fund-hero-art .fund-network-node.b {
  left: 81.25%;
  right: auto;
  top: 0;
}
.fund-hero-art .fund-network-node.c {
  left: 18.75%;
  bottom: 0;
}
.fund-hero-art .fund-network-node.d {
  left: 81.25%;
  right: auto;
  bottom: 0;
}
.fund-hero-art .fund-network-node.center {
  left: 50%;
  top: 52.35%;
  transform: translate(-50%, -50%);
  width: 24%;
  font-size: clamp(0.56rem, 0.85vw, 0.8rem);
  color: #e1faff;
}
.fund-hero-art .fund-map-foot {
  margin-top: 24px;
  border: 0;
  font-size: 0.56rem;
  letter-spacing: 0.09em;
}
.fund-hero-art > button {
  float: right;
  margin-top: 12px;
}
.fund-page .fund-architecture-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
.fund-architecture-copy {
  display: contents;
}
.fund-architecture-intro {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  column-gap: 56px;
}
.fund-architecture-intro > .fund-overline {
  grid-column: 1;
}
.fund-architecture-intro > h2 {
  grid-column: 1;
}
.fund-architecture-intro > .fund-copy {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
}
.fund-architecture-grid > .fund-canvas {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 40px;
  padding: 28px 32px;
}
.fund-architecture-grid .fund-canvas-header,
.fund-architecture-grid .fund-stages {
  grid-column: 1 / -1;
}
.fund-architecture-grid .fund-stage-visual {
  grid-column: 1;
  grid-row: 3 / 5;
}
.fund-architecture-grid .fund-stage-caption {
  grid-column: 2;
  grid-row: 3;
  min-height: 0;
  align-self: end;
  margin: 24px 0 16px;
}
.fund-architecture-grid .fund-canvas > [data-hero-motion] {
  grid-column: 2;
  grid-row: 4;
  justify-self: start;
  align-self: start;
}
.fund-architecture-grid .fund-stage-visual > [data-fund-scene] {
  width: min(100%, 440px);
  grid-area: 1 / 1;
}
.fund-architecture-grid .fund-stage-symbol {
  grid-column: 1;
  grid-row: 2;
}
.fund-architecture-grid .fund-interaction-principles {
  grid-column: 1 / -1;
  grid-row: 3;
}
.fund-page .fund-interaction-principles .fund-feat-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.fund-page .fund-canvas-header {
  flex-direction: column;
  gap: 8px;
}
.fund-page .fund-canvas-header span:last-child {
  font-size: 0.54rem;
  color: #819dbb;
}
.fund-page .fund-stage-visual {
  min-height: 0;
  margin: 18px 0 10px;
  background: radial-gradient(ellipse, #11377045, transparent 70%);
}
.fund-stage-visual > [data-fund-scene] {
  width: min(100%, 340px);
}
.fund-stage-visual > [hidden] {
  display: none;
}
.fund-scene {
  display: block;
  width: 100%;
  height: auto;
}
.fund-stage-symbol {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: #8fddff;
  padding-bottom: 14px;
}
.fund-page .fund-stage-caption {
  min-height: 10.5em;
  margin-bottom: 0;
}
.fund-page .fund-metric strong {
  font-variant-numeric: tabular-nums;
}
.fund-scene .fund-flow {
  stroke-dasharray: 12 88;
  animation: funding-flow 5s linear infinite paused;
}
.fund-scene .fund-pulse,
.fund-scene .fund-core {
  animation: funding-pulse 4s ease-in-out infinite paused;
  animation-delay: var(--delay, 0s);
  transform-origin: center;
}
.fund-scene .fund-signal-wave {
  animation: funding-signal 5s ease-in-out infinite paused;
  animation-delay: var(--delay, 0s);
}
.fund-scene .fund-risk-scan {
  animation: funding-scan 5s ease-in-out infinite paused;
}
.fund-scene .fund-capital-layer {
  animation: funding-layer 6s ease-in-out infinite paused;
  animation-delay: var(--delay, 0s);
}
.fund-scene .fund-audit-record {
  animation: funding-record 4s ease-in-out infinite paused;
  animation-delay: var(--delay, 0s);
}
[data-hero-artwork][data-motion='running'] .fund-scene :is(path, g, circle) {
  animation-play-state: running;
}
[data-fund-scene][hidden] .fund-scene :is(path, g, circle) {
  animation-play-state: paused !important;
}
@keyframes funding-flow {
  to {
    stroke-dashoffset: -100;
  }
}
@keyframes funding-pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}
@keyframes funding-signal {
  0%,
  100% {
    transform: translateY(-7px);
    opacity: 0.4;
  }
  50% {
    transform: translateY(7px);
    opacity: 1;
  }
}
@keyframes funding-scan {
  0%,
  100% {
    transform: translateY(-40px);
    opacity: 0.4;
  }
  50% {
    transform: translateY(45px);
    opacity: 1;
  }
}
@keyframes funding-layer {
  0%,
  100% {
    transform: translateY(4px);
    opacity: 0.45;
  }
  50% {
    transform: translateY(-9px);
    opacity: 1;
  }
}
@keyframes funding-record {
  0%,
  100% {
    opacity: 0.2;
  }
  35%,
  70% {
    opacity: 1;
  }
}
@media (max-width: 920px) {
  .fund-page .fund-hero-art {
    width: min(100%, 520px);
    margin: 20px auto 0;
  }
  .fund-page .fund-architecture-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .fund-architecture-intro,
  .fund-architecture-grid > .fund-canvas,
  .fund-architecture-grid .fund-interaction-principles {
    grid-column: 1;
    grid-row: auto;
  }
  .fund-architecture-intro {
    display: block;
  }
  .fund-architecture-grid > .fund-canvas {
    grid-row: 2;
    display: block;
    padding: 20px;
  }
  .fund-architecture-grid .fund-stage-visual > [data-fund-scene] {
    width: min(100%, 380px);
  }
  .fund-architecture-grid .fund-stage-caption {
    margin: 16px 0 0;
  }
  .fund-architecture-grid .fund-interaction-principles {
    grid-row: 3;
  }
  .fund-hero-art .fund-network-node {
    font-size: 0.65rem;
  }
  .fund-hero-art .fund-network-node.center {
    font-size: 0.75rem;
  }
}
@media (max-width: 590px) {
  .fund-page .fund-interaction-principles .fund-feat-list {
    grid-template-columns: 1fr;
  }
  .fund-page .fund-canvas {
    padding: 16px;
  }
  .fund-page .fund-stage-caption {
    min-height: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fund-scene :is(path, g, circle) {
    animation: none !important;
  }
  .fund-scene .fund-flow {
    stroke-dasharray: none;
    opacity: 0.7;
  }
}

/* Untitled UI select pattern, adapted to the cinematic palette. */
.enquiry-select {
  position: relative;
}
.enquiry-select [hidden],
.field-error[hidden] {
  display: none;
}
.enquiry-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid rgba(121, 192, 255, 0.35);
  border-radius: var(--ui-radius);
  background: #06162e;
  color: #e3efff;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.enquiry-select-trigger svg {
  flex-shrink: 0;
  color: #abc6e2;
}
.enquiry-select-trigger[aria-expanded='true'] {
  border-color: #62d9ff;
}
.enquiry-select-trigger:focus-visible {
  outline: 2px solid #62d9ff;
  outline-offset: 3px;
}
.enquiry-select-options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 4px;
  list-style: none;
  border: 1px solid rgba(121, 192, 255, 0.35);
  border-radius: var(--ui-radius);
  background: #0a1d36;
  box-shadow: 0 12px 24px rgba(0, 5, 18, 0.3);
}
.enquiry-select-options [role='option'] {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 40px 8px 12px;
  border-radius: var(--ui-radius);
  color: #e3efff;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}
.enquiry-select-options [role='option']:is(:hover, .is-active) {
  background: #163653;
}
.enquiry-select-options [aria-selected='true'] {
  color: #83e1ff;
  font-weight: 600;
}
.enquiry-select-options [aria-selected='true']::after {
  content: '';
  position: absolute;
  right: 16px;
  width: 6px;
  height: 12px;
  border-right: 2px solid #62d9ff;
  border-bottom: 2px solid #62d9ff;
  transform: rotate(45deg);
}
.contact-form-card .field-error {
  color: #ffb9bb;
  font-size: 12px;
  line-height: 1.5;
}
.form-field [aria-invalid='true'],
.enquiry-select-trigger[aria-invalid='true'] {
  border-color: #ff8f99;
}
.form-consent input[aria-invalid='true'] {
  outline: 1px solid #ff8f99;
  outline-offset: 2px;
}
.contact-form-card .consent-error {
  display: block;
  margin: -12px 0 24px;
}
.contact-form-card .consent-error[hidden] {
  display: none;
}

/* Sampled SVG contours become the next scene's actual contours. */
.fund-architecture-grid .fund-stage-visual > .fund-morph-scene {
  display: block;
  width: min(100%, 440px);
  height: auto;
  grid-area: 1 / 1;
  overflow: visible;
}
.fund-morph-target .fund-scene :is(path, g, circle) {
  animation-play-state: paused !important;
}
@media (max-width: 920px) {
  .fund-architecture-grid .fund-stage-visual > .fund-morph-scene {
    width: min(100%, 380px);
  }
}

/* Homepage collection control follows the complete four-card grid. */
.research-home-motion {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

/* Homepage: clean original composition with separate light and caption layers. */
.home-hero-motion {
  position: relative;
  width: min(780px, 117%);
  flex-shrink: 0;
}
.home-hero-scene {
  position: relative;
  width: 100%;
  aspect-ratio: 840 / 382;
  isolation: isolate;
}
.hero-art .home-hero-scene img,
.home-hero-scene img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  animation: none;
  /* Feather every edge so the moving plate never reads as a rectangle. */
  mask-image:
    linear-gradient(90deg, transparent, #000 17%, #000 82%, transparent),
    linear-gradient(180deg, transparent, #000 19%, #000 76%, transparent),
    radial-gradient(ellipse at 50% 50%, #000 45%, transparent 76%);
  mask-composite: intersect;
  transform-origin: 51% 53%;
}
.home-hero-effects,
.home-hero-captions {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.home-hero-caption {
  position: absolute;
  display: grid;
  gap: 5px;
  padding: 9px 11px;
  border: 1px solid #679bd95c;
  border-radius: 4px;
  background: #04132ae0;
  box-shadow: 0 0 18px #168dff22;
  color: #edf7ff;
  line-height: 1;
}
.home-hero-caption b {
  font-size: clamp(7px, 0.75vw, 11px);
  letter-spacing: 0.11em;
  font-weight: 500;
}
.home-hero-caption small {
  font-size: clamp(5px, 0.48vw, 7px);
  letter-spacing: 0.13em;
  color: #a6c8e6;
}
.home-hero-caption [data-caption]::before {
  content: attr(data-caption);
}
.home-hero-caption.intelligence {
  top: 7%;
  left: 74%;
}
.home-hero-caption.simulation {
  top: 56%;
  left: 8%;
}
.home-hero-caption.optimization {
  top: 72%;
  left: 79%;
}
.home-hero-toggle {
  position: absolute;
  right: 4%;
  bottom: -38px;
  z-index: 5;
}
.home-hero-flare {
  position: absolute;
  width: 17%;
  aspect-ratio: 1;
  opacity: 0;
  background: radial-gradient(circle, #e6ffffc4, #65dcff70 7%, #089fff22 26%, transparent 65%);
  mix-blend-mode: screen;
}
.flare-one {
  left: 57%;
  top: 8%;
}
.flare-two {
  left: 33%;
  top: 48%;
}
.home-hero-particle {
  position: absolute;
  left: var(--origin-x);
  top: var(--origin-y);
  width: var(--particle-size);
  height: var(--particle-size);
  border-radius: 50%;
  background: #e5fcff;
  box-shadow:
    0 0 5px #c4faff,
    0 0 13px #19bdff,
    0 0 23px #008cff88;
  opacity: 0;
}
.home-hero-sweep {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(
    115deg,
    transparent 40%,
    #b6faff22 49%,
    #e4ffff77 50%,
    transparent 52%
  );
  mask-image: radial-gradient(ellipse at center, #000 15%, transparent 65%);
}
.home-hero-ripple {
  position: absolute;
  left: 30%;
  top: 69%;
  width: 38%;
  height: 22%;
  border: 1px solid #79eaff88;
  border-radius: 50%;
  opacity: 0;
}
.home-hero-motion[data-motion] .home-hero-caption {
  animation: home-caption-enter 0.7s both;
  animation-delay: var(--entry-delay);
}
.home-hero-motion[data-motion] .home-hero-flare {
  animation: home-light-bloom 4.8s ease-in-out infinite;
}
.home-hero-motion[data-motion] .flare-two {
  animation-delay: 2.4s;
}
.home-hero-motion[data-motion] .home-hero-particle {
  animation: home-particle-splash 3.2s ease-out infinite;
  animation-delay: var(--delay);
}
.home-hero-motion[data-motion] .home-hero-sweep {
  animation: home-light-sweep 8s ease-in-out infinite;
}
.home-hero-motion[data-motion] .home-hero-ripple {
  animation: home-platform-ripple 4.5s ease-out infinite;
}
.home-hero-motion[data-motion]
  :is(
    .home-hero-scene img,
    .home-hero-caption,
    .home-hero-flare,
    .home-hero-particle,
    .home-hero-sweep,
    .home-hero-ripple
  ) {
  animation-play-state: paused;
}
.home-hero-motion[data-motion='running']
  :is(
    .home-hero-scene img,
    .home-hero-caption,
    .home-hero-flare,
    .home-hero-particle,
    .home-hero-sweep,
    .home-hero-ripple
  ) {
  animation-play-state: running;
}
@keyframes home-caption-enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes home-light-bloom {
  0%,
  12%,
  44%,
  100% {
    opacity: 0;
    transform: scale(0.65);
  }
  26% {
    opacity: 1;
    transform: scale(1.45);
  }
}
@keyframes home-particle-splash {
  0%,
  8% {
    opacity: 0;
    transform: translate(0, 0) scale(0.6);
  }
  18% {
    opacity: 1;
    transform: translate(calc(var(--px) * 0.15), calc(var(--py) * 0.15)) scale(1.3);
  }
  70%,
  100% {
    opacity: 0;
    transform: translate(var(--px), var(--py)) scale(0.45);
  }
}
@keyframes home-light-sweep {
  0%,
  15% {
    opacity: 0;
    transform: translateX(-35%);
  }
  30% {
    opacity: 0.65;
  }
  48%,
  100% {
    opacity: 0;
    transform: translateX(35%);
  }
}
@keyframes home-platform-ripple {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  20% {
    opacity: 0.55;
  }
  80%,
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}
@media (max-width: 850px) {
  .home-hero-motion {
    width: min(100%, 790px);
  }
}
@media (max-width: 560px) {
  .mobile-hero-art {
    background: none;
    min-height: 0;
    padding-bottom: 30px;
  }
  .home-hero-motion {
    width: 100%;
  }
  .home-hero-caption {
    padding: 5px 6px;
    gap: 3px;
  }
  .home-hero-caption b {
    font-size: 6px;
  }
  .home-hero-caption small {
    font-size: 4px;
  }
  .home-hero-toggle {
    bottom: -29px;
    margin-top: 0;
    font-size: 9px;
    padding: 5px 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero-motion[data-motion] .home-hero-caption {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .home-hero-effects {
    display: none;
  }
}
.home-hero-effects {
  z-index: 2;
}
.home-hero-captions {
  z-index: 3;
}

/* The bitmap stays stationary; light streams, orbital comets and sparks move above it. */
.home-hero-motion[data-motion] .home-hero-scene img {
  animation: none;
  transform: none;
}
.home-hero-energy {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.hero-energy-track {
  stroke: #4ccfff;
  stroke-width: 0.7;
  opacity: 0.18;
}
.hero-energy-stream {
  stroke: #d7fdff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 100 400 20 480;
  filter: drop-shadow(0 0 4px #37cfff);
  opacity: 0.95;
}
.hero-energy-stream.energy-halo {
  stroke: #078fff;
  stroke-width: 9;
  opacity: 0.4;
  filter: blur(4px);
}
.hero-energy-stream.energy-counter {
  stroke: #5fcfff;
  stroke-width: 1.3;
  stroke-dasharray: 14 220 40 726;
}
.hero-orbit-track {
  stroke: #3aafff;
  stroke-width: 0.6;
  opacity: 0.18;
}
.hero-orbit-stream {
  stroke: #a4f7ff;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 100 900;
  filter: drop-shadow(0 0 3px #159fff);
}
.hero-orbit-sparks {
  stroke: #efffff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1 249;
  filter: drop-shadow(0 0 5px #51eaff);
}
.hero-orbit-stream.orbit-secondary {
  stroke: #48b9ff;
  stroke-width: 1.1;
  stroke-dasharray: 60 440;
  opacity: 0.85;
}
.hero-data-fall {
  stroke: #6bdfff;
  fill: #d2fbff;
  stroke-width: 0.7;
  opacity: 0;
}
.hero-energy-arc {
  stroke: #e3ffff;
  stroke-width: 1.5;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px #2dbaff);
  opacity: 0;
}
.home-hero-motion[data-motion] .hero-energy-stream {
  animation: home-energy-trace 4.2s linear infinite;
}
.home-hero-motion[data-motion] .energy-counter {
  animation-direction: reverse;
  animation-duration: 6s;
}
.home-hero-motion[data-motion] :is(.hero-orbit-stream, .hero-orbit-sparks) {
  animation: home-energy-trace 5.5s linear infinite;
}
.home-hero-motion[data-motion] .orbit-secondary {
  animation-direction: reverse;
  animation-duration: 7s;
}
.home-hero-motion[data-motion] .hero-data-fall {
  animation: home-data-fall var(--fall-duration) linear infinite;
  animation-delay: var(--fall-delay);
}
.home-hero-motion[data-motion] .hero-energy-arc {
  animation: home-energy-arc 4.8s ease-in-out infinite;
}
.home-hero-motion[data-motion] .arc-b {
  animation-delay: 2.4s;
}
.home-hero-motion[data-motion] .home-hero-energy * {
  animation-play-state: paused;
}
.home-hero-motion[data-motion='running'] .home-hero-energy * {
  animation-play-state: running;
}
@keyframes home-energy-trace {
  to {
    stroke-dashoffset: -1000;
  }
}
@keyframes home-data-fall {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  20% {
    opacity: 0.75;
  }
  70% {
    opacity: 0.4;
  }
  100% {
    opacity: 0;
    transform: translateY(200px);
  }
}
@keyframes home-energy-arc {
  0%,
  40%,
  64%,
  100% {
    opacity: 0;
  }
  48%,
  56% {
    opacity: 0.9;
  }
}

/* Homepage section introductions follow their titles; collection links follow their content. */
:is(.research-home, .technology-home, .method-home) .section-heading {
  grid-template-columns: 1fr;
}
.home-section-intro {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.83;
}
.research-home-motion {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.research-home-motion .research-motion-toggle {
  margin-top: 0;
  margin-left: auto;
}
.home-section-footer {
  margin-top: 24px;
}

/* Individual stack stages carry their selection to the Systems explorer. */
.teaser-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: inherit;
}
.teaser-bottom a:hover {
  color: #e0fbff;
  text-shadow: 0 0 12px #26bfff88;
}
#systems-explorer {
  scroll-margin-top: 100px;
}

/* Shared, accessible return to the page heading. */
.back-to-top {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(98, 214, 255, 0.55);
  border-radius: 50%;
  background: #071a31;
  color: #a8efff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}
.back-to-top[hidden] {
  display: none;
}
.back-to-top:hover {
  background: #103456;
  color: #fff;
}
.back-to-top:focus-visible {
  outline: 2px solid #a8efff;
  outline-offset: 4px;
}
@media (max-width: 600px) {
  .back-to-top {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
  }
}

/* Homepage method stages use the destination page's existing section anchors. */
.method-strip > a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #cfddf1;
  font-size: 12px;
  font-weight: 650;
}
.method-strip > a:hover {
  color: #a4edff;
}

/* A quiet arrival outline, shared by homepage-linked content sections. */
body[data-page] :is(.method-stage, .research-chapter, .technology-feature).reveal:target {
  outline: 1px solid transparent;
  outline-offset: -1px;
  border-radius: var(--ui-radius);
  animation: section-arrival-outline 4s ease-out both;
}
@keyframes section-arrival-outline {
  0%,
  60% {
    outline-color: #91c7e980;
  }
  100% {
    outline-color: transparent;
  }
}
@media (prefers-reduced-motion: reduce) {
  body[data-page] :is(.method-stage, .research-chapter, .technology-feature).reveal:target {
    animation-timing-function: steps(1, end);
  }
}

/* Six semantic Method icons share the existing visibility/pause lifecycle. */
.method-step-icon {
  display: flex;
  height: 88px;
  color: #76dcff;
}
.method-step-icon svg {
  width: 110px;
  height: 88px;
  overflow: visible;
  filter: drop-shadow(0 0 7px #239be544);
}
.method-step-icon .icon-muted {
  opacity: 0.38;
}
.method-motion-control {
  display: flex;
  justify-content: flex-end;
  padding-top: 18px;
}
.method-motion-control .research-motion-toggle {
  position: static;
}
.method-step-icon
  :is(
    .icon-focus,
    .icon-flow,
    .icon-draw,
    .icon-liquid,
    .icon-bubble,
    .icon-compute,
    .icon-inspect,
    .icon-repeat
  ) {
  animation-play-state: paused;
  transform-box: fill-box;
  transform-origin: center;
}
.method-step-icon .icon-focus {
  animation: method-focus 4s ease-in-out infinite paused;
}
.method-step-icon .icon-flow {
  animation: method-flow 3s linear infinite paused;
}
.method-step-icon .icon-draw {
  stroke-dasharray: 24;
  animation: method-check 4s ease-in-out infinite paused;
}
.method-step-icon .icon-liquid {
  animation: method-liquid 4s ease-in-out infinite paused;
}
.method-step-icon .icon-bubble {
  animation: method-bubble 3.6s ease-in-out infinite paused;
}
.method-step-icon .icon-delay {
  animation-delay: -1.8s;
}
.method-step-icon .icon-compute {
  animation: method-compute 2.8s ease-in-out infinite paused;
}
.method-step-icon .icon-inspect {
  animation: method-inspect 5s ease-in-out infinite paused;
}
.method-step-icon .icon-repeat {
  animation: method-repeat 8s linear infinite paused;
}
.method-stages[data-motion='running'] .method-step-icon svg * {
  animation-play-state: running;
}

@keyframes method-flow {
  to {
    stroke-dashoffset: -27;
  }
}
@keyframes method-check {
  0%,
  15% {
    stroke-dashoffset: 24;
  }
  45%,
  85% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -24;
  }
}

@keyframes method-repeat {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 560px) {
  .method-stage {
    grid-template-rows: auto 1fr;
    row-gap: 8px;
  }
  .method-stage > div:nth-child(2) {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .method-stage .stage-number {
    align-self: start;
  }
  .method-step-icon {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    height: 48px;
  }
  .method-step-icon svg {
    width: 53px;
    height: 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .method-step-icon svg * {
    animation: none !important;
  }
}

/* Keep arrival outlines clear of the numbers; root scroll padding already clears the header. */
.method-stage {
  padding-inline: 16px;
  scroll-margin-top: 16px;
}
.method-step-icon svg {
  stroke-width: 2;
  filter: drop-shadow(0 0 9px #239be577);
}
.method-step-icon .icon-focus {
  animation-duration: 2.8s;
}
.method-step-icon .icon-flow {
  stroke-width: 2.5;
  animation-duration: 1.8s;
}
.method-step-icon .icon-draw {
  animation-duration: 2.8s;
}
.method-step-icon .icon-liquid {
  animation-duration: 2.6s;
}
.method-step-icon .icon-bubble {
  stroke-width: 2.5;
  animation-duration: 2.5s;
}
.method-step-icon .icon-delay {
  animation-delay: -1.25s;
}
.method-step-icon .icon-compute {
  animation-duration: 1.8s;
}
.method-step-icon .icon-inspect {
  animation-duration: 3.2s;
}
.method-step-icon .icon-repeat {
  animation-duration: 4.5s;
}
@keyframes method-focus {
  0%,
  100% {
    transform: scale(0.82);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
    filter: drop-shadow(0 0 5px #76dcff);
  }
}
@keyframes method-liquid {
  0%,
  100% {
    transform: translateY(3px) rotate(-5deg);
  }
  50% {
    transform: translateY(-5px) rotate(5deg);
  }
}
@keyframes method-bubble {
  0% {
    transform: translateY(3px) scale(0.8);
    opacity: 0.3;
  }
  60% {
    transform: translateY(-15px) scale(1.3);
    opacity: 1;
  }
  85%,
  100% {
    transform: translateY(-22px) scale(0.6);
    opacity: 0;
  }
}
@keyframes method-compute {
  0%,
  100% {
    transform: scale(0.88);
    opacity: 0.35;
  }
  50% {
    transform: scale(1.16);
    opacity: 1;
    filter: drop-shadow(0 0 6px #76dcff);
  }
}
@keyframes method-inspect {
  0%,
  100% {
    transform: translate(3px, -3px) rotate(4deg);
  }
  50% {
    transform: translate(-13px, 7px) rotate(-7deg);
  }
}

/* Company details supplied by the owner, shared across all page footers. */
.footer-bottom {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 16px;
}
.footer-credit {
  margin-left: auto;
  text-align: right;
}
.footer-company-details {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 18px;
  color: #8da7c5;
  font-size: 12px;
  line-height: 1.7;
}

/* Responsive Turnstile keeps the real widget within narrow form columns. */
.contact-turnstile {
  margin-bottom: 20px;
  min-height: 65px;
  max-width: 100%;
}
