/* Huicross official site — an original visual system inspired by cinematic AI storytelling. */
:root {
  color-scheme: dark;
  --bg: #020711;
  --bg-soft: #06101e;
  --panel: rgba(8, 21, 38, 0.8);
  --panel-solid: #0a1728;
  --text: #f7f8fb;
  --muted: #9da2b0;
  --muted-2: #6e7380;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --accent: #4ebcff;
  --accent-2: #1677ff;
  --accent-3: #9edfff;
  --display: "Space Grotesk", "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  --page: min(1460px, calc(100vw - 96px));
  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 28px;
  --header-h: 76px;
  --hero-bg: #01050b;
  --hero-text: #f5f7fa;
  --hero-muted: rgba(231, 238, 247, .48);
  --hero-border: rgba(188, 221, 246, .16);
  --hero-blue: #66cfff;
  --hero-blue-bright: #d7f6ff;
  --mouse-x: 50vw;
  --mouse-y: 50vh;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(22, 119, 255, .11), transparent 27%),
    radial-gradient(circle at 88% 52%, rgba(78, 188, 255, .06), transparent 22%),
    var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body::selection { background: var(--accent); color: #02101d; }
body.nav-open { overflow: hidden; }
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #02111e;
  transform: translateY(-150%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.scroll-progress {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  height: 2px;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent), #e8f7ff);
  box-shadow: 0 0 18px rgba(78, 188, 255, .78);
}
.pointer-glow {
  position: fixed;
  z-index: 30;
  left: var(--mouse-x);
  top: var(--mouse-y);
  width: 440px;
  height: 440px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(78, 188, 255, .07), transparent 67%);
  mix-blend-mode: screen;
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  padding: 0 28px;
  border-bottom: 1px solid transparent;
  transition: background .45s ease, border-color .45s ease, backdrop-filter .45s ease;
  animation: header-arrive .9s .32s both var(--ease);
}
@keyframes header-arrive { from { opacity: 0; transform: translateY(-12px); } }
.site-header.is-scrolled,
.site-header:has(.site-nav-item:hover) {
  background: rgba(5, 6, 11, .72);
  border-bottom-color: var(--line);
  backdrop-filter: blur(22px) saturate(135%);
}
.brand { display: inline-flex; align-items: center; justify-self: start; min-width: 0; }
.brand-logo {
  display: block;
  width: 112px;
  height: 74px;
  object-fit: contain;
  object-position: left center;
}
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav-item {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.72);
  font-family: inherit;
  font-size: 13px;
  letter-spacing: .03em;
  cursor: pointer;
  transition: color .25s ease;
}
.site-nav-item span {
  display: inline-block;
  margin-right: 6px;
  color: rgba(136, 209, 246, .46);
  font-family: var(--body);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .08em;
  transform: translateY(-.12em);
}
.site-nav-item::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .35s var(--ease);
}
.site-nav-item:hover { color: #fff; }
.site-nav-item:hover::after { transform: scaleX(1); }
.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(210, 232, 248, .18);
  border-radius: 999px;
  background: rgba(6, 10, 16, .3);
  font-size: 13px;
  font-weight: 600;
  transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease;
}
.header-cta:hover { background: #f4f6f8; border-color: #f4f6f8; color: #080b10; transform: translateY(-2px); }
.header-cta svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-toggle { display: none; }

.hero {
  position: relative;
  min-height: max(640px, 100svh);
  isolation: isolate;
  overflow: visible;
  background: var(--hero-bg);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: 6;
  right: 0;
  bottom: -1px;
  left: 0;
  height: clamp(170px, 24vh, 270px);
  pointer-events: none;
  background:
    radial-gradient(ellipse 72% 125% at 50% 112%, rgba(28, 119, 191, .16), rgba(10, 48, 82, .07) 42%, transparent 72%),
    linear-gradient(180deg, transparent 0, rgba(2, 5, 10, .22) 40%, rgba(3, 8, 15, .78) 82%, #03080f 100%);
}
.cosmic-vortex-background {
  position: absolute;
  z-index: 0;
  inset: 0 0 -250px;
  overflow: hidden;
  background: var(--hero-bg);
  pointer-events: none;
}
.hero-background-video {
  position: absolute;
  z-index: 2;
  inset: 0 0 250px;
  width: 100%;
  height: calc(100% - 250px);
  max-width: none;
  object-fit: cover;
  object-position: center;
  background: var(--hero-bg);
  filter: brightness(.72) saturate(.9) contrast(1.06);
  pointer-events: none;
}
#dream-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(.22, 1, .36, 1);
}
.webgl-ready.vortex-revealed #dream-canvas { opacity: 1; }
.cosmic-fallback {
  position: absolute;
  inset: -18% -12% 28%;
  background-image:
    radial-gradient(ellipse at 50% 12%, rgba(146, 226, 255, .34) 0, rgba(35, 129, 211, .16) 14%, transparent 43%),
    conic-gradient(from 235deg at 50% 4%, transparent 0 22%, rgba(64, 157, 225, .11) 30%, transparent 38% 54%, rgba(20, 89, 154, .13) 63%, transparent 74%);
  filter: blur(12px) saturate(115%);
  opacity: .88;
  transform: scale(1.15, .76);
  transition: opacity 1.1s ease;
}
.webgl-ready .cosmic-fallback { opacity: .15; }
.webgl-fallback .cosmic-fallback { opacity: .92; }
.hero-radial-fog {
  position: absolute;
  z-index: 1;
  inset: 0 0 -230px;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 34% at 50% -2%, rgba(77, 177, 244, .13), transparent 72%),
    linear-gradient(180deg, transparent 0 35%, rgba(1, 2, 5, .28) 54%, rgba(1, 2, 5, .7) 76%, rgba(3, 7, 13, .28) 100%);
}
.hero-scanlines {
  position: absolute;
  z-index: 3;
  inset: 0 0 -190px;
  pointer-events: none;
  opacity: .14;
  background: repeating-linear-gradient(180deg, rgba(197, 228, 255, .12) 0, rgba(197, 228, 255, .12) 1px, transparent 1px, transparent 4px);
  mix-blend-mode: soft-light;
  -webkit-mask-image: linear-gradient(180deg, #000 0, rgba(0,0,0,.9) 50%, transparent 88%);
  mask-image: linear-gradient(180deg, #000 0, rgba(0,0,0,.9) 50%, transparent 88%);
}
.hero-grain {
  position: absolute;
  z-index: 4;
  inset: -80px 0 -260px;
  pointer-events: none;
  opacity: .038;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
  animation: grain-shift .24s steps(2) infinite;
}
@keyframes grain-shift {
  0% { transform: translate3d(-1%, 1%, 0); }
  50% { transform: translate3d(1%, -1%, 0); }
  100% { transform: translate3d(.5%, 1%, 0); }
}
.hero-vignette {
  position: absolute;
  z-index: 5;
  inset: 0 0 -235px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 1, 3, .12), transparent 22%, transparent 59%, rgba(1, 2, 5, .64) 78%, rgba(3, 7, 13, .22)),
    radial-gradient(ellipse 76% 70% at 50% 30%, transparent 8%, rgba(1, 2, 5, .08) 47%, rgba(1, 2, 5, .88) 100%),
    linear-gradient(90deg, rgba(0,0,0,.78), transparent 17%, transparent 83%, rgba(0,0,0,.78));
}

.hero-content {
  position: relative;
  z-index: 8;
  width: min(900px, calc(100% - 48px));
  min-height: max(640px, 100svh);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin: 0 auto;
  padding: clamp(245px, 39svh, 390px) 0 185px;
  text-align: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 31px;
  margin-bottom: 22px;
  padding: 0 13px;
  border: 1px solid var(--hero-border);
  border-radius: 999px;
  background: rgba(9, 13, 19, .48);
  box-shadow: inset 0 1px rgba(255,255,255,.035), 0 8px 34px rgba(0,0,0,.24);
  color: rgba(226, 234, 242, .58);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .025em;
  backdrop-filter: blur(14px) saturate(125%);
}
.js .hero .hero-kicker { transition-delay: .38s; }
.js .hero .hero-title { transition-delay: .52s; }
.js .hero .hero-lead { transition-delay: .68s; }
.js .hero .hero-actions { transition-delay: .82s; }
.live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--hero-blue-bright); box-shadow: 0 0 0 4px rgba(102,207,255,.08), 0 0 14px rgba(102,207,255,.76); animation: pulse 2.8s ease infinite; }
@keyframes pulse { 50% { opacity: .55; transform: scale(.75); } }
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--hero-text);
  font-family: var(--display);
  font-size: clamp(48px, 5.25vw, 78px);
  font-weight: 520;
  line-height: 1.04;
  letter-spacing: -.052em;
  text-shadow: 0 12px 48px rgba(0, 0, 0, .68);
}
.hero-title.morphing-title { position: relative; width: min(100%, 760px); min-height: 2.08em; }
.morph-title-layer { width: 100%; display: flex; flex-direction: column; align-items: center; }
.morph-title-layer.is-current { position: relative; z-index: 2; }
.morph-title-layer.is-next { position: absolute; z-index: 1; inset: 0; opacity: 0; filter: blur(18px); }
.morphing-title.is-morphing .morph-title-layer.is-current { animation: morph-title-out .98s ease-in-out both; }
.morphing-title.is-morphing .morph-title-layer.is-next { animation: morph-title-in .98s ease-in-out both; }
@keyframes morph-title-out {
  0% { opacity: 1; filter: blur(0); transform: scale(1); }
  46% { opacity: .62; }
  100% { opacity: 0; filter: blur(18px); transform: scale(.965); }
}
@keyframes morph-title-in {
  0% { opacity: 0; filter: blur(18px); transform: scale(1.035); }
  54% { opacity: .72; }
  100% { opacity: 1; filter: blur(0); transform: scale(1); }
}
.hero-title-line { display: block; }
.hero-title-muted {
  padding-right: .05em;
  background: linear-gradient(96deg, #f5f8fb 4%, #c8cdd4 45%, #656b75 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead { max-width: 670px; margin-top: 23px; color: var(--hero-muted); font-size: clamp(13px, 1vw, 15px); line-height: 1.72; letter-spacing: .012em; }

.text-3d-flip { perspective: 700px; transform-style: preserve-3d; cursor: default; }
.text-3d-char {
  position: relative;
  display: inline-block;
  transform-style: preserve-3d;
  transform-origin: center center -.35em;
  transition: transform .62s cubic-bezier(.2,.75,.22,1);
  transition-delay: var(--flip-delay, 0s);
}
.text-3d-space { display: inline-block; width: .34em; }
.text-3d-face { display: inline-block; backface-visibility: hidden; }
.text-3d-front { transform: translateZ(.35em); }
.text-3d-top { position: absolute; inset: 0; color: color-mix(in srgb, currentColor 76%, var(--accent)); transform: rotateX(90deg) translateZ(.35em); transform-origin: center bottom; }
.text-3d-flip:hover .text-3d-char,
.text-3d-flip.is-flipped .text-3d-char { transform: rotateX(-90deg); }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 26px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .015em;
  transition: transform .3s var(--ease), color .3s ease, background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.button:hover { transform: translateY(-3px); }
.button-primary {
  background: var(--accent);
  color: #02111e;
  box-shadow: 0 12px 40px rgba(27, 142, 255, .18);
}
.button-primary:hover { background: #8bd5ff; box-shadow: 0 16px 55px rgba(27, 142, 255, .28); }
.button-primary svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button-ghost { border-color: var(--line-strong); background: rgba(255,255,255,.045); color: #fff; backdrop-filter: blur(12px); }
.button-ghost:hover { border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.09); }
.play-icon { width: 22px; height: 22px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; position: relative; }
.play-icon::after { content: ""; position: absolute; left: 8px; top: 6px; border-left: 6px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.hero .button { min-height: 46px; padding-inline: 22px; border-radius: 999px; font-size: 12px; }
.hero .button-primary { background: #f4f6f8; color: #080b10; box-shadow: 0 10px 36px rgba(213, 239, 255, .13); }
.hero .button-primary:hover { background: #fff; box-shadow: 0 12px 42px rgba(213, 239, 255, .24); }
.hero .button-ghost { border-color: rgba(210, 232, 248, .15); background: rgba(6, 10, 16, .34); color: rgba(244, 248, 252, .76); }

.section { position: relative; padding: 150px 0; }
.section-heading { width: var(--page); margin: 0 auto 90px; }
.section-heading h2, .canvas-copy h2, .works-heading h2 {
  max-width: 930px;
  font-family: var(--display);
  font-size: clamp(52px, 7vw, 106px);
  font-weight: 560;
  line-height: .98;
  letter-spacing: -.06em;
}
.section-heading h2 span { color: var(--accent); }
.section-heading > p:last-child { max-width: 620px; margin-top: 30px; color: var(--muted); font-size: 16px; }
.video-text-heading {
  position: relative;
  isolation: isolate;
}
.video-text-source {
  display: inline;
  transition: color .35s ease, -webkit-text-stroke-color .35s ease;
}
.section-heading h2 > .video-text-source { color: inherit; }
.video-text-svg,
.video-text-canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
  filter: saturate(1.18) contrast(1.08) drop-shadow(0 0 18px rgba(50, 165, 255, .16));
  transition: opacity .5s ease;
}
.video-text-heading.video-text-ready > .video-text-source,
.video-text-heading.video-text-ready > .video-text-source * {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke-color: transparent !important;
}
.video-text-heading.video-text-ready > .video-text-svg,
.video-text-heading.video-text-ready > .video-text-canvas { opacity: 1; }
.video-text-media {
  position: fixed;
  z-index: -1;
  top: -4px;
  left: -4px;
  width: 2px;
  height: 2px;
  overflow: hidden;
  opacity: .001;
  pointer-events: none;
}
.video-text-mask-copy {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  -webkit-text-stroke: 0 transparent !important;
  font: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  white-space: normal;
}
.video-text-mask-copy * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  -webkit-text-stroke: 0 transparent !important;
}
.video-text-frame,
.video-text-frame video {
  width: 100%;
  height: 100%;
}
.video-text-frame { overflow: hidden; background: #1677ff; }
.video-text-frame video {
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.22) contrast(1.08) brightness(1.13) hue-rotate(-5deg);
  transform: scale(1.035);
}
.story-step:nth-child(2) .video-text-frame video { object-position: 42% 45%; }
.story-step:nth-child(3) .video-text-frame video { object-position: 50% 55%; }
.story-step:nth-child(4) .video-text-frame video { object-position: 52% 42%; }
.canvas-copy .video-text-svg { filter: saturate(1.15) contrast(1.16) brightness(.82); }
.canvas-copy .video-text-frame video { filter: saturate(1.25) contrast(1.2) brightness(.82) hue-rotate(-5deg); }
.eyebrow { margin-bottom: 22px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.centered { display: flex; flex-direction: column; align-items: center; text-align: center; }
.centered > p:last-child { margin-inline: auto; }

.capabilities {
  z-index: 6;
  margin-top: -1px;
  background:
    linear-gradient(180deg, #031321 0, rgba(3, 17, 29, .98) 48px, rgba(3, 11, 20, .74) 120px, transparent 220px),
    radial-gradient(ellipse 82% 360px at 50% 128px, rgba(35, 137, 208, .17), rgba(18, 71, 114, .065) 43%, transparent 76%),
    linear-gradient(180deg, #03080f 0, rgba(4, 10, 18, .98) 110px, rgba(5, 6, 11, .98) 310px, #05060b 42%, #05060b 84%, #080a10);
}
.story-shell { width: var(--page); margin: 0 auto; }
.story-steps { width: 100%; }
.story-media {
  position: relative;
  min-width: 0;
  opacity: 0;
  filter: blur(18px);
  transform: translateY(34px) scale(.975);
  transition: opacity .72s ease-out, filter .72s ease-out, transform .8s var(--ease);
  will-change: opacity, filter, transform;
}
.story-media.is-in-view {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}
.story-item-index { display: block; margin-top: 14px; color: var(--muted-2); font-family: var(--display); font-size: 11px; letter-spacing: .12em; text-align: right; }
.studio-window { position: relative; height: clamp(500px, 43vw, 660px); min-height: 500px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #0c0f17; box-shadow: 0 40px 100px rgba(0,0,0,.42); }
.studio-window::after { content: ""; position: absolute; z-index: 20; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 1px rgba(255,255,255,.08); }
.studio-topbar { position: relative; z-index: 30; height: 50px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 18px; border-bottom: 1px solid var(--line); background: rgba(8,10,16,.84); backdrop-filter: blur(15px); color: var(--muted); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.window-dots { display: flex; gap: 6px; }
.window-dots span { width: 7px; height: 7px; border-radius: 50%; background: #353a46; }
.window-dots span:first-child { background: var(--accent-3); }
.window-dots span:nth-child(2) { background: #f9c958; }
.window-dots span:nth-child(3) { background: var(--accent); }
.studio-status { justify-self: end; display: flex; align-items: center; gap: 7px; color: var(--accent); }
.studio-status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.story-panel { position: absolute; z-index: 0; inset: 50px 0 0; visibility: hidden; opacity: 0; filter: blur(12px); transform: translateY(10px) scale(.99); pointer-events: none; transition: opacity .46s ease-out, filter .46s ease-out, transform .46s ease-out, visibility .46s; }
.story-panel.is-active { z-index: 1; visibility: visible; opacity: 1; filter: blur(0); transform: translateY(0) scale(1); pointer-events: auto; }
.story-panel.is-active .prompt-note,
.story-panel.is-active .character-lab > img,
.story-panel.is-active .video-lab > :is(video, img),
.story-panel.is-active .asset-grid figure { animation: capability-blur-fade .52s ease-out both; }
.story-panel.is-active .asset-grid figure:nth-child(2) { animation-delay: .05s; }
.story-panel.is-active .asset-grid figure:nth-child(3) { animation-delay: .1s; }
@keyframes capability-blur-fade {
  from { opacity: 0; filter: blur(9px); transform: translateY(8px) scale(.992); }
  to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}
.visual-index { align-self: flex-end; margin-top: 14px; color: var(--muted-2); font-family: var(--display); font-size: 11px; letter-spacing: .12em; }

.prompt-workbench { position: relative; height: 100%; padding: clamp(28px, 4vw, 56px); background: radial-gradient(circle at 70% 40%, rgba(108,124,255,.18), transparent 35%), linear-gradient(145deg,#0b0e16,#101522); }
.prompt-workbench::before { content: ""; position: absolute; inset: 0; opacity: .25; background-image: linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px); background-size: 28px 28px; }
.prompt-note { position: relative; z-index: 2; width: min(76%, 540px); padding: 24px; border: 1px solid rgba(78,188,255,.24); border-radius: 18px; background: rgba(5,14,27,.78); box-shadow: 0 20px 70px rgba(0,0,0,.28); }
.prompt-note > span, .node-label { color: var(--accent); font-size: 9px; font-weight: 700; letter-spacing: .17em; }
.prompt-note strong { display: block; margin: 16px 0 20px; font-family: var(--display); font-size: clamp(17px, 2vw, 25px); font-weight: 500; line-height: 1.55; }
.prompt-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.prompt-tags i { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 9px; font-style: normal; }
.prompt-flow { position: absolute; right: 4%; bottom: 18%; left: 10%; height: 230px; }
.prompt-flow svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.prompt-flow path { fill: none; stroke: rgba(78,188,255,.42); stroke-width: 1; stroke-dasharray: 5 8; animation: dash 12s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -130; } }
.flow-node { position: absolute; z-index: 2; width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: #101521; color: rgba(255,255,255,.78); font-size: 11px; box-shadow: 0 8px 28px rgba(0,0,0,.34); }
.flow-node::before { content: ""; position: absolute; inset: 5px; border: 1px dashed rgba(255,255,255,.14); border-radius: inherit; }
.flow-node.n1 { left: 2%; top: 37%; }.flow-node.n2 { left: 34%; top: 5%; }.flow-node.n3 { left: 62%; top: 55%; }.flow-node.n4 { right: 0; top: 24%; }
.generating-line { position: absolute; right: clamp(28px,4vw,56px); bottom: 34px; left: clamp(28px,4vw,56px); display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.generating-line > span { position: relative; flex: 1; height: 2px; overflow: hidden; background: rgba(255,255,255,.08); }
.generating-line > span::after { content: ""; position: absolute; width: 24%; inset: 0 auto 0 -24%; background: linear-gradient(90deg,transparent,var(--accent),transparent); animation: scan 2.4s ease-in-out infinite; }
@keyframes scan { to { left: 100%; } }
.generating-line b { font-weight: 500; }

.character-lab { position: relative; height: 100%; overflow: hidden; background: #06080d; }
.character-lab > img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.82) contrast(1.04); transform: scale(1.02); }
.character-lab::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,transparent 48%,rgba(4,6,10,.75)); }
.character-hud { position: absolute; z-index: 3; right: 4%; bottom: 6%; width: min(240px, 35%); padding: 18px; border: 1px solid rgba(78,188,255,.26); border-radius: 16px; background: rgba(4,13,25,.8); backdrop-filter: blur(16px); }
.character-hud > span { color: var(--accent); font-size: 8px; letter-spacing: .13em; }
.character-hud > strong { display: block; margin: 8px 0 18px; font-size: 14px; }
.character-hud div { margin-top: 12px; }
.character-hud div i { display: block; width: var(--v); height: 2px; margin-bottom: 6px; background: linear-gradient(90deg,var(--accent-2),var(--accent)); box-shadow: 0 0 12px rgba(78,188,255,.34); }
.character-hud small { color: var(--muted); font-size: 8px; }

.video-lab { position: relative; height: 100%; overflow: hidden; background: radial-gradient(circle at 70% 30%,#354b94,#090b12 55%); }
.video-lab :is(video, img) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.video-fallback { position: absolute; inset: 0; background: radial-gradient(circle at 67% 34%, rgba(22,119,255,.26), transparent 28%), linear-gradient(120deg,transparent,rgba(78,188,255,.1),transparent); }
.video-overlay { position: absolute; right: 5%; bottom: 70px; left: 5%; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.video-overlay span { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.65); font-size: 9px; letter-spacing: .12em; }
.video-overlay span i { width: 6px; height: 6px; border-radius: 50%; background: #ff5b56; box-shadow: 0 0 12px #ff5b56; }
.video-overlay strong { max-width: 330px; font-family: var(--display); font-size: clamp(18px,2vw,27px); font-weight: 500; line-height: 1.35; text-align: right; text-shadow: 0 2px 18px #000; }
.timeline { position: absolute; right: 5%; bottom: 30px; left: 5%; height: 22px; display: flex; align-items: center; gap: 4px; }
.timeline::before { content: ""; position: absolute; inset: 10px 0 auto; height: 2px; background: rgba(255,255,255,.2); }
.timeline i { position: absolute; z-index: 3; left: 36%; top: 3px; width: 2px; height: 16px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.timeline span { position: relative; flex: 1; height: 14px; border-radius: 3px; background: rgba(255,255,255,.15); }
.timeline b { position: absolute; left: 0; top: 10px; width: 36%; height: 2px; background: var(--accent); }

.asset-lab { height: 100%; display: grid; grid-template-columns: 64px 1fr; background: #0a0d14; }
.asset-sidebar { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 26px; border-right: 1px solid var(--line); }
.asset-sidebar span { width: 22px; height: 22px; border: 1px solid var(--line-strong); border-radius: 7px; }
.asset-sidebar span:nth-child(2) { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 20px rgba(78,188,255,.22); }
.asset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px; overflow: hidden; }
.asset-grid figure { position: relative; min-height: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #11141d; }
.asset-grid figure:first-child { grid-row: span 2; }
.asset-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.asset-grid figure:hover img { transform: scale(1.04); }
.asset-grid figcaption { position: absolute; right: 10px; bottom: 10px; left: 10px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; background: rgba(4,5,9,.65); color: rgba(255,255,255,.75); font-size: 9px; backdrop-filter: blur(9px); }

.story-step { position: relative; min-height: 92svh; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); align-items: center; gap: clamp(54px, 7vw, 118px); padding: 90px 0; opacity: 1; }
.story-step:nth-child(even) { grid-template-columns: minmax(300px, .65fr) minmax(0, 1.35fr); }
.story-step:nth-child(even) .story-copy { order: 1; }
.story-step:nth-child(even) .story-media { order: 2; }
.story-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.story-step::before { content: ""; position: absolute; top: 50%; left: -50px; width: 20px; height: 1px; background: var(--accent); opacity: 0; transform: scaleX(0); transform-origin: right; transition: opacity .4s ease, transform .5s var(--ease); }
.story-step.is-active::before { opacity: 1; transform: scaleX(1); }
.step-number { margin-bottom: 36px; color: var(--muted-2); font-family: var(--display); font-size: 12px; letter-spacing: .14em; }
.step-kicker { margin-bottom: 16px; color: var(--accent); font-size: 9px; font-weight: 700; letter-spacing: .17em; }
.story-step h3 { max-width: 450px; font-family: var(--display); font-size: clamp(35px,4vw,58px); font-weight: 520; line-height: 1.08; letter-spacing: -.045em; }
.story-copy > p:not(.step-kicker) { max-width: 440px; margin-top: 24px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.text-link { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; margin-top: 30px; padding-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,.28); font-size: 12px; transition: color .25s ease, border-color .25s ease; }
.text-link span { color: var(--accent); }
.text-link:hover { color: var(--accent); border-color: var(--accent); }

.canvas-section { min-height: 980px; display: grid; grid-template-columns: minmax(360px,.68fr) minmax(600px,1.32fr); gap: clamp(55px,7vw,120px); align-items: center; padding-inline: max(48px, calc((100vw - 1560px) / 2)); overflow: hidden; background: #eaf3fb; color: #06101d; }
.canvas-section::before { content: ""; position: absolute; inset: 0; opacity: .55; background-image: linear-gradient(rgba(8,10,15,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(8,10,15,.05) 1px,transparent 1px); background-size: 42px 42px; -webkit-mask-image: linear-gradient(90deg,transparent,black 58%); mask-image: linear-gradient(90deg,transparent,black 58%); }
.canvas-copy { position: relative; z-index: 2; }
.canvas-copy .eyebrow { color: #2b51cf; }
.canvas-copy h2 { font-size: clamp(52px,6vw,94px); }
.canvas-copy > p:not(.eyebrow) { max-width: 560px; margin-top: 28px; color: #555b66; font-size: 15px; line-height: 1.9; }
.canvas-metrics { display: flex; gap: 34px; margin: 42px 0; }
.canvas-metrics div { min-width: 86px; }
.canvas-metrics strong { display: block; font-family: var(--display); font-size: 30px; font-weight: 540; line-height: 1; }
.canvas-metrics span { display: block; margin-top: 9px; color: #717680; font-size: 10px; letter-spacing: .08em; }
.button-light { align-self: flex-start; border-color: #10131b; background: #10131b; color: #fff; }
.button-light:hover { background: #252936; }

.canvas-demo { position: relative; z-index: 2; width: min(1000px, 68vw); aspect-ratio: 10 / 7; justify-self: end; border: 1px solid rgba(8,10,15,.18); border-radius: 30px; overflow: hidden; background: #f6f7f4; box-shadow: 0 45px 110px rgba(26,35,38,.2); transform-style: preserve-3d; transition: transform .25s ease; }
.canvas-demo::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle,#bec4c4 1px,transparent 1.3px); background-size: 18px 18px; opacity: .65; }
.canvas-toolbar { position: absolute; z-index: 5; top: 18px; left: 50%; display: flex; gap: 4px; padding: 5px; border: 1px solid rgba(0,0,0,.1); border-radius: 13px; background: rgba(255,255,255,.88); box-shadow: 0 8px 26px rgba(0,0,0,.08); transform: translateX(-50%); backdrop-filter: blur(10px); }
.canvas-toolbar span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: #686e77; font-size: 12px; }
.canvas-toolbar .is-active { background: #11141c; color: #fff; }
.canvas-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.canvas-lines path { fill: none; stroke: rgba(60,84,105,.42); stroke-width: 1.2; stroke-dasharray: 6 7; animation: dash 18s linear infinite; }
.canvas-lines circle { fill: var(--accent-2); }
.canvas-node { position: absolute; z-index: 3; border: 1px solid rgba(15,19,29,.13); border-radius: 15px; background: rgba(255,255,255,.92); box-shadow: 0 14px 36px rgba(29,36,44,.12); }
.node-prompt { top: 15%; left: 4%; width: 22%; padding: 15px; }
.node-prompt .node-label { color: #3657c9; }
.node-prompt strong { display: block; margin: 10px 0 14px; font-size: clamp(10px,1vw,14px); line-height: 1.55; }
.node-prompt small, .node-core small { color: #858a92; font-size: 8px; }
.node-core { top: 38%; left: 42%; width: 16%; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 18px 12px; text-align: center; }
.node-core-orb { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(from 120deg,#0d5fff,#4ebcff,#b9eaff,#0d5fff); animation: core-spin 9s linear infinite; }
.node-core-orb i { width: 34px; height: 34px; border-radius: inherit; background: #11141c; box-shadow: inset 0 0 14px rgba(255,255,255,.15); }
@keyframes core-spin { to { transform: rotate(360deg); } }
.node-core span { font-size: 11px; font-weight: 700; }
.node-image { overflow: hidden; padding: 0; }
.node-image img { width: 100%; height: 100%; object-fit: cover; }
.node-image figcaption { position: absolute; right: 8px; bottom: 8px; left: 8px; padding: 7px 8px; border-radius: 8px; background: rgba(4,5,8,.65); color: #fff; font-size: 8px; backdrop-filter: blur(6px); }
.node-image-a { top: 7%; right: 4%; width: 24%; height: 29%; }
.node-image-b { right: 5%; bottom: 8%; width: 24%; height: 26%; }
.canvas-minimap { position: absolute; bottom: 18px; left: 18px; width: 110px; height: 70px; border: 1px solid rgba(0,0,0,.1); border-radius: 9px; background: rgba(255,255,255,.82); }
.canvas-minimap i { position: absolute; inset: 13px 23px; border: 1px solid #1677ff; background: rgba(22,119,255,.09); }
.canvas-minimap span { position: absolute; width: 12px; height: 8px; border-radius: 2px; background: #c3c8ce; }
.canvas-minimap span:nth-child(2) { top: 13px; left: 13px; }.canvas-minimap span:nth-child(3) { right: 12px; top: 28px; }.canvas-minimap span:nth-child(4) { left: 34px; bottom: 10px; }
.canvas-zoom { position: absolute; right: 18px; bottom: 18px; padding: 6px 10px; border: 1px solid rgba(0,0,0,.1); border-radius: 8px; background: rgba(255,255,255,.84); color: #6a7078; font-size: 8px; }

.model-section { min-height: 900px; overflow: hidden; padding: 55px 0 45px; background: #000104; scroll-margin-top: var(--header-h); }
.model-section .section-heading { z-index: 2; margin-bottom: 18px; }
.model-prism {
  --prism-shift-x: 0px;
  --prism-shift-y: 0px;
  position: relative;
  width: min(1600px,100vw);
  aspect-ratio: 2.24;
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
}
.model-prism-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(1.04) contrast(1.03);
  transform: translate3d(var(--prism-shift-x),var(--prism-shift-y),0) scale(1.015);
  transition: transform .7s var(--ease), filter .55s ease;
  user-select: none;
  pointer-events: none;
}
.model-prism:hover .model-prism-art { filter: saturate(1.1) contrast(1.04) brightness(1.06); }
.model-prism-caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.model-note { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 20px; color: var(--muted-2); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.model-note i { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }

.works-section { background: #0a0c12; }
.works-heading { width: var(--page); display: flex; align-items: end; justify-content: space-between; gap: 70px; margin: 0 auto 70px; }
.works-heading h2 { font-size: clamp(54px,7vw,100px); }
.works-heading > p { max-width: 400px; padding-bottom: 6px; color: var(--muted); font-size: 14px; }
.work-grid { width: var(--page); display: grid; grid-template-columns: repeat(12,1fr); grid-auto-rows: minmax(210px, 17vw); gap: 14px; margin: 0 auto; }
.work-card { position: relative; grid-column: span 4; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #11141b; transform-style: preserve-3d; transition: transform .25s ease; }
.work-wide { grid-column: span 8; }
.work-tall { grid-row: span 2; }
.work-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(1.03); transition: transform .9s var(--ease), filter .6s ease; }
.work-card:hover img { transform: scale(1.035); filter: saturate(1) contrast(1.03); }
.work-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 54%,rgba(2,3,6,.78)); pointer-events: none; }
.work-card figcaption { position: absolute; z-index: 2; right: 19px; bottom: 16px; left: 19px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 3px 15px; color: #fff; }
.work-card figcaption span { grid-column: 1; color: rgba(255,255,255,.55); font-size: 8px; letter-spacing: .12em; }
.work-card figcaption strong { grid-column: 1; font-family: var(--display); font-size: 18px; font-weight: 520; }
.work-card figcaption i { grid-column: 2; grid-row: 1 / 3; align-self: center; color: rgba(255,255,255,.45); font-family: var(--display); font-size: 10px; font-style: normal; }

.final-cta { position: relative; min-height: 900px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; padding: 150px 24px; background: radial-gradient(circle at 50% 46%,rgba(22,119,255,.25),transparent 27%),radial-gradient(circle at 46% 51%,rgba(78,188,255,.1),transparent 33%),#020711; text-align: center; }
.final-lines { position: absolute; inset: 0; opacity: .5; background: repeating-radial-gradient(ellipse at 50% 55%,transparent 0,transparent 55px,rgba(255,255,255,.05) 56px,transparent 57px); transform: scale(1.5,.7); animation: lines-breathe 7s ease-in-out infinite alternate; }
.final-lines, .final-word { pointer-events: none; }
@keyframes lines-breathe { to { transform: scale(1.65,.8); opacity: .22; } }
.final-kicker { position: relative; color: var(--accent); font-size: 9px; font-weight: 700; letter-spacing: .23em; }
.final-cta h2 { position: relative; margin: 30px 0 22px; font-family: var(--display); font-size: clamp(74px,11vw,168px); font-weight: 580; line-height: .82; letter-spacing: -.075em; }
.final-cta h2 span { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.78); }
#final-title .final-title-solid,
#final-title.video-text-ready > .video-text-source .final-title-solid { position: relative; z-index: 2; color: #fff !important; -webkit-text-fill-color: #fff !important; -webkit-text-stroke: 0 transparent !important; }
.final-cta > p { position: relative; color: var(--muted); font-size: 15px; }
.button-large { position: relative; min-height: 62px; margin-top: 38px; padding-inline: 30px; }
.final-word { position: absolute; right: 0; bottom: -5vw; left: 0; color: rgba(255,255,255,.025); font-family: var(--display); font-size: 21vw; font-weight: 700; line-height: 1; letter-spacing: -.08em; white-space: nowrap; }

.site-footer { min-height: 150px; width: var(--page); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; margin: 0 auto; border-top: 1px solid var(--line); color: var(--muted); }
.footer-brand { display: flex; align-items: center; }
.footer-brand-logo {
  display: block;
  width: 104px;
  height: 68px;
  object-fit: contain;
  object-position: left center;
}
.footer-links { display: flex; gap: 28px; font-size: 10px; }
.footer-links a { transition: color .25s ease; }
.footer-links a:hover { color: var(--accent); }
.site-footer > p { justify-self: end; font-size: 9px; }
.footer-legal { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.footer-legal a { transition: color .25s ease; }
.footer-legal a:hover { color: var(--accent); }

/* Magic UI Cool Mode, adapted for the site's dependency-free runtime. */
.cool-mode-particle {
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: var(--particle-size, 7px);
  height: var(--particle-size, 7px);
  border-radius: 999px;
  background: var(--particle-color, #4ebcff);
  box-shadow: 0 0 7px var(--particle-color, #4ebcff), 0 0 22px rgba(78,188,255,.92), 0 0 42px rgba(22,119,255,.46);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(var(--particle-x), var(--particle-y), 0) rotate(var(--particle-rotation)) scale(.25);
  animation: cool-mode-burst var(--particle-duration, 720ms) cubic-bezier(.16,.74,.2,1) forwards;
  will-change: transform, opacity, filter;
}
.cool-mode-particle.is-streak {
  width: calc(var(--particle-size, 7px) * 3.8);
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--particle-color, #4ebcff));
  transform-origin: right center;
}
.cool-mode-particle.is-hot { background: #effbff; box-shadow: 0 0 8px #fff, 0 0 28px #4ebcff, 0 0 48px rgba(22,119,255,.7); }
.cool-mode-flash,
.cool-mode-wave {
  position: fixed;
  z-index: 1999;
  left: var(--impact-x);
  top: var(--impact-y);
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity, filter;
}
.cool-mode-flash {
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, rgba(239,251,255,.96) 0 3%, rgba(78,188,255,.52) 10%, rgba(22,119,255,.2) 32%, transparent 70%);
  mix-blend-mode: screen;
  animation: cool-mode-flash .58s ease-out forwards;
}
.cool-mode-wave {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(139,213,255,.9);
  box-shadow: 0 0 16px rgba(78,188,255,.68), inset 0 0 12px rgba(78,188,255,.24);
  animation: cool-mode-wave .82s cubic-bezier(.15,.72,.18,1) forwards;
}
.cool-mode-wave.wave-2 { border-width: 1px; animation-delay: .08s; }
@keyframes cool-mode-flash {
  0% { opacity: 0; transform: translate(-50%,-50%) scale(.1); filter: blur(4px); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(1.35); filter: blur(11px); }
}
@keyframes cool-mode-wave {
  0% { opacity: 1; transform: translate(-50%,-50%) scale(.22); }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(7); }
}
@keyframes cool-mode-burst {
  0% { opacity: 0; transform: translate3d(var(--particle-x), var(--particle-y), 0) rotate(var(--particle-rotation)) scale(.2); }
  12% { opacity: 1; }
  72% { opacity: .82; }
  100% { opacity: 0; filter: blur(1.6px); transform: translate3d(calc(var(--particle-x) + var(--particle-dx)), calc(var(--particle-y) + var(--particle-dy)), 0) rotate(calc(var(--particle-rotation) + 38deg)) scale(1); }
}

.reveal { opacity: 1; }
.js .reveal { opacity: 0; translate: 0 30px; transition: opacity .85s ease, translate .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; translate: 0 0; }

@media (max-width: 1180px) {
  :root { --page: min(100% - 56px, 1120px); }
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { position: absolute; left: 50%; transform: translateX(-50%); }
  .header-cta { display: none; }
  .story-shell { grid-template-columns: minmax(0,1.15fr) minmax(310px,.85fr); gap: 55px; }
  .canvas-section { grid-template-columns: 1fr; padding-inline: max(28px,calc((100vw - 1120px)/2)); }
  .canvas-copy { max-width: 760px; padding-top: 20px; }
  .canvas-demo { width: 100%; max-width: 1050px; justify-self: center; }
}

@media (max-width: 900px) {
  :root { --page: calc(100vw - 40px); --header-h: 68px; }
  .pointer-glow { display: none; }
  .site-header { grid-template-columns: 1fr auto; padding: 0 20px; }
  .nav-toggle { position: relative; z-index: 4; width: 42px; height: 42px; display: block; justify-self: end; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.045); cursor: pointer; }
  .nav-toggle span { position: absolute; left: 12px; width: 17px; height: 1px; background: #fff; transition: transform .3s ease, top .3s ease; }
  .nav-toggle span:first-child { top: 16px; }.nav-toggle span:last-child { top: 24px; }
  .nav-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }.nav-toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }
  .site-nav { position: fixed; inset: 0 0 auto; width: 100vw; height: 100svh; min-height: 100svh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 25px; padding: 90px 32px; background: rgba(2,7,17,.97); opacity: 0; visibility: hidden; transform: none; transition: opacity .3s ease, visibility .3s ease; }
  .site-nav::before { content: "HUICROSS"; position: absolute; right: -4vw; bottom: 1vh; color: rgba(255,255,255,.035); font-family: var(--display); font-size: 21vw; font-weight: 700; transform: rotate(-90deg); transform-origin: right bottom; }
  .site-nav-item { font-family: var(--display); font-size: clamp(30px,8vw,55px); font-weight: 500; letter-spacing: -.04em; }
  .nav-open .site-nav { opacity: 1; visibility: visible; }
  .hero-content { padding-top: clamp(225px, 38svh, 335px); padding-bottom: 96px; }
  .hero-title { font-size: clamp(46px, 6.8vw, 58px); }
  .section { padding: 110px 0; }
  .studio-window { height: min(68vw,610px); min-height: 470px; }
  .story-steps { display: block; border: 0; border-radius: 0; overflow: visible; }
  .story-step, .story-step:nth-child(even) { min-height: 0; grid-template-columns: 1fr; gap: 30px; padding: 72px 0; border: 0; }
  .story-step .story-media, .story-step:nth-child(even) .story-media { order: 1; }
  .story-step .story-copy, .story-step:nth-child(even) .story-copy { order: 2; }
  .story-step::before { display: none; }
  .story-step h3 { font-size: 31px; }
  .story-step > p:not(.step-kicker) { font-size: 13px; }
  .canvas-section { min-height: 0; padding-top: 110px; padding-bottom: 110px; }
  .canvas-demo { aspect-ratio: 1.18; }
  .node-prompt { width: 31%; }.node-core { left: 40%; width: 21%; }.node-image-a,.node-image-b { width: 28%; }
  .model-section { min-height: 900px; }
  .model-prism { width: min(1480px,112vw); margin-left: -6vw; }
  .work-grid { grid-template-columns: repeat(2,1fr); grid-auto-rows: 300px; }
  .work-card, .work-wide { grid-column: span 1; }
  .work-tall { grid-row: span 2; }
  .works-heading { align-items: flex-start; flex-direction: column; gap: 28px; }
  .site-footer { grid-template-columns: 1fr auto; padding: 25px 0; }
  .footer-links { display: none; }
}

@media (min-width: 768px) and (max-width: 900px) {
  .site-header { grid-template-columns: auto 1fr auto; gap: 20px; }
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    inset: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .site-nav::before { display: none; }
  .site-nav-item { font-family: var(--body); font-size: 10px; font-weight: 500; letter-spacing: .01em; }
  .header-cta { display: inline-flex; height: 38px; padding-inline: 14px; border-color: rgba(210, 232, 248, .16); border-radius: 999px; background: rgba(6,10,16,.3); font-size: 10px; }
}

@media (max-width: 620px) {
  :root { --page: calc(100vw - 28px); }
  .brand-logo { width: 94px; height: 62px; }
  .hero { min-height: max(700px,100svh); }
  .hero-content { width: calc(100% - 28px); min-height: max(700px,100svh); padding-top: clamp(250px, 37svh, 315px); padding-bottom: 120px; }
  .hero-kicker { gap: 7px; min-height: 28px; margin-bottom: 18px; padding-inline: 11px; font-size: 9px; }
  .hero-title { font-size: clamp(43px, 13.2vw, 58px); line-height: 1.02; }
  .hero-lead br { display: none; }
  .hero-lead { max-width: 340px; margin-top: 19px; font-size: 12px; line-height: 1.65; }
  .hero-actions { width: min(100%, 330px); margin-top: 23px; }
  .hero-actions .button { flex: 1; min-width: 0; padding-inline: 14px; }
  .hero-actions .button-ghost { display: none; }
  .section-heading { margin-bottom: 58px; }
  .section-heading h2, .canvas-copy h2, .works-heading h2 { font-size: clamp(43px,13vw,66px); }
  .section-heading > p:last-child { font-size: 14px; }
  .studio-window { height: 490px; min-height: 490px; border-radius: 19px; }
  .prompt-workbench { padding: 22px; }
  .prompt-note { width: 94%; padding: 18px; }
  .prompt-flow { right: 4%; bottom: 17%; left: 4%; transform: scale(.88); }
  .flow-node { width: 54px; height: 54px; font-size: 9px; }
  .generating-line { right: 20px; bottom: 22px; left: 20px; }
  .character-lab > img { object-position: 35% center; }
  .character-hud { right: 14px; bottom: 14px; width: 165px; }
  .video-overlay { align-items: flex-start; flex-direction: column; }
  .video-overlay strong { font-size: 18px; text-align: left; }
  .asset-lab { grid-template-columns: 45px 1fr; }
  .asset-grid { grid-template-columns: 1fr; padding: 10px; }
  .asset-grid figure:first-child { grid-row: auto; }
  .asset-grid figure:last-child { display: none; }
  .story-step { padding: 34px 25px; }
  .step-number { margin-bottom: 22px; }
  .canvas-section { padding-inline: 14px; }
  .canvas-copy { padding-inline: 4px; }
  .canvas-metrics { gap: 18px; }
  .canvas-metrics strong { font-size: 24px; }
  .canvas-demo { aspect-ratio: .9; border-radius: 21px; }
  .node-prompt { top: 13%; left: 5%; width: 48%; }
  .node-core { top: 43%; left: 37%; width: 31%; }
  .node-image-a { top: 11%; right: 4%; width: 38%; height: 25%; }
  .node-image-b { right: 5%; bottom: 10%; width: 45%; height: 27%; }
  .canvas-lines { opacity: .6; }
  .model-section { min-height: 760px; padding: 90px 0 70px; }
  .model-section .section-heading { margin-bottom: 24px; }
  #model-title.video-text-heading > .video-text-source,
  #model-title.video-text-heading > .video-text-source * { color: #f7f8fb !important; -webkit-text-fill-color: #f7f8fb !important; -webkit-text-stroke-color: transparent !important; }
  #model-title .video-text-svg,
  #model-title .video-text-canvas { display: none; }
  .model-prism { width: 100%; aspect-ratio: .92; margin: -12px auto -52px; }
  .model-prism-art { width: 100%; max-width: none; object-position: 42% 50%; transform: translate3d(var(--prism-shift-x),var(--prism-shift-y),0) scale(1.01); }
  .model-note { flex-wrap: wrap; gap: 8px 11px; margin: 24px auto 0; padding: 0 28px; font-size: 7px; }
  .work-grid { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .work-card, .work-wide { grid-column: span 1; }
  .work-tall { grid-row: span 1; }
  .works-heading > p { font-size: 13px; }
  .final-cta { min-height: 720px; }
  .final-cta h2 { font-size: clamp(70px,22vw,105px); }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-self: center; }
  .site-footer > p { justify-self: center; }
  .footer-legal { align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .pointer-glow { display: none; }
  .hero-grain { opacity: .025; }
  .js .reveal { opacity: 1; translate: none; }
  .cool-mode-particle { animation-duration: 680ms !important; }
  .cool-mode-flash { animation-duration: 420ms !important; }
  .cool-mode-wave { animation-duration: 620ms !important; }
  .story-media { opacity: 0; filter: blur(9px); transform: none; transition-duration: .34s !important; }
  .story-media.is-in-view { opacity: 1; filter: blur(0); }
  .morphing-title.is-morphing .morph-title-layer.is-current,
  .morphing-title.is-morphing .morph-title-layer.is-next { animation-duration: .58s !important; }
  .text-3d-char { transition-duration: .42s !important; }
  .video-text-frame video { transform: none; }
}
