:root {
  --bg: #02090b;
  --bg-deep: #010405;
  --surface: rgba(9, 29, 34, 0.58);
  --surface-strong: rgba(12, 42, 48, 0.72);
  --line: rgba(137, 255, 242, 0.24);
  --line-strong: rgba(137, 255, 242, 0.48);
  --text: #ecffff;
  --soft: #b4ced2;
  --muted: #7f9aa0;
  --accent: #45f1dd;
  --accent-2: #9ffff4;
  --ink: #041213;
  --radius: 16px;
  --content: min(1420px, calc(100vw - 80px));
  --shadow: 0 34px 96px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 34%, rgba(69, 241, 221, 0.23), transparent 28rem),
    linear-gradient(180deg, #020607 0%, #061012 48%, var(--bg-deep) 100%);
  font-family: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: radial-gradient(circle at 50% 38%, black 0 34%, transparent 75%);
}

body::after {
  content: "010011  HENGCHUN  LLM  RAG  Agent  AIGC  Vision  Workflow  100101";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: -1;
  color: rgba(69, 241, 221, 0.34);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
}

figure,
h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

#particleField {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

.boot-sequence {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(1, 8, 10, 0.98), rgba(3, 18, 22, 0.92), rgba(1, 8, 10, 0.98));
  animation: bootExit 5.2s ease forwards;
}

.boot-sequence::before,
.boot-sequence::after {
  content: "";
  position: absolute;
  top: -12vh;
  bottom: -12vh;
  width: 50vw;
  border: 1px solid rgba(137, 255, 242, 0.46);
  box-shadow:
    0 0 42px rgba(69, 241, 221, 0.48),
    inset 0 0 62px rgba(69, 241, 221, 0.22);
  background:
    repeating-linear-gradient(180deg, rgba(69, 241, 221, 0.18) 0 2px, transparent 2px 18px),
    linear-gradient(90deg, rgba(69, 241, 221, 0.2), transparent 62%);
  animation: portalDoor 5.2s cubic-bezier(0.72, 0, 0.22, 1) forwards;
}

.boot-sequence::before {
  left: 0;
  border-radius: 0 999px 999px 0;
  transform-origin: left center;
}

.boot-sequence::after {
  right: 0;
  border-radius: 999px 0 0 999px;
  transform-origin: right center;
}

.boot-code {
  position: relative;
  z-index: 3;
  width: min(760px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
  padding: 28px;
  border: 1px solid rgba(137, 255, 242, 0.34);
  border-radius: 18px;
  background: rgba(0, 10, 12, 0.56);
  color: rgba(202, 255, 252, 0.86);
  font-family: "SFMono-Regular", Consolas, monospace;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(69, 241, 221, 0.2);
  backdrop-filter: blur(18px);
  animation: codeDrift 5.2s ease forwards;
}

.boot-code strong,
.boot-code span {
  display: block;
}

.boot-code strong {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.2em;
}

.boot-code span {
  min-height: 28px;
  color: rgba(202, 255, 252, 0.74);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.boot-portal {
  position: absolute;
  z-index: 2;
  width: min(44vw, 680px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(137, 255, 242, 0.28);
  box-shadow: 0 0 130px rgba(69, 241, 221, 0.36);
}

.boot-portal span {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(137, 255, 242, 0.26);
  border-radius: 50%;
  animation: bootSpin 3.8s linear infinite;
}

.boot-portal span:nth-child(2) {
  inset: 24%;
  animation-duration: 2.8s;
  animation-direction: reverse;
}

.boot-portal span:nth-child(3) {
  inset: 36%;
  box-shadow: inset 0 0 42px rgba(69, 241, 221, 0.3);
}

.boot-status {
  position: absolute;
  bottom: 12vh;
  z-index: 3;
  color: rgba(202, 255, 252, 0.72);
  font-size: 14px;
  letter-spacing: 0.12em;
}

.portal-shell {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.portal {
  position: absolute;
  top: -8vh;
  bottom: -8vh;
  width: 24vw;
  border: 2px solid rgba(137, 255, 242, 0.5);
  box-shadow:
    0 0 30px rgba(69, 241, 221, 0.38),
    inset 0 0 48px rgba(69, 241, 221, 0.22);
  background:
    repeating-linear-gradient(180deg, rgba(69, 241, 221, 0.12) 0 2px, transparent 2px 19px),
    linear-gradient(90deg, rgba(69, 241, 221, 0.14), transparent 58%);
  filter: drop-shadow(0 0 22px rgba(69, 241, 221, 0.36));
}

.portal-left {
  left: -11vw;
  border-radius: 0 999px 999px 0;
  transform: perspective(900px) rotateY(28deg);
}

.portal-right {
  right: -11vw;
  border-radius: 999px 0 0 999px;
  transform: perspective(900px) rotateY(-28deg) scaleX(-1);
}

.portal-core {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 34vw;
  height: 34vw;
  max-width: 580px;
  max-height: 580px;
  border: 1px solid rgba(137, 255, 242, 0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(137, 255, 242, 0.16), transparent 58%);
  box-shadow: 0 0 130px rgba(69, 241, 221, 0.22);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(137, 255, 242, 0.13);
  background: linear-gradient(180deg, rgba(2, 8, 10, 0.84), rgba(2, 8, 10, 0.58));
  backdrop-filter: blur(22px);
}

.nav {
  width: var(--content);
  height: 78px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr 124px;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 0 34px rgba(69, 241, 221, 0.2);
}

.brand span,
.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--text);
  font-size: 20px;
  line-height: 1.12;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
  color: #c9dbde;
  font-size: 15px;
  white-space: nowrap;
}

.nav-links a {
  text-decoration: none;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  text-shadow: 0 0 18px rgba(69, 241, 221, 0.34);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.nav-cta,
.button.primary {
  color: var(--ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: rgba(137, 255, 242, 0.6);
  box-shadow: 0 0 30px rgba(69, 241, 221, 0.28);
}

.button.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(14px);
}

.nav-cta:hover,
.button.primary:hover {
  box-shadow: 0 0 44px rgba(69, 241, 221, 0.42);
}

.button.ghost:hover {
  border-color: var(--line-strong);
  background: rgba(69, 241, 221, 0.08);
}

.nav-cta:active,
.button:active {
  transform: translateY(1px) scale(0.99);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.site-main {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  width: var(--content);
  min-height: calc(100dvh - 78px);
  margin: 0 auto;
  padding: 48px 0 38px;
  display: grid;
  grid-template-columns: minmax(350px, 0.72fr) minmax(620px, 1.28fr);
  align-items: center;
  gap: 38px;
}

.knowledge-map {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.knowledge-map::before,
.knowledge-map::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 210px;
  border: 1px solid rgba(137, 255, 242, 0.15);
  background-image:
    radial-gradient(circle at 30% 30%, rgba(137, 255, 242, 0.72) 0 3px, transparent 4px),
    radial-gradient(circle at 64% 18%, rgba(137, 255, 242, 0.72) 0 3px, transparent 4px),
    radial-gradient(circle at 76% 63%, rgba(137, 255, 242, 0.64) 0 3px, transparent 4px),
    linear-gradient(35deg, transparent 48%, rgba(137, 255, 242, 0.14) 49% 51%, transparent 52%),
    linear-gradient(145deg, transparent 48%, rgba(137, 255, 242, 0.14) 49% 51%, transparent 52%);
  opacity: 0.58;
}

.knowledge-map::before {
  left: 70px;
  top: 90px;
}

.knowledge-map::after {
  right: 80px;
  top: 72px;
}

.knowledge-map span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  color: rgba(167, 244, 239, 0.56);
  font-size: 12px;
}

.hero-copy {
  max-width: 650px;
  min-width: 0;
  transform: translateY(-8px);
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero h1 {
  margin-bottom: 26px;
  font-size: clamp(58px, 5.4vw, 92px);
  line-height: 1.06;
  letter-spacing: 0;
  text-shadow: 0 0 34px rgba(69, 241, 221, 0.16);
}

.hero h1 span {
  display: block;
}

.hero p {
  max-width: 560px;
  margin-bottom: 34px;
  color: var(--soft);
  font-size: 19px;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.ai-core {
  position: relative;
  min-height: 560px;
}

.brain {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 254px;
  height: 172px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border: 1px solid rgba(137, 255, 242, 0.48);
  border-radius: 52% 48% 48% 52%;
  background:
    radial-gradient(circle at 50% 50%, rgba(137, 255, 242, 0.38), transparent 34%),
    rgba(7, 31, 36, 0.72);
  box-shadow:
    0 0 90px rgba(69, 241, 221, 0.42),
    inset 0 0 44px rgba(69, 241, 221, 0.18);
}

.brain::before,
.brain::after,
.brain span {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(137, 255, 242, 0.35);
  border-radius: 48%;
}

.brain::before {
  transform: rotate(18deg);
}

.brain::after {
  transform: rotate(-26deg);
}

.brain span:nth-child(1) {
  transform: rotate(62deg);
}

.brain span:nth-child(2) {
  inset: 42px;
  border-color: rgba(137, 255, 242, 0.22);
  transform: rotate(-8deg);
}

.brain span:nth-child(3) {
  inset: 8px;
  border-color: rgba(137, 255, 242, 0.18);
  transform: rotate(90deg);
}

.brain strong {
  position: relative;
  z-index: 2;
  color: var(--accent-2);
  font-size: 44px;
  letter-spacing: 0.1em;
  text-shadow: 0 0 24px rgba(137, 255, 242, 0.76);
}

.model-rings {
  position: absolute;
  left: 50%;
  top: 60%;
  width: 330px;
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
}

.model-rings span {
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(137, 255, 242, 0.42);
  border-radius: 50%;
  color: #d9ffff;
  background: rgba(5, 25, 29, 0.72);
  font-size: 13px;
  letter-spacing: 0.08em;
  box-shadow: 0 0 24px rgba(69, 241, 221, 0.17);
}

.ai-module {
  position: absolute;
  width: 210px;
  min-height: 74px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(137, 255, 242, 0.16), transparent 42%),
    var(--surface);
  backdrop-filter: blur(18px);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ai-module::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 130px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.module-left::after {
  right: -130px;
}

.module-right::after {
  left: -130px;
  transform: scaleX(-1);
}

.ai-module strong,
.ai-module small {
  display: block;
}

.ai-module strong {
  color: var(--text);
  font-size: 17px;
  white-space: nowrap;
}

.ai-module small {
  margin-top: 4px;
  color: var(--soft);
  font-size: 12px;
}

.module-llm {
  left: 16px;
  top: 110px;
}

.module-rag {
  left: 74px;
  top: 214px;
}

.module-agent {
  left: 34px;
  top: 318px;
}

.module-aigc {
  right: 28px;
  top: 108px;
}

.module-vision {
  right: 82px;
  top: 214px;
}

.module-flow {
  right: 30px;
  top: 318px;
}

.proof-grid,
.proof-band,
.section,
.footer-inner,
.copyright {
  width: var(--content);
  margin-left: auto;
  margin-right: auto;
}

.proof-grid,
.proof-band {
  margin-top: -18px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.proof-band {
  grid-template-columns: 1.1fr repeat(3, 1fr);
}

.proof-grid strong,
.proof-band strong {
  color: var(--text);
  font-size: 19px;
}

.proof-grid div,
.proof-band div {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(137, 255, 242, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.proof-grid span,
.proof-band h3 {
  color: var(--accent);
  font-size: 20px;
  font-weight: 900;
}

.proof-grid p,
.proof-band p {
  color: var(--soft);
  font-size: 13px;
}

.section {
  padding: 92px 0 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 32px;
}

.section-heading h2,
.split-copy h2,
.contact-panel h2 {
  margin-bottom: 14px;
  color: var(--text);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.14;
  letter-spacing: 0;
}

.section-heading p,
.split-copy p,
.contact-panel p,
.about-copy p {
  color: var(--soft);
  font-size: 17px;
  overflow-wrap: anywhere;
}

.cards,
.compact-cards,
.project-grid,
.process-grid,
.partner-strip,
.contact-list {
  display: grid;
  gap: 16px;
}

.cards {
  grid-template-columns: repeat(4, 1fr);
}

.card,
.project-card,
.process-grid article,
.contact-panel,
.partner-strip figure,
.about-copy,
.split-copy {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(137, 255, 242, 0.11), rgba(255, 255, 255, 0.02)),
    var(--surface-strong);
  backdrop-filter: blur(24px);
  box-shadow:
    0 26px 76px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card,
.project-card,
.process-grid article {
  min-height: 220px;
  padding: 26px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.card:hover,
.project-card:hover,
.process-grid article:hover {
  transform: translateY(-4px) perspective(900px) rotateX(1.5deg);
  border-color: var(--line-strong);
}

.card h3,
.project-card h3,
.process-grid h3 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 22px;
}

.card p,
.project-card p,
.process-grid p {
  color: var(--soft);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  align-items: start;
}

.split-copy {
  position: sticky;
  top: 108px;
  padding: 34px;
}

.compact-cards {
  grid-template-columns: 1fr 1fr;
}

.partner-strip {
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.partner-strip figure {
  min-height: 120px;
  padding: 20px;
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center;
}

.partner-strip img {
  width: min(120px, 100%);
  height: 38px;
  object-fit: contain;
  opacity: 0.94;
}

.partner-strip figure.logo-fallback img {
  display: none;
}

.partner-strip figure.logo-fallback::before {
  content: attr(aria-label);
  min-width: 74px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(236, 255, 255, 0.36);
  border-radius: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.partner-strip figcaption {
  color: var(--soft);
  font-size: 13px;
}

.about-copy {
  max-width: 860px;
  padding: 34px;
}

.about-copy p + p {
  margin-top: 18px;
}

.project-grid {
  grid-template-columns: repeat(4, 1fr);
}

.project-card.featured {
  grid-column: span 2;
}

.tags {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  padding: 6px 10px;
  border: 1px solid rgba(137, 255, 242, 0.22);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(69, 241, 221, 0.08);
  font-size: 12px;
}

.process-grid {
  grid-template-columns: repeat(4, 1fr);
}

.contact {
  padding-bottom: 92px;
}

.contact-panel {
  padding: 38px;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 32px;
}

.contact-panel p {
  margin-bottom: 28px;
}

.contact-list {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-list div {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(137, 255, 242, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.contact-list .contact-card {
  position: relative;
  min-height: 106px;
  padding-left: 72px;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.contact-list .contact-card:hover,
.contact-list .contact-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(69, 241, 221, 0.08);
  outline: none;
}

.contact-list .contact-card::before {
  position: absolute;
  left: 20px;
  top: 22px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(69, 241, 221, 0.44);
  border-radius: 10px;
  color: var(--accent);
  background: rgba(69, 241, 221, 0.1);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.contact-list .contact-email::before {
  content: "@";
}

.contact-list .contact-wechat::before {
  content: "企";
}

.contact-list strong,
.contact-list a,
.contact-list span {
  display: block;
}

.contact-list strong {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 15px;
}

.contact-list a,
.contact-list span {
  color: var(--soft);
  text-decoration: none;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.contact-list .contact-card a {
  color: var(--accent);
  font-weight: 700;
}

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(137, 255, 242, 0.14);
  background: rgba(1, 6, 7, 0.72);
  backdrop-filter: blur(20px);
}

.footer-inner {
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 30px;
}

.footer p {
  max-width: 430px;
  margin-top: 16px;
  color: var(--soft);
  font-size: 14px;
}

.footer h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 15px;
}

.footer a {
  display: block;
  color: var(--soft);
  text-decoration: none;
  font-size: 14px;
}

.footer a + a {
  margin-top: 8px;
}

.copyright {
  padding: 18px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.copyright a {
  color: var(--muted);
  text-decoration: none;
}

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

@keyframes codeDrift {
  0%,
  54% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  78% {
    opacity: 0;
    transform: translateY(-22px) scale(0.98);
  }
  100% {
    opacity: 0;
  }
}

@keyframes portalDoor {
  0%,
  48% {
    opacity: 1;
    transform: translateX(0) perspective(900px) rotateY(0deg);
  }
  82%,
  100% {
    opacity: 0;
    transform: translateX(var(--door-x, 0)) perspective(900px) rotateY(24deg);
  }
}

.boot-sequence::before {
  --door-x: -58vw;
}

.boot-sequence::after {
  --door-x: 58vw;
}

@keyframes bootExit {
  0%,
  78% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .boot-sequence {
    display: none;
  }
}

@media (max-width: 1200px) {
  :root {
    --content: min(960px, calc(100vw - 48px));
  }

  .nav {
    grid-template-columns: 230px 1fr 112px;
  }

  .nav-links {
    gap: 18px;
    font-size: 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 64px;
  }

  .hero-copy {
    max-width: 780px;
  }

  .ai-core {
    min-height: 620px;
  }

  .proof-grid,
  .proof-band,
  .cards,
  .project-grid,
  .process-grid,
  .partner-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-grid strong,
  .proof-band strong,
  .project-card.featured {
    grid-column: span 2;
  }

  .split-section,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .split-copy {
    position: static;
  }
}

@media (max-width: 760px) {
  :root {
    --content: min(100vw - 32px, 560px);
  }

  body::after {
    display: none;
  }

  .portal {
    top: 0;
    bottom: 0;
    width: 34vw;
  }

  .portal-left {
    left: 0;
  }

  .portal-right {
    right: 0;
  }

  .boot-code span {
    min-height: auto;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .site-header {
    position: sticky;
  }

  .nav {
    height: 70px;
    display: flex;
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand strong {
    font-size: 17px;
  }

  .brand small {
    font-size: 10px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .nav-cta {
    display: none;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    padding: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(2, 12, 14, 0.94);
    backdrop-filter: blur(18px);
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 48px 0 18px;
    gap: 18px;
  }

  .knowledge-map {
    display: none;
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .hero h1 {
    font-size: clamp(42px, 14vw, 62px);
  }

  .hero p {
    font-size: 16px;
  }

  .ai-core {
    min-height: 620px;
    overflow: hidden;
  }

  .brain {
    top: 30%;
    width: 210px;
    height: 144px;
  }

  .model-rings {
    top: 43%;
    width: 260px;
  }

  .ai-module {
    width: min(260px, 100%);
  }

  .ai-module::after {
    display: none;
  }

  .module-llm,
  .module-rag,
  .module-agent,
  .module-aigc,
  .module-vision,
  .module-flow {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .module-llm {
    top: 0;
  }

  .module-rag {
    top: 86px;
  }

  .module-agent {
    top: 470px;
  }

  .module-aigc {
    top: 558px;
  }

  .module-vision {
    top: 382px;
  }

  .module-flow {
    top: 294px;
  }

  .proof-grid,
  .proof-band,
  .cards,
  .compact-cards,
  .project-grid,
  .process-grid,
  .partner-strip,
  .contact-list,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .proof-grid strong,
  .proof-band strong,
  .project-card.featured {
    grid-column: auto;
  }

  .section {
    padding-top: 72px;
  }

  .contact-panel,
  .about-copy,
  .split-copy {
    padding: 26px;
  }

  .copyright {
    flex-direction: column;
  }
}
