/* =========================================================
   Phuong Linh OS — the studio as a tiny operating system
   ========================================================= */
:root {
  --night: #0a0a1f;
  --ink: #0b0d14;
  --ink-2: #2b3040;
  --muted: #646b80;
  --line: rgba(11,13,20,.08);
  --indigo: #5b4bff; --violet: #a855f7; --coral: #ff6b6b; --amber: #ffb86b; --cyan: #22d3ee; --mint: #34d399; --pink: #ec4899;
  --grad: linear-gradient(110deg, #7c6bff 0%, #b46cff 35%, #ff7a7a 70%, #ffc27a 100%);
  --grad-deep: linear-gradient(110deg, #5b4bff 0%, #a855f7 35%, #ff6b6b 70%, #ffb86b 100%);
  --display: "Geist", "Inter", system-ui, sans-serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 3.4vw, 48px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.2, 1.25, .35, 1);
  --glass-d: rgba(255,255,255,.09);
  --glass-d-b: rgba(255,255,255,.16);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); overflow-x: clip; }
body { margin: 0; min-height: 100vh; min-height: 100svh; background: var(--night); color: #fff; font: 15.5px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--violet); color: #fff; }
em { font-style: normal; background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 8s ease-in-out infinite; }
@keyframes shimmer { 50% { background-position: 100% 0; } }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
kbd { font: 500 10px var(--mono); padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.12); }

/* ============ BOOT ============ */
.boot { position: fixed; inset: 0; z-index: 300; display: grid; place-content: center; justify-items: center; gap: 28px; background: #000; transition: opacity .7s var(--ease), visibility .7s; }
.boot.done { opacity: 0; visibility: hidden; }
html:not(.js) .boot { display: none; }
.boot-logo { width: 64px; height: 64px; overflow: visible; }
.boot-logo path { fill: #fff; fill-opacity: 0; stroke: #fff; stroke-width: .45; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s var(--ease) forwards, fillIn .5s .85s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillIn { to { fill-opacity: 1; } }
.boot.done .boot-logo { transform: scale(1.6); filter: blur(6px); transition: transform .7s var(--ease), filter .7s; }
.boot-bar { width: 180px; height: 5px; border-radius: 5px; background: rgba(255,255,255,.18); overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: #fff; }
.boot-cap { margin: 0; color: rgba(255,255,255,.45); }

/* ============ WALLPAPER ============ */
.wall { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: radial-gradient(120% 90% at 70% 20%, #1b1450 0%, #0a0a1f 55%, #05050f 100%); }
.aurora { position: absolute; inset: -15%; filter: blur(90px) saturate(1.3); opacity: .75; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 28s ease-in-out infinite; }
.aurora i:nth-child(1) { width: 52vw; height: 52vw; left: 45%; top: -10%; background: #5b4bff; }
.aurora i:nth-child(2) { width: 40vw; height: 40vw; left: 0%; top: 35%; background: #a855f7; animation-delay: -6s; animation-duration: 32s; }
.aurora i:nth-child(3) { width: 34vw; height: 34vw; left: 62%; top: 55%; background: #ff6b6b; opacity: .7; animation-delay: -12s; }
.aurora i:nth-child(4) { width: 26vw; height: 26vw; left: 28%; top: 72%; background: #22d3ee; opacity: .55; animation-delay: -18s; animation-duration: 36s; }
.aurora i:nth-child(5) { width: 22vw; height: 22vw; left: 80%; top: 10%; background: #ec4899; opacity: .5; animation-delay: -24s; }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(-9%, 7%) scale(1.15); } 66% { transform: translate(7%, -5%) scale(.9); } }
.wall .phoenix { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: .9; }
.wall-grain { position: absolute; inset: 0; opacity: .12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ============ CURSOR ============ */
.cur { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; }
.cur-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; mix-blend-mode: difference; transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease); }
.cur-pill { position: absolute; left: 16px; top: 12px; padding: 6px 11px; border-radius: 100px; background: #fff; color: var(--ink); font: 600 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; opacity: 0; transform: scale(.6); transform-origin: 0 0; transition: opacity .25s, transform .35s var(--ease); }
.cur.label .cur-pill { opacity: 1; transform: none; }
.cur.label .cur-dot, .cur.hover .cur-dot { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
@media (hover: none), (pointer: coarse) { .cur { display: none; } }

/* ============ MENU BAR ============ */
.menubar { position: fixed; top: 0; left: 0; right: 0; z-index: 80; height: 36px; display: flex; align-items: center; gap: 22px; padding: 0 var(--gutter);
  background: rgba(10,10,31,.35); backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6); border-bottom: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.mb-brand { display: inline-flex; align-items: center; gap: 8px; font: 700 14px var(--display); letter-spacing: -.01em; white-space: nowrap; }
.mb-brand svg { width: 16px; height: 16px; fill: #fff; }
.mb-menu { display: flex; gap: 4px; }
.mb-menu button { padding: 4px 10px; border-radius: 7px; border: 0; background: none; color: rgba(255,255,255,.82); cursor: pointer; transition: background .2s; }
.mb-menu button:hover, .mb-menu button.on { background: rgba(255,255,255,.14); color: #fff; }
.mb-right { margin-left: auto; display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,.85); }
.mb-search { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 10px; border-radius: 8px; border: 0; background: rgba(255,255,255,.1); cursor: pointer; letter-spacing: 0; text-transform: none; font-size: 12px; }
.mb-search:hover { background: rgba(255,255,255,.18); }
.mb-search svg, .mb-ic svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mb-ic { display: inline-flex; }
.mb-batt { width: 24px; height: 12px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.8); padding: 2px; position: relative; }
.mb-batt::after { content: ""; position: absolute; right: -3px; top: 4px; width: 2px; height: 4px; border-radius: 1px; background: rgba(255,255,255,.8); }
.mb-batt i { display: block; height: 100%; width: 78%; border-radius: 2px; background: #fff; }
.mb-time { font-variant-numeric: tabular-nums; font-weight: 500; }

/* ============ DESKTOP ============ */
.desk { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding: 110px var(--gutter) 130px; }
.hello { opacity: 0; transform: translateY(24px); transition: opacity 1s .1s, transform 1.1s var(--ease) .1s; }
.ready .hello { opacity: 1; transform: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 5px 14px 5px 5px; border-radius: 100px; background: var(--glass-d); box-shadow: inset 0 0 0 1px var(--glass-d-b); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: rgba(255,255,255,.85); }
.eyebrow i { font-style: normal; color: var(--violet); }
.eb-tag { padding: 4px 9px; border-radius: 100px; background: #fff; color: var(--ink); font-weight: 600; }
.hero-h { font: 800 clamp(56px, 7.8vw, 148px)/.9 var(--display); letter-spacing: -.065em; margin: 0; font-feature-settings: "ss01", "cv11"; }
.hero-h .ln { display: block; padding-bottom: .04em; }
.hero-h .in { display: inline-block; }
.hero-h .ln:nth-child(2) .in { transition-delay: .1s; } .hero-h .ln:nth-child(3) .in { transition-delay: .2s; }
.ready .hero-h .in { transform: none; }
.hero-h .dot { display: inline-block; width: .18em; height: .18em; margin-left: .05em; border-radius: 50%; background: var(--grad); color: transparent; overflow: hidden; animation: bob 2.4s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(-.1em); } }
.hero-h .lt { display: inline-block; opacity: 0; transform: translateY(.55em) rotate(8deg) scale(.9); filter: blur(12px);
  transition: transform 1s var(--spring) calc(.15s + var(--i, 0) * 32ms), opacity .6s calc(.15s + var(--i, 0) * 32ms), filter .8s calc(.15s + var(--i, 0) * 32ms), color .4s; }
.ready .hero-h .lt { opacity: 1; transform: none; filter: none; }
.ready .hero-h .lt.alt { transition: transform .5s var(--spring), color .3s; }
.hero-h .lt.alt { color: var(--cyan); transform: translateY(-.06em) scale(1.06); }
.hello-copy { max-width: 48ch; margin: 28px 0 30px; color: rgba(255,255,255,.72); font-size: clamp(15px, 1.15vw, 17.5px); }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { position: relative; display: inline-flex; align-items: center; gap: 16px; padding: 6px 6px 6px 22px; border: 0; border-radius: 100px; font: 600 15px/1 var(--sans); white-space: nowrap; cursor: pointer; isolation: isolate; transition: transform .4s var(--spring); }
.btn i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-style: normal; transition: transform .5s var(--ease); }
.btn:hover { transform: translateY(-3px) scale(1.02); }
.btn:hover i { transform: rotate(45deg); }
.btn-solid { background: #fff; color: var(--ink); }
.btn-solid::before { content: ""; position: absolute; inset: 6px; z-index: -1; border-radius: inherit; background: var(--grad-deep); filter: blur(18px); opacity: .8; transform: translateY(10px); }
.btn-solid i { background: var(--grad-deep); color: #fff; }
.btn-ghost { background: var(--glass-d); box-shadow: inset 0 0 0 1px var(--glass-d-b); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: #fff; }
.btn-ghost i { background: rgba(255,255,255,.14); font-size: 12px; }

.side { display: grid; gap: 22px; opacity: 0; transform: translateY(30px); transition: opacity 1s .35s, transform 1.2s var(--ease) .35s; }
.ready .side { opacity: 1; transform: none; }
.widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wg { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 140px; padding: 16px 18px; border: 0; border-radius: 26px; text-align: left; overflow: hidden;
  background: var(--glass-d); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 0 0 1px var(--glass-d-b), 0 20px 40px -20px rgba(0,0,0,.6); backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6); }
.wg-k { color: rgba(255,255,255,.6); display: inline-flex; align-items: center; gap: 7px; font-size: 10px; }
.wg-v { font: 700 clamp(24px, 2.1vw, 32px)/1.05 var(--display); letter-spacing: -.03em; margin-top: auto; }
.wg-s { font-size: 12.5px; color: rgba(255,255,255,.6); }
.wg-time { font: 800 clamp(44px, 4.4vw, 64px)/.95 var(--display); letter-spacing: -.05em; font-variant-numeric: tabular-nums; margin-top: auto; }
.wg-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.wg-clock { background: linear-gradient(150deg, rgba(91,75,255,.55), rgba(168,85,247,.35)); }
.wg-play { cursor: pointer; background: linear-gradient(150deg, rgba(236,72,153,.5), rgba(255,107,107,.4)); transition: transform .4s var(--spring); }
.wg-play:hover { transform: scale(1.03); }
.spark { width: 100%; height: 30px; margin-top: 8px; overflow: visible; }
.spark path { fill: none; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); display: inline-block; }
.chip-dot.ok { background: var(--mint); box-shadow: 0 0 0 0 rgba(52,211,153,.5); animation: okp 2s infinite; }
@keyframes okp { to { box-shadow: 0 0 0 8px rgba(52,211,153,0); } }

.icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 10px; }
.app-ic { display: flex; flex-direction: column; align-items: center; gap: 8px; border: 0; background: none; padding: 0; cursor: pointer; }
.app-ic .ic { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: var(--fg, #fff); background: linear-gradient(150deg, var(--a), var(--b));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 14px 26px -12px rgba(0,0,0,.7); transition: transform .45s var(--spring); }
.app-ic .ic svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-ic .lb { font-size: 12px; font-weight: 500; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.app-ic:hover .ic { transform: translateY(-5px) scale(1.06) rotate(-3deg); }
.app-ic:active .ic { transform: scale(.92); }
.app-ic.running .ic::after { content: ""; position: absolute; }

/* ============ DOCK ============ */
.dock { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 70; transform: translateX(-50%) translateY(150%);
  display: flex; align-items: flex-end; gap: 8px; padding: 8px; border-radius: 26px;
  background: rgba(255,255,255,.12); backdrop-filter: blur(28px) saturate(1.8); -webkit-backdrop-filter: blur(28px) saturate(1.8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(255,255,255,.14), 0 24px 50px -20px rgba(0,0,0,.7); transition: transform 1s var(--ease) .4s; }
.ready .dock { transform: translateX(-50%); }
.dock-i { --s: 1; position: relative; width: 50px; height: 50px; border: 0; border-radius: 14px; padding: 0; display: grid; place-items: center; cursor: pointer; color: #fff;
  background: linear-gradient(150deg, var(--a), var(--b)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 16px -8px rgba(0,0,0,.6);
  transform-origin: 50% 100%; transform: scale(var(--s)); margin: 0 calc((var(--s) - 1) * 25px); will-change: transform; }
.dock-i svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dock-i::after { content: ""; position: absolute; bottom: -6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #fff; opacity: 0; transition: opacity .3s; }
.dock-i.running::after { opacity: 1; }
.dock-i::before { content: attr(data-label); position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(4px); padding: 5px 10px; border-radius: 8px; background: rgba(20,20,40,.85); color: #fff; font: 500 11px var(--sans); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .3s var(--ease); }
.dock-i:hover::before { opacity: 1; transform: translateX(-50%); }
.dock-i.bounce { animation: dbounce .7s var(--spring); }
@keyframes dbounce { 30% { translate: 0 -18px; } 60% { translate: 0 0; } 80% { translate: 0 -6px; } }
.dock-sep { width: 1px; height: 34px; align-self: center; background: rgba(255,255,255,.2); margin: 0 2px; }

/* ============ WINDOWS ============ */
.windows { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.win-app { position: absolute; left: 0; top: 0; width: min(900px, 92vw); height: min(640px, calc(100svh - 170px)); display: flex; flex-direction: column; pointer-events: auto;
  color: var(--ink); border-radius: 22px; overflow: hidden;
  background: rgba(246,247,252,.86); backdrop-filter: blur(40px) saturate(1.8); -webkit-backdrop-filter: blur(40px) saturate(1.8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 0 0 1px rgba(255,255,255,.4), 0 50px 100px -30px rgba(0,0,0,.75), 0 10px 30px -10px rgba(0,0,0,.4);
  transform-origin: var(--ox, 50%) var(--oy, 100%); }
.win-app[hidden] { display: none; }
.win-app.opening { animation: winIn .6s var(--spring) both; }
.win-app.closing { animation: winOut .32s var(--ease) both; pointer-events: none; }
@keyframes winIn { from { opacity: 0; transform: scale(.12); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes winOut { to { opacity: 0; transform: scale(.2); filter: blur(6px); } }
.win-app:not(.front) .wa-bar { opacity: .7; }
.wa-wide { width: min(1120px, 94vw); height: min(740px, calc(100svh - 150px)); }
.wa-phone { width: 400px; height: min(760px, calc(100svh - 150px)); }
.wa-small { width: min(600px, 92vw); height: auto; }
.wa-bar { flex: none; height: 46px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 14px; border-bottom: 1px solid var(--line); cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; transition: opacity .3s; }
.wa-bar:active { cursor: grabbing; }
.lights { display: flex; gap: 8px; }
.lights > * { width: 13px; height: 13px; border-radius: 50%; padding: 0; border: 0; background: #febc2e; }
.lights > :first-child { background: #ff5f57; cursor: pointer; position: relative; }
.lights > :last-child { background: #28c840; }
.lights:hover .l-close::after { content: "×"; position: absolute; inset: 0; display: grid; place-items: center; font: 700 11px/1 var(--sans); color: rgba(0,0,0,.55); }
.wa-title { font: 600 13.5px var(--sans); }
.wa-meta { justify-self: end; color: var(--muted); font-size: 10px; }
.wa-body { flex: 1; overflow: auto; padding: clamp(22px, 3vw, 40px); overscroll-behavior: contain; }
.wa-flush { padding: 0; display: flex; flex-direction: column; }
.wa-pad { padding: clamp(22px, 3vw, 40px) clamp(22px, 3vw, 40px) 0; }
.wa-center { text-align: center; padding: clamp(32px, 5vw, 56px); }
.wa-h { font: 800 clamp(32px, 4vw, 58px)/.98 var(--display); letter-spacing: -.05em; margin: 0 0 26px; }
.wa-h em { background: var(--grad-deep); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; }
.win-app em { background-image: var(--grad-deep); }
.kick { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 5px 10px 5px 8px; border-radius: 100px; background: #fff; box-shadow: 0 0 0 1px var(--line); color: var(--ink-2); font-size: 10px; }
.kick::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad-deep); }

/* studio app */
.prins { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prin { padding: 22px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 10px 30px -20px rgba(40,40,90,.35); transition: transform .4s var(--spring); }
.prin:hover { transform: translateY(-4px); }
.prin-n { font: 800 34px/1 var(--display); letter-spacing: -.05em; background: var(--grad-deep); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prin h3 { font: 700 22px/1.1 var(--display); letter-spacing: -.03em; margin: 12px 0 8px; }
.prin p { margin: 0; color: var(--muted); font-size: 14.5px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.fact { padding: 18px; border-radius: 18px; background: var(--ink); color: #fff; }
.fact b { display: block; font: 800 44px/.9 var(--display); letter-spacing: -.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact b small { font-size: .4em; }
.fact p { margin: 8px 0 0; color: rgba(255,255,255,.6); font-size: 13px; }

/* work app */
.hint-hand { display: inline-block; color: var(--indigo); animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }
.rail { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; padding: 4px 0 8px; }
.rail.dragging { cursor: grabbing; }
.track { display: flex; gap: 16px; padding: 0 clamp(22px, 3vw, 40px); width: max-content; will-change: transform; }
.card { width: clamp(220px, 24vw, 300px); flex: none; }
.card .art { position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; isolation: isolate; background: linear-gradient(150deg, var(--a), var(--b)); box-shadow: 0 24px 40px -24px rgba(40,40,90,.6); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); }
.card .art.lit { transition: transform .12s linear; }
.art i { position: absolute; border-radius: 50%; filter: blur(26px); animation: blob 12s ease-in-out infinite; }
.art i:nth-child(1) { width: 70%; height: 70%; left: -10%; top: -10%; background: var(--b); opacity: .9; }
.art i:nth-child(2) { width: 60%; height: 60%; right: -15%; bottom: -5%; background: var(--a); animation-delay: -4s; animation-duration: 14s; }
.art i:nth-child(3) { width: 40%; height: 40%; left: 35%; top: 35%; background: #fff; opacity: .5; animation-delay: -8s; }
@keyframes blob { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(18%, 12%) scale(1.15); } 66% { transform: translate(-10%, 18%) scale(.9); } }
.art svg { position: absolute; left: 50%; top: 50%; width: 30%; padding: 9%; box-sizing: content-box; transform: translate(-50%, -50%); fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; z-index: 1; border-radius: 28%; background: rgba(255,255,255,.2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 20px 40px -20px rgba(0,0,0,.35); transition: transform .8s var(--ease); }
.card:hover .art svg { transform: translate(-50%, -50%) rotate(-6deg) scale(1.08); }
.card .art::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.6), rgba(255,255,255,0) 45%); mix-blend-mode: soft-light; }
.card .art.lit::after { opacity: 1; }
.card-m { padding: 14px 4px 0; }
.card-m .mono { color: var(--muted); font-size: 10px; }
.card-m h3 { font: 700 24px/1 var(--display); letter-spacing: -.035em; margin: 6px 0; }
.card-m p { margin: 0; color: var(--ink-2); font-size: 14px; }
.rail-bar { margin: 18px clamp(22px, 3vw, 40px) 28px; height: 4px; border-radius: 4px; background: rgba(11,13,20,.07); overflow: hidden; }
.rail-bar i { display: block; height: 100%; width: 0; background: var(--grad-deep); border-radius: 4px; }

/* ai app */
.ai-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; }
.pane { border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 10px 30px -20px rgba(40,40,90,.35); }
.pane-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.pane-bar b { color: var(--ink); font-weight: 500; }
.gen-btn { margin-left: auto; padding: 7px 12px; border-radius: 100px; border: 0; background: var(--ink); color: #fff; cursor: pointer; white-space: nowrap; }
.gen-btn:hover { background: var(--indigo); }
.gen-prompt { margin: 0; padding: 12px 16px; border-bottom: 1px dashed var(--line); text-transform: none; letter-spacing: 0; font-size: 12px; min-height: 42px; }
.pr { color: var(--indigo); }
.caret { display: inline-block; width: 7px; height: 14px; background: var(--indigo); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.gen-body { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 16px; align-items: start; }
.board { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; width: clamp(180px, 17vw, 250px); }
.t { aspect-ratio: 1; border-radius: 7px; background: rgba(11,13,20,.05); transform: scale(.2); opacity: 0; transition: transform .45s var(--spring), opacity .3s; box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.t.on { transform: none; opacity: 1; }
.t.x { background: repeating-linear-gradient(45deg, rgba(11,13,20,.12) 0 3px, transparent 3px 6px) !important; box-shadow: inset 0 0 0 1px var(--line); }
.gen-log { list-style: none; margin: 0; padding: 0; font-size: 11px; text-transform: none; letter-spacing: .01em; color: var(--ink-2); display: flex; flex-direction: column; gap: 8px; }
.gen-log li { padding-left: 14px; position: relative; animation: logIn .4s var(--ease); }
.gen-log li::before { content: "›"; position: absolute; left: 0; color: var(--indigo); }
.gen-log .dim { color: var(--muted); }
.gen-log .ok { color: #0f9d68; }
.gen-log .bad { color: var(--coral); }
.gen-log .hl { background: linear-gradient(90deg, rgba(91,75,255,.12), rgba(255,107,107,.1)); border-radius: 8px; padding: 7px 9px 7px 20px; }
.gen-log .hl::before { left: 8px; top: 7px; }
@keyframes logIn { from { opacity: 0; transform: translateX(-6px); } }
.term { background: #0b0d14; color: #c9cee0; }
.term .pane-bar { border-color: rgba(255,255,255,.08); color: #7c839c; }
.term .pane-bar b { color: #fff; }
.term-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #7ee2b8; }
.term-body { flex: 1; margin: 0; padding: 16px 18px; min-height: 300px; max-height: 380px; overflow: hidden; font-size: 11.5px; line-height: 1.75; text-transform: none; letter-spacing: 0; white-space: pre-wrap; }
.term-body .t-cmd { color: #fff; }
.term-body .t-dim { color: #7c839c; }
.term-body .t-ok { color: #7ee2b8; }
.term-body .t-ai { color: #c4a6ff; }
.term-body .t-done { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }
.caps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.cap { padding: 18px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.cap-i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--grad-deep); color: #fff; }
.cap h3 { font: 700 18px/1.15 var(--display); letter-spacing: -.02em; margin: 12px 0 6px; }
.cap p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* stack app */
.filters { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 16px; border-radius: 100px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.filters button { padding: 8px 13px; border-radius: 100px; border: 0; background: transparent; color: var(--ink-2); font: inherit; letter-spacing: inherit; cursor: pointer; }
.filters button.on { background: var(--ink); color: #fff; }
.stack-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.stack-grid li { position: relative; padding: 18px 16px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 4px; transition: opacity .4s, transform .4s var(--spring); overflow: hidden; }
.stack-grid li::before { content: attr(data-c); position: absolute; top: 10px; right: 10px; padding: 2px 7px; border-radius: 100px; background: rgba(11,13,20,.05); font: 500 9px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stack-grid li b { font: 700 20px/1.05 var(--display); letter-spacing: -.03em; margin-top: 14px; }
.stack-grid li span { font-size: 12.5px; color: var(--muted); }
.stack-grid li:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--violet), 0 14px 30px -18px rgba(91,75,255,.6); }
.stack-grid li.off { opacity: .2; transform: scale(.96); }

/* process app */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; position: relative; }
.steps::before { content: ""; position: absolute; left: 24px; right: 24px; top: 30px; height: 2px; background: var(--grad-deep); opacity: .35; }
.step { position: relative; padding: 20px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 10px 30px -20px rgba(40,40,90,.35); }
.step:nth-child(3) { background: var(--ink); color: #fff; }
.step:nth-child(4) { background: var(--grad-deep); color: #fff; }
.step-n { position: relative; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--grad-deep); color: #fff; font: 700 10px var(--mono); }
.step:nth-child(4) .step-n { background: #fff; color: var(--indigo); }
.step-t { display: block; margin-top: 18px; color: var(--muted); font-size: 10px; }
.step:nth-child(n+3) .step-t { color: rgba(255,255,255,.65); }
.step h3 { font: 700 26px/1 var(--display); letter-spacing: -.035em; margin: 8px 0; }
.step p { margin: 0; font-size: 14px; opacity: .8; }

/* feather app */
.wa-phone .wa-body { background: #0b0d14; }
.lab-stage { position: relative; flex: 1; margin: 14px; border-radius: 40px; overflow: hidden; touch-action: manipulation; user-select: none; -webkit-user-select: none; cursor: pointer;
  background: radial-gradient(70% 60% at 30% 20%, rgba(185,178,255,.6), transparent 70%), radial-gradient(60% 50% at 80% 80%, rgba(165,240,251,.6), transparent 70%), #f7f8fc;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.lab-stage.bump { animation: bump .25s var(--ease); }
@keyframes bump { 50% { box-shadow: 0 0 0 3px var(--violet); } }
.lab-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ph-status { position: absolute; top: 12px; left: 24px; right: 24px; z-index: 2; display: flex; justify-content: space-between; align-items: center; font-size: 12px; letter-spacing: 0; color: var(--ink); pointer-events: none; text-transform: none; }
.ph-island { width: 90px; height: 26px; border-radius: 20px; background: #0b0d14; }
.ph-icons { font-size: 9px; letter-spacing: 2px; }
.ph-home { position: absolute; bottom: 9px; left: 50%; width: 110px; height: 5px; margin-left: -55px; border-radius: 4px; background: #0b0d14; opacity: .7; z-index: 2; pointer-events: none; }
.lab-hud { position: absolute; top: 50px; left: 18px; right: 18px; display: flex; justify-content: space-between; color: var(--muted); pointer-events: none; }
.lab-hud span { padding: 6px 10px; border-radius: 100px; background: rgba(255,255,255,.75); }
.lab-hud b { color: var(--ink); font-weight: 600; font-size: 13px; margin-left: 6px; font-variant-numeric: tabular-nums; }
.lab-over { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 8px; padding: 20px; background: rgba(247,248,252,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: opacity .4s; pointer-events: none; }
.lab-over.hide { opacity: 0; }
.lab-over-t { font: 800 52px/1 var(--display); letter-spacing: -.05em; margin: 0; background: var(--grad-deep); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lab-over .mono { margin: 0; color: var(--muted); }

/* contact app */
.contact-row { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.mail { display: inline-flex; align-items: center; gap: 16px; padding: 8px 8px 8px 26px; border-radius: 100px; background: var(--ink); color: #fff; font: 600 17px/1 var(--sans); }
.mail-arrow { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-deep); }
.mail.pending { background: #fff; color: var(--muted); box-shadow: 0 0 0 1px var(--line); pointer-events: none; }
.mail.pending .mail-arrow { background: rgba(11,13,20,.06); color: var(--muted); }
.copy { padding: 12px 16px; border-radius: 100px; border: 0; background: #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.copy.ok { background: var(--ink); color: #fff; }
.legal { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 32px; color: var(--muted); }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ============ SPOTLIGHT ============ */
.spot { position: fixed; inset: 0; z-index: 120; background: rgba(5,5,15,.35); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.spot[hidden] { display: none; }
.spot-box { position: absolute; left: 50%; top: 16vh; width: min(640px, 92vw); transform: translateX(-50%); border-radius: 20px; overflow: hidden; color: var(--ink);
  background: rgba(246,247,252,.9); backdrop-filter: blur(40px) saturate(1.8); -webkit-backdrop-filter: blur(40px) saturate(1.8); box-shadow: 0 40px 80px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.5); animation: spotIn .35s var(--spring); }
@keyframes spotIn { from { opacity: 0; transform: translateX(-50%) scale(.95) translateY(-10px); } }
.spot-in { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.spot-in svg { width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.spot-in input { flex: 1; border: 0; background: transparent; font: 500 20px var(--sans); color: var(--ink); outline: none; min-width: 0; }
.spot-in kbd { background: rgba(11,13,20,.06); color: var(--muted); }
.spot-list { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow: auto; }
.spot-list li { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; cursor: pointer; }
.spot-list li.sel { background: var(--indigo); color: #fff; }
.spot-list .si { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(150deg, var(--a), var(--b)); color: #fff; flex: none; }
.spot-list .si svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.spot-list b { font-weight: 600; }
.spot-list small { margin-left: auto; color: var(--muted); font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.spot-list li.sel small { color: rgba(255,255,255,.75); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) { .caps { grid-template-columns: 1fr 1fr; } .steps { grid-template-columns: 1fr 1fr; } .steps::before { display: none; } }
@media (max-width: 960px) {
  .desk { grid-template-columns: 1fr; padding-top: 120px; align-items: start; }
  .mb-menu { display: none; }
  .ai-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menubar { gap: 12px; }
  .mb-search span, .mb-search kbd, .mb-ic { display: none; }
  .desk { padding: 104px 18px 120px; gap: 28px; }
  .hello-copy { margin: 18px 0 22px; }
  .icons { gap: 16px 6px; }
  .app-ic .ic { width: 58px; height: 58px; border-radius: 16px; }
  .wg { min-height: 120px; padding: 14px; border-radius: 22px; }
  .prins, .facts { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .caps, .steps { grid-template-columns: 1fr; }
  .gen-body { grid-template-columns: 1fr; } .board { width: 100%; }
  /* windows become full-screen sheets */
  .win-app, .wa-wide, .wa-phone, .wa-small { left: 0 !important; top: 36px !important; width: 100% !important; height: calc(100% - 36px) !important; border-radius: 18px 18px 0 0; transform-origin: 50% 100%; }
  body.locked .dock { transform: translateX(-50%) translateY(160%); }
  .island { opacity: 0 !important; }
  .island.show { opacity: 1 !important; }
  .win-app.opening { animation: sheetIn .5s var(--ease) both; }
  .win-app.closing { animation: sheetOut .3s var(--ease) both; }
  .wa-bar { height: 52px; padding-top: env(safe-area-inset-top); cursor: default; }
  .lights > :first-child { width: 28px; height: 28px; background: rgba(11,13,20,.08); }
  .lights > :first-child::after { content: "×"; position: absolute; inset: 0; display: grid; place-items: center; font: 600 18px/1 var(--sans); color: var(--ink); }
  .lights > :not(:first-child) { display: none; }
  .dock { gap: 5px; padding: 6px; border-radius: 22px; }
  .dock-i { width: 40px; height: 40px; border-radius: 12px; }
  .dock-i svg { width: 20px; height: 20px; }
}
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetOut { to { transform: translateY(100%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

/* ============ MOTION LAYER ============ */
/* unlock: the desktop focuses in as the boot screen leaves */
.wall { transform: scale(1.12); filter: blur(16px) brightness(.6); transition: transform 1.8s var(--ease), filter 1.4s var(--ease); }
.ready .wall { transform: none; filter: none; }
.aurora { transform: translate3d(var(--px, 0), var(--py, 0), 0); }

/* staggered pop-in for widgets and icons */
.wg, .show { opacity: 0; transform: translateY(24px) scale(.86); transition: opacity .6s calc(.45s + var(--d, 0) * 55ms), transform .9s var(--spring) calc(.45s + var(--d, 0) * 55ms); }
.ready .wg, .ready .show { opacity: 1; transform: none; }
.side { transition: none; opacity: 1; transform: none; }
/* widget tilt follows the pointer */
.settled .wg { transform: perspective(700px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .5s var(--ease), opacity .6s; }
.wg::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.22), transparent 55%); opacity: 0; transition: opacity .4s; }
.wg:hover::after { opacity: 1; }
/* magnetic icons */
.app-ic .ic { translate: var(--mx2, 0) var(--my2, 0); transition: transform .45s var(--spring), translate .35s var(--ease); }

/* window content cascades in */
.win-app.reveal .wa-body > *, .win-app.reveal .prins > *, .win-app.reveal .caps > *, .win-app.reveal .steps > *, .win-app.reveal .facts > *, .win-app.reveal .stack-grid > li, .win-app.reveal .track > * {
  animation: rise .7s var(--spring) both; }
.win-app.reveal .wa-body > :nth-child(2), .win-app.reveal :is(.prins, .caps, .steps, .facts, .stack-grid, .track) > :nth-child(1) { animation-delay: .06s; }
.win-app.reveal .wa-body > :nth-child(3), .win-app.reveal :is(.prins, .caps, .steps, .facts, .stack-grid, .track) > :nth-child(2) { animation-delay: .12s; }
.win-app.reveal .wa-body > :nth-child(4), .win-app.reveal :is(.prins, .caps, .steps, .facts, .stack-grid, .track) > :nth-child(3) { animation-delay: .18s; }
.win-app.reveal .wa-body > :nth-child(5), .win-app.reveal :is(.prins, .caps, .steps, .facts, .stack-grid, .track) > :nth-child(4) { animation-delay: .24s; }
.win-app.reveal :is(.stack-grid, .track) > :nth-child(n+5) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.97); filter: blur(4px); } }

/* ripple */
.rp { position: absolute; border-radius: 50%; pointer-events: none; background: rgba(255,255,255,.55); transform: scale(0); animation: ripple .65s var(--ease) forwards; mix-blend-mode: overlay; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.btn, .wg { overflow: hidden; }

/* island glow when it speaks */
.island.show { box-shadow: 0 10px 30px -8px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08), 0 0 30px -6px rgba(168,85,247,.55); }
.island.show .isl-ic { animation: islPulse 1.4s ease-in-out infinite; }
@keyframes islPulse { 50% { box-shadow: 0 0 0 5px rgba(168,85,247,.25); } }

/* hero copy & ctas follow the letters */
.hello { transition: none; opacity: 1; transform: none; }
.eyebrow, .hello-copy, .ctas { opacity: 0; transform: translateY(16px); transition: opacity .8s, transform 1s var(--spring); }
.eyebrow { transition-delay: .1s; } .hello-copy { transition-delay: .75s; } .ctas { transition-delay: .9s; }
.ready .eyebrow, .ready .hello-copy, .ready .ctas { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .wall, .wg, .show, .hero-h .lt, .eyebrow, .hello-copy, .ctas { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ============ WINDOW UX v2 ============ */
.desk { transition: filter .7s var(--ease), transform .8s var(--ease); }
body.has-win .desk { filter: blur(8px) brightness(.62) saturate(.85); transform: scale(.975); }
.win-app { transition: transform .7s cubic-bezier(.16,1,.3,1), opacity .4s, filter .5s, box-shadow .5s; }
.win-app.geo { transition: left .6s cubic-bezier(.16,1,.3,1), top .6s cubic-bezier(.16,1,.3,1), width .6s cubic-bezier(.16,1,.3,1), height .6s cubic-bezier(.16,1,.3,1); }
.win-app.staged { cursor: pointer; filter: saturate(.8) brightness(.92); box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 40px 80px -20px rgba(0,0,0,.8); }
.win-app.staged > * { pointer-events: none; }
.win-app.staged:hover { filter: none; }
.win-app.front { box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 0 0 1px rgba(255,255,255,.45), 0 60px 120px -30px rgba(0,0,0,.85), 0 0 80px -30px rgba(124,107,255,.7); }
.wa-bar { background: linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,.25)); }
.wa-title { display: inline-flex; align-items: center; gap: 8px; }
.wa-ic { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; color: #fff; background: linear-gradient(150deg, var(--a), var(--b)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.wa-ic svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lights > * { position: relative; cursor: pointer; transition: transform .25s var(--spring), filter .2s; }
.lights > *:hover { transform: scale(1.15); }
.lights .l-min { background: #febc2e; } .lights .l-max { background: #28c840; }
.lights:hover > *::after { position: absolute; inset: 0; display: grid; place-items: center; font: 700 11px/1 var(--sans); color: rgba(0,0,0,.55); }
.lights:hover .l-close::after { content: "×"; } .lights:hover .l-min::after { content: "–"; } .lights:hover .l-max::after { content: "+"; }
@media (max-width: 760px) {
  body.has-win .desk { filter: none; transform: none; }
  .wa-bar { position: relative; touch-action: none; }
  .wa-bar::before { content: ""; position: absolute; top: 6px; left: 50%; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: rgba(11,13,20,.2); }
  .lights > .l-min, .lights > .l-max { display: none; }
  .wg-ship { grid-column: 1 / -1; }
  .ship li span { font-size: 8.5px; }
}

/* ============ PIXEL HEADLINE ============ */
.hero-h { position: relative; }
.pix-canvas { position: absolute; pointer-events: none; z-index: 2; transition: opacity .6s var(--ease); }
/* while the squares assemble, the DOM text waits underneath, then fades in crisp */
.hero-h.pix .lt { transform: none; filter: none; transition: opacity .55s var(--ease); }
.hero-h.pix:not(.pix-done) .lt, .hero-h.pix:not(.pix-done) em, .hero-h.pix:not(.pix-done) .dot { opacity: 0 !important; }
.hero-h em, .hero-h .dot { transition: opacity .55s var(--ease); }
@media (max-width: 760px) {
  .wg-mon .mon { height: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
  .wg-mon .mon svg { position: static; width: 54px; height: 54px; }
  .wg-mon .mon b { position: static; max-width: none; font-size: 13px; }
}

/* ============ WINDOWS FIT THEIR CONTENT (no scrollbars) ============ */
.win-app, .wa-wide, .wa-small { height: auto; max-height: calc(100svh - 150px); }
.wa-phone { height: min(700px, calc(100svh - 150px)); }
.wa-body { scrollbar-width: none; -ms-overflow-style: none; padding: 26px 30px 30px; }
.wa-body::-webkit-scrollbar, .spot-list::-webkit-scrollbar { display: none; }
.spot-list { scrollbar-width: none; }
html, body { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
.wa-flush { padding: 0; }
.wa-pad { padding: 26px 30px 0; }
.wa-h { font-size: clamp(28px, 3vw, 44px); margin-bottom: 18px; }
.kick { margin-bottom: 10px; }
/* studio */
.prins { gap: 10px; }
.prin { padding: 16px 18px; }
.prin-n { font-size: 26px; }
.prin h3 { font-size: 19px; margin: 8px 0 6px; }
.prin p { font-size: 13.5px; line-height: 1.45; }
.facts { gap: 10px; margin-top: 10px; }
.fact { padding: 14px 16px; }
.fact b { font-size: 34px; }
.fact p { font-size: 12px; margin-top: 6px; }
/* work */
.card { width: clamp(200px, 19vw, 250px); }
.card-m h3 { font-size: 21px; }
.card-m p { font-size: 13px; }
.rail-bar { margin: 14px 30px 24px; }
/* ai lab */
.wa-wide { width: min(1080px, 94vw); }
.ai-grid { gap: 10px; }
.gen-body { padding: 12px 14px; gap: 14px; }
.board { width: clamp(160px, 14vw, 200px); gap: 3px; }
.gen-prompt { padding: 10px 14px; min-height: 0; }
.term-body { min-height: 0; height: 236px; max-height: none; padding: 12px 16px; font-size: 11px; line-height: 1.6; }
.caps { gap: 10px; margin-top: 10px; }
.cap { padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; }
.cap-i { width: 32px; height: 32px; grid-row: span 2; }
.cap h3 { font-size: 15.5px; margin: 0; }
.cap p { font-size: 12.5px; line-height: 1.4; }
/* stack */
.filters { margin-bottom: 12px; }
.stack-grid { grid-template-columns: repeat(5, 1fr); gap: 8px; }
.stack-grid li { padding: 12px 14px; }
.stack-grid li b { font-size: 17px; margin-top: 12px; }
.stack-grid li span { font-size: 11.5px; }
/* process */
.step { padding: 16px 18px; }
.step h3 { font-size: 22px; }
.step p { font-size: 13px; }
/* contact */
.wa-small .wa-body { padding: 36px 30px; }
@media (max-width: 1100px) { .stack-grid { grid-template-columns: repeat(4, 1fr); } .caps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .win-app, .wa-wide, .wa-phone, .wa-small { max-height: none; }
  .wa-body { padding: 22px 18px 28px; }
  .stack-grid { grid-template-columns: 1fr 1fr; }
  .caps { grid-template-columns: 1fr; }
  .term-body { height: 220px; }
}

/* ============ SHARED PANEL FOOTER ============ */
.cs-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: #000; color: #fff; font-size: 9.5px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.store svg { width: 12px; height: 12px; fill: currentColor; }
.show-legal { margin-left: auto; display: flex; gap: 10px; font-size: 9.5px; }
.show-legal a { color: rgba(255,255,255,.6); text-decoration: underline; text-underline-offset: 3px; }
.show-legal a:hover { color: #fff; }

/* ============ COMPANY CARD ============ */
.idcard { --tx: 0deg; --ty: 0deg; --hx: 30%; --hy: 20%; position: relative; perspective: 1400px;
  opacity: 0; transform: translateY(26px) scale(.97); transition: opacity .8s .5s, transform 1.1s var(--spring) .5s; }
.ready .idcard { opacity: 1; transform: none; }
.id-in { position: relative; display: grid; transform-style: preserve-3d; transform: rotateX(var(--tx)) rotateY(var(--ty)); transition: transform .9s cubic-bezier(.2,.9,.25,1.15); }
.id-in.flipped { transform: rotateX(var(--tx)) rotateY(calc(180deg + var(--ty))); }
.id-face { grid-area: 1 / 1; position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 30px; overflow: hidden; outline: none;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: linear-gradient(155deg, rgba(255,255,255,.16), rgba(255,255,255,.05)); backdrop-filter: blur(32px) saturate(1.6); -webkit-backdrop-filter: blur(32px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 0 0 1px var(--glass-d-b), 0 40px 80px -36px rgba(0,0,0,.8); }
.id-front { cursor: pointer; }
.id-front:focus-visible, .id-back:focus-visible { box-shadow: inset 0 0 0 2px #fff, 0 40px 80px -36px rgba(0,0,0,.8); }
.id-back { transform: rotateY(180deg); background: linear-gradient(155deg, rgba(91,75,255,.38), rgba(255,107,107,.22)); }
.holo { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; mix-blend-mode: soft-light; opacity: .9;
  background: radial-gradient(circle at var(--hx) var(--hy), rgba(255,255,255,.55), transparent 40%),
    conic-gradient(from 120deg at var(--hx) var(--hy), rgba(124,107,255,.0), rgba(91,228,245,.35), rgba(255,122,122,.3), rgba(255,194,122,.3), rgba(124,107,255,.0)); }
.id-face::after { content: ""; position: absolute; width: 300px; height: 300px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(168,85,247,.45), transparent 70%); pointer-events: none; }
.id-head { position: relative; display: flex; align-items: center; gap: 12px; }
.id-head b { display: block; font: 700 18px var(--display); letter-spacing: -.03em; }
.id-head small { color: rgba(255,255,255,.6); font-size: 9.5px; }
.id-mark { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-deep); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 10px 22px -8px rgba(124,107,255,.9); }
.id-mark svg { width: 24px; height: 24px; fill: #fff; }
.idcard:hover .id-mark svg { animation: bobFloat 2s ease-in-out infinite; }
@keyframes bobFloat { 50% { transform: translateY(-3px); } }
.id-tag { margin-left: auto; padding: 5px 10px; border: 0; border-radius: 100px; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); color: rgba(255,255,255,.85); font-size: 9px; }
.id-back-btn { cursor: pointer; } .id-back-btn:hover { background: #fff; color: var(--ink); }
.id-lead { position: relative; margin: 6px 0 0; font: 800 clamp(26px, 2.5vw, 36px)/1.02 var(--display); letter-spacing: -.045em; }
.id-lead span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.id-text { position: relative; margin: 0; color: rgba(255,255,255,.72); font-size: 13.5px; line-height: 1.55; max-width: 46ch; }
.id-pillars { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.id-pillars li { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 16px; background: rgba(0,0,0,.2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transition: transform .45s var(--spring), background .3s; }
.id-pillars li:hover { transform: translateY(-3px); background: rgba(255,255,255,.08); }
.id-pillars i { width: 30px; height: 30px; margin-bottom: 6px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.12); }
.id-pillars svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.id-pillars b { font: 700 13.5px var(--display); }
.id-pillars small { font-size: 11px; color: rgba(255,255,255,.6); line-height: 1.35; }
.id-values { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.id-values-in { display: flex; width: max-content; animation: tick 22s linear infinite; }
.id-values span { display: inline-flex; align-items: center; gap: 10px; padding-right: 10px; font-size: 10px; color: rgba(255,255,255,.75); }
.id-values span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--grad); }
.id-foot { position: relative; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.id-flip { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 9px; color: rgba(255,255,255,.65); }
.id-flip i { font-style: normal; display: inline-block; animation: spinHint 3s var(--spring) infinite; }
@keyframes spinHint { 0%, 70% { transform: rotate(0); } 100% { transform: rotate(360deg); } }
.id-mail { position: relative; display: flex; gap: 8px; align-items: stretch; }
.id-email { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 16px; background: #fff; color: var(--ink); transition: transform .4s var(--spring); min-width: 0; }
.id-email:hover { transform: translateY(-2px); }
.id-email .mono { font-size: 9px; color: var(--muted); }
.id-email b { font: 700 15px var(--display); letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.id-copy { padding: 0 16px; border: 0; border-radius: 16px; background: rgba(0,0,0,.28); color: #fff; font-size: 10px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.id-copy.ok { background: var(--mint); color: #05301f; }
.id-facts { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.id-facts div { padding: 10px 12px; border-radius: 14px; background: rgba(0,0,0,.2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.id-facts dt { font-size: 8.5px; color: rgba(255,255,255,.55); }
.id-facts dd { margin: 3px 0 0; font: 700 13px var(--display); }
.id-actions { position: relative; display: flex; gap: 8px; flex-wrap: wrap; }
.id-back .show-legal { margin-left: 0; }
@media (max-width: 760px) {
  .id-face { padding: 18px; border-radius: 24px; }
  .id-pillars, .id-facts { grid-template-columns: 1fr 1fr 1fr; }
  .id-pillars li { padding: 10px; }
  .id-pillars small { display: none; }
  .id-email b { font-size: 13px; white-space: normal; overflow-wrap: anywhere; }
}
