/* LLSys · llsys.app
   Dark only: black neutral surfaces with blue as the single accent (the owner's taste).
   Motion hangs off classes and custom properties set by main.js. Without JavaScript, or
   with reduced motion, every effect settles into a still, readable page. */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #09090b; --card: #111114; --card-2: #16161a; --raised: #1c1c21;
  --line: #222228; --line-2: #30303a;
  --text: #f4f4f6; --text-2: #b8b8c3; --text-3: #85858f; --text-4: #2a2a31;
  --blue: #1765ff; --blue-text: #7eabff; --blue-soft: rgba(23, 101, 255, .16); --blue-glow: rgba(23, 101, 255, .45);
  --amber: #fbbf24; --green: #4ade80;
  --gutter: clamp(16px, 4.6vw, 64px); --max: 1360px; --head: 74px;
  --r-xl: 32px; --r-lg: 22px; --r-md: 16px;
  --ease: cubic-bezier(.22, .7, .12, 1); --out: cubic-bezier(.16, 1, .3, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; min-height: 100svh; overflow-x: clip; background: var(--bg); color: var(--text); font: 450 17px/1.62 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
p, h1, h2, h3, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-text); outline-offset: 4px; border-radius: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip { position: fixed; z-index: 300; left: 16px; top: -64px; padding: 10px 16px; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 700; transition: top .2s; }
.skip:focus { top: 14px; }
main, .foot, .ticker { position: relative; z-index: 2; }
.section { padding-block: clamp(96px, 13vw, 176px); }
mark.todo { padding: 0 .3em; border: 1px dashed rgba(251, 191, 36, .65); border-radius: .3em; background: rgba(251, 191, 36, .14); color: var(--amber); font: inherit; font-weight: 700; }
code { padding: .14em .42em; border-radius: 6px; background: var(--blue-soft); color: var(--blue-text); font: 700 .88em/1.4 var(--mono); white-space: nowrap; }

/* ---------- reveal (hidden only once JS is known to run; a failsafe shows it anyway) ---------- */
:where(html.js) [data-reveal]:where(:not(.in)) { opacity: 0; translate: 0 30px; }
:where(html.js:not(.ready)) [data-reveal] { animation: failsafe 0s linear 2.5s forwards; }
:where(html.ready) [data-reveal] { transition: opacity .9s var(--out) calc(var(--i, 0) * 90ms), translate .9s var(--out) calc(var(--i, 0) * 90ms); }
@keyframes failsafe { to { opacity: 1; translate: none; transform: none; } }

/* ---------- ambient layers ---------- */
.backdrop { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.spot { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .8s; background: radial-gradient(640px circle at var(--px, 50%) var(--py, 40%), rgba(23, 101, 255, .11), transparent 62%); }
.pointer-in .spot { opacity: 1; }
body::before { content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%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"); }

/* ---------- brand mark: the two bars of "ll" ---------- */
.mark { display: inline-flex; align-items: flex-end; gap: .1em; height: .73em; margin-right: .06em; }
.mark i { display: block; width: .15em; height: 100%; border-radius: .075em; background: currentColor; transform-origin: 50% 100%; }
.mark i + i { background: var(--blue); box-shadow: 0 0 .45em var(--blue-glow); }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--head); border-bottom: 1px solid transparent; transition: background .35s, border-color .35s; view-transition-name: top; }
.is-scrolled .top, [data-menu="open"] .top { background: rgba(9, 9, 11, .76); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); border-bottom-color: var(--line); }
.top-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.top-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--blue-text)); transform-origin: left; transform: scaleX(var(--scroll, 0)); }
.logo { display: inline-flex; align-items: baseline; font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.06em; }
@media (hover: hover) { .logo:hover .mark i { animation: hop .7s var(--spring); } .logo:hover .mark i + i { animation-delay: .08s; } }
@keyframes hop { 40% { scale: 1 .55; } }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--text-2); font-size: 15px; font-weight: 650; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .055); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); font-size: 13px; font-weight: 800; letter-spacing: .06em; transition: color .2s, border-color .2s, background .2s; }
.lang:hover { color: var(--text); border-color: var(--text-3); background: rgba(255, 255, 255, .04); }
.menu-btn { position: relative; display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: rgba(255, 255, 255, .04); cursor: pointer; }
.menu-btn span:not(.sr) { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--text); transition: top .4s var(--out), rotate .4s var(--out), background .3s; }
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 25px; background: var(--blue); }
[data-menu="open"] .menu-btn span:nth-child(1) { top: 20.5px; rotate: 45deg; }
[data-menu="open"] .menu-btn span:nth-child(2) { top: 20.5px; rotate: -45deg; }
.menu { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--head) + 40px) var(--gutter) 36px; background: var(--bg); clip-path: circle(0% at calc(100% - var(--gutter) - 22px) 37px); visibility: hidden; transition: clip-path .6s var(--out), visibility 0s linear .6s; }
[data-menu="open"] .menu { clip-path: circle(150% at calc(100% - var(--gutter) - 22px) 37px); visibility: visible; transition: clip-path .75s var(--out), visibility 0s; }
.menu-links { display: grid; gap: 6px; }
.menu-links a { display: flex; align-items: baseline; gap: 14px; font-size: clamp(46px, 14vw, 80px); line-height: 1.04; font-weight: 800; letter-spacing: -.055em; opacity: 0; translate: 0 34px; transition: opacity .4s, translate .6s var(--out); }
.menu-links a span { color: var(--blue-text); font-size: 14px; font-weight: 800; letter-spacing: .1em; }
[data-menu="open"] .menu-links a { opacity: 1; translate: none; transition-delay: calc(.14s + var(--i) * .07s); }
.menu-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; opacity: 0; transition: opacity .4s; }
[data-menu="open"] .menu-foot { opacity: 1; transition-delay: .4s; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 24px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .035); color: var(--text); font-size: 16px; font-weight: 750; letter-spacing: -.012em; white-space: nowrap; cursor: pointer; overflow: hidden; isolation: isolate; transform: translate3d(var(--bx, 0px), var(--by, 0px), 0); transition: transform .5s var(--out), color .3s, border-color .3s, box-shadow .3s; }
.btn::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: var(--text); transform: translateY(102%); transition: transform .5s var(--out); }
.btn-primary { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 14px 44px -14px var(--blue-glow); }
.btn-primary::before { background: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .45s var(--out); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn.is-done { border-color: var(--blue); color: var(--blue-text); }
@media (hover: hover) {
  .btn:hover::before { transform: none; }
  .btn:hover { color: #0a0a0c; border-color: var(--text); }
  .btn-primary:hover { border-color: #fff; }
  .btn:hover svg { transform: translate(2px, -2px); }
  .btn-primary:hover svg { transform: translateY(3px); }
}

/* ---------- opening (first home visit of the session) ---------- */
.intro { display: none; }
.has-intro .intro { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; background: var(--bg); pointer-events: none; animation: intro-out .85s var(--out) 1.2s forwards; }
.intro-mark { display: flex; align-items: baseline; font-size: clamp(72px, 13vw, 168px); font-weight: 800; line-height: 1; letter-spacing: -.065em; }
.intro-mark .mark i { animation: grow .85s var(--spring) both; }
.intro-mark .mark i + i { animation-delay: .12s; }
.intro-word { clip-path: inset(0 100% 0 0); animation: wipe .55s var(--out) .42s forwards; }
@keyframes grow { from { scale: 1 0; } }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes intro-out { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--head) + 48px) 0 112px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
.hero-copy { position: relative; z-index: 3; translate: 0 calc(var(--hero, 0) * -80px); opacity: calc(1 - var(--hero, 0) * 1.15); }
.kicker { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 26px; color: var(--text-3); font-size: 13px; font-weight: 800; letter-spacing: .16em; line-height: 1.4; text-transform: uppercase; }
.kicker::before { content: ""; flex: none; width: 24px; height: 2px; border-radius: 2px; background: var(--blue); box-shadow: 0 0 12px var(--blue-glow); }
.hero-title { font-size: clamp(50px, 8.4vw, 146px); line-height: .92; font-weight: 800; letter-spacing: -.058em; }
.kinetic, .kinetic .line { display: block; }
.kinetic .w { display: inline-block; white-space: nowrap; }
.kinetic .ch { display: inline-block; font-weight: var(--w, 800); }
.kinetic .hl { padding: 0 .05em; margin: 0 -.05em; border-radius: .08em; background: linear-gradient(var(--blue), var(--blue)) no-repeat 0 88% / 0% .32em; transition: background-size 1.1s var(--out) .6s; }
.hero-title.in .hl, html:not(.js) .kinetic .hl { background-size: 100% .32em; }
.kinetic .jitter .ch { animation: jitter .9s steps(1) infinite; animation-delay: calc(var(--i, 0) * -.17s); }
.kinetic .dot { color: var(--blue); }
@keyframes jitter { 0% { translate: 0 0; rotate: 0deg; } 25% { translate: -.018em .012em; rotate: -2.5deg; } 50% { translate: .014em -.02em; rotate: 2deg; } 75% { translate: -.01em -.012em; rotate: -1deg; } }
.lede { max-width: 580px; margin-top: 30px; color: var(--text-2); font-size: clamp(17px, 1.45vw, 21px); line-height: 1.55; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

.hero-art { position: relative; height: min(72vh, 660px); translate: 0 calc(var(--hero, 0) * 110px); }
.stage { position: absolute; inset: 0; perspective: 1300px; scale: calc(1 - var(--hero, 0) * .14); }
.stage::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 14%; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.pillars { position: absolute; left: 50%; top: 6%; bottom: 14%; z-index: 2; display: flex; align-items: flex-end; gap: clamp(16px, 2.2vw, 32px); transform: translateX(-50%) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; }
.pillar { position: relative; width: clamp(62px, 7.4vw, 122px); border-radius: clamp(26px, 3vw, 48px); overflow: hidden; transform-origin: 50% 100%; transition: transform 1.5s var(--spring); }
.js:not(.is-live) .pillar { transform: scaleY(.002); }
.js:not(.ready) .pillar { animation: failsafe 0s linear 2.5s forwards; }
.is-live .pillar.p2 { transition-delay: .14s; }
.pillar.p1 { height: 62%; background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, .72) 40%, rgba(255, 255, 255, .12) 100%); box-shadow: inset 0 2px 0 #fff, 0 40px 90px -40px rgba(255, 255, 255, .35); animation: breathe-a 7s ease-in-out 1.8s infinite; }
.pillar.p2 { height: 100%; background: linear-gradient(180deg, #6aa2ff 0%, var(--blue) 42%, #0a3bb8 100%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), 0 50px 140px -30px var(--blue-glow); animation: breathe-b 7s ease-in-out 1.8s infinite; }
@keyframes breathe-a { 50% { scale: 1 .93; } }
@keyframes breathe-b { 50% { scale: 1 1.04; } }
.pillar .sheen { position: absolute; inset: -10% -130%; background: linear-gradient(100deg, transparent 43%, rgba(255, 255, 255, .7) 50%, transparent 57%); mix-blend-mode: overlay; animation: sheen 6s var(--ease) 2.2s infinite; translate: -45% 0; }
.pillar.p2 .sheen { animation-delay: 2.5s; }
@keyframes sheen { 0% { translate: -45% 0; } 32%, 100% { translate: 45% 0; } }
.floor { position: absolute; left: 50%; bottom: 9%; width: min(440px, 82%); height: 76px; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(23, 101, 255, .6), transparent); filter: blur(14px); opacity: .9; }
.js:not(.is-live) .floor { opacity: 0; }
.floor { transition: opacity 1.4s ease .5s; }
.orbiter { position: absolute; left: 50%; top: 50%; z-index: 1; display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(18, 18, 22, .84); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06); font-size: 15px; font-weight: 750; letter-spacing: -.01em; white-space: nowrap; translate: -50% -50%; opacity: calc(.42 + var(--k, .6) * .58); will-change: transform; transition: scale .9s var(--spring) 1s; }
.js:not(.is-live) .orbiter { scale: 0; }
.orbiter .tile { width: 36px; height: 36px; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; z-index: 3; display: flex; gap: 5px; height: 46px; padding: 6px; translate: -50% 0; }
.scroll-cue span { position: relative; width: 3px; height: 100%; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.scroll-cue span::after { content: ""; position: absolute; inset: 0; background: var(--text); animation: cue 1.9s var(--ease) infinite; }
.scroll-cue span + span::after { background: var(--blue); animation-delay: .18s; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 50.1% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- app icon tile ---------- */
.tile { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 30%; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06), 0 10px 26px -12px color-mix(in srgb, var(--app, #fff) 75%, transparent); overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: contain; }
.tile-klinvi img { padding: 13%; }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; padding-block: clamp(18px, 2.4vw, 30px); border-block: 1px solid var(--line); background: rgba(12, 12, 15, .72); }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.tk { display: inline-flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); padding-right: clamp(18px, 2.4vw, 34px); font-size: clamp(26px, 3.6vw, 52px); font-weight: 800; letter-spacing: -.045em; line-height: 1.1; white-space: nowrap; }
.tk:nth-child(even) { color: var(--text-3); }
.tk-mark { display: inline-flex; align-items: flex-end; gap: .1em; height: .58em; }
.tk-mark i { width: .12em; height: 100%; border-radius: .06em; background: #3a3a44; }
.tk-mark i + i { background: var(--blue); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- section heads ---------- */
.sec-head { max-width: 1000px; margin-bottom: clamp(44px, 6vw, 84px); }
.h2 { font-size: clamp(40px, 6.2vw, 100px); line-height: .96; font-weight: 800; letter-spacing: -.052em; text-wrap: balance; }
.muted { color: var(--text-3); }

/* ---------- apps ---------- */
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.app-card { position: relative; display: flex; flex-direction: column; gap: 20px; padding: clamp(20px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: var(--r-xl); background: linear-gradient(180deg, var(--card-2), var(--card)); transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .7s var(--out), border-color .3s, opacity .9s var(--out) calc(var(--i, 0) * 110ms), translate .9s var(--out) calc(var(--i, 0) * 110ms); }
.app-card.is-tilting { transition: transform .12s linear, border-color .3s, opacity .9s var(--out), translate .9s var(--out); }
.app-card::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 30%), color-mix(in srgb, var(--app) 17%, transparent), transparent 60%); opacity: 0; transition: opacity .4s; }
.app-card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 30%), var(--app), transparent 65%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; opacity: 0; transition: opacity .4s; pointer-events: none; }
@media (hover: hover) { .app-card:hover::before, .app-card:hover::after { opacity: 1; } .app-card:hover { border-color: var(--line-2); } }
.app-top { display: flex; align-items: center; gap: 14px; }
.app-name { flex: 1; min-width: 0; }
.app-card h3 { font-size: clamp(26px, 2.4vw, 32px); line-height: 1; font-weight: 800; letter-spacing: -.045em; }
.app-for { margin-top: 6px; color: var(--text-3); font-size: 14.5px; font-weight: 650; }
.app-status { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; background: color-mix(in srgb, var(--app) 14%, transparent); color: color-mix(in srgb, var(--app) 72%, white); font-size: 12.5px; font-weight: 800; letter-spacing: .02em; }
.app-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: ping 2.2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
.app-title { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.25; font-weight: 750; letter-spacing: -.025em; text-wrap: balance; }
.app-text { margin-top: -8px; color: var(--text-2); font-size: 16px; }
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.feats li { display: flex; gap: 9px; align-items: flex-start; color: var(--text-2); font-size: 14.5px; line-height: 1.4; font-weight: 600; }
.feats svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--app); stroke-width: 2.6; }
.app-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); }
.app-card.ghost { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 22px; padding-block: 24px; border-style: dashed; background: transparent; transform: none; }
.ghost-mark { position: relative; display: grid; place-items: center; flex: none; width: 66px; height: 66px; border: 1px dashed var(--line-2); border-radius: 22px; color: var(--text-3); font-size: 42px; }
.ghost-mark .mark { margin: 0; }
.ghost-mark .mark i + i { background: var(--text-4); box-shadow: none; }
.ghost-mark b { position: absolute; right: -7px; top: -8px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 17px; font-weight: 800; line-height: 1; animation: ping 2.2s ease-out infinite; }
.ghost h3 { font-size: 22px; }
.ghost p { margin-top: 4px; color: var(--text-3); }

/* app screens: real captures that take turns (main.js), with a slow drift while shown */
.app-media { position: relative; display: grid; aspect-ratio: 16 / 10.4; border: 1px solid var(--line); border-radius: var(--r-lg); background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--app) 24%, #0d0d10), #0b0b0e 72%); overflow: hidden; transform: translateZ(36px); }
.media-browser { place-items: end center; padding: 6% 6% 0; }
.frame { width: 100%; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px 14px 0 0; background: #121216; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-bottom: 1px solid rgba(255, 255, 255, .07); background: #16161b; }
.frame-bar i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #3a3a44; }
.frame-url { margin: 0 auto; padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--text-3); font: 650 11px/1.3 var(--font); letter-spacing: .02em; translate: -18px 0; }
.frame-view { position: relative; aspect-ratio: 16 / 9.6; overflow: hidden; background: #0b0b0e; }
.frame-view .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transition: opacity 1s var(--ease); }
.media-phone { place-items: start center; padding-top: 7%; }
.phone-stack { position: relative; width: min(46%, 236px); aspect-ratio: 596 / 1256; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); animation: drift 6s ease-in-out infinite; }
.phone-stack .shot { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; translate: 0 14px; transition: opacity .8s var(--ease), translate .9s var(--out); }
.shot.is-on { opacity: 1; translate: 0 0; }
.media-browser .shot.is-on { animation: settle 9s ease-out both; }
@keyframes settle { from { scale: 1.07; } }
@keyframes drift { 50% { translate: 0 -8px; } }
.ready .app-media:not(.is-playing) *, .ready .client:not(.is-playing) .frame-scroll img { animation-play-state: paused; }
.dots { position: absolute; right: 14px; bottom: 12px; z-index: 2; display: flex; gap: 6px; padding: 6px 8px; border-radius: 999px; background: rgba(9, 9, 11, .6); }
.dots i { width: 7px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .28); transition: width .45s var(--out), background .45s; }
.dots i.is-on { width: 22px; background: var(--app); }
.app-langs { color: var(--text-3); font-size: 13.5px; font-weight: 700; letter-spacing: .03em; }

/* ---------- principles: words fill as you scroll ---------- */
.principles { position: relative; z-index: 2; padding-block: clamp(56px, 8vw, 110px) clamp(96px, 12vw, 160px); }
.principles .kicker { margin-bottom: 18px; }
.bw { --fill: 100%; --fill-n: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); align-items: end; gap: 8px 40px; padding-block: clamp(8px, 1.4vw, 20px); border-bottom: 1px solid var(--line); }
.ready .bw { --fill: 0%; --fill-n: 0; }
.bw-word { padding-bottom: .06em; font-size: clamp(66px, 15.5vw, 252px); line-height: .84; font-weight: 800; letter-spacing: -.068em; color: transparent; background: linear-gradient(90deg, var(--text) var(--fill), #24242b var(--fill)); -webkit-background-clip: text; background-clip: text; }
.bw-word .dot { color: var(--blue); -webkit-text-fill-color: var(--blue); }
.bw-text { padding-bottom: .9em; color: var(--text-2); font-size: clamp(16px, 1.4vw, 20px); font-weight: 600; opacity: clamp(0, calc(var(--fill-n) * 1.6 - .3), 1); translate: 0 calc((1 - var(--fill-n)) * 14px); }

/* ---------- text link with an arrow ---------- */
.link-arrow { display: inline-flex; align-items: center; gap: 10px; color: var(--blue-text); font-weight: 750; }
.link-arrow span { padding-bottom: 2px; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0% 1.5px; transition: background-size .45s var(--out); }
.link-arrow svg { flex: none; width: 18px; height: 18px; transition: transform .45s var(--out); }
@media (hover: hover) {
  .link-arrow:hover span { background-size: 100% 1.5px; }
  .link-arrow:hover svg { transform: translateX(4px); }
  .link-arrow[target]:hover svg { transform: translate(3px, -3px); }
}

/* ---------- client sites: the page scrolls inside the frame on hover (on its own on touch) ---------- */
.clients .lede { max-width: 640px; }
.client-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.client { display: grid; align-content: start; gap: 22px; transition: opacity .9s var(--out) calc(var(--i, 0) * 110ms), translate .9s var(--out) calc(var(--i, 0) * 110ms); }
.client-shot { display: block; padding: clamp(14px, 2vw, 22px) clamp(14px, 2vw, 22px) 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: radial-gradient(120% 100% at 50% 0%, rgba(23, 101, 255, .2), rgba(17, 17, 20, .92) 70%); overflow: hidden; }
.client-shot .frame { transition: translate .6s var(--out); }
.frame-scroll { container-type: size; aspect-ratio: 16 / 10; }
.frame-scroll img { width: 100%; height: auto; transition: transform 7s cubic-bezier(.45, 0, .25, 1); }
@media (hover: hover) {
  .client:hover .client-shot .frame { translate: 0 -6px; }
  .client:hover .frame-scroll img { transform: translateY(calc(-100% + 100cqh)); }
}
@media (hover: none) { .frame-scroll img { animation: page-scroll 16s ease-in-out infinite alternate; } }
@keyframes page-scroll { 0%, 12% { transform: none; } 88%, 100% { transform: translateY(calc(-100% + 100cqh)); } }
.client-info h3 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.05; font-weight: 800; letter-spacing: -.04em; }
.client-what { margin-top: 6px; color: var(--text-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 16px; }
.tags li { padding: 5px 11px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); font-size: 13px; font-weight: 650; }
.clients-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-top: clamp(32px, 5vw, 56px); padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--r-xl); background: linear-gradient(110deg, rgba(23, 101, 255, .16), rgba(17, 17, 20, .6) 60%); }
.clients-cta p { font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.035em; }

/* ---------- contact: the form is the only way in ---------- */
.contact-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact-copy .lede { max-width: 520px; }
.say { white-space: nowrap; }
.greet { display: inline-grid; height: 1.04em; overflow: hidden; vertical-align: bottom; color: var(--blue-text); }
.greet span { grid-area: 1 / 1; translate: 0 110%; animation: greet 7.5s var(--out) infinite; }
.greet span:first-child { translate: 0 0; }
.greet span:nth-child(2) { animation-delay: 2.5s; }
.greet span:nth-child(3) { animation-delay: 5s; }
@keyframes greet { 0% { translate: 0 110%; } 6%, 30% { translate: 0 0; } 36%, 100% { translate: 0 -110%; } }
.langs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.langs li { padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 15px; font-weight: 750; }
.langs li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue-glow); vertical-align: 1px; }
.contact-form { position: relative; display: grid; gap: 18px; padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--r-xl); background: linear-gradient(180deg, rgba(22, 22, 26, .94), rgba(15, 15, 18, .94)); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9); transition: opacity .9s var(--out) .18s, translate .9s var(--out) .18s; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; }
.field label, .chips legend { color: var(--text-2); font-size: 13.5px; font-weight: 750; }
.opt { color: var(--text-3); font-weight: 600; }
.field input, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line-2); border-radius: 13px; background: rgba(9, 9, 11, .72); color: var(--text); font: 500 16px/1.4 var(--font); transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { min-height: 124px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #5d5d68; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: rgba(9, 9, 11, .92); box-shadow: 0 0 0 4px var(--blue-soft); }
.field.is-invalid input, .field.is-invalid textarea, .chips.is-invalid .chip span { border-color: #f87171; box-shadow: 0 0 0 4px rgba(248, 113, 113, .14); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.chips legend { width: 100%; margin-bottom: 8px; padding: 0; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; padding: 9px 15px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); font-size: 14.5px; font-weight: 700; transition: border-color .2s, background .2s, color .2s, box-shadow .2s; }
.chip:hover span { border-color: var(--text-3); color: var(--text); }
.chip input:checked + span { border-color: var(--blue); background: var(--blue-soft); color: #fff; box-shadow: inset 0 0 0 1px var(--blue); }
.chip input:focus-visible + span { outline: 2px solid var(--blue-text); outline-offset: 3px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { color: var(--text-3); font-size: 13.5px; }
.form-note a { color: var(--blue-text); text-decoration: underline; text-underline-offset: 3px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { color: var(--text-2); font-size: 14.5px; font-weight: 650; }
.form-status.is-error { color: #f87171; }
.contact-form.is-sending button[type="submit"] { opacity: .7; pointer-events: none; }
.contact-form.is-done > :not(.form-done) { display: none; }
.form-done { display: grid; justify-items: start; gap: 8px; padding: 6px 0; animation: done-in .7s var(--spring) both; }
.form-done[hidden] { display: none; }
.done-mark { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 6px; border-radius: 50%; background: var(--blue); color: #fff; box-shadow: 0 0 40px var(--blue-glow); }
.done-mark svg { width: 26px; height: 26px; stroke-width: 3; }
.done-title { font-size: 30px; font-weight: 800; letter-spacing: -.04em; }
.form-done p:not(.done-title) { color: var(--text-2); }
.form-done .btn { margin-top: 10px; }
@keyframes done-in { from { opacity: 0; scale: .92; } }

/* ---------- footer ---------- */
.foot { padding: clamp(64px, 9vw, 120px) 0 36px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(23, 101, 255, .05)); overflow: hidden; }
.foot-mark { display: inline-flex; align-items: baseline; margin-left: -.03em; color: var(--text); font-size: clamp(104px, 26vw, 430px); line-height: .78; font-weight: 800; letter-spacing: -.075em; }
.foot-mark .mark { gap: .09em; margin-right: .05em; }
.foot-mark .mark i { transition: scale 1.4s var(--spring) .2s; }
.foot-mark .mark i + i { transition-delay: .34s; }
.ready .foot-mark:not(.in) .mark i { scale: 1 .04; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-top: clamp(40px, 6vw, 72px); padding-top: 30px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 15px; }
.foot-grid nav { display: grid; gap: 9px; align-content: start; }
.foot-grid nav a { width: fit-content; transition: color .2s; }
.foot-grid nav a:hover, .foot-grid nav a[aria-current] { color: var(--text); }
.foot-name { color: var(--text); font-weight: 800; }
.foot-co p + p { margin-top: 8px; }
.foot-k { margin-bottom: 4px; color: var(--text-3); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; color: var(--text-3); font-size: 13.5px; }

/* ---------- scroll rail (home, wide screens) ---------- */
.rail { position: fixed; z-index: 50; right: clamp(12px, 1.5vw, 26px); top: 50%; display: flex; align-items: flex-end; gap: 5px; height: 34vh; translate: 0 -50%; opacity: 0; transition: opacity .5s; pointer-events: none; }
.past-hero .rail { opacity: 1; }
.rail i { position: relative; width: 3px; height: 100%; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.rail i:first-child { height: 72%; }
.rail i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--text); transform-origin: top; transform: scaleY(var(--scroll, 0)); }
.rail i + i::after { background: var(--blue); box-shadow: 0 0 10px var(--blue-glow); }
@media (min-width: 1101px) { [data-page="home"] .top-progress { display: none; } }
@media (max-width: 1100px) { .rail { display: none; } }

/* ---------- cursor ring (mouse only) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 200; width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 50%; pointer-events: none; opacity: 0; transition: scale .35s var(--out), background .3s, border-color .3s, opacity .3s; will-change: translate; }
.has-cursor.pointer-in .cursor { opacity: 1; }
.cursor.is-hover { scale: 1.75; border-color: var(--blue-text); background: rgba(23, 101, 255, .12); }
.cursor.is-down { scale: .8; }
.cursor.is-hover.is-down { scale: 1.45; }

/* ---------- legal pages ---------- */
.legal-hero { padding-top: calc(var(--head) + clamp(56px, 8vw, 110px)); padding-bottom: clamp(36px, 5vw, 64px); }
.legal-hero h1 { font-size: clamp(46px, 8vw, 124px); line-height: .92; font-weight: 800; letter-spacing: -.058em; text-wrap: balance; }
.legal-meta { margin-top: 24px; color: var(--text-3); font-weight: 650; }
.legal-note { display: inline-block; margin-top: 14px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .04); color: var(--text-2); font-size: 14px; }
.legal-in { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 740px); gap: clamp(32px, 6vw, 110px); padding-bottom: clamp(80px, 10vw, 140px); }
.toc { position: sticky; top: calc(var(--head) + 28px); align-self: start; }
.toc-k { margin-bottom: 12px; color: var(--text-3); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.toc ol { display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { position: relative; display: flex; gap: 10px; padding: 7px 12px; color: var(--text-3); font-size: 14px; font-weight: 650; line-height: 1.35; transition: color .2s; }
.toc a::before { content: ""; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--blue); transform: scaleY(0); transition: transform .35s var(--out); }
.toc a:hover, .toc a.is-active { color: var(--text); }
.toc a.is-active::before { transform: none; }
.toc .n { color: var(--blue-text); font-weight: 800; font-variant-numeric: tabular-nums; }
.prose { color: var(--text-2); font-size: 17.5px; line-height: 1.72; }
.prose .lead { color: var(--text); font-size: clamp(19px, 1.6vw, 22px); line-height: 1.6; font-weight: 550; }
.prose section { padding-top: 46px; }
.prose h2 { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; color: var(--text); font-size: clamp(22px, 2vw, 28px); line-height: 1.2; font-weight: 800; letter-spacing: -.03em; }
.prose h2 .num { color: var(--blue-text); font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 14px; }
.prose ul { display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 22px; }
.prose li::before { content: ""; position: absolute; left: 2px; top: .78em; width: 9px; height: 2px; border-radius: 2px; background: var(--blue); }
.prose a { color: var(--blue-text); text-decoration: underline; text-decoration-color: rgba(126, 171, 255, .4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--text); }
.prose .back { margin-top: 56px; }
.prose .back a { text-decoration: none; }

/* ---------- 404 ---------- */
.nf { min-height: 84svh; display: grid; align-items: center; padding: calc(var(--head) + 60px) 0 80px; }
.nf-mark { margin-bottom: 30px; color: var(--text); font-size: 128px; line-height: 1; }
.nf-mark .mark i:first-child { transform-origin: 0 100%; animation: lean 1.6s var(--spring) .4s both; }
@keyframes lean { to { rotate: -24deg; } }

/* ---------- page transitions ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .3s var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in .55s var(--out) both; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; translate: 0 18px; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
  .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .hero { min-height: auto; padding-bottom: 72px; }
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .hero-art { height: 440px; }
  .hero-copy, .hero-art { translate: none; opacity: 1; }
  .stage { scale: 1; }
  .contact-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .nav, .top-cta { display: none; }
  .menu-btn { display: block; }
  .top-actions { margin-left: auto; }
}
@media (max-width: 760px) {
  .app-grid, .feats, .client-grid { grid-template-columns: minmax(0, 1fr); }
  .bw { grid-template-columns: minmax(0, 1fr); }
  .bw-text { padding-bottom: .5em; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-co { grid-column: 1 / -1; }
  .app-card.ghost { flex-direction: column; align-items: flex-start; }
  .legal-in { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
}
@media (max-width: 520px) {
  .hero-art { height: 360px; }
  .scroll-cue { display: none; }
  .btn { height: 50px; padding: 0 20px; }
  .cta-row .btn { flex: 1 1 auto; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-foot .btn { width: 100%; }
  .say { white-space: normal; }
}

/* ---------- reduced motion: a still page ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .cursor, .spot { display: none !important; }
}
