/* GGACRUX: deep space, one blue-violet star of light. Sora (OFL), self-hosted. */
@font-face { font-family: "Sora"; src: url("fonts/sora.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #05060a; --bg-2: #0a0c14; --raise: #0d0f18; --line: rgb(236 238 246 / .1);
  --ink: #eceef6; --muted: #a3a8bf; --star: #a3a9ff; --core: #e3e6ff; --deep: #2d2f9c;
  --r: 20px; --gut: clamp(20px, 5vw, 80px); --max: 1280px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 400 17px/1.6 "Sora", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.025em; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--star); outline-offset: 3px; border-radius: 4px; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

.eyebrow { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--star); font-weight: 500; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font: 500 16px/1 "Sora", sans-serif; text-decoration: none; border: 1px solid var(--ink); cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background .3s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 6px rgb(163 169 255 / .12), 0 10px 40px rgb(163 169 255 / .35); }
.btn:active { transform: scale(.97); }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgb(236 238 246 / .28); }
.btn--ghost:hover { background: rgb(236 238 246 / .06); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { min-height: 60px; padding: 0 36px; font-size: 18px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--star); text-decoration: none; font-weight: 500; min-height: 44px; }
.arrow::after { content: "→"; transition: transform .25s var(--ease); }
.arrow:hover::after { transform: translateX(4px); }

/* header */
.bar { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 32px; height: 72px; padding: 0 var(--gut);
  background: rgb(5 6 10 / .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgb(236 238 246 / .06); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 500; letter-spacing: .28em; font-size: 15px; }
.brand img { height: 26px; width: auto; }
.links { display: flex; gap: 28px; margin-left: auto; }
.links a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .2s; }
.links a:hover { color: var(--ink); }
@media (max-width: 760px) { .links { display: none; } .bar .btn { margin-left: auto; } .brand span { letter-spacing: .2em; } }

/* 1. hero: pinned scroll scene */
.hero { height: 340vh; position: relative; }
.hero__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__a, .hero__b { position: absolute; left: var(--gut); right: var(--gut); z-index: 3; }
.hero__a { bottom: clamp(48px, 10vh, 120px); text-align: center; }
.wordmark { font-weight: 500; font-size: clamp(48px, 11vw, 168px); letter-spacing: .14em; margin-right: -.14em; line-height: 1; margin-top: 16px;
  background: linear-gradient(180deg, #fff 30%, #b8bcff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin-top: 20px; font-size: clamp(17px, 1.6vw, 22px); color: var(--muted); }
.hint { margin-top: 40px; display: inline-flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.hint span { width: 1px; height: 40px; background: linear-gradient(transparent, var(--star)); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1 } 70% { transform: scaleY(1); opacity: 1 } 100% { transform: scaleY(1); opacity: 0 } }
.hero__b { bottom: clamp(40px, 8vh, 96px); max-width: 560px; opacity: 0; transform: translateY(24px); pointer-events: none; }
.hero__b h2 { font-size: clamp(32px, 4.4vw, 60px); }
.hero__b p { margin: 16px 0 28px; color: var(--muted); font-size: 18px; }
.hero__b.is-on { pointer-events: auto; }
.hero__icons { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hstar { position: absolute; left: 0; top: 0; display: grid; justify-items: center; gap: 6px; opacity: 0; transform: translate(-50%, -50%) scale(.6); will-change: transform, opacity; text-align: center; }
.hstar img, .hstar .tile3d { width: clamp(44px, 4.6vw, 68px); height: clamp(44px, 4.6vw, 68px); border-radius: 24%; box-shadow: 0 0 0 1px rgb(255 255 255 / .14), 0 0 48px rgb(163 169 255 / .45); }
.hstar b { font-size: 14px; font-weight: 500; white-space: nowrap; }
.hstar i { font-style: normal; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--star); }
.tile3d { display: grid; place-items: center; background: #1a1410; }
.tile3d--lg { width: 56px; height: 56px; border-radius: 14px; }
@media (max-width: 760px) { .hstar b { display: none; } .hero__b { bottom: 32px; } .hero__b p { font-size: 16px; } }

/* section heads */
section { position: relative; }
.sec-head { width: min(100% - 2 * var(--gut), var(--max)); margin: 0 auto; padding: clamp(96px, 14vh, 160px) 0 56px; }
.sec-head h2 { font-size: clamp(34px, 4.6vw, 64px); max-width: 18ch; margin-top: 20px; }
.sec-sub { margin-top: 24px; max-width: 62ch; color: var(--muted); font-size: 18px; }

/* 2. products: stacking cards */
.stack { width: min(100% - 2 * var(--gut), var(--max)); margin: 0 auto; padding-bottom: 12vh; }
.pcard { position: sticky; top: 96px; display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; min-height: min(78vh, 720px);
  margin-bottom: 8vh; padding: clamp(28px, 4vw, 56px); border-radius: 28px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 85% 10%, color-mix(in oklab, var(--glow) 38%, transparent), transparent 60%), linear-gradient(180deg, #10121c, #090a10);
  box-shadow: 0 0 0 1px var(--line), 0 -30px 80px rgb(0 0 0 / .6); }
.pcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(1px 1px at 20% 30%, #fff8, transparent), radial-gradient(1px 1px at 70% 80%, #fff6, transparent), radial-gradient(1px 1px at 40% 70%, #fff5, transparent), radial-gradient(1.5px 1.5px at 90% 40%, #fff7, transparent); }
.pcard__id { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pcard__id img { border-radius: 14px; box-shadow: 0 0 40px color-mix(in oklab, var(--glow) 70%, transparent); }
.tag { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid; font-weight: 500; }
.tag--live { color: #8df0b4; border-color: #8df0b455; }
.tag--beta { color: #b9bdff; border-color: #b9bdff55; }
.tag--test { color: #ffc28a; border-color: #ffc28a55; }
.star-name { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.pcard h3 { font-size: clamp(40px, 5vw, 72px); margin-top: 28px; letter-spacing: -0.035em; }
.pcard__what { margin-top: 12px; font-size: 20px; color: var(--ink); }
.facts { list-style: none; margin: 24px 0 20px; padding: 0; display: grid; gap: 10px; }
.facts li { padding-left: 22px; position: relative; color: var(--muted); }
.facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--glow); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); filter: brightness(1.6); }
.pcard__shot { border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgb(0 0 0 / .5); transform: perspective(1400px) rotateY(-6deg); transition: transform .8s var(--ease); }
.pcard:hover .pcard__shot { transform: perspective(1400px) rotateY(0); }
.pcard__shot--phone { width: min(300px, 70%); justify-self: center; border-radius: 36px; max-height: 64vh; }
.pcard__shot--phone img { width: 100%; }
@media (max-width: 900px) {
  .pcard { grid-template-columns: 1fr; gap: 28px; position: relative; top: auto; min-height: auto; align-content: start; margin-bottom: 20px; }
  .pcard__shot { transform: none; }
  .pcard__shot--phone { max-height: 300px; width: 60%; }
  .pcard h3 { margin-top: 18px; }
}

/* 3. services */
.svc-grid { width: min(100% - 2 * var(--gut), var(--max)); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc { padding: 24px 24px 28px; border-radius: var(--r); background: var(--raise); box-shadow: 0 0 0 1px var(--line); display: grid; align-content: start; gap: 12px;
  transition: transform .4s var(--ease), box-shadow .4s; }
.svc:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgb(163 169 255 / .35), 0 20px 60px rgb(45 47 156 / .35); }
.svc h3 { font-size: 22px; margin-top: 8px; }
.svc p { color: var(--muted); }
.svc__shot { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #000; }
.svc__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.svc:hover .svc__shot img { transform: scale(1.03); }
.flow { aspect-ratio: 16 / 10; border-radius: 12px; background: radial-gradient(80% 80% at 50% 50%, #161a33, #07080d); display: flex; align-items: center; justify-content: center; gap: 0; padding: 14px; font-size: 12px; }
.node { padding: 8px 10px; border-radius: 10px; background: #1b1e30; box-shadow: 0 0 0 1px rgb(163 169 255 / .25); white-space: nowrap; }
.node em { display: block; font-style: normal; color: var(--muted); font-size: 11px; }
.node--core { background: var(--star); color: var(--bg); font-weight: 600; box-shadow: 0 0 30px rgb(163 169 255 / .6); }
.wire { width: 22px; height: 1px; background: linear-gradient(90deg, transparent, var(--star), transparent); background-size: 200% 100%; animation: flow 1.6s linear infinite; }
@keyframes flow { from { background-position: 100% 0 } to { background-position: -100% 0 } }
.fan { display: grid; gap: 8px; }
@media (max-width: 1000px) { .svc-grid { grid-template-columns: 1fr; } .flow { font-size: 11px; } }

/* 4. labs */
.labs { background: radial-gradient(60% 50% at 50% 0%, #11143a 0%, transparent 70%); }
.lab { width: min(100% - 2 * var(--gut), var(--max)); margin: 0 auto; display: grid; grid-template-columns: 8fr 4fr; gap: 20px; }
.lab__world { position: relative; border-radius: var(--r); overflow: hidden; background: #070912; box-shadow: 0 0 0 1px var(--line); min-height: 520px; }
#world { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: manipulation; }
.lab__hud { position: absolute; left: 16px; top: 16px; display: flex; gap: 8px; font-size: 13px; }
.lab__hud span { padding: 6px 12px; border-radius: 999px; background: rgb(5 6 10 / .7); box-shadow: 0 0 0 1px var(--line); }
.lab__tip { position: absolute; left: 16px; bottom: 14px; font-size: 13px; color: var(--muted); }
.lab__panel { padding: 24px; border-radius: var(--r); background: var(--raise); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 16px; align-content: start; }
.lab__panel h3 { font-size: 20px; }
.lab__panel label { display: grid; grid-template-columns: 1fr auto; gap: 6px; font-size: 14px; color: var(--muted); }
.lab__panel output { color: var(--ink); font-variant-numeric: tabular-nums; }
.lab__panel input[type=range] { grid-column: 1 / -1; accent-color: var(--star); width: 100%; height: 28px; }
.legend { display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: 0; }
.maker { padding-top: 12px; border-top: 1px solid var(--line); }
.maker__q { font-size: 15px; font-weight: 500; }
.maker__bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; margin: 12px 0 8px; background: #1a1c28; }
.maker__bar span { transition: width .6s var(--ease); }
#m-you { background: var(--ink); width: 0; }
#m-agents { background: var(--star); width: 0; }
.maker__nums { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.maker__nums b { color: var(--ink); font-weight: 500; }
.research { width: min(100% - 2 * var(--gut), var(--max)); margin: 64px auto 0; padding-bottom: 120px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.research div { border-top: 1px solid rgb(163 169 255 / .35); padding-top: 20px; }
.research h3 { font-size: 18px; }
.research p { margin-top: 10px; color: var(--muted); font-size: 15px; }
@media (max-width: 1000px) { .lab { grid-template-columns: 1fr; } .lab__world { min-height: 380px; } .research { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .research { grid-template-columns: 1fr; } }

/* 5. the name */
.name { padding: 120px 0; }
.name__grid { width: min(100% - 2 * var(--gut), var(--max)); margin: 0 auto; display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: end; }
.name h2 { font-size: clamp(34px, 4.6vw, 64px); margin: 20px 0 20px; }
.name p { color: var(--muted); max-width: 46ch; }
.crux { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.crux li { padding: 22px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.crux b { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--star); font-weight: 500; }
.crux li:first-child b { color: #ffb36b; }
.crux span { font-size: 22px; }
.crux em { font-style: normal; color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .name__grid { grid-template-columns: 1fr; gap: 40px; } }

/* 6. end scene */
.end { position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; overflow: hidden; }
.end__sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.end__inner { position: relative; z-index: 2; align-self: end; text-align: center; padding: 0 var(--gut) 72px; display: grid; justify-items: center; gap: 20px; }
.end h2 { font-size: clamp(40px, 7vw, 104px); letter-spacing: -0.035em; }
.end__inner p { color: var(--muted); font-size: 18px; margin-bottom: 12px; }
.end__foot { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 28px var(--gut) calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgb(5 6 10 / .6); font-size: 14px; color: var(--muted); }
.end__foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.end__foot nav a, .end__foot p a { color: var(--muted); text-decoration: none; }
.end__foot nav a:hover { color: var(--ink); }
.end__foot nav a { display: inline-flex; align-items: center; min-height: 44px; }
.end__foot p { margin-left: auto; }
@media (max-width: 760px) { .end__foot p { margin-left: 0; } }

/* films, when the owner's videos are added */
.film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }

@media (prefers-reduced-motion: reduce) {
  .hint span, .wire { animation: none; }
  .pcard__shot { transform: none; }
}
