/* Novva Inc. — the studio. (c) Novva Inc. */
@font-face { font-family: Manrope; src: url(../fonts/manrope.woff2) format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
:root {
  --ink: #fbf6ef; --ink-2: #d9ccbd; --ink-3: #a8998a; --night: #120d0a;
  --glass: rgba(24, 18, 14, .55); --glass-b: rgba(255, 236, 214, .14);
  --violet: #8b5cf6; --magenta: #e04fd8; --blue: #4f7cf7; --grad: linear-gradient(100deg, #f472b6, #a855f7 45%, #6366f1 80%, #3b82f6);
  --ui: #15121c; --ui-2: #625a6e; --line: #ebe7f0; --card: #f7f5fa;
  --ease: cubic-bezier(.22, 1, .36, 1);
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; min-width: 0; }
html, body { margin: 0; height: 100%; background: var(--night); color: var(--ink); overflow: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.fill { fill: currentColor; stroke: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 2px; }

#studio { position: fixed; inset: 0; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(10, 6, 4, .5)), linear-gradient(20deg, rgba(10, 6, 4, .78) 8%, rgba(10, 6, 4, .35) 30%, transparent 48%), linear-gradient(rgba(10, 6, 4, .55), transparent 14%); transition: opacity .6s; }
.focused .vignette, .xray .vignette { opacity: 0; }

/* top bar */
.topbar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 18px; padding: 16px 22px; z-index: 5; transition: opacity .4s, transform .5s var(--ease); animation: rise .9s .2s var(--ease) both; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; flex: none; box-shadow: 0 0 22px rgba(168,85,247,.55); transition: transform .5s cubic-bezier(.2,1.4,.4,1); } .brand:hover img { transform: rotate(-12deg) scale(1.06); }
.brand b { display: block; font-size: 16px; letter-spacing: -.02em; } .brand small { display: block; font-size: 11px; color: var(--ink-3); }
.links { display: flex; gap: 2px; margin: 0 auto; padding: 4px; border-radius: 99px; background: var(--glass); border: 1px solid var(--glass-b); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.links button, .links a { background: none; border: 0; padding: 7px 14px; border-radius: 99px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; transition: background .2s, color .2s; }
.links button:hover, .links a:hover { background: rgba(255,255,255,.1); color: var(--ink); }
.actions { display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--glass-b); background: var(--glass); display: grid; place-items: center; backdrop-filter: blur(12px); }
#muteBtn .off { display: none; } .muted #muteBtn .on { display: none; } .muted #muteBtn .off { display: block; }
.cta { height: 40px; padding: 0 18px; border: 0; border-radius: 99px; background: var(--grad); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 8px 30px rgba(168,85,247,.45); transition: transform .25s var(--ease), box-shadow .25s; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(168,85,247,.6); }

/* hero */
.hero { position: absolute; left: clamp(20px, 4vw, 64px); bottom: clamp(120px, 17vh, 170px); width: min(500px, 90vw); pointer-events: none; transition: opacity .45s, transform .6s var(--ease); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 0 0 14px; animation: rise .9s .3s var(--ease) both; }
.live { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(52,211,153,0); } }
.hero h1 { font-size: clamp(36px, 4.2vw, 60px); line-height: 1.02; letter-spacing: -.045em; margin: 0 0 16px; font-weight: 800; text-wrap: balance; text-shadow: 0 4px 40px rgba(0,0,0,.5); animation: rise 1s .4s var(--ease) both; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(15px, 1.4vw, 18px); line-height: 1.55; color: var(--ink-2); margin: 0; max-width: 440px; text-shadow: 0 2px 20px rgba(0,0,0,.6); animation: rise 1s .55s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } }
.focused .hero, .focused .topbar, .focused .dock, .focused .beacons, .xray .hero, .xray .dock, .xray .topbar .links, .xray .beacons { opacity: 0; pointer-events: none !important; }
.focused .hero { transform: translateY(-20px); }

/* hotspot beacons */
.beacons button { position: fixed; left: 0; top: 0; width: 40px; height: 40px; margin: -20px 0 0 -20px; cursor: pointer; touch-action: none; border-radius: 50%; border: 0; background: none; padding: 0; z-index: 3; animation: pop .5s var(--ease) both; }
.beacons button::before { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(168,85,247,.45), 0 0 18px rgba(196,181,253,.9); transition: transform .25s var(--ease); }
.beacons button::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.7); animation: ring 2.2s infinite; }
@keyframes ring { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.beacons button span { position: absolute; left: 50%; bottom: 38px; transform: translate(-50%, 6px); white-space: nowrap; background: rgba(20,15,12,.86); color: #fff; font-size: 12.5px; font-weight: 700; padding: 6px 11px; border-radius: 9px; opacity: 0; pointer-events: none; transition: .2s var(--ease); }
.beacons button span small { color: #c4b5fd; font-weight: 500; margin-left: 4px; }
.beacons button:hover::before, .beacons button.near::before { transform: scale(1.35); }
.beacons button:hover span, .beacons button:focus-visible span, .beacons button.near span { opacity: 1; transform: translate(-50%, 0); }
@keyframes pop { from { transform: scale(0); } }
.tip { position: fixed; left: 0; top: 0; pointer-events: none; padding: 7px 12px; border-radius: 10px; background: rgba(20,15,12,.88); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; opacity: 0; transform: translate(-50%, -150%); transition: opacity .15s; z-index: 6; }
.tip.on { opacity: 1; } .tip small { color: #c4b5fd; font-weight: 500; }

/* phones: look-around controls */
.pan-btn, .pan-hint { display: none; }
@media (max-aspect-ratio: 1/1) {
  .pan-btn { display: grid; place-items: center; position: absolute; top: 58%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 1px solid var(--glass-b); background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; font-size: 26px; line-height: 1; z-index: 4; transition: opacity .3s; padding: 0 0 3px; }
  .pan-btn.left { left: 8px; } .pan-btn.right { right: 8px; }
  .pan-btn.end { opacity: .25; pointer-events: none; }
  .pan-hint { display: flex; align-items: center; gap: 10px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(20,15,12,.78); color: #fff; font-size: 13px; font-weight: 700; padding: 9px 14px; border-radius: 99px; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .5s; white-space: nowrap; }
  .pan-hint span { font-size: 18px; animation: nudgeX 1.2s infinite ease-in-out; } .pan-hint span:last-child { animation-direction: reverse; }
  .pan-hint.on { opacity: 1; }
  .focused .pan-btn, .xray .pan-btn, .focused .pan-hint, .xray .pan-hint { opacity: 0; pointer-events: none; }
}
@keyframes nudgeX { 50% { transform: translateX(-4px); } }

/* bottom dock */
.dock { position: absolute; left: 50%; bottom: clamp(14px, 3.5vh, 34px); transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; transition: opacity .4s; animation: rise 1s .7s var(--ease) both; width: max-content; max-width: 96vw; z-index: 4; }
.dock .row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.dock .row:first-child { padding: 5px; border-radius: 99px; background: var(--glass); border: 1px solid var(--glass-b); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.dock .row:first-child button { display: flex; align-items: center; gap: 7px; border: 0; background: none; padding: 9px 16px; border-radius: 99px; font-size: 14px; transition: background .2s; }
.dock .row:first-child button:hover { background: rgba(255,255,255,.12); }
.dock .row:first-child button span { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: rgba(196,181,253,.2); color: #ddd6fe; }
.dock .sub button, .dock .sub a { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--ink-2); font-size: 13px; font-weight: 600; padding: 6px 11px; border-radius: 99px; text-decoration: none; text-shadow: 0 1px 10px rgba(0,0,0,.6); transition: color .2s, background .2s; }
.dock .sub button:hover, .dock .sub a:hover { color: #fff; background: rgba(255,255,255,.08); }
.dock .sub svg { width: 15px; height: 15px; }


/* ---------- panels ---------- */
.panel-wrap { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 74px 22px 22px; animation: fade .4s; }
@keyframes fade { from { opacity: 0; } }
.back { position: fixed; top: 18px; left: 18px; z-index: 25; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border: 0; border-radius: 99px; background: #fff; color: #111; font-weight: 600; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.3); transition: transform .2s var(--ease); }
.back:hover { transform: translateX(-3px); }
.esc { position: fixed; top: 26px; right: 24px; z-index: 25; font: 600 11px Manrope, sans-serif; background: rgba(255,255,255,.85); color: #444; padding: 4px 8px; border-radius: 6px; }
.panel { width: min(1180px, 100%); max-height: calc(100vh - 100px); overflow: auto; background: #fff; color: var(--ui); border-radius: 22px; box-shadow: 0 40px 120px rgba(0,0,0,.55); animation: panelIn .55s var(--ease); scrollbar-width: thin; position: relative; }
@keyframes panelIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.panel.narrow { width: min(760px, 100%); }
.p-head { padding: 34px 40px 10px; display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.p-head small { color: var(--violet); font-weight: 700; font-size: 12.5px; letter-spacing: .02em; }
.p-head h2 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.04em; line-height: 1.05; margin: 6px 0 8px; text-wrap: balance; }
.p-head p { color: var(--ui-2); margin: 0; max-width: 620px; line-height: 1.55; font-size: 15.5px; }
.p-body { padding: 18px 40px 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; }
.chips button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 7px 12px; font-size: 13px; font-weight: 600; color: #3b3446; transition: background .2s; }
.chips button[style]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }
.chips button small { color: #9b93a6; font-weight: 600; } .chips button.on { background: var(--ui); color: #fff; border-color: var(--ui); } .chips button.on small { color: #aaa; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.search { flex: 1; max-width: 320px; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); font: inherit; font-size: 15px; outline: none; }
.search:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139,92,246,.15); }
.seg { display: inline-flex; background: #f1eff5; padding: 4px; border-radius: 12px; }
.seg button { border: 0; background: none; padding: 8px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: #5b5468; }
.seg button.on { background: #fff; color: var(--ui); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 20px; }
.card { border: 0; background: none; padding: 0; text-align: left; }
.card .im { aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--c, #eee); box-shadow: 0 0 0 1px rgba(0,0,0,.06); transition: transform .35s var(--ease), box-shadow .35s; }
.card .im.wide { aspect-ratio: 16 / 10; }
.card img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.card:hover .im { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(40,20,70,.18); }
.card strong { display: block; margin-top: 10px; font-size: 14.5px; } .card small { color: var(--ui-2); font-size: 12.5px; display: block; }
.card em { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: 11.5px; color: #5b5468; margin-top: 4px; } .card em::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dot); }
.empty { color: var(--ui-2); text-align: center; padding: 40px 0; }
.detail { display: grid; grid-template-columns: minmax(240px, 400px) 1fr; gap: 34px; align-items: start; }
.detail img { width: 100%; border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.18); display: block; }
.detail h3 { font-size: 32px; letter-spacing: -.03em; margin: 6px 0 4px; } .detail .cat { color: var(--ui-2); font-weight: 600; margin: 0; }
.detail .quote { font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin: 16px 0 10px; line-height: 1.35; }
.detail p.desc, .detail ul { color: #4a4356; line-height: 1.65; font-size: 15px; } .detail ul { padding-left: 18px; }
.ind { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #4a4356; } .ind::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; align-items: center; }
.solid, .ghost { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 18px; border-radius: 99px; font-size: 14px; font-weight: 700; text-decoration: none; border: 1px solid transparent; transition: transform .2s var(--ease), background .2s; }
.solid { background: var(--ui); color: #fff; } .solid.grad { background: var(--grad); } .solid:hover { transform: translateY(-2px); }
.ghost { background: #fff; color: var(--ui); border-color: var(--line); } .ghost:hover { background: var(--card); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); margin-top: 26px; padding-top: 16px; } .pager .ghost { height: 36px; font-size: 13px; }
.backlink { border: 0; background: none; color: var(--violet); font-weight: 700; padding: 0; margin-bottom: 14px; display: inline-flex; gap: 6px; align-items: center; }

/* services */
.svc { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.svc article { background: var(--card); border-radius: 16px; padding: 20px; position: relative; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.svc article:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(60,30,90,.12); }
.svc i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 14px; }
.svc i svg { width: 22px; height: 22px; }
.svc h4 { margin: 0 0 6px; font-size: 16.5px; letter-spacing: -.01em; } .svc p { margin: 0 0 10px; color: #4a4356; font-size: 14px; line-height: 1.55; }
.svc ul { margin: 0; padding-left: 16px; color: #5b5468; font-size: 13px; line-height: 1.7; }
.svc button { margin-top: 12px; border: 0; background: none; color: var(--violet); font-weight: 700; font-size: 13px; padding: 0; }
.steps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; counter-reset: s; }
.steps div { background: var(--card); border-radius: 14px; padding: 16px 14px; position: relative; }
.steps div::before { counter-increment: s; content: counter(s, decimal-leading-zero); display: block; font-size: 12px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.steps b { display: block; font-size: 15px; margin-bottom: 4px; } .steps span { font-size: 12.5px; color: #5b5468; line-height: 1.5; }
.princ { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.princ div { border: 1px solid var(--line); border-radius: 14px; padding: 18px; } .princ b { display: block; margin-bottom: 6px; } .princ span { color: #5b5468; font-size: 13.5px; line-height: 1.55; }

/* clients */
.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.client { border-radius: 16px; padding: 20px; background: var(--card); display: flex; gap: 14px; align-items: center; animation: panelIn .5s var(--ease) both; }
.client .mono { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 17px; letter-spacing: -.02em; flex: none; }
.client b { display: block; font-size: 15px; } .client small { color: var(--ui-2); }

/* team (org chart) */
.org { display: grid; justify-items: center; gap: 0; }
.org .head { text-align: center; padding: 22px 26px; border-radius: 18px; background: var(--ui); color: #fff; max-width: 560px; width: 100%; display: flex; gap: 16px; align-items: center; }
.org .head img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; background: #333; }
.org .head div { text-align: left; } .org .head b { font-size: 18px; display: block; } .org .head small { color: #c4b5fd; display: block; margin-top: 3px; } .org .head a { color: #fff; font-size: 13px; font-weight: 700; display: inline-block; margin-top: 8px; }
.org .stem { width: 2px; height: 26px; background: #d9d4e3; }
.org .bar { height: 2px; background: #d9d4e3; width: 67%; }
.org .units { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%; }
.unit { display: grid; justify-items: center; }
.unit .lead { text-align: center; padding: 14px; } .unit .lead i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #f1eff5; margin: 0 auto 8px; color: var(--violet); }
.unit .lead b { display: block; } .unit .lead span { color: var(--ui-2); font-size: 14px; }
.unit .roles { width: 100%; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.unit .roles div { padding: 13px; text-align: center; font-size: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 8px; }
.unit .roles div:first-child { border-top: 0; }
.unit .roles .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.org .note { color: var(--ui-2); font-size: 13.5px; margin-top: 18px; text-align: center; }

/* about */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
.about-grid .story { font-size: 16.5px; line-height: 1.7; color: #3b3446; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stats div { background: var(--card); border-radius: 14px; padding: 16px; } .stats b { display: block; font-size: 32px; letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; } .stats span { color: var(--ui-2); font-size: 13px; }
.founder-card { display: flex; gap: 18px; align-items: center; border-radius: 18px; padding: 20px; background: linear-gradient(135deg, #1c1530, #3b1d5e); color: #fff; margin-top: 14px; }
.founder-card img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: top; background: #333; flex: none; }
.founder-card small { color: #c4b5fd; } .founder-card b { font-size: 19px; display: block; } .founder-card p { color: #ddd6fe; font-size: 14px; margin: 6px 0 10px; line-height: 1.5; }
.founder-card a { display: inline-flex; gap: 6px; align-items: center; background: #fff; color: #111; padding: 8px 14px; border-radius: 99px; font-weight: 700; font-size: 13px; text-decoration: none; }
.h3 { font-size: 20px; letter-spacing: -.02em; margin: 34px 0 14px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 30px; }
.office { border-radius: 18px; padding: 24px; background: linear-gradient(160deg, #241b33, #3b1d5e 70%, #5b2a86); color: #fff; }
.office address { font-style: normal; line-height: 1.7; font-size: 15px; color: #ede9fe; margin: 10px 0 16px; }
.office .row { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; color: #ede9fe; text-decoration: none; }
.office .row svg { color: #c4b5fd; }
.office .socials { display: flex; gap: 8px; margin-top: 14px; } .office .socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.1); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: #3b3446; align-content: start; }
.form label > span { display: block; } .req { font-style: normal; }
.form label.full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { font: inherit; font-size: 16px; font-weight: 500; padding: 12px 14px; border-radius: 12px; border: 1px solid #dcd6e4; background: #fff; color: var(--ui); outline: none; width: 100%; }
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139,92,246,.15); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .send { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.form .send .solid { height: 48px; padding: 0 26px; border: 0; }
.form .send .solid:disabled { opacity: .6; transform: none; }
.status { font-size: 14px; font-weight: 600; padding: 12px 14px; border-radius: 12px; grid-column: 1 / -1; }
.status.ok { background: #ecfdf5; color: #047857; } .status.err { background: #fef2f2; color: #b91c1c; }
.req { color: #db2777; }

/* AI chat */
.chat-panel { display: grid; grid-template-columns: 1fr 340px; height: min(640px, calc(100vh - 110px)); }
.chat-main { display: flex; flex-direction: column; border-right: 1px solid var(--line); min-height: 0; }
.chat-top { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.chat-top img { width: 42px; height: 42px; border-radius: 50%; } .chat-top b { display: block; } .chat-top small { color: #059669; font-weight: 600; }
.chat-top .mode { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--ui-2); background: var(--card); padding: 5px 10px; border-radius: 99px; }
.chat-log { flex: 1; overflow: auto; padding: 22px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(#fbfaff, #fff); }
.msg { max-width: 80%; padding: 11px 15px; border-radius: 18px; font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; animation: pop2 .3s var(--ease); overflow-wrap: anywhere; }
@keyframes pop2 { from { opacity: 0; transform: translateY(6px) scale(.97); } }
.msg.bot { background: #f1eff5; border-bottom-left-radius: 5px; } .msg.me { align-self: flex-end; background: var(--ui); color: #fff; border-bottom-right-radius: 5px; }
.msg a { color: #6d28d9; font-weight: 700; }
.dots span { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: #a39bb0; animation: dots 1s infinite; } .dots span:nth-child(2) { animation-delay: .15s; } .dots span:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 50% { transform: translateY(-4px); opacity: .5; } }
.chat-in { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--line); }
.chat-in input { flex: 1; height: 48px; border-radius: 99px; border: 1px solid #dcd6e4; padding: 0 18px; font: inherit; font-size: 16px; outline: none; }
.chat-in input:focus { border-color: var(--violet); }
.chat-in button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; }
.chat-side { padding: 22px; overflow: auto; }
.chat-side h4 { margin: 0 0 6px; } .chat-side p { color: var(--ui-2); font-size: 13.5px; line-height: 1.55; }
.chat-side .ask { width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; padding: 11px 13px; border-radius: 12px; margin: 5px 0; font-size: 13.5px; font-weight: 600; transition: background .15s; }
.chat-side .ask:hover { background: #f5f3ff; }

.close-x { position: absolute; right: 16px; top: 16px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #f1eff5; font-size: 18px; z-index: 2; }

/* x-ray */
.xray-ui { position: fixed; inset: 0; z-index: 15; pointer-events: none; color: #111; }
.xhead { text-align: center; margin-top: 76px; } .xhead small { color: var(--violet); font-weight: 800; letter-spacing: .2em; font-size: 11px; } .xhead h2 { font-size: clamp(30px, 4vw, 46px); margin: 4px 0; letter-spacing: -.04em; } .xhead p { margin: 0 auto; max-width: 480px; color: #444; }
.markers button { position: fixed; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 1.5px solid #111; background: #fff; font-size: 11px; font-weight: 800; pointer-events: auto; transition: .2s; animation: pop .4s var(--ease) both; }
.markers button:hover, .markers button.on { background: var(--violet); color: #fff; border-color: var(--violet); transform: scale(1.15); }
.xpanel { position: fixed; right: 16px; top: 80px; bottom: 16px; width: min(460px, 92vw); background: #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.18), 0 0 0 1px #eee; padding: 22px; pointer-events: auto; overflow: auto; animation: panelIn .4s var(--ease); }
.xpanel h3 { margin: 0 0 8px; } .xpanel p { color: #444; font-size: 14px; line-height: 1.55; }
.xstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; } .xstats div { background: var(--card); border-radius: 10px; padding: 10px; } .xstats b { display: block; font-size: 18px; } .xstats span { font-size: 11px; color: #666; }
.xpanel pre { background: #120f1d; color: #d8d0ff; font: 11.5px/1.55 ui-monospace, Menlo, Consolas, monospace; padding: 14px; border-radius: 12px; overflow: auto; max-height: 50vh; }
.xfoot { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 99px; padding: 6px 6px 6px 18px; box-shadow: 0 10px 30px rgba(0,0,0,.12), 0 0 0 1px #eee; pointer-events: auto; font-size: 13px; color: #444; white-space: nowrap; }
.xfoot .solid { height: 38px; }
.xray .topbar .brand, .xray .topbar .actions .icon-btn { filter: invert(1); }

.toast { position: fixed; left: 50%; bottom: 130px; transform: translate(-50%, 20px); background: rgba(20,15,12,.92); color: #fff; padding: 11px 18px; border-radius: 99px; font-size: 14px; font-weight: 600; opacity: 0; transition: .35s var(--ease); z-index: 60; pointer-events: none; max-width: 90vw; text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* flat / no-3D */
.flat { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.no3d, .no3d body { overflow: auto; }
.no3d #studio { position: relative; min-height: 0; height: auto; display: flex; flex-direction: column; align-items: center; padding-bottom: 10px;
  background: radial-gradient(70% 60% at 50% 0%, rgba(124,58,237,.35), transparent 70%), radial-gradient(50% 40% at 85% 30%, rgba(236,72,153,.18), transparent 70%); }
.no3d #gl, .no3d .beacons, .no3d .vignette, .no3d .pan-btn, .no3d .pan-hint, .no3d .tip { display: none !important; }
.no3d .topbar { position: sticky; top: 0; width: 100%; animation: none; background: rgba(18,12,10,.78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,.08); z-index: 20; }
.no3d .hero { position: relative; left: auto; top: auto; right: auto; bottom: auto; transform: none; width: min(760px, 100%); margin: 90px auto 0; padding: 0 24px; text-align: center; }
.no3d .hero .eyebrow { justify-content: center; } .no3d .hero .lede { margin-left: auto; margin-right: auto; }
.no3d .dock { position: relative; left: auto; bottom: auto; transform: none; margin: 36px auto 20px; animation: none; }
.no3d .flat { position: static; width: auto; height: auto; clip: auto; max-width: 820px; margin: 0 auto; padding: 30px 24px 80px; line-height: 1.6; }

@media (max-width: 980px) {
  .links { display: none; }
  .detail, .about-grid, .contact-grid, .chat-panel { grid-template-columns: 1fr; }
  .chat-side { display: none; } .chat-main { border-right: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); } .princ { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .topbar { padding: 12px; gap: 8px; } .brand small { display: none; } .cta { height: 36px; padding: 0 12px; font-size: 12.5px; white-space: nowrap; } #muteBtn { display: none; } .brand b { font-size: 14px; }
  .hero { top: 70px; bottom: auto; left: 18px; right: 18px; width: auto; } .hero h1 { font-size: 34px; } .lede { font-size: 14px; } .eyebrow { margin-bottom: 8px; }
  .dock { width: calc(100vw - 16px); } .dock .row:first-child { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; max-width: 100%; }
  .dock .row:first-child { justify-content: space-between; } .dock .row:first-child button { padding: 8px 7px; font-size: 12.5px; flex: none; } .dock .row:first-child button span { display: none; }
  .vignette { background: linear-gradient(rgba(10,6,4,.85), rgba(10,6,4,.2) 34%, transparent 50%), radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(10,6,4,.5)); }
  .dock .sub { gap: 0; } .dock .sub button, .dock .sub a { font-size: 12px; padding: 6px 8px; }
  .panel-wrap { padding: 66px 8px 8px; } .panel { max-height: calc(100vh - 74px); border-radius: 18px; }
  .p-head { padding: 24px 20px 6px; } .p-body { padding: 14px 20px 28px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .form { grid-template-columns: 1fr; } .org .units { grid-template-columns: 1fr; } .org .bar { display: none; }
  .steps, .princ, .stats { grid-template-columns: 1fr; } .esc { display: none; }
  .chat-panel { height: calc(100vh - 80px); } .msg { max-width: 90%; }
  .xpanel { top: auto; height: 58vh; } .xfoot { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@keyframes breathe { 50% { transform: scale(1.06); } }
