/* Page-specific cascade layer for the PRISME showcase and its workshop. */

body.aix-site .header-shell {
  grid-template-columns: 200px minmax(0, 1fr);
}

body.aix-site .brand {
  position: relative;
  display: inline-flex;
  width: fit-content;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  line-height: 0;
}

body.aix-site .brand::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40px;
  background: url("/assets/images/logo-intermediance.png") left center / 168px auto no-repeat;
  content: "";
  pointer-events: none;
}

body.aix-site .brand img {
  width: 168px;
  filter: brightness(0) invert(1);
}

.aix-orbit__core span {
  color: var(--aix-lime);
  font-size: 1.38rem;
  font-weight: 850;
  letter-spacing: 0.015em;
  line-height: 1;
  text-shadow: 0 0 22px rgba(201, 255, 114, 0.55);
}

.aix-page h1,
.aix-page h2,
.aix-page h3,
.aix-page summary,
.aix-page .button {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.aix-model__name {
  margin: 0 0 48px;
}

.aix-hero__grid {
  padding-top: clamp(72px, 8vw, 110px);
}

.aix-prism {
  --aix-prism-face: 36px;
}

.aix-prism__input {
  right: auto;
  left: -10%;
  width: calc(60% - var(--aix-prism-face));
  background-size: 190% 100%;
  animation: aix-prism-beam 3.6s linear infinite;
}

.aix-prism__ray {
  left: calc(50% + var(--aix-prism-face));
  width: calc(50% - var(--aix-prism-face));
  background-size: 190% 100%;
  animation: aix-prism-beam 3.6s linear infinite;
}

.aix-prism__impact {
  position: absolute;
  top: 50%;
  left: calc(50% + var(--aix-prism-face));
  z-index: 3;
  width: 8px;
  height: 8px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: var(--aix-cyan);
  box-shadow: 0 0 0 8px rgba(111, 232, 237, 0.08), 0 0 24px rgba(111, 232, 237, 0.9);
  translate: -50% -50%;
  animation: aix-status-pulse 2.2s ease-in-out infinite;
}

.aix-method {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 16%, rgba(104, 92, 255, 0.13), transparent 28%),
    radial-gradient(circle at 8% 82%, rgba(111, 232, 237, 0.11), transparent 26%),
    #fbfbff;
}

.aix-method__flow {
  border-color: rgba(104, 92, 255, 0.18);
  background: rgba(104, 92, 255, 0.16);
  box-shadow: 0 34px 80px rgba(35, 27, 80, 0.12);
}

.aix-method-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
}

.aix-lab__frame {
  min-height: 690px;
}

.aix-lab__tabs {
  max-height: 720px;
  overflow-y: auto;
  scrollbar-color: rgba(201, 255, 114, 0.5) transparent;
  scrollbar-width: thin;
}

.aix-lab-tab {
  min-height: 68px;
}

.aix-governance {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 12% 18%, rgba(104, 92, 255, 0.32), transparent 28%),
    radial-gradient(circle at 88% 84%, rgba(111, 232, 237, 0.12), transparent 30%),
    linear-gradient(145deg, #100d20, #17122d 55%, #0d0b19);
}

.aix-governance__intro {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.52fr);
  align-items: end;
}

.aix-governance .aix-heading--light .aix-kicker {
  color: var(--aix-lime);
}

.aix-governance .aix-heading--light > p:last-child {
  color: rgba(255, 255, 255, 0.62);
}

.aix-governance__boundary {
  display: block;
  padding: 3px 0 3px 24px;
  margin: 0 0 8px;
  border: 0;
  border-left: 2px solid var(--aix-lime);
  border-radius: 0;
  color: #fff;
  background: transparent;
}

.aix-governance__boundary span {
  display: block;
  width: auto;
  height: auto;
  margin-bottom: 10px;
  color: var(--aix-lime);
  background: transparent;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.aix-governance__boundary strong {
  display: block;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  line-height: 1.55;
}

.aix-governance__grid {
  gap: 12px;
  overflow: visible;
  border: 0;
  background: transparent;
}

.aix-governance__grid .aix-governance-card {
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.aix-governance__grid .aix-governance-card:hover {
  border-color: rgba(201, 255, 114, 0.3);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-6px);
}

.aix-governance-card > div:last-child > span {
  display: block;
  margin-bottom: 34px;
  color: var(--aix-lime);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.aix-governance__grid h3 {
  color: #fff;
  font-size: 1.35rem;
}

.aix-governance__grid p {
  color: rgba(255, 255, 255, 0.58);
}

.aix-faq__grid {
  grid-template-columns: minmax(460px, 0.72fr) minmax(0, 1fr);
  gap: clamp(60px, 7vw, 100px);
}

.aix-faq .aix-heading h2 {
  max-width: 9ch;
  font-size: clamp(2.9rem, 4.7vw, 4.7rem);
  line-height: 1;
  text-wrap: balance;
}

.aix-faq-item summary {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  padding-right: 0;
}

.aix-faq-item summary::before,
.aix-faq-item summary::after {
  display: none !important;
  content: none !important;
}

@keyframes aix-prism-beam {
  0% { background-position: 120% 0; opacity: 0.45; }
  50% { opacity: 1; }
  100% { background-position: -80% 0; opacity: 0.45; }
}

@media (max-width: 1180px) {
  body.aix-site .header-shell {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 1040px) {
  .aix-faq__grid {
    grid-template-columns: 1fr;
  }

  .aix-faq .aix-heading h2 {
    max-width: 12ch;
  }
}

@media (max-width: 760px) {
  body.aix-site .brand {
    padding: 0;
  }

  body.aix-site .brand img {
    width: 146px;
  }

  body.aix-site .brand::after {
    width: 35px;
    background-size: 146px auto;
  }

  .aix-orbit__core span {
    font-size: 1.12rem;
  }

  .aix-prism {
    --aix-prism-face: 29px;
  }

  .aix-model__name {
    margin-bottom: 38px;
  }

  .aix-lab__frame {
    min-height: 0;
  }

  .aix-lab__tabs {
    display: flex;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px;
    scroll-snap-type: x proximity;
  }

  .aix-lab-tab {
    display: grid;
    min-width: 164px;
    min-height: 66px;
    grid-template-columns: 28px 1fr;
    gap: 6px;
    padding: 12px;
    scroll-snap-align: start;
  }

  .aix-governance__grid .aix-governance-card {
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 20px;
    padding: 24px 20px;
  }

  .aix-governance-visual {
    width: 94px;
    height: 104px;
  }

  .aix-governance-card > div:last-child > span {
    margin-bottom: 22px;
  }

  .aix-faq .aix-heading h2 {
    max-width: 10ch;
    font-size: clamp(2.65rem, 13vw, 4rem);
  }
}

@media (max-width: 480px) {
  .aix-governance__grid .aix-governance-card {
    grid-template-columns: 1fr;
  }

  .aix-governance-visual {
    width: 124px;
    height: 124px;
  }

  .aix-faq-item summary {
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aix-prism__input,
  .aix-prism__ray,
  .aix-prism__impact {
    animation: none;
  }
}
