@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Newsreader:opsz,wght@6..72,400..800&family=Noto+Serif+TC:wght@400;500;600;700;900&display=swap");
@font-face {
    font-family: "Noto Sans TC Local";
    src: url("assets/fonts/noto/NotoSansTC-Aulyn.woff") format("woff");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Anthropic Sans";
    src: url("assets/fonts/AnthropicSans-Roman.woff2") format("woff2");
    font-weight: 300 800;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "Anthropic Sans";
    src: url("assets/fonts/AnthropicSans-Italic.woff2") format("woff2");
    font-weight: 300 800;
    font-style: italic;
    font-display: block;
}

@font-face {
    font-family: "Anthropic Serif";
    src: url("assets/fonts/AnthropicSerif-Roman.woff2") format("woff2");
    font-weight: 300 800;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "Anthropic Serif";
    src: url("assets/fonts/AnthropicSerif-Italic.woff2") format("woff2");
    font-weight: 300 800;
    font-style: italic;
    font-display: block;
}

:root {
    color-scheme: dark;
    --bg: #070912;
    --ink: #fffaf1;
    --soft: rgba(255, 250, 241, 0.76);
    --muted: rgba(255, 250, 241, 0.56);
    --line: rgba(255, 255, 255, 0.15);
    --surface: rgba(17, 21, 36, 0.68);
    --surface-strong: rgba(21, 25, 42, 0.88);
    --accent: #ff7a59;
    --accent-2: #ffd166;
    --accent-3: #74d7ff;
    --accent-4: #8d7bff;
    --page-progress: 0;
    --scene-shift: 0px;
    --scene-rotate: 0deg;
    --stage-shift: 0px;
    --stage-depth: 0px;
    --stage-tilt: 0deg;
    --stage-scale: 1;
    --scene-float: 0px;
    --active-progress: 0;
    --active-ease: 0;
    --active-scene: 0;
    --scene-count: 12;
    --meter: 0;
    --camera-x: -92vw;
    --camera-y: 0vh;
    --camera-z: 1;
    --camera-tilt: 0deg;
    --chapter-wipe: 0;
    --max: 1240px;
    --nav-top: 12px;
    --nav-h: 58px;
    --font-sans: "Manrope", "Noto Serif TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
    --font-cjk: "Noto Serif TC", "PingFang TC", "Microsoft JhengHei", serif;
    --font-display: "Newsreader", "Noto Serif TC", "Songti TC", serif;
    --font-serif: "Newsreader", "Noto Serif TC", "Songti TC", serif;
    --bg-a: #211136;
    --bg-b: #123c72;
    --bg-c: #661f3d;
    --bg-d: #10201f;
    --scene-warm: rgba(255, 122, 89, 0.34);
    --scene-gold: rgba(255, 209, 102, 0.28);
    --scene-cool: rgba(116, 215, 255, 0.32);
    --scene-violet: rgba(141, 123, 255, 0.28);
}

body,
button,
input,
textarea,
select {
    font-family: var(--font-sans);
}

h1,
h2,
h3,
.display-title,
.section-title,
.hero-title,
.work-card h3,
.preview-tile strong {
    font-family: var(--font-display);
    text-wrap: balance;
    word-break: keep-all;
    overflow-wrap: normal;
}

p,
li,
.lead,
.section-lead,
.work-card p {
    text-wrap: pretty;
}

body[data-theme="works"] {
    --bg-a: #28164d;
    --bg-b: #095a84;
    --bg-c: #7d2946;
    --bg-d: #11182d;
    --scene-warm: rgba(255, 96, 126, 0.38);
    --scene-gold: rgba(255, 215, 119, 0.26);
    --scene-cool: rgba(91, 221, 255, 0.34);
    --scene-violet: rgba(173, 122, 255, 0.34);
}

body[data-theme="cinema"] {
    --bg-a: #101d3d;
    --bg-b: #263e83;
    --bg-c: #843151;
    --bg-d: #143322;
    --scene-warm: rgba(255, 119, 92, 0.36);
    --scene-gold: rgba(255, 224, 132, 0.34);
    --scene-cool: rgba(103, 211, 255, 0.28);
    --scene-violet: rgba(132, 124, 255, 0.32);
}

body[data-theme="services"] {
    --bg-a: #132742;
    --bg-b: #0f5d70;
    --bg-c: #6c3850;
    --bg-d: #132b28;
    --scene-warm: rgba(255, 136, 88, 0.32);
    --scene-gold: rgba(255, 216, 112, 0.28);
    --scene-cool: rgba(79, 230, 212, 0.38);
    --scene-violet: rgba(124, 148, 255, 0.28);
}

body[data-theme="solutions"] {
    --bg-a: #1d2260;
    --bg-b: #08737d;
    --bg-c: #78334c;
    --bg-d: #152635;
    --scene-warm: rgba(255, 110, 129, 0.32);
    --scene-gold: rgba(255, 226, 126, 0.26);
    --scene-cool: rgba(86, 227, 226, 0.36);
    --scene-violet: rgba(151, 134, 255, 0.34);
}

body[data-theme="platform"] {
    --bg-a: #172c62;
    --bg-b: #08706f;
    --bg-c: #74304e;
    --bg-d: #18202f;
    --scene-warm: rgba(255, 128, 90, 0.34);
    --scene-gold: rgba(255, 225, 122, 0.3);
    --scene-cool: rgba(86, 229, 224, 0.38);
    --scene-violet: rgba(142, 130, 255, 0.32);
}

body[data-theme="process"] {
    --bg-a: #241841;
    --bg-b: #263f7c;
    --bg-c: #6f304c;
    --bg-d: #152431;
    --scene-warm: rgba(255, 133, 88, 0.34);
    --scene-gold: rgba(255, 205, 96, 0.3);
    --scene-cool: rgba(102, 210, 255, 0.32);
    --scene-violet: rgba(157, 118, 255, 0.34);
}

body[data-theme="model"] {
    --bg-a: #1b204f;
    --bg-b: #20536b;
    --bg-c: #784056;
    --bg-d: #16242d;
    --scene-warm: rgba(255, 151, 105, 0.34);
    --scene-gold: rgba(255, 221, 128, 0.26);
    --scene-cool: rgba(96, 221, 241, 0.34);
    --scene-violet: rgba(135, 126, 255, 0.32);
}

body[data-theme="founder"] {
    --bg-a: #2d173e;
    --bg-b: #245174;
    --bg-c: #7e2f42;
    --bg-d: #172f2b;
    --scene-warm: rgba(255, 117, 93, 0.38);
    --scene-gold: rgba(255, 218, 124, 0.32);
    --scene-cool: rgba(105, 218, 255, 0.3);
    --scene-violet: rgba(169, 122, 255, 0.34);
}

body[data-theme="submit"] {
    --bg-a: #1f1851;
    --bg-b: #076773;
    --bg-c: #872f43;
    --bg-d: #162436;
    --scene-warm: rgba(255, 112, 96, 0.4);
    --scene-gold: rgba(255, 229, 132, 0.32);
    --scene-cool: rgba(87, 230, 240, 0.36);
    --scene-violet: rgba(153, 126, 255, 0.34);
}

body[data-theme="story"],
body[data-theme="depth"],
body[data-theme="standards"],
body[data-theme="stack"],
body[data-theme="github"],
body[data-theme="about"] {
    --bg-a: #24152f;
    --bg-b: #26436c;
    --bg-c: #7a3443;
    --bg-d: #163125;
    --scene-warm: rgba(255, 121, 88, 0.34);
    --scene-gold: rgba(255, 218, 118, 0.28);
    --scene-cool: rgba(99, 215, 255, 0.3);
    --scene-violet: rgba(152, 120, 255, 0.32);
}

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
    overflow-x: clip;
    scroll-behavior: smooth;
    scroll-padding-top: 132px;
    background: var(--bg);
}

body {
    width: 100%;
    min-width: 320px;
    min-height: 100%;
    margin: 0;
    color: var(--ink);
    overflow-x: hidden;
    background: var(--bg);
    font-family: var(--font-sans);
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

body,
button,
input,
textarea,
select,
a,
p,
span,
small,
strong,
h3,
h4,
h5,
h6 {
    font-family: var(--font-sans);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at calc(12% + var(--page-progress) * 42%) calc(12% + var(--page-progress) * 18%), color-mix(in srgb, var(--bg-c) 94%, transparent), transparent 34rem),
        radial-gradient(ellipse at calc(88% - var(--page-progress) * 38%) calc(22% + var(--page-progress) * 30%), color-mix(in srgb, var(--bg-b) 96%, transparent), transparent 42rem),
        radial-gradient(ellipse at calc(50% + var(--page-progress) * 18%) calc(88% - var(--page-progress) * 32%), color-mix(in srgb, var(--bg-a) 92%, transparent), transparent 44rem),
        conic-gradient(from calc(var(--page-progress) * 260deg) at 50% 54%, rgba(255, 122, 89, 0.12), rgba(116, 215, 255, 0.13), rgba(141, 123, 255, 0.14), rgba(255, 209, 102, 0.08), rgba(255, 122, 89, 0.12)),
        linear-gradient(135deg, #070912 0%, color-mix(in srgb, var(--bg-d) 82%, #070912) 46%, #050711 100%);
    transition: background 420ms ease;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 45;
    height: 126px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(7, 9, 18, 0.72), rgba(7, 9, 18, 0.24) 70%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

::selection {
    color: #071018;
    background: var(--accent-2);
}

.motion-field {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: clip;
    contain: paint;
    pointer-events: none;
    transform-style: preserve-3d;
}

.motion-field span {
    position: absolute;
    display: block;
    pointer-events: none;
}

.motion-noise {
    inset: 0;
    opacity: 0.08;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 5px 5px;
    mask-image: linear-gradient(180deg, transparent, #000 15%, #000 86%, transparent);
}

.motion-gradient {
    inset: -16%;
    opacity: 0.92;
    background:
        conic-gradient(from calc(var(--page-progress) * 360deg) at 52% 48%, rgba(255, 122, 89, 0.28), rgba(116, 215, 255, 0.25), rgba(141, 123, 255, 0.28), rgba(255, 209, 102, 0.16), rgba(255, 122, 89, 0.28));
    transform: translate3d(calc(var(--scene-shift) * -0.18), calc(var(--scene-shift) * 0.08), 0) rotate(var(--scene-rotate)) scale(1.08);
    animation: ambientSweep 18s ease-in-out infinite alternate;
}

.motion-ribbon,
.motion-ripple {
    mix-blend-mode: screen;
}

.motion-ribbon {
    width: min(86vw, 1100px);
    height: clamp(140px, 16vw, 220px);
    border-radius: 999px;
    opacity: 0.48;
    filter: blur(22px);
    background:
        linear-gradient(90deg, rgba(255, 122, 89, 0), rgba(255, 122, 89, 0.32), rgba(255, 209, 102, 0.26), rgba(116, 215, 255, 0.28), rgba(141, 123, 255, 0));
    transform-origin: center;
}

.ribbon-a {
    left: -18vw;
    top: calc(10% + var(--page-progress) * 48%);
    transform:
        translate3d(calc(var(--scene-shift) * 0.08), calc(var(--scene-shift) * -0.1), 0)
        rotate(calc(-18deg + var(--page-progress) * 24deg));
}

.ribbon-b {
    right: -18vw;
    top: calc(46% - var(--page-progress) * 20%);
    opacity: 0.34;
    transform:
        translate3d(calc(var(--scene-shift) * -0.08), calc(var(--scene-shift) * 0.06), 0)
        rotate(calc(18deg - var(--page-progress) * 18deg));
}

.motion-ripple {
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        inset 0 0 42px rgba(116, 215, 255, 0.08),
        0 0 56px rgba(141, 123, 255, 0.12);
    opacity: 0.24;
}

.ripple-a {
    width: clamp(280px, 28vw, 440px);
    left: 56%;
    top: calc(22% + var(--page-progress) * 38%);
    transform: scale(calc(0.82 + var(--page-progress) * 0.24));
}

.ripple-b {
    width: clamp(180px, 18vw, 320px);
    left: 12%;
    top: calc(66% - var(--page-progress) * 24%);
    transform: scale(calc(1.08 - var(--page-progress) * 0.18));
    opacity: 0.22;
}

.motion-grid {
    inset: 0;
    opacity: 0.28;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 84px 84px;
    transform: translate3d(calc(var(--scene-shift) * -0.04), calc(var(--scene-shift) * -0.06), 0);
    mask-image: radial-gradient(circle at 50% 36%, #000, transparent 74%);
}

.motion-orb {
    display: none;
}

.orb-a {
    left: -6%;
    top: 10%;
}

.orb-b {
    right: -8%;
    top: 30%;
    width: clamp(220px, 24vw, 460px);
    animation-delay: -5s;
    background: radial-gradient(circle at 40% 34%, rgba(255, 255, 255, 0.66), rgba(255, 122, 89, 0.22) 32%, rgba(255, 209, 102, 0.12) 60%, transparent 74%);
}

.orb-c {
    left: 40%;
    bottom: -16%;
    width: clamp(260px, 28vw, 480px);
    animation-delay: -9s;
    background: radial-gradient(circle at 44% 38%, rgba(255, 255, 255, 0.55), rgba(141, 123, 255, 0.22) 34%, rgba(116, 215, 255, 0.1) 62%, transparent 75%);
}

.motion-line {
    height: 1px;
    width: 64vw;
    opacity: 0.34;
    background: linear-gradient(90deg, transparent, rgba(255, 209, 102, 0.56), rgba(116, 215, 255, 0.45), transparent);
    transform-origin: center;
}

.line-a {
    top: 28%;
    left: 12%;
    transform: translate3d(calc(var(--scene-shift) * 0.08), calc(var(--scene-shift) * -0.03), 0) rotate(18deg);
}

.line-b {
    right: -8%;
    bottom: 24%;
    transform: translate3d(calc(var(--scene-shift) * -0.06), calc(var(--scene-shift) * 0.04), 0) rotate(-14deg);
}

.scroll-stage {
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
}

.stage-frame {
    width: min(48vw, 720px);
    aspect-ratio: 16 / 10;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 42px;
    opacity: 0.2;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.025) 55%, rgba(116, 215, 255, 0.11)),
        radial-gradient(ellipse at 28% 22%, var(--scene-gold), transparent 26rem),
        radial-gradient(ellipse at 84% 72%, var(--scene-cool), transparent 28rem);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 0 70px rgba(116, 215, 255, 0.1),
        0 36px 120px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(6px) saturate(130%);
    -webkit-backdrop-filter: blur(6px) saturate(130%);
}

.frame-a {
    left: 48%;
    top: 15%;
    transform:
        translate3d(calc(var(--stage-shift) * -0.18), calc(var(--stage-depth) * 0.018), 0)
        rotate(calc(-13deg + var(--page-progress) * 34deg))
        scale(calc(0.86 + var(--page-progress) * 0.18));
}

.frame-b {
    right: -8%;
    top: 34%;
    width: min(44vw, 680px);
    opacity: 0.18;
    transform:
        translate3d(calc(var(--stage-shift) * 0.16), calc(var(--stage-depth) * -0.022), 0)
        rotate(calc(11deg - var(--page-progress) * 30deg))
        scale(calc(0.9 + var(--page-progress) * 0.14));
}

.frame-c {
    left: 24%;
    bottom: -12%;
    width: min(56vw, 820px);
    opacity: 0.16;
    transform:
        translate3d(calc(var(--stage-shift) * -0.08), calc(var(--stage-depth) * -0.018), 0)
        rotate(calc(4deg + var(--page-progress) * 18deg))
        scale(calc(0.82 + var(--page-progress) * 0.2));
}

.stage-slab {
    width: min(56vw, 820px);
    height: clamp(140px, 18vw, 260px);
    border-radius: 999px;
    opacity: 0.34;
    mix-blend-mode: screen;
    filter: blur(16px) saturate(120%);
    background:
        linear-gradient(90deg, transparent, var(--scene-warm), var(--scene-gold), var(--scene-cool), transparent);
}

.slab-a {
    left: -14%;
    top: 42%;
    transform:
        translate3d(calc(var(--stage-shift) * 0.2), calc(var(--stage-depth) * -0.032), 0)
        rotate(calc(-22deg + var(--page-progress) * 42deg));
    animation: stageBreathe 7s ease-in-out infinite alternate;
}

.slab-b {
    right: -18%;
    top: 12%;
    opacity: 0.24;
    background:
        linear-gradient(90deg, transparent, var(--scene-violet), var(--scene-cool), var(--scene-warm), transparent);
    transform:
        translate3d(calc(var(--stage-shift) * -0.16), calc(var(--stage-depth) * 0.024), 0)
        rotate(calc(20deg - var(--page-progress) * 36deg));
    animation: stageBreathe 8.5s ease-in-out infinite alternate-reverse;
}

.stage-beam {
    height: 1px;
    width: 78vw;
    opacity: 0.44;
    background:
        linear-gradient(90deg, transparent, rgba(255, 250, 241, 0.18), var(--scene-gold), var(--scene-cool), rgba(255, 250, 241, 0.16), transparent);
    box-shadow:
        0 0 18px rgba(116, 215, 255, 0.24),
        0 0 36px rgba(255, 122, 89, 0.16);
    transform-origin: center;
}

.beam-a {
    left: 8%;
    top: calc(24% + var(--page-progress) * 20%);
    transform:
        translate3d(calc(var(--stage-shift) * -0.12), calc(var(--stage-depth) * 0.012), 0)
        rotate(calc(16deg - var(--page-progress) * 38deg));
}

.beam-b {
    right: -10%;
    top: calc(58% - var(--page-progress) * 16%);
    opacity: 0.36;
    transform:
        translate3d(calc(var(--stage-shift) * 0.14), calc(var(--stage-depth) * -0.016), 0)
        rotate(calc(-11deg + var(--page-progress) * 32deg));
}

.beam-c {
    left: -8%;
    bottom: calc(18% + var(--page-progress) * 24%);
    opacity: 0.26;
    transform:
        translate3d(calc(var(--stage-shift) * 0.1), calc(var(--stage-depth) * -0.02), 0)
        rotate(calc(-22deg + var(--page-progress) * 46deg));
}

.stage-orbit {
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    opacity: 0.28;
    background:
        conic-gradient(from calc(var(--page-progress) * 360deg), transparent 0 18%, rgba(255, 255, 255, 0.28) 20%, transparent 22% 56%, var(--scene-cool) 58%, transparent 61% 100%);
    mask-image: radial-gradient(circle, transparent 58%, #000 60%, #000 62%, transparent 64%);
}

.orbit-a {
    width: min(42vw, 620px);
    left: 4%;
    top: 20%;
    transform:
        translate3d(calc(var(--stage-shift) * 0.08), calc(var(--stage-depth) * -0.012), 0)
        rotate(calc(var(--page-progress) * 120deg))
        scale(calc(0.9 + var(--page-progress) * 0.16));
}

.orbit-b {
    width: min(34vw, 520px);
    right: 8%;
    bottom: 8%;
    opacity: 0.22;
    transform:
        translate3d(calc(var(--stage-shift) * -0.1), calc(var(--stage-depth) * 0.018), 0)
        rotate(calc(var(--page-progress) * -150deg))
        scale(calc(0.82 + var(--page-progress) * 0.18));
}

.stage-node {
    width: 8px;
    aspect-ratio: 1;
    border-radius: 50%;
    opacity: 0.82;
    background: rgba(255, 250, 241, 0.94);
    box-shadow:
        0 0 18px rgba(255, 250, 241, 0.6),
        0 0 38px var(--scene-cool);
    animation: nodePulse 2.8s ease-in-out infinite;
}

.node-a {
    left: calc(16% + var(--page-progress) * 52%);
    top: calc(20% + var(--page-progress) * 36%);
}

.node-b {
    left: calc(76% - var(--page-progress) * 48%);
    top: calc(28% + var(--page-progress) * 42%);
    background: var(--accent-2);
    animation-delay: -0.7s;
}

.node-c {
    left: calc(22% + var(--page-progress) * 38%);
    bottom: calc(12% + var(--page-progress) * 36%);
    background: var(--accent);
    animation-delay: -1.4s;
}

.node-d {
    right: calc(14% + var(--page-progress) * 32%);
    bottom: calc(18% + var(--page-progress) * 28%);
    background: var(--accent-4);
    animation-delay: -2.1s;
}

.stage-scan {
    inset: -20% auto -20% -24%;
    width: 34vw;
    opacity: 0.16;
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), var(--scene-cool), transparent);
    filter: blur(10px);
    transform:
        translate3d(calc(var(--page-progress) * 140vw), 0, 0)
        rotate(16deg);
    animation: scanPulse 5.8s ease-in-out infinite alternate;
}

.site-nav {
    position: fixed;
    top: var(--nav-top);
    left: 0;
    right: 0;
    z-index: 50;
    width: min(var(--max), calc(100% - 28px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.control-surface,
.glow-button,
.work-card,
.platform-card,
.service-card,
.solution-card,
.standard-card,
.model-card,
.stack-card,
.process-steps article,
.depth-grid article,
.founder-manifesto article,
.story-timeline article,
.github-panel,
.submit-panel,
.principle-stack article {
    position: relative;
    isolation: isolate;
    transform: translate3d(var(--mx, 0), var(--my, 0), 0);
}

.control-surface {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05) 56%, rgba(116, 215, 255, 0.08)),
        rgba(14, 18, 31, 0.68);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        0 18px 44px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px) saturate(145%);
    -webkit-backdrop-filter: blur(14px) saturate(145%);
}

.site-nav .control-surface {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.06) 54%, rgba(116, 215, 255, 0.08)),
        rgba(10, 14, 26, 0.985);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        0 18px 48px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.control-surface::after,
.glow-button::after,
.work-card::after,
.platform-card::after,
.service-card::after,
.solution-card::after,
.standard-card::after,
.model-card::after,
.stack-card::after,
.process-steps article::after,
.depth-grid article::after,
.founder-manifesto article::after,
.story-timeline article::after,
.github-panel::after,
.submit-panel::after,
.principle-stack article::after {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    opacity: calc(0.07 + var(--hover, 0) * 0.62);
    background:
        linear-gradient(115deg, rgba(255, 122, 89, 0.34), rgba(255, 209, 102, 0.18), rgba(116, 215, 255, 0.26), rgba(141, 123, 255, 0.22));
    filter: saturate(130%);
    transition: opacity 180ms ease;
    pointer-events: none;
}

.brand {
    min-height: var(--nav-h);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border-radius: 999px;
    padding: 7px 14px 7px 8px;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 0 26px rgba(116, 215, 255, 0.18),
        0 0 34px rgba(255, 122, 89, 0.16);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    display: block;
}

.brand-copy {
    display: grid;
    gap: 1px;
}

.brand-copy strong {
    font-size: 17px;
    line-height: 1;
    font-weight: 850;
}

.brand-copy small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
}

.nav-links {
    min-height: var(--nav-h);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    padding: 6px;
}

.nav-links a,
.login-link,
.lang-toggle {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    color: rgba(255, 250, 241, 0.78);
    background: transparent;
    font-size: 16px;
    font-weight: 820;
    white-space: nowrap;
    transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.lang-toggle {
    gap: 8px;
}

.lang-flag {
    font-size: 15px;
    line-height: 1;
}

.lang-label {
    display: inline-flex;
    align-items: center;
}

.nav-links a {
    min-width: 82px;
    padding: 0 14px;
}

.nav-links a:hover,
.login-link:hover,
.lang-toggle:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.1);
    box-shadow:
        0 0 24px rgba(116, 215, 255, 0.18),
        0 0 42px rgba(255, 122, 89, 0.12);
}

.login-link::after,
.lang-toggle::after {
    display: none;
}

.nav-actions {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-account {
    position: relative;
}

.login-link,
.lang-toggle {
    min-width: 60px;
    padding: 0 16px;
}

.site-account .login-link {
    gap: 8px;
    padding: 0 10px 0 6px;
}

.site-account:not(.is-signed-in) .site-avatar {
    display: none;
}

.site-account:not(.is-signed-in) .login-link {
    min-width: 60px;
    padding: 0 16px;
}

.site-account.is-signed-in .login-link {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 50%;
}

.site-account.is-signed-in .site-auth-label {
    display: none;
}

.site-account.is-signed-in .site-avatar {
    width: 34px;
    height: 34px;
    font-size: 14px;
}

.site-avatar {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    color: #071018;
    background: linear-gradient(135deg, #fff3db, #ffd166 48%, #74d7ff);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.site-avatar.large {
    width: 42px;
    height: 42px;
    font-size: 15px;
}

.site-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-account-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 90;
    width: min(280px, calc(100vw - 28px));
    display: grid;
    gap: 8px;
    border-radius: 20px;
    padding: 10px;
    color: var(--ink);
    background:
        linear-gradient(145deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06)),
        rgba(12, 18, 32, 0.94);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.site-account-menu[hidden] {
    display: none;
}

.site-account-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 8px;
}

.site-account-head strong,
.site-account-head small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-account-head strong {
    font-size: 14px;
}

.site-account-head small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.site-account-menu a,
.site-account-menu button {
    min-height: 38px;
    display: flex;
    align-items: center;
    border: 0;
    border-radius: 12px;
    padding: 0 12px;
    color: rgba(255, 250, 241, 0.84);
    background: rgba(255, 255, 255, 0.06);
    font-size: 14px;
    font-weight: 820;
    text-align: left;
}

.site-account-menu a:hover,
.site-account-menu button:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.12);
}

.scroll-meter {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 70;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
}

.scroll-meter span {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent-4));
}

main {
    position: relative;
    z-index: 1;
}

.page-section {
    position: relative;
    min-height: 100svh;
    display: grid;
    align-items: start;
    padding: clamp(152px, 16vh, 210px) 0 clamp(92px, 12vh, 150px);
    scroll-margin-top: 122px;
}

.hero-section {
    align-items: center;
}

.section-inner {
    width: min(var(--max), calc(100% - 36px));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-section::before,
.page-section::after {
    content: "";
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.page-section::before {
    left: max(-10vw, -120px);
    right: max(-10vw, -120px);
    top: 12%;
    height: 58%;
    opacity: 0.42;
    background:
        radial-gradient(ellipse at calc(12% + var(--section-progress, 0) * 54%) 30%, rgba(255, 209, 102, 0.16), transparent 28%),
        radial-gradient(ellipse at calc(86% - var(--section-progress, 0) * 36%) 42%, rgba(116, 215, 255, 0.2), transparent 34%),
        linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.055), transparent);
    filter: blur(2px);
    transform: translate3d(0, calc((var(--section-progress, 0) - 0.5) * -72px), 0);
    mask-image: radial-gradient(ellipse at 50% 50%, #000, transparent 74%);
}

.page-section::after {
    width: min(680px, 58vw);
    height: 1px;
    right: 8%;
    top: calc(20% + var(--section-progress, 0) * 46%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), rgba(116, 215, 255, 0.28), transparent);
    opacity: 0.38;
    transform: rotate(calc(-18deg + var(--section-progress, 0) * 32deg));
    transform-origin: center;
}

.hero-grid,
.cinema-layout,
.process-grid,
.story-layout,
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
    gap: clamp(28px, 6vw, 82px);
    align-items: center;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--accent-2);
    font-size: clamp(15px, 1.2vw, 18px);
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.display-title,
.section-title {
    margin: 0;
    max-width: 13.5ch;
    color: var(--ink);
    font-family: var(--font-serif);
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1.01;
    text-wrap: pretty;
    word-break: keep-all;
    line-break: strict;
    overflow-wrap: normal;
}

.display-title {
    font-size: clamp(52px, 5.9vw, 88px);
}

.hero-title {
    max-width: 17ch;
}

.section-title {
    font-size: clamp(40px, 5vw, 76px);
}

.display-title span,
.section-title span {
    display: block;
}

.line-mobile {
    display: none !important;
}

.lead,
.section-lead,
.cinema-copy p,
.process-copy p,
.story-copy p,
.about-grid p,
.work-card p,
.platform-card p,
.service-card p,
.solution-card p,
.standard-card p,
.model-card p,
.stack-card p,
.process-steps p,
.depth-grid p,
.founder-manifesto p,
.story-timeline p,
.github-panel p,
.submit-panel p {
    color: var(--soft);
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.78;
    letter-spacing: 0;
}

.hero-copy .lead,
.cinema-copy p:first-of-type,
.process-copy p,
.story-copy p,
.about-grid p,
.founder-copy p {
    color: color-mix(in srgb, var(--ink) 82%, var(--accent-3));
}

.lead,
.section-lead {
    max-width: 720px;
    margin: 24px 0 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.glow-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 0 22px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.08);
    font-size: 14px;
    font-weight: 880;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 12px 36px rgba(0, 0, 0, 0.22);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.glow-button.primary {
    color: #10131e;
    border-color: rgba(255, 234, 180, 0.72);
    background: linear-gradient(100deg, #fff3dc, #ffd166 48%, #74d7ff 120%);
    box-shadow:
        0 0 26px rgba(255, 209, 102, 0.32),
        0 0 48px rgba(255, 122, 89, 0.18),
        0 18px 54px rgba(0, 0, 0, 0.24);
}

.glow-button.secondary {
    background: rgba(255, 255, 255, 0.075);
}

.glow-button.small {
    min-height: 40px;
    padding: 0 16px;
    font-size: 13px;
}

.glow-button:hover {
    transform: translate3d(var(--mx, 0), var(--my, -2px), 0);
    border-color: rgba(116, 215, 255, 0.45);
    box-shadow:
        0 0 22px rgba(116, 215, 255, 0.34),
        0 0 46px rgba(255, 122, 89, 0.2),
        0 18px 60px rgba(0, 0, 0, 0.26);
}

.hero-showcase {
    position: relative;
    min-height: clamp(420px, 50vw, 620px);
    display: grid;
    place-items: center;
    overflow: hidden;
    perspective: 1200px;
}

.hero-signal {
    border-radius: 46px;
}

.hero-signal::before {
    content: "";
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(116, 215, 255, 0.18), transparent 34%),
        conic-gradient(from calc(var(--page-progress) * 360deg), rgba(255, 122, 89, 0.0), rgba(255, 122, 89, 0.42), rgba(116, 215, 255, 0.34), rgba(141, 123, 255, 0.28), rgba(255, 122, 89, 0));
    filter: blur(24px);
    opacity: 0.72;
    transform: scale(calc(0.92 + var(--local-progress, 0) * 0.12));
}

.signal-web {
    position: relative;
    width: min(580px, 100%);
    aspect-ratio: 1;
    transform:
        translate3d(calc((var(--local-progress, 0) - 0.5) * 22px), calc((var(--local-progress, 0) - 0.5) * -20px), 0)
        rotate(calc(var(--page-progress) * 24deg));
    transition: transform 120ms linear;
}

.signal-web::before,
.signal-web::after,
.signal-ring,
.signal-core,
.signal-ray,
.signal-particle {
    position: absolute;
    display: block;
    pointer-events: none;
}

.signal-web::before {
    content: "";
    inset: 2%;
    border-radius: 50%;
    background:
        linear-gradient(90deg, transparent 49.6%, rgba(255, 255, 255, 0.18) 50%, transparent 50.4%),
        linear-gradient(0deg, transparent 49.6%, rgba(255, 255, 255, 0.12) 50%, transparent 50.4%);
    opacity: 0.34;
    transform: rotate(calc(var(--page-progress) * -56deg));
}

.signal-web::after {
    content: "";
    inset: 18%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        inset 0 0 44px rgba(116, 215, 255, 0.12),
        0 0 72px rgba(141, 123, 255, 0.16);
    animation: coreHalo 4.8s ease-in-out infinite;
}

.signal-ring {
    inset: 8%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: radial-gradient(circle, transparent 61%, rgba(116, 215, 255, 0.08) 100%);
    box-shadow: 0 0 46px rgba(116, 215, 255, 0.14);
    animation: signalSpin 28s linear infinite;
}

.ring-b {
    inset: 22%;
    border-color: rgba(255, 209, 102, 0.22);
    animation-duration: 20s;
    animation-direction: reverse;
}

.ring-c {
    inset: 35%;
    border-color: rgba(255, 122, 89, 0.26);
    animation-duration: 14s;
}

.signal-core {
    inset: 41%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.96), rgba(255, 209, 102, 0.72) 20%, rgba(116, 215, 255, 0.62) 46%, rgba(141, 123, 255, 0.25) 72%, rgba(255, 122, 89, 0.12));
    box-shadow:
        0 0 58px rgba(116, 215, 255, 0.5),
        0 0 120px rgba(141, 123, 255, 0.34),
        0 0 180px rgba(255, 122, 89, 0.2);
    animation: corePulse 3.6s ease-in-out infinite;
}

.signal-ray {
    left: 50%;
    top: 50%;
    width: 47%;
    height: 2px;
    transform-origin: left center;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.78), rgba(116, 215, 255, 0.38), transparent);
    box-shadow: 0 0 24px rgba(116, 215, 255, 0.42);
    animation: raySweep 8s ease-in-out infinite;
}

.ray-a { transform: rotate(18deg); }
.ray-b { transform: rotate(142deg); animation-duration: 10s; animation-direction: reverse; }
.ray-c { transform: rotate(262deg); animation-duration: 9s; }

.signal-particle {
    width: 10px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #fff7dc;
    box-shadow: 0 0 24px rgba(255, 209, 102, 0.78);
    animation: particleDrift 6s ease-in-out infinite alternate;
}

.particle-a { left: 14%; top: 30%; }
.particle-b { right: 15%; top: 23%; animation-delay: -1.4s; background: #74d7ff; box-shadow: 0 0 26px rgba(116, 215, 255, 0.82); }
.particle-c { left: 26%; bottom: 16%; animation-delay: -2.5s; background: #ff7a59; box-shadow: 0 0 24px rgba(255, 122, 89, 0.72); }
.particle-d { right: 24%; bottom: 20%; animation-delay: -3.2s; background: #8d7bff; box-shadow: 0 0 24px rgba(141, 123, 255, 0.78); }
.particle-e { left: 48%; top: 9%; animation-delay: -4s; }
.particle-f { right: 44%; bottom: 8%; animation-delay: -5s; background: #74d7ff; box-shadow: 0 0 24px rgba(116, 215, 255, 0.72); }

.hero-metrics,
.mini-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.hero-metrics span,
.mini-list span,
.status-pill {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    border-radius: 999px;
    padding: 0 12px;
    color: rgba(255, 250, 241, 0.86);
    background: rgba(255, 255, 255, 0.105);
    font-size: 12px;
    font-weight: 840;
}

.hero-metrics {
    margin-top: 22px;
}

.hero-metrics span {
    min-height: 52px;
    display: grid;
    align-content: center;
    gap: 2px;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-metrics strong {
    color: var(--ink);
    font-size: 18px;
    line-height: 1;
}

.hero-metrics small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 760;
}

.section-heading {
    max-width: 900px;
    margin-bottom: clamp(28px, 5vw, 58px);
}

.wide-heading {
    max-width: 1030px;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.work-card,
.platform-card,
.service-card,
.solution-card,
.standard-card,
.model-card,
.stack-card,
.process-steps article,
.depth-grid article,
.founder-manifesto article,
.story-timeline article,
.principle-stack article,
.github-panel,
.submit-panel {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045) 54%, rgba(116, 215, 255, 0.08)),
        rgba(16, 20, 34, 0.72);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 22px 74px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.work-card {
    grid-column: span 4;
    min-height: 290px;
    display: grid;
    align-content: space-between;
    gap: 20px;
    padding: 24px;
}

.work-card-feature {
    grid-column: 1 / -1;
    min-height: 560px;
    grid-template-columns: minmax(300px, 0.44fr) minmax(0, 0.56fr);
    align-items: center;
    gap: clamp(22px, 3.6vw, 54px);
    padding: clamp(24px, 3vw, 38px);
}

.work-card-wide {
    grid-column: span 6;
    min-height: 260px;
}

.work-card-compact {
    min-height: 240px;
}

.work-media {
    display: block;
    align-self: stretch;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background:
        radial-gradient(circle at 20% 10%, rgba(116, 215, 255, 0.16), transparent 14rem),
        rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.work-card-image-link {
    color: inherit;
    text-decoration: none;
}

.featured-star-badge,
.product-rank-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255, 226, 146, 0.48);
    border-radius: 999px;
    color: #fff6d8;
    background:
        linear-gradient(120deg, rgba(255, 209, 102, 0.36), rgba(116, 215, 255, 0.16)),
        rgba(18, 20, 30, 0.72);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 14px 34px rgba(255, 209, 102, 0.18);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    white-space: nowrap;
}

.featured-star-badge {
    position: absolute;
    top: 28px;
    left: 28px;
    z-index: 4;
    min-height: 34px;
    padding: 0 13px;
    pointer-events: none;
}

.product-rank-badge {
    min-height: 38px;
    padding: 0 15px;
}

.work-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
}

.work-card-feature .work-media {
    order: 2;
    min-height: 470px;
    padding: 20px;
}

.work-card-feature .work-media img {
    object-fit: contain;
    object-position: center top;
}

.work-copy {
    display: grid;
    align-content: start;
    gap: 16px;
    padding: 4px;
}

.work-card-feature .work-copy {
    order: 1;
    max-width: 520px;
    align-content: center;
    gap: 20px;
    padding: clamp(6px, 2vw, 24px);
}

.work-card-feature .status-pill {
    width: fit-content;
}

.work-card-feature h3 {
    font-size: clamp(42px, 4.6vw, 68px);
    line-height: 1;
    color: color-mix(in srgb, var(--ink) 88%, var(--accent-2));
}

.work-card-feature p {
    font-size: clamp(18px, 1.55vw, 23px);
    line-height: 1.72;
}

.work-card h3,
.platform-card h3,
.service-card h3,
.solution-card h3,
.standard-card h3,
.model-card h3,
.stack-card h3,
.process-steps h3,
.depth-grid h3,
.founder-manifesto h3,
.story-timeline h3,
.principle-stack h3 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(24px, 2.3vw, 36px);
    line-height: 1.14;
    letter-spacing: 0;
    text-wrap: pretty;
    word-break: keep-all;
    line-break: strict;
    overflow-wrap: normal;
    hyphens: none;
}

.service-grid article:nth-child(4n + 1) h3,
.solution-grid article:nth-child(4n + 1) h3,
.stack-grid article:nth-child(4n + 1) h3,
.depth-grid article:nth-child(4n + 1) h3,
.principle-stack article:nth-child(4n + 1) h3 {
    color: color-mix(in srgb, var(--ink) 84%, var(--accent-2));
}

.service-grid article:nth-child(4n + 2) h3,
.solution-grid article:nth-child(4n + 2) h3,
.stack-grid article:nth-child(4n + 2) h3,
.depth-grid article:nth-child(4n + 2) h3,
.principle-stack article:nth-child(4n + 2) h3 {
    color: color-mix(in srgb, var(--ink) 84%, var(--accent-3));
}

.service-grid article:nth-child(4n + 3) h3,
.solution-grid article:nth-child(4n + 3) h3,
.stack-grid article:nth-child(4n + 3) h3,
.model-grid article:nth-child(4n + 3) h3 {
    color: color-mix(in srgb, var(--ink) 84%, var(--accent-4));
}

.service-grid article:nth-child(4n + 4) h3,
.solution-grid article:nth-child(4n + 4) h3,
.standard-grid article:nth-child(4n + 4) h3,
.model-grid article:nth-child(4n + 4) h3 {
    color: color-mix(in srgb, var(--ink) 84%, var(--accent));
}

.work-card p,
.platform-card p,
.service-card p,
.solution-card p,
.standard-card p,
.model-card p,
.stack-card p,
.process-steps p,
.depth-grid p,
.founder-manifesto p,
.story-timeline p,
.principle-stack p {
    margin: 0;
    font-size: 16px;
    line-height: 1.78;
}

.text-link {
    width: fit-content;
    color: var(--accent-3);
    font-size: 14px;
    font-weight: 880;
}

.work-card .text-link {
    align-self: end;
}

.card-detail-link {
    justify-self: end;
    align-self: center;
}

.work-card .text-link::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    margin-top: 5px;
    background: currentColor;
    transform: scaleX(calc(0.45 + var(--hover, 0) * 0.55));
    transform-origin: left;
    opacity: 0.72;
    transition: transform 180ms ease;
}

.is-upcoming {
    border-style: dashed;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035) 58%, rgba(255, 209, 102, 0.08)),
        rgba(16, 20, 34, 0.64);
}

.platform-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.platform-card {
    min-height: 300px;
    align-content: space-between;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04) 54%, rgba(255, 209, 102, 0.09)),
        rgba(15, 23, 38, 0.74);
}

.platform-card h3,
.founder-manifesto h3 {
    color: color-mix(in srgb, var(--ink) 86%, var(--accent-2));
}

.founder-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: clamp(28px, 6vw, 78px);
    align-items: center;
}

.founder-copy {
    display: grid;
    gap: 18px;
}

.founder-copy p {
    margin: 0;
}

.founder-manifesto {
    display: grid;
    gap: 16px;
}

.founder-manifesto article {
    min-height: 180px;
    align-content: start;
}

.submit-panel {
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(24px, 5vw, 64px);
    align-items: end;
    padding: clamp(28px, 5vw, 62px);
}

.submit-panel .section-title {
    max-width: 16ch;
}

.submission-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.submission-list span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0 14px;
    color: color-mix(in srgb, var(--ink) 86%, var(--accent-3));
    background: rgba(255, 255, 255, 0.09);
    font-size: 13px;
    font-weight: 820;
}

.submit-mail {
    min-width: 190px;
}

.cinema-layout,
.process-grid,
.story-layout,
.about-grid {
    grid-template-columns: 1fr;
    gap: clamp(30px, 5vw, 60px);
    align-items: start;
}

.cinema-copy {
    display: grid;
    gap: 18px;
    max-width: 900px;
}

.cinema-copy p {
    margin: 0;
    font-size: 18px;
}

.timeline-device {
    width: 100%;
    min-height: 500px;
    display: grid;
    place-items: center;
}

.timeline-stage {
    position: relative;
    width: min(100%, 900px);
    min-height: 440px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 38px;
    background:
        radial-gradient(ellipse at calc(18% + var(--local-progress, 0) * 64%) 22%, rgba(255, 209, 102, 0.22), transparent 15rem),
        radial-gradient(ellipse at calc(72% - var(--local-progress, 0) * 22%) 70%, rgba(116, 215, 255, 0.16), transparent 18rem),
        linear-gradient(140deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045)),
        rgba(14, 18, 31, 0.82);
}

.timeline-stage::before {
    content: "";
    position: absolute;
    inset: 24px;
    z-index: 0;
    border-radius: 30px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: calc(0.22 + var(--local-progress, 0) * 0.18);
    transform: translate3d(calc((var(--local-progress, 0) - 0.5) * -24px), calc((var(--local-progress, 0) - 0.5) * 18px), 0);
}

.timeline-stage::after {
    content: "";
    position: absolute;
    inset: 18%;
    z-index: 1;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 0.44;
    transform: rotate(calc(var(--page-progress) * 80deg)) scale(calc(0.92 + var(--local-progress, 0) * 0.12));
    box-shadow:
        inset 0 0 54px rgba(116, 215, 255, 0.08),
        0 0 80px rgba(141, 123, 255, 0.12);
}

.timeline-dot {
    position: absolute;
    z-index: 2;
    width: 18px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--accent-3);
    box-shadow: 0 0 28px rgba(116, 215, 255, 0.5);
}

.dot-1 { left: 13%; top: 48.8%; }
.dot-2 { left: 48%; top: 48.8%; background: var(--accent-2); }
.dot-3 { right: 13%; top: 48.8%; background: var(--accent); }

.timeline-card {
    position: absolute;
    z-index: 3;
    width: clamp(180px, 25vw, 230px);
    min-height: 126px;
    display: grid;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.24);
    transform: translate3d(0, calc((0.5 - var(--local-progress, 0)) * 18px), 0);
    opacity: calc(0.72 + var(--local-progress, 0) * 0.28);
}

.timeline-card small {
    color: var(--accent-2);
    font-weight: 900;
}

.timeline-card strong {
    font-size: 30px;
}

.timeline-card span {
    color: var(--soft);
    font-size: 14px;
}

.card-brief { left: 8%; top: 14%; }
.card-build { right: 9%; top: 34%; transition-delay: 60ms; }
.card-ship { left: 38%; bottom: 12%; transition-delay: 120ms; }

.service-grid,
.platform-grid,
.solution-grid,
.standard-grid,
.model-grid,
.stack-grid,
.depth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 16px;
}

.platform-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.platform-card,
.solution-card,
.standard-card,
.model-card,
.stack-card,
.depth-grid article,
.founder-manifesto article,
.principle-stack article {
    display: grid;
    gap: 20px;
    padding: 26px;
}

.service-card > span,
.platform-card > span,
.solution-card > span,
.founder-manifesto article > span,
.model-card > span,
.process-steps article > span {
    color: var(--accent-2);
    font-size: 13px;
    font-weight: 950;
}

.solution-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}

.solution-card {
    min-height: 230px;
    align-content: space-between;
}

.standard-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}

.standard-card {
    min-height: 250px;
    align-content: end;
}

.model-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}

.model-card {
    min-height: 250px;
    align-content: space-between;
}

.stack-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}

.stack-card {
    min-height: 230px;
    align-content: end;
}

html[lang="zh-HK"] .service-card h3,
html[lang="zh-HK"] .platform-card h3,
html[lang="zh-HK"] .solution-card h3,
html[lang="zh-HK"] .standard-card h3,
html[lang="zh-HK"] .model-card h3,
html[lang="zh-HK"] .stack-card h3,
html[lang="zh-HK"] .depth-grid h3,
html[lang="zh-HK"] .founder-manifesto h3,
html[lang="zh-HK"] .principle-stack h3 {
    font-size: clamp(24px, 2vw, 32px);
    line-height: 1.2;
    word-break: keep-all;
    overflow-wrap: normal;
}

.process-copy,
.founder-copy,
.story-copy,
.about-grid > div:first-child {
    max-width: 900px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.process-steps article {
    display: grid;
    gap: 16px;
    min-height: 260px;
    padding: 28px;
}

.depth-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-timeline {
    display: grid;
    gap: 14px;
}

.story-timeline article {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 18px 24px;
    padding: 24px;
}

.story-timeline time {
    color: var(--accent-2);
    font-size: 14px;
    font-weight: 920;
}

.story-timeline h3,
.story-timeline p {
    grid-column: 2;
}

.github-panel {
    min-height: 420px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    padding: clamp(28px, 5vw, 58px);
}

.principle-stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.site-footer {
    position: relative;
    z-index: 2;
    padding: 34px 0 48px;
    color: var(--muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 22px;
    font-size: 14px;
    font-weight: 760;
}

.site-notice {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    width: min(440px, calc(100% - 36px));
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    border-radius: 24px;
    padding: 16px;
}

.site-notice[hidden] {
    display: none;
}

.site-notice strong {
    display: block;
    margin-bottom: 4px;
}

.site-notice p {
    margin: 0;
    color: var(--soft);
    font-size: 14px;
    line-height: 1.55;
}

[data-reveal] {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition:
        opacity 340ms ease,
        transform 440ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.glow-button::before {
    content: "";
    position: absolute;
    inset: -40% -70%;
    z-index: -1;
    opacity: 0;
    background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.46), transparent 62%);
    transform: translateX(-30%) rotate(8deg);
    transition: opacity 180ms ease, transform 520ms ease;
}

.glow-button:hover::before {
    opacity: 0.82;
    transform: translateX(34%) rotate(8deg);
}

.work-card:hover,
.platform-card:hover,
.service-card:hover,
.solution-card:hover,
.standard-card:hover,
.model-card:hover,
.stack-card:hover,
.process-steps article:hover,
.depth-grid article:hover,
.founder-manifesto article:hover,
.story-timeline article:hover,
.principle-stack article:hover,
.github-panel:hover,
.submit-panel:hover {
    border-color: rgba(116, 215, 255, 0.34);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        0 0 32px rgba(116, 215, 255, 0.2),
        0 0 58px rgba(255, 122, 89, 0.13),
        0 28px 90px rgba(0, 0, 0, 0.28);
}

@keyframes ambientSweep {
    0% { transform: translate3d(-2%, -1%, 0) rotate(-6deg) scale(1.06); }
    100% { transform: translate3d(2%, 1.5%, 0) rotate(8deg) scale(1.1); }
}

@keyframes orbDrift {
    0% { transform: translate3d(-10px, -14px, 0) scale(0.98); }
    100% { transform: translate3d(20px, 18px, 0) scale(1.04); }
}

@keyframes signalSpin {
    to { transform: rotate(360deg); }
}

@keyframes coreHalo {
    0%, 100% { opacity: 0.46; transform: scale(0.96); }
    50% { opacity: 0.9; transform: scale(1.04); }
}

@keyframes corePulse {
    0%, 100% { transform: scale(0.92); opacity: 0.82; }
    50% { transform: scale(1.08); opacity: 1; }
}

@keyframes raySweep {
    0%, 100% { opacity: 0.3; filter: blur(0); }
    50% { opacity: 1; filter: blur(0.5px); }
}

@keyframes particleDrift {
    0% { transform: translate3d(-8px, 7px, 0) scale(0.9); opacity: 0.66; }
    100% { transform: translate3d(12px, -11px, 0) scale(1.16); opacity: 1; }
}

@keyframes stageBreathe {
    0% { opacity: 0.22; filter: blur(18px) saturate(110%); }
    100% { opacity: 0.42; filter: blur(22px) saturate(145%); }
}

@keyframes nodePulse {
    0%, 100% { transform: scale(0.72); opacity: 0.48; }
    50% { transform: scale(1.24); opacity: 1; }
}

@keyframes scanPulse {
    0% { opacity: 0.08; }
    100% { opacity: 0.2; }
}

@media (max-width: 1040px) {
    html {
        scroll-padding-top: 164px;
    }

    .site-nav {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "brand actions"
            "nav nav";
    }

    .brand { grid-area: brand; }
    .nav-links { grid-area: nav; }
    .nav-actions { grid-area: actions; justify-self: end; }

    .hero-grid,
    .founder-layout,
    .cinema-layout,
    .process-grid,
    .story-layout,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .works-grid,
    .platform-grid,
    .service-grid,
    .solution-grid,
    .standard-grid,
    .model-grid,
    .stack-grid,
    .depth-grid,
    .founder-manifesto,
    .principle-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .work-card-feature {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .work-card-feature .work-media {
        order: 2;
        min-height: 460px;
    }

    .work-card-feature .work-copy {
        order: 1;
        max-width: 100%;
    }

    .work-card,
    .work-card-wide,
    .work-card-compact {
        grid-column: auto;
    }
}

@media (max-width: 760px) {
    :root {
        --nav-top: 8px;
        --nav-h: 52px;
    }

    html {
        scroll-behavior: auto;
        scroll-padding-top: 0;
    }

    .site-nav {
        position: fixed;
        top: 8px;
        left: 0;
        right: 0;
        width: calc(100% - 18px);
        margin: 0;
        gap: 8px;
        margin: 0 auto;
    }

    .brand {
        min-height: 50px;
        padding: 6px 10px 6px 6px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .brand-copy small {
        display: none;
    }

    .nav-links {
        justify-content: space-between;
        overflow-x: auto;
        min-height: 50px;
        padding: 5px;
        gap: 0;
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a {
        min-width: auto;
        padding: 0 7px;
        font-size: 15px;
    }

    .login-link,
    .lang-toggle {
        min-height: 42px;
        min-width: 48px;
        padding: 0 12px;
        font-size: 14px;
    }

    .page-section {
        min-height: auto;
        padding: 154px 0 90px;
        scroll-margin-top: 118px;
    }

    body::after {
        display: block;
        height: 132px;
        background: linear-gradient(180deg, rgba(7, 9, 18, 0.9), rgba(7, 9, 18, 0.68) 62%, transparent);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    body::before {
        background:
            radial-gradient(circle at 18% 18%, rgba(141, 123, 255, 0.34), transparent 18rem),
            radial-gradient(circle at 84% 34%, rgba(116, 215, 255, 0.26), transparent 20rem),
            radial-gradient(circle at 42% 82%, rgba(255, 122, 89, 0.22), transparent 22rem),
            linear-gradient(135deg, #070912 0%, #122136 52%, #080a13 100%);
        transition: none;
    }

    .motion-field {
        display: none;
    }

    .control-surface,
    .work-card,
    .platform-card,
    .service-card,
    .solution-card,
    .standard-card,
    .model-card,
    .stack-card,
    .process-steps article,
    .depth-grid article,
    .founder-manifesto article,
    .story-timeline article,
    .github-panel,
    .submit-panel,
    .principle-stack article {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .page-section::before {
        opacity: 0.26;
        transform: none;
        filter: blur(1px);
    }

    .page-section::after {
        opacity: 0.18;
        transform: rotate(-10deg);
    }

    .signal-ring,
    .signal-web::after,
    .signal-core,
    .signal-ray,
    .signal-particle {
        animation-play-state: paused;
    }

    .section-inner {
        width: min(100% - 28px, var(--max));
    }

    .display-title {
        font-size: clamp(42px, 12vw, 60px);
    }

    .line-desktop {
        display: none !important;
    }

    .line-mobile {
        display: block !important;
    }

    .eyebrow {
        font-size: 17px;
    }

    .section-title {
        max-width: 100%;
        font-size: clamp(34px, 9.4vw, 52px);
        line-height: 1.08;
    }

    .lead,
    .section-lead {
        font-size: 17px;
    }

    .hero-showcase,
    .timeline-device {
        min-height: auto;
    }

    .signal-web {
        width: min(360px, 88vw);
    }

    .works-grid,
    .platform-grid,
    .service-grid,
    .solution-grid,
    .standard-grid,
    .model-grid,
    .stack-grid,
    .process-steps,
    .depth-grid,
    .founder-manifesto,
    .principle-stack {
        grid-template-columns: 1fr;
    }

    .founder-layout,
    .submit-panel {
        grid-template-columns: 1fr;
    }

    .submit-panel {
        min-height: auto;
        align-items: start;
    }

    .work-card-feature {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .work-media {
        min-height: 220px;
    }

    .work-card-feature .work-media {
        order: 2;
        min-height: 300px;
        padding: 12px;
    }

    .work-card-feature .work-copy {
        order: 1;
        padding: 0;
        gap: 16px;
    }

    .work-card-feature h3 {
        font-size: clamp(34px, 10vw, 48px);
        line-height: 1.04;
    }

    .work-card-feature p {
        font-size: 17px;
        line-height: 1.72;
    }

    .timeline-stage {
        min-height: 430px;
    }

    .timeline-card {
        width: 160px;
        min-height: 112px;
        padding: 16px;
    }

    .timeline-card strong {
        font-size: 24px;
    }

    .card-brief { left: 6%; top: 12%; }
    .card-build { right: 6%; top: 35%; }
    .card-ship { left: 22%; bottom: 10%; }

    .story-timeline article {
        grid-template-columns: 1fr;
    }

    .story-timeline h3,
    .story-timeline p {
        grid-column: auto;
    }

    .github-panel {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .site-notice {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .brand-copy strong {
        font-size: 15px;
    }

    .nav-actions {
        gap: 6px;
    }

    .login-link,
    .lang-toggle {
        min-width: 44px;
        padding: 0 10px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .section-title {
        font-size: clamp(31px, 9vw, 43px);
    }

    html[lang="zh-HK"] .service-card h3,
    html[lang="zh-HK"] .platform-card h3,
    html[lang="zh-HK"] .solution-card h3,
    html[lang="zh-HK"] .standard-card h3,
    html[lang="zh-HK"] .model-card h3,
    html[lang="zh-HK"] .stack-card h3,
    html[lang="zh-HK"] .depth-grid h3,
    html[lang="zh-HK"] .founder-manifesto h3,
    html[lang="zh-HK"] .principle-stack h3 {
        font-size: clamp(22px, 7vw, 28px);
    }

    .work-card,
    .platform-card,
    .service-card,
    .solution-card,
    .standard-card,
    .model-card,
    .stack-card,
    .process-steps article,
    .depth-grid article,
    .founder-manifesto article,
    .story-timeline article,
    .submit-panel,
    .principle-stack article {
        border-radius: 22px;
        padding: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }
}

body {
    overflow-x: clip;
}

/* Marketplace v2: faster motion, real catalog layout, less visual noise. */
body::before {
    background:
        radial-gradient(circle at 18% 16%, rgba(255, 122, 89, 0.18), transparent 28rem),
        radial-gradient(circle at 80% 18%, rgba(116, 215, 255, 0.18), transparent 32rem),
        radial-gradient(circle at 52% 88%, rgba(141, 123, 255, 0.16), transparent 34rem),
        linear-gradient(135deg, #070912 0%, #111a2b 48%, #070912 100%);
    transition: none;
}

body::after {
    height: 112px;
    background: linear-gradient(180deg, rgba(7, 9, 18, 0.88), rgba(7, 9, 18, 0.44) 70%, transparent);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.motion-field {
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 122, 89, 0.2), transparent 28rem),
        radial-gradient(circle at 80% 22%, rgba(116, 215, 255, 0.2), transparent 30rem),
        radial-gradient(circle at 52% 82%, rgba(141, 123, 255, 0.16), transparent 34rem),
        #070912;
}

.motion-canvas {
    display: none;
}

.motion-gradient {
    opacity: 0.76;
    filter: none;
    transform:
        translate3d(calc(var(--scene-shift) * -0.12), calc(var(--scene-float) * 0.22), 0)
        rotate(var(--scene-rotate))
        scale(1.06);
    animation: none;
}

.motion-ribbon {
    opacity: 0.22;
    filter: blur(12px);
}

.motion-ripple,
.motion-orb {
    display: none;
}

.motion-grid,
.motion-ribbon,
.motion-line,
.scroll-stage,
.stage-frame,
.stage-slab,
.stage-beam,
.stage-orbit,
.stage-node,
.stage-scan {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.scroll-stage {
    position: absolute;
    inset: 0;
    opacity: 0.82;
    contain: paint;
    transform:
        translate3d(calc(var(--stage-shift) * -0.04), calc(var(--stage-depth) * 0.08), 0)
        scale(var(--stage-scale));
    transform-origin: 58% 48%;
}

.stage-frame {
    opacity: 0.18;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03) 48%, rgba(116, 215, 255, 0.09)),
        radial-gradient(ellipse at 26% 20%, rgba(255, 209, 102, 0.13), transparent 48%),
        radial-gradient(ellipse at 84% 76%, rgba(116, 215, 255, 0.14), transparent 50%),
        rgba(12, 18, 31, 0.72);
}

.frame-a {
    left: 52%;
    top: 18%;
    opacity: 0.28;
    transform:
        translate3d(calc(var(--stage-shift) * -0.12), calc(var(--stage-depth) * 0.1), 0)
        rotate(calc(-8deg + var(--stage-tilt)))
        scale(calc(0.92 + var(--page-ease) * 0.08));
}

.frame-b {
    right: -7%;
    top: 38%;
    opacity: 0.16;
    transform:
        translate3d(calc(var(--stage-shift) * 0.1), calc(var(--stage-depth) * -0.06), 0)
        rotate(calc(7deg - var(--stage-tilt)))
        scale(calc(0.86 + var(--page-ease) * 0.06));
}

.frame-c {
    left: 18%;
    bottom: -18%;
    opacity: 0.13;
    transform:
        translate3d(calc(var(--stage-shift) * -0.06), calc(var(--stage-depth) * -0.08), 0)
        rotate(var(--stage-tilt))
        scale(calc(0.82 + var(--page-ease) * 0.08));
}

.stage-slab {
    opacity: 0.18;
    filter: blur(10px);
    animation: none;
}

.slab-a {
    transform:
        translate3d(calc(var(--stage-shift) * 0.12), calc(var(--stage-depth) * -0.08), 0)
        rotate(calc(-16deg + var(--stage-tilt)));
}

.slab-b {
    transform:
        translate3d(calc(var(--stage-shift) * -0.1), calc(var(--stage-depth) * 0.08), 0)
        rotate(calc(14deg - var(--stage-tilt)));
}

.stage-beam {
    opacity: 0.28;
    box-shadow: none;
}

.stage-orbit {
    opacity: 0.18;
    background:
        conic-gradient(from calc(var(--page-progress) * 240deg), transparent 0 28%, rgba(255, 255, 255, 0.26) 30%, transparent 33% 62%, rgba(116, 215, 255, 0.26) 65%, transparent 68% 100%);
}

.stage-node {
    width: 7px;
    opacity: 0.62;
    animation: none;
    box-shadow:
        0 0 14px rgba(255, 250, 241, 0.46),
        0 0 28px rgba(116, 215, 255, 0.28);
}

.stage-scan {
    opacity: 0.12;
    filter: blur(6px);
    animation: none;
}

.motion-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 48%, transparent 0 42%, rgba(3, 5, 12, 0.2) 72%, rgba(3, 5, 12, 0.86) 100%),
        linear-gradient(180deg, rgba(7, 9, 18, 0.22), transparent 26%, transparent 74%, rgba(7, 9, 18, 0.38));
}

.control-surface,
.work-card,
.platform-card,
.service-card,
.solution-card,
.standard-card,
.model-card,
.stack-card,
.process-steps article,
.depth-grid article,
.founder-manifesto article,
.story-timeline article,
.github-panel,
.submit-panel,
.principle-stack article {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045) 58%, rgba(116, 215, 255, 0.08)),
        rgba(13, 18, 31, 0.84);
}

.page-section {
    min-height: 100svh;
    padding-top: clamp(138px, 14vh, 186px);
}

.page-section::before {
    left: 0;
    right: 0;
    top: 12%;
    bottom: auto;
    height: 56%;
    opacity: 0.26;
    filter: none;
    transform: none;
    background:
        radial-gradient(ellipse at 18% 26%, rgba(255, 209, 102, 0.12), transparent 32%),
        radial-gradient(ellipse at 76% 44%, rgba(116, 215, 255, 0.13), transparent 36%),
        linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.04), transparent);
}

.page-section::after {
    display: none;
}

.display-title,
.section-title,
.work-card h3,
.platform-card h3,
.process-steps h3,
.founder-manifesto h3 {
    overflow-wrap: normal;
    word-break: keep-all;
    line-break: strict;
    hyphens: none;
}

.hero-grid {
    grid-template-columns: minmax(540px, 0.95fr) minmax(340px, 1.05fr);
}

.market-preview {
    min-height: clamp(420px, 46vw, 600px);
    align-items: center;
    overflow: visible;
}

.preview-window {
    width: min(620px, 100%);
    min-height: 470px;
    display: grid;
    align-content: start;
    gap: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 36px;
    padding: clamp(20px, 3vw, 30px);
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055) 48%, rgba(116, 215, 255, 0.1)),
        rgba(11, 16, 30, 0.82);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 34px 120px rgba(0, 0, 0, 0.34),
        0 0 70px rgba(116, 215, 255, 0.11);
    transform:
        perspective(1100px)
        rotateX(calc((var(--active-progress, 0) - 0.5) * -4deg + var(--rx, 0deg)))
        rotateY(calc((var(--meter, 0) - 0.5) * 6deg + var(--ry, 0deg)));
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
    will-change: transform;
}

.market-preview {
    transform:
        translate3d(0, calc(var(--active-progress, 0) * -38px), 0)
        scale(calc(0.98 + var(--active-progress, 0) * 0.035));
    transition: transform 160ms ease;
}

.preview-top,
.preview-search,
.preview-tile {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.07);
}

.preview-top {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 22px;
    padding: 0 18px;
}

.preview-top span {
    color: var(--accent-2);
    font-size: 13px;
    font-weight: 900;
}

.preview-top strong {
    font-size: 30px;
}

.preview-search {
    min-height: 56px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    border-radius: 999px;
    padding: 0 20px;
    color: rgba(255, 250, 241, 0.68);
    font-size: 15px;
    font-weight: 760;
}

.preview-search span {
    color: var(--accent-2);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.preview-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font: inherit;
    font-weight: 760;
}

.preview-search:focus-within {
    border-color: rgba(116, 215, 255, 0.36);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 0 28px rgba(116, 215, 255, 0.14);
}

.preview-search input::placeholder {
    color: rgba(255, 250, 241, 0.5);
}

.preview-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.preview-tile {
    min-height: 148px;
    display: grid;
    align-content: end;
    gap: 8px;
    border-radius: 26px;
    padding: 18px;
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
    transform: perspective(780px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
    transform-style: preserve-3d;
    cursor: pointer;
}

.preview-tile:hover {
    border-color: rgba(116, 215, 255, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 0 26px rgba(116, 215, 255, 0.12);
}

.preview-tile strong {
    font-size: clamp(21px, 2vw, 28px);
    line-height: 1.05;
}

.preview-tile small {
    color: var(--soft);
    font-size: 13px;
    font-weight: 780;
}

.tile-hot {
    background:
        radial-gradient(circle at 18% 10%, rgba(255, 209, 102, 0.24), transparent 10rem),
        radial-gradient(circle at 88% 22%, rgba(116, 215, 255, 0.2), transparent 12rem),
        rgba(255, 255, 255, 0.08);
}

.market-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    border-radius: 30px;
    padding: 14px;
    margin: -12px 0 22px;
}

.market-search {
    min-height: 48px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    border-radius: 999px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.07);
}

.market-search span {
    color: var(--accent-2);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.market-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font-size: 15px;
}

.market-search input::placeholder {
    color: rgba(255, 250, 241, 0.48);
}

.market-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: center;
}

.market-filters button {
    min-height: 38px;
    min-width: max-content;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    padding: 0 13px;
    color: rgba(255, 250, 241, 0.75);
    background: rgba(255, 255, 255, 0.06);
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.market-filters button:hover,
.market-filters button.is-active {
    color: #071018;
    border-color: rgba(255, 234, 180, 0.7);
    background: linear-gradient(100deg, #fff1d6, #ffd166 60%, #74d7ff 130%);
    box-shadow: 0 0 24px rgba(255, 209, 102, 0.2);
}

.market-count {
    margin: 0;
    color: var(--soft);
    font-size: 14px;
    font-weight: 820;
    white-space: nowrap;
}

.market-count span:first-child {
    color: var(--accent-3);
}

.works-grid.market-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 18px;
    align-items: start;
}

.works-grid.market-grid .work-card,
.works-grid.market-grid .work-card-feature,
.works-grid.market-grid .work-card-wide,
.works-grid.market-grid .work-card-compact,
.works-grid.market-grid .firebase-work-card {
    grid-column: auto;
    min-height: 520px;
    height: 520px;
    display: flex;
    flex-direction: column;
    align-content: start;
    gap: 14px;
    border-radius: 26px;
    padding: 16px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045) 58%, rgba(116, 215, 255, 0.08)),
        rgba(11, 16, 29, 0.94);
    transform:
        perspective(1000px)
        rotateX(var(--rx, 0deg))
        rotateY(var(--ry, 0deg));
    transition: transform 180ms ease-out, border-color 160ms ease, box-shadow 160ms ease;
    transform-style: preserve-3d;
}

.works-grid.market-grid .work-card-feature {
    grid-column: auto;
    min-height: 520px;
    height: 520px;
}

.works-grid.market-grid .work-copy {
    flex: 1;
    display: grid;
    align-content: start;
    gap: 13px;
    max-width: none;
    padding: 0;
    order: initial;
    min-height: 0;
    overflow: hidden;
}

.works-grid.market-grid .work-media,
.works-grid.market-grid .work-card-feature .work-media {
    order: initial;
    width: 100%;
    min-height: 228px;
    max-height: 228px;
    flex: 0 0 228px;
    aspect-ratio: 1509 / 1042;
    padding: 8px;
    border-radius: 22px;
}

.works-grid.market-grid .work-card:not(:has(.work-media))::before,
.works-grid.market-grid .firebase-work-card:not(:has(.work-media))::before {
    content: "";
    display: block;
    width: 100%;
    min-height: 190px;
    flex: 0 0 190px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 12%, transparent 12% 100%) 22px 24px / 120px 8px no-repeat,
        linear-gradient(90deg, rgba(116, 215, 255, 0.48) 18%, transparent 18% 100%) 22px 42px / 150px 7px no-repeat,
        linear-gradient(90deg, rgba(255, 250, 241, 0.26) 32%, transparent 32% 100%) 22px 74px / 210px 8px no-repeat,
        radial-gradient(circle at 24% 28%, rgba(255, 209, 102, 0.18), transparent 8rem),
        radial-gradient(circle at 82% 72%, rgba(116, 215, 255, 0.14), transparent 9rem),
        rgba(255, 255, 255, 0.055);
}

.works-grid.market-grid .work-media img,
.works-grid.market-grid .work-card-feature .work-media img {
    object-fit: contain;
    object-position: center;
    background: rgba(4, 8, 16, 0.42);
}

.works-grid.market-grid .work-card h3,
.works-grid.market-grid .work-card-feature h3 {
    font-family: var(--font-sans);
    font-size: clamp(25px, 2vw, 32px);
    line-height: 1.08;
    color: var(--ink);
}

.works-grid.market-grid .work-card p,
.works-grid.market-grid .work-card-feature p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: 15px;
    line-height: 1.62;
    color: rgba(255, 250, 241, 0.8);
}

.works-grid.market-grid .mini-list {
    display: none;
}

.work-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.work-card-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.download-button {
    position: relative;
    isolation: isolate;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 0 16px;
    color: #071018;
    background:
        linear-gradient(112deg, #fff4df 0%, #ffd166 38%, #74d7ff 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12) inset,
        0 10px 32px rgba(116, 215, 255, 0.18),
        0 8px 26px rgba(255, 209, 102, 0.16);
    font-size: 13px;
    font-weight: 920;
    white-space: nowrap;
    overflow: hidden;
}

.download-button::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.7) 44%, transparent 72%);
    transform: translateX(-120%);
    transition: transform 460ms ease;
}

.download-button:hover {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.18) inset,
        0 0 24px rgba(116, 215, 255, 0.28),
        0 12px 38px rgba(255, 209, 102, 0.2);
}

.download-button:hover::after {
    transform: translateX(120%);
}

.macos-symbol {
    font-size: 15px;
    line-height: 1;
}

.product-detail-page .page-section {
    min-height: auto;
}

.product-hero {
    padding-top: clamp(160px, 18vh, 210px);
}

.product-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.76fr) minmax(420px, 1.24fr);
    gap: clamp(32px, 6vw, 84px);
    align-items: center;
}

.product-copy {
    display: grid;
    gap: 18px;
    max-width: 680px;
    justify-items: start;
}

.product-title {
    max-width: 11ch;
}

.product-lead {
    margin: 0;
    color: color-mix(in srgb, var(--ink) 82%, var(--accent-3));
    font-size: clamp(18px, 1.55vw, 23px);
    line-height: 1.76;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.product-meta span {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 0 14px;
    color: rgba(255, 250, 241, 0.82);
    background: rgba(255, 255, 255, 0.08);
    font-size: 13px;
    font-weight: 820;
}

.product-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 6px;
}

.product-stat-grid span {
    min-height: 72px;
    display: grid;
    align-content: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.065);
}

.product-stat-grid strong {
    color: var(--ink);
    font-size: clamp(22px, 2vw, 31px);
    line-height: 1;
}

.product-stat-grid small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 780;
    line-height: 1.22;
}

.product-shot {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 34px;
    padding: clamp(12px, 1.6vw, 22px);
    background:
        radial-gradient(circle at 18% 14%, rgba(255, 209, 102, 0.16), transparent 16rem),
        radial-gradient(circle at 84% 80%, rgba(116, 215, 255, 0.18), transparent 18rem),
        rgba(14, 20, 35, 0.84);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 34px 110px rgba(0, 0, 0, 0.34);
}

.product-shot::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(112deg, transparent 12%, rgba(255, 255, 255, 0.14), transparent 42%),
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 44px 44px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 44px 44px;
    opacity: 0.64;
}

.product-shot img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 1509 / 1042;
    object-fit: contain;
    object-position: center;
    background: rgba(4, 8, 16, 0.38);
    border-radius: 24px;
    box-shadow: 0 28px 84px rgba(0, 0, 0, 0.34);
}

.detail-section {
    padding-top: clamp(76px, 10vh, 120px);
    padding-bottom: clamp(76px, 10vh, 120px);
}

.product-showcase-section {
    padding-top: clamp(60px, 8vh, 96px);
}

.codex-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: center;
}

.product-shot-large {
    max-width: none;
}

.interface-points {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.interface-points span {
    min-height: 46px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    padding: 0 16px;
    color: rgba(255, 250, 241, 0.86);
    background: rgba(255, 255, 255, 0.07);
    font-size: 14px;
    font-weight: 780;
}

.detail-split {
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(28px, 6vw, 74px);
    align-items: start;
}

.detail-copy {
    display: grid;
    gap: 18px;
    min-width: 0;
    max-width: 620px;
}

.detail-copy .section-title {
    max-width: 9.8ch;
    font-size: clamp(40px, 4.15vw, 66px);
}

.detail-copy p {
    margin: 0;
    color: var(--soft);
    font-size: clamp(17px, 1.35vw, 20px);
    line-height: 1.78;
}

.detail-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.detail-card,
.download-panel {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045) 58%, rgba(116, 215, 255, 0.08)),
        rgba(13, 18, 31, 0.9);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 24px 80px rgba(0, 0, 0, 0.24);
}

.detail-card {
    min-height: 260px;
    display: grid;
    align-content: space-between;
    gap: 18px;
    padding: 24px;
}

.detail-card span,
.feature-list span,
.workflow-list span {
    color: var(--accent-2);
    font-size: 13px;
    font-weight: 940;
}

.detail-card h3,
.download-panel h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(25px, 2.2vw, 36px);
    line-height: 1.12;
    text-wrap: balance;
}

.detail-card p,
.download-panel p {
    margin: 0;
    color: var(--soft);
    font-size: 16px;
    line-height: 1.72;
}

.feature-list,
.workflow-list {
    display: grid;
    gap: 14px;
}

.feature-list article,
.workflow-list article {
    display: grid;
    gap: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    padding: 6px 0 8px 20px;
}

.feature-list h3,
.workflow-list h3 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(21px, 1.8vw, 28px);
    line-height: 1.18;
}

.feature-list p,
.workflow-list p {
    margin: 0;
    color: var(--soft);
    font-size: 15.5px;
    line-height: 1.7;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.spec-grid article {
    min-height: 270px;
    display: grid;
    align-content: space-between;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    padding: 24px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045) 58%, rgba(255, 209, 102, 0.07)),
        rgba(13, 18, 31, 0.9);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 24px 80px rgba(0, 0, 0, 0.22);
}

.spec-grid span {
    color: var(--accent-2);
    font-size: 13px;
    font-weight: 920;
}

.spec-grid h3 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(23px, 1.9vw, 31px);
    line-height: 1.12;
}

.spec-grid p {
    margin: 0;
    color: var(--soft);
    font-size: 15.5px;
    line-height: 1.72;
}

.build-note {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(18px, 3vw, 28px);
    align-items: start;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 32px;
    padding: clamp(28px, 5vw, 62px);
    background:
        radial-gradient(circle at 12% 16%, rgba(255, 209, 102, 0.16), transparent 17rem),
        radial-gradient(circle at 84% 78%, rgba(116, 215, 255, 0.14), transparent 19rem),
        rgba(13, 18, 31, 0.9);
}

.build-note h2 {
    margin: 0;
    max-width: 14ch;
    color: var(--ink);
    font-size: clamp(34px, 4.2vw, 64px);
    line-height: 1.05;
    text-wrap: balance;
}

.build-note h2 span {
    display: block;
}

.build-note p:not(.eyebrow) {
    margin: 0;
    max-width: 920px;
    color: var(--soft);
    font-size: clamp(17px, 1.35vw, 20px);
    line-height: 1.82;
}

.download-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(22px, 5vw, 64px);
    align-items: end;
    padding: clamp(28px, 5vw, 58px);
}

.download-panel .product-meta {
    margin-top: 22px;
}

.market-price {
    color: color-mix(in srgb, var(--accent-2) 86%, var(--ink));
    font-size: 13px;
    font-weight: 920;
    white-space: nowrap;
}

.works-grid.market-grid .work-card.is-hidden {
    display: none;
}

.work-card[data-card-link] {
    cursor: pointer;
}

.work-card[data-card-link]:focus-visible {
    outline: 2px solid rgba(116, 215, 255, 0.82);
    outline-offset: 5px;
}

.work-card[data-card-link] .download-button,
.work-card[data-card-link] .text-link {
    cursor: pointer;
}

.works-grid.market-grid .work-card:hover {
    transform:
        perspective(1000px)
        rotateX(var(--rx, 0deg))
        rotateY(var(--ry, 0deg));
}

.status-pill,
.mini-list span {
    color: rgba(255, 250, 241, 0.88);
    background: rgba(255, 255, 255, 0.095);
}

.glow-button:hover,
.nav-links a:hover,
.login-link:hover,
.lang-toggle:hover {
    box-shadow:
        0 0 20px rgba(116, 215, 255, 0.26),
        0 0 34px rgba(255, 122, 89, 0.16),
        0 14px 44px rgba(0, 0, 0, 0.24);
}

@media (max-width: 1040px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .market-toolbar {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .market-count {
        text-align: center;
    }
}

@media (max-width: 760px) {
    .motion-canvas {
        display: none;
    }

    .motion-field {
        display: block;
        background:
            radial-gradient(circle at 20% 18%, rgba(255, 122, 89, 0.22), transparent 16rem),
            radial-gradient(circle at 82% 22%, rgba(116, 215, 255, 0.24), transparent 18rem),
            radial-gradient(circle at 48% 88%, rgba(141, 123, 255, 0.18), transparent 20rem),
            #070912;
    }

    .motion-vignette {
        display: block;
        background: linear-gradient(180deg, rgba(7, 9, 18, 0.18), transparent 40%, rgba(7, 9, 18, 0.62));
    }

    .page-section {
        min-height: auto;
        padding-top: 156px;
    }

    .market-preview {
        min-height: auto;
    }

    .preview-window {
        min-height: auto;
        transform: none;
    }

    .market-preview {
        transform: none;
    }

    .preview-search {
        grid-template-columns: 1fr;
        gap: 2px;
        align-items: start;
        border-radius: 20px;
        padding: 10px 16px;
    }

    .preview-tiles {
        grid-template-columns: 1fr;
    }

    .preview-tile {
        min-height: 112px;
    }

    .market-toolbar {
        border-radius: 24px;
        padding: 12px;
    }

    .market-search {
        grid-template-columns: 1fr;
        gap: 2px;
        align-items: start;
        border-radius: 20px;
        padding: 10px 14px;
    }

    .market-filters {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 5px;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .market-filters::-webkit-scrollbar {
        display: none;
    }

    .market-filters button {
        padding: 0 10px;
        font-size: 12.5px;
    }

    .works-grid.market-grid {
        grid-template-columns: 1fr;
    }

    .works-grid.market-grid .work-card,
    .works-grid.market-grid .work-card-feature,
    .works-grid.market-grid .work-card-wide,
    .works-grid.market-grid .work-card-compact,
    .works-grid.market-grid .firebase-work-card {
        min-height: auto;
        height: auto;
        border-radius: 24px;
        transform: none;
    }

    .works-grid.market-grid .work-media,
    .works-grid.market-grid .work-card-feature .work-media {
        max-height: none;
        min-height: 236px;
        flex-basis: 236px;
    }

    .works-grid.market-grid .work-card:not(:has(.work-media))::before,
    .works-grid.market-grid .firebase-work-card:not(:has(.work-media))::before {
        min-height: 236px;
        flex-basis: 236px;
    }

    .works-grid.market-grid .work-card h3,
    .works-grid.market-grid .work-card-feature h3 {
        font-size: clamp(25px, 7vw, 32px);
    }

    .work-card-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .work-card-actions {
        grid-template-columns: 1fr;
    }

    .work-card-footer .glow-button,
    .work-card-footer .text-link,
    .work-card-footer .download-button {
        width: 100%;
        justify-content: center;
    }
}

/* Scroll stability patch: Chrome can flash black while repainting many
   backdrop-filter glass cards. Keep the glass look with static layers. */
.site-nav .control-surface,
.control-surface,
.work-card,
.platform-card,
.service-card,
.solution-card,
.standard-card,
.model-card,
.stack-card,
.process-steps article,
.depth-grid article,
.founder-manifesto article,
.story-timeline article,
.github-panel,
.submit-panel,
.principle-stack article,
.works-grid.market-grid .work-card,
.works-grid.market-grid .work-card-feature,
.works-grid.market-grid .work-card-wide,
.works-grid.market-grid .work-card-compact,
.works-grid.market-grid .firebase-work-card,
.preview-window,
.preview-tile,
.market-toolbar {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform-style: flat;
    contain: paint;
    will-change: auto;
}

.site-nav .control-surface {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.06) 54%, rgba(116, 215, 255, 0.08)),
        rgba(10, 14, 26, 0.985);
}

.work-card,
.platform-card,
.service-card,
.solution-card,
.standard-card,
.model-card,
.stack-card,
.process-steps article,
.depth-grid article,
.founder-manifesto article,
.story-timeline article,
.github-panel,
.submit-panel,
.principle-stack article,
.works-grid.market-grid .work-card,
.works-grid.market-grid .work-card-feature,
.works-grid.market-grid .work-card-wide,
.works-grid.market-grid .work-card-compact,
.works-grid.market-grid .firebase-work-card {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05) 58%, rgba(116, 215, 255, 0.08)),
        rgba(13, 18, 31, 0.9);
}

/* Cinematic marketplace stage: a scroll-linked camera path with depth layers.
   Desktop only; mobile keeps the static gradient version for stability. */
.cinema-camera {
    position: absolute;
    inset: -8% -12%;
    z-index: 0;
    overflow: hidden;
    opacity: 0.62;
    perspective: 1400px;
    transform-style: preserve-3d;
    pointer-events: none;
    mask-image: linear-gradient(90deg, transparent 0%, transparent 16%, rgba(0, 0, 0, 0.18) 36%, #000 58%, #000 100%);
}

.cinema-depth,
.cinema-track,
.cinema-wipe,
.cinema-scanline {
    position: absolute;
    display: block;
    pointer-events: none;
}

.cinema-depth {
    inset: 0;
    opacity: 0.48;
    transform:
        translate3d(calc(var(--camera-x, 0vw) * -0.18), calc(var(--camera-y, 0vh) * 0.18), -220px)
        scale(1.18);
}

.depth-far {
    background:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 78px 78px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 78px 78px,
        radial-gradient(circle at 22% 24%, rgba(255, 209, 102, 0.16), transparent 18rem),
        radial-gradient(circle at 76% 32%, rgba(116, 215, 255, 0.18), transparent 22rem);
}

.depth-mid {
    opacity: 0.34;
    transform:
        translate3d(calc(var(--camera-x, 0vw) * -0.32), calc(var(--camera-y, 0vh) * 0.28), -120px)
        rotate(var(--camera-tilt, 0deg))
        scale(1.1);
    background:
        linear-gradient(112deg, transparent 10%, rgba(255, 250, 241, 0.08) 10.2%, transparent 10.8% 44%, rgba(116, 215, 255, 0.09) 44.2%, transparent 44.8%),
        linear-gradient(63deg, transparent 20%, rgba(255, 122, 89, 0.1) 20.2%, transparent 20.8% 70%, rgba(141, 123, 255, 0.12) 70.2%, transparent 70.8%);
}

.depth-near {
    inset: 12% -8%;
    opacity: 0.2;
    filter: blur(1px);
    transform:
        translate3d(calc(var(--camera-x, 0vw) * -0.52), calc(var(--camera-y, 0vh) * 0.42), 80px)
        scale(1.02);
    background:
        radial-gradient(circle at 18% 70%, rgba(255, 122, 89, 0.22), transparent 15rem),
        radial-gradient(circle at 84% 64%, rgba(116, 215, 255, 0.22), transparent 18rem),
        radial-gradient(circle at 50% 24%, rgba(141, 123, 255, 0.18), transparent 15rem);
}

.cinema-track {
    left: 50%;
    top: 50%;
    width: 330vw;
    height: min(72vh, 760px);
    transform:
        translate3d(calc(-50% - var(--camera-x, 0vw)), calc(-50% + var(--camera-y, 0vh)), 0)
        rotateY(calc(var(--camera-tilt, 0deg) * -1))
        scale(var(--camera-z, 1));
    transform-origin: 50% 50%;
    transition: transform 80ms linear;
    will-change: transform;
}

.cinema-track::before {
    content: "";
    position: absolute;
    left: 5%;
    right: 5%;
    top: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 250, 241, 0.18), rgba(116, 215, 255, 0.2), transparent);
    transform: translateY(-50%);
}

.cinema-track::after {
    content: "";
    position: absolute;
    left: 4%;
    right: 4%;
    bottom: 12%;
    height: 36%;
    border-radius: 999px;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(116, 215, 255, 0.22), transparent 58%),
        linear-gradient(90deg, transparent, rgba(255, 209, 102, 0.16), rgba(255, 122, 89, 0.14), transparent);
    filter: blur(28px);
    opacity: 0.52;
    transform: translate3d(calc(var(--camera-x, 0vw) * 0.025), 0, -80px);
}

.cinema-room {
    position: absolute;
    top: 50%;
    width: min(34vw, 560px);
    aspect-ratio: 1.18;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 34px;
    color: rgba(255, 250, 241, 0.22);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03) 54%, rgba(116, 215, 255, 0.08)),
        rgba(11, 16, 30, 0.46);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 40px 160px rgba(0, 0, 0, 0.26);
    transform: translate3d(0, -50%, 0);
    overflow: hidden;
}

.cinema-room:nth-child(1) { left: 8%; }
.cinema-room:nth-child(2) { left: 32%; }
.cinema-room:nth-child(3) { left: 56%; }
.cinema-room:nth-child(4) { left: 80%; }

.cinema-product {
    position: absolute;
    top: 58%;
    width: clamp(210px, 18vw, 330px);
    min-height: 176px;
    display: grid;
    align-content: end;
    gap: 8px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    color: rgba(255, 250, 241, 0.9);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.045) 56%, rgba(116, 215, 255, 0.1)),
        rgba(10, 15, 28, 0.72);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 34px 90px rgba(0, 0, 0, 0.32);
    overflow: hidden;
    opacity: 0.32;
    transform:
        translate3d(0, -50%, 120px)
        rotateY(calc(var(--camera-tilt, 0deg) * -1.6));
}

.cinema-product::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, transparent 18%, rgba(255, 255, 255, 0.18), transparent 54%),
        radial-gradient(circle at 26% 18%, rgba(255, 209, 102, 0.22), transparent 8rem),
        radial-gradient(circle at 84% 80%, rgba(116, 215, 255, 0.18), transparent 9rem);
    opacity: 0.7;
}

.cinema-product img {
    position: absolute;
    inset: 12px 12px auto;
    width: calc(100% - 24px);
    height: 54%;
    object-fit: cover;
    object-position: center;
    border-radius: 18px;
    opacity: 0;
    filter: saturate(110%);
}

.cinema-product b,
.cinema-product i {
    position: relative;
    z-index: 1;
    font-style: normal;
    opacity: 0;
}

.cinema-product b {
    font-size: clamp(20px, 1.8vw, 30px);
    line-height: 1.05;
    font-weight: 920;
}

.cinema-product i {
    color: rgba(255, 250, 241, 0.58);
    font-size: 13px;
    font-weight: 760;
}

.product-codex { left: 24%; top: 76%; width: clamp(280px, 25vw, 440px); min-height: 250px; }
.product-travel { left: 36%; top: 30%; }
.product-speed { left: 60%; top: 70%; }
.product-flow { left: 84%; top: 34%; width: clamp(250px, 21vw, 370px); }

.cinema-room span {
    position: relative;
    z-index: 2;
    font-family: var(--font-serif);
    font-size: clamp(56px, 6vw, 104px);
    font-weight: 650;
    letter-spacing: 0;
    text-align: center;
    opacity: 0;
}

.cinema-room i,
.cinema-room b {
    position: absolute;
    display: block;
    border-radius: 999px;
}

.cinema-room i {
    width: 62%;
    height: 10px;
    left: 19%;
    top: 22%;
    background: linear-gradient(90deg, #ff7a59, #ffd166, #74d7ff, #8d7bff);
    opacity: 0.44;
    transform: translate3d(calc(var(--camera-x, 0vw) * -0.04), 0, 0);
}

.cinema-room b {
    right: 12%;
    bottom: 12%;
    width: 30%;
    aspect-ratio: 1;
    background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.34), rgba(116, 215, 255, 0.13) 38%, transparent 70%);
    opacity: 0.58;
}

.room-market {
    background:
        radial-gradient(circle at 20% 18%, rgba(255, 209, 102, 0.22), transparent 14rem),
        radial-gradient(circle at 82% 72%, rgba(116, 215, 255, 0.14), transparent 16rem),
        rgba(11, 16, 30, 0.48);
}

.room-product {
    background:
        radial-gradient(circle at 22% 78%, rgba(116, 215, 255, 0.2), transparent 16rem),
        radial-gradient(circle at 76% 20%, rgba(255, 122, 89, 0.16), transparent 15rem),
        rgba(11, 16, 30, 0.48);
}

.room-trust {
    background:
        radial-gradient(circle at 18% 24%, rgba(141, 123, 255, 0.22), transparent 16rem),
        radial-gradient(circle at 74% 78%, rgba(168, 213, 186, 0.18), transparent 15rem),
        rgba(11, 16, 30, 0.48);
}

.room-founder {
    background:
        radial-gradient(circle at 24% 74%, rgba(255, 122, 89, 0.18), transparent 16rem),
        radial-gradient(circle at 76% 28%, rgba(255, 209, 102, 0.16), transparent 15rem),
        rgba(11, 16, 30, 0.48);
}

.cinema-wipe {
    top: 0;
    bottom: 0;
    width: clamp(70px, 9vw, 170px);
    opacity: calc(var(--chapter-wipe, 0) * 0.55);
    background:
        linear-gradient(90deg, rgba(7, 9, 18, 0.94), rgba(7, 9, 18, 0.18), transparent),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 28%, transparent 72%, rgba(255, 255, 255, 0.06));
    transition: opacity 90ms linear;
}

.wipe-left {
    left: 0;
}

.wipe-right {
    right: 0;
    transform: scaleX(-1);
}

.cinema-scanline {
    left: 0;
    right: 0;
    top: calc(18% + var(--camera-focus, 0) * 54%);
    height: 1px;
    opacity: 0.18;
    background: linear-gradient(90deg, transparent, rgba(255, 250, 241, 0.44), transparent);
    box-shadow: 0 0 28px rgba(116, 215, 255, 0.18);
}

.cinematic-motion .market-preview,
.cinematic-motion .section-heading,
.cinematic-motion .platform-grid,
.cinematic-motion .process-steps,
.cinematic-motion .founder-manifesto,
.cinematic-motion .submit-panel,
.cinematic-motion .github-panel {
    transform:
        translate3d(0, calc((var(--active-progress, 0) - 0.5) * -34px), 0)
        scale(calc(0.985 + var(--active-ease, 0) * 0.018));
    transition: transform 90ms linear;
}

.works-grid.market-grid .work-card-feature {
    grid-column: auto;
    min-height: 520px;
    height: 520px;
}

.works-grid.market-grid .work-card-feature .work-media {
    min-height: 228px;
    max-height: 228px;
    flex-basis: 228px;
}

.works-grid.market-grid .work-card-feature .work-media img {
    object-fit: contain;
    object-position: center;
    transform: none;
}

@media (max-width: 760px), (hover: none) {
    .cinema-camera {
        display: none;
    }

    .cinematic-motion .market-preview,
    .cinematic-motion .section-heading,
    .cinematic-motion .platform-grid,
    .cinematic-motion .process-steps,
    .cinematic-motion .founder-manifesto,
    .cinematic-motion .submit-panel,
    .cinematic-motion .github-panel {
        transform: none;
        transition: none;
    }

    .works-grid.market-grid .work-card-feature {
        min-height: auto;
        height: auto;
    }

    .works-grid.market-grid .work-card-feature .work-media {
        min-height: 236px;
        max-height: none;
        flex-basis: 236px;
    }
}

/* Compact desktop / windowed Chrome mode. This is not mobile, but there is not
   enough stable viewport room for the full camera path. Keep the design rich
   while removing the heavy scroll film layer. */
@media (max-width: 1120px), (max-height: 760px) {
    html {
        scroll-padding-top: 0;
    }

    .cinema-camera {
        display: none !important;
    }

    .motion-field {
        display: block;
        background:
            radial-gradient(circle at 20% 14%, rgba(255, 122, 89, 0.26), transparent 22rem),
            radial-gradient(circle at 82% 24%, rgba(116, 215, 255, 0.27), transparent 26rem),
            radial-gradient(circle at 44% 84%, rgba(141, 123, 255, 0.2), transparent 28rem),
            linear-gradient(135deg, #070912 0%, #101a2d 56%, #070912 100%);
    }

    .scroll-stage {
        display: none !important;
    }

    .stage-frame,
    .stage-slab,
    .stage-beam,
    .stage-orbit,
    .stage-node,
    .stage-scan {
        animation: none !important;
    }

    .stage-frame {
        opacity: 0.1;
    }

    .stage-slab,
    .stage-orbit,
    .stage-node,
    .stage-scan {
        opacity: 0.08;
    }

    .site-nav {
        width: min(980px, calc(100% - 24px));
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "brand actions"
            "nav nav";
        gap: 10px;
    }

    .brand {
        grid-area: brand;
        width: max-content;
        max-width: min(100%, calc(100vw - 210px));
    }

    .nav-links {
        grid-area: nav;
        justify-content: center;
        overflow-x: auto;
        border-radius: 24px;
        padding: 6px;
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a {
        min-width: max-content;
        padding: 0 14px;
    }

    .nav-actions {
        grid-area: actions;
        justify-self: end;
    }

    .page-section {
        min-height: auto;
        padding-top: clamp(150px, 18vh, 190px);
        padding-bottom: clamp(80px, 10vh, 120px);
        scroll-margin-top: 120px;
    }

    .hero-section {
        align-items: start;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: clamp(34px, 5vw, 54px);
    }

    .hero-title {
        max-width: 11ch;
        font-size: clamp(48px, 8.2vw, 78px);
        line-height: 0.98;
    }

    .hero-copy .lead {
        max-width: 66ch;
    }

    .market-preview {
        width: 100%;
        max-width: 720px;
        min-height: auto;
        justify-self: center;
        transform: none !important;
    }

    .preview-window {
        width: 100%;
        max-width: 720px;
        min-height: auto;
        transform: none !important;
    }

    .preview-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .preview-tile {
        min-height: 130px;
    }

    .cinematic-motion .market-preview,
    .cinematic-motion .section-heading,
    .cinematic-motion .platform-grid,
    .cinematic-motion .process-steps,
    .cinematic-motion .founder-manifesto,
    .cinematic-motion .submit-panel,
    .cinematic-motion .github-panel {
        transform: none !important;
        transition: none !important;
    }
}

@media (max-width: 760px), (hover: none) {
    .scroll-stage,
    .cinema-camera {
        display: none !important;
    }

    .motion-gradient {
        opacity: 0.62;
        transform: none;
    }
}

@media (min-width: 1121px) and (min-height: 761px) and (hover: hover) {
    .cinematic-motion .stage-slab,
    .cinematic-motion .stage-node,
    .cinematic-motion .stage-scan {
        animation: none;
    }

    .cinematic-motion .cinema-track {
        transition: none;
    }

    .cinematic-motion .cinema-room::before {
        content: "";
        position: absolute;
        top: 8%;
        bottom: 8%;
        left: 10%;
        width: 1px;
        background: linear-gradient(180deg, transparent, rgba(255, 250, 241, 0.32), transparent);
        box-shadow: 0 0 34px rgba(116, 215, 255, 0.22);
        transform: translate3d(calc(var(--camera-x, 0vw) * -0.018), 0, 0);
    }
}

@media (max-width: 1040px) {
    .product-hero-grid,
    .codex-showcase,
    .detail-split,
    .download-panel,
    .build-note {
        grid-template-columns: 1fr;
    }

    .product-shot {
        max-width: 900px;
    }

    .detail-card-grid,
    .spec-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .product-detail-page .page-section,
    .product-hero {
        padding-top: 156px;
        padding-bottom: 72px;
    }

    .product-hero-grid {
        gap: 28px;
    }

    .product-stat-grid,
    .detail-card-grid,
    .spec-grid {
        grid-template-columns: 1fr;
    }

    .product-title {
        max-width: 9.5ch;
        font-size: clamp(48px, 14vw, 64px);
        line-height: 0.98;
    }

    .product-shot,
    .detail-card,
    .download-panel,
    .build-note,
    .spec-grid article {
        border-radius: 24px;
    }

    .product-shot {
        padding: 10px;
    }

    .product-shot img {
        border-radius: 18px;
    }

    .product-actions,
    .download-panel .product-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .product-actions .glow-button,
    .product-actions .download-button {
        width: 100%;
    }

    .interface-points span {
        border-radius: 18px;
        min-height: auto;
        padding: 13px 14px;
    }
}

/* About page: founder vision, portrait and desktop-only particle interaction. */
.about-page .page-section {
    overflow: clip;
}

.about-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.98fr) minmax(340px, 0.62fr);
    gap: clamp(30px, 5vw, 76px);
    align-items: center;
}

.about-title {
    max-width: 11.8ch;
}

.about-copy {
    display: grid;
    gap: clamp(20px, 2vw, 28px);
}

.about-lede {
    display: grid;
    gap: 16px;
    max-width: 820px;
}

.about-lede p,
.about-origin-copy p,
.about-platform-layout .section-intro p,
.about-ambition-copy p,
.about-submit-panel p {
    margin: 0;
    color: var(--muted);
    font-size: clamp(18px, 1.35vw, 23px);
    line-height: 1.78;
    text-wrap: pretty;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 720px;
}

.about-stats span {
    min-height: 86px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    background:
        linear-gradient(140deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
        rgba(15, 23, 38, 0.62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.about-stats strong {
    color: var(--ink);
    font-size: clamp(22px, 2vw, 34px);
    line-height: 1;
}

.about-stats small {
    color: var(--muted);
    font-weight: 800;
    line-height: 1.32;
}

.about-visual-stack {
    display: grid;
    gap: 18px;
    align-self: center;
}

.founder-portrait-card,
.about-belief-card,
.about-chapter-stack article,
.about-platform-grid article,
.about-ambition-panel,
.about-story-image,
.about-experience-panel,
.about-experience-note {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035) 58%, rgba(116, 215, 255, 0.08)),
        rgba(11, 17, 30, 0.72);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 28px 78px rgba(0, 0, 0, 0.28);
}

.founder-portrait-card {
    margin: 0;
    padding: 14px;
    border-radius: 38px;
    display: grid;
    gap: 0;
    overflow: hidden;
}

.founder-portrait-card::before,
.about-ambition-panel::before,
.about-experience-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.42;
    background:
        linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, 0.16) 45%, transparent 58% 100%);
    transform: translate3d(calc((var(--page-progress, 0) - 0.5) * 64px), 0, 0);
}

.portrait-frame {
    aspect-ratio: 4 / 5;
    border-radius: 30px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.portrait-frame img,
.about-story-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.portrait-frame img {
    object-position: center 46%;
    transform: scale(1.012);
}

.founder-portrait-card figcaption {
    position: relative;
    display: grid;
    gap: 7px;
    padding: 0 6px 8px;
}

.founder-portrait-card figcaption strong {
    color: var(--ink);
    font-size: clamp(20px, 1.6vw, 26px);
}

.founder-portrait-card figcaption span {
    color: color-mix(in srgb, var(--muted) 86%, var(--accent-3));
    font-weight: 800;
    line-height: 1.42;
}

.founder-portrait-card figcaption small {
    color: rgba(255, 250, 241, 0.62);
    line-height: 1.55;
}

.particle-orb-card {
    min-height: 168px;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    padding: 6px 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.particle-orb-card canvas {
    width: 150px;
    height: 150px;
    display: block;
    cursor: grab;
    touch-action: none;
    filter: drop-shadow(0 18px 34px rgba(116, 215, 255, 0.18));
}

.particle-orb-card.is-dragging canvas {
    cursor: grabbing;
}

.particle-orb-card > div {
    position: relative;
    display: grid;
    gap: 8px;
}

.particle-orb-card span {
    color: var(--ink);
    font-size: clamp(22px, 1.8vw, 30px);
    font-weight: 900;
    line-height: 1.12;
}

.particle-orb-card small {
    color: var(--muted);
    font-weight: 800;
    line-height: 1.4;
}

.founder-quote em {
    color: color-mix(in srgb, var(--muted) 88%, var(--accent-3));
    font-size: 13px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.4;
}

.founder-quote blockquote {
    margin: 6px 0 0;
    color: color-mix(in srgb, var(--ink) 88%, var(--accent-2));
    font-size: clamp(16px, 1.1vw, 20px);
    font-weight: 820;
    line-height: 1.35;
    text-wrap: balance;
}

.founder-compact-bio {
    display: none;
}

.founder-compact-bio span {
    color: var(--ink);
    font-size: clamp(23px, 5.6vw, 34px);
    font-weight: 900;
    line-height: 1.1;
}

.founder-compact-bio small,
.founder-compact-bio em {
    color: color-mix(in srgb, var(--muted) 88%, var(--accent-3));
    font-size: 14px;
    font-style: normal;
    font-weight: 850;
    line-height: 1.45;
}

.founder-compact-bio blockquote {
    margin: 6px 0 0;
    color: color-mix(in srgb, var(--ink) 88%, var(--accent-2));
    font-size: 17px;
    font-weight: 820;
    line-height: 1.5;
    text-wrap: pretty;
}

.about-philosophy .section-intro,
.about-platform-layout .section-intro {
    max-width: 930px;
    margin-bottom: clamp(26px, 5vw, 56px);
}

.about-belief-grid,
.about-platform-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.about-belief-card,
.about-platform-grid article {
    min-height: 260px;
    display: grid;
    align-content: start;
    gap: 14px;
    padding: clamp(22px, 2vw, 30px);
    border-radius: 30px;
    overflow: hidden;
}

.about-belief-card > span,
.about-platform-grid article > span,
.about-chapter-stack article > span {
    color: var(--accent-2);
    font-weight: 950;
}

.about-belief-card h3,
.about-platform-grid h3,
.about-chapter-stack h3 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(24px, 2.2vw, 34px);
    line-height: 1.12;
    text-wrap: balance;
}

.about-belief-card p,
.about-platform-grid p,
.about-chapter-stack p {
    margin: 0;
    color: var(--muted);
    font-size: clamp(16px, 1.08vw, 18px);
    line-height: 1.72;
}

.about-origin-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(380px, 1fr);
    gap: clamp(30px, 6vw, 84px);
    align-items: center;
}

.about-origin-copy {
    display: grid;
    gap: 18px;
}

.about-story-image {
    margin: 12px 0 0;
    max-width: 360px;
    aspect-ratio: 4 / 5;
    border-radius: 32px;
    overflow: hidden;
}

.about-story-image img {
    object-position: center 35%;
}

.about-chapter-stack {
    display: grid;
    gap: 16px;
}

.about-chapter-stack article {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
    min-height: auto;
    padding: clamp(20px, 2vw, 28px);
    border-radius: 30px;
}

.about-experience-panel {
    display: grid;
    grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: center;
    padding: clamp(26px, 4.8vw, 62px);
    border-radius: 42px;
    overflow: hidden;
}

.about-experience-image {
    margin: 0;
    aspect-ratio: 4 / 5;
    border-radius: 32px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 28px 82px rgba(0, 0, 0, 0.34);
}

.about-experience-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 34%;
}

.about-experience-copy {
    position: relative;
    display: grid;
    gap: 18px;
    min-width: 0;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.about-tags span {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: color-mix(in srgb, var(--ink) 86%, var(--accent-3));
    background: rgba(255, 255, 255, 0.07);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.1;
}

.about-experience-copy p {
    margin: 0;
    color: var(--muted);
    font-size: clamp(18px, 1.26vw, 22px);
    line-height: 1.78;
    max-width: 68ch;
}

.about-experience-notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 6px;
}

.about-experience-note {
    min-height: 150px;
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 18px;
    border-radius: 24px;
}

.about-experience-note span {
    color: var(--accent-2);
    font-weight: 950;
}

.about-experience-note h3 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(20px, 1.6vw, 28px);
    line-height: 1.14;
}

.about-experience-note p {
    font-size: 15px;
    line-height: 1.58;
}

.about-platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-platform-grid article {
    min-height: 220px;
}

.about-ambition-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(28px, 5vw, 70px);
    align-items: start;
    padding: clamp(30px, 5vw, 70px);
    border-radius: 42px;
    overflow: hidden;
}

.about-ambition-copy {
    display: grid;
    gap: 18px;
    max-width: 820px;
}

.about-ambition-copy blockquote {
    margin: 8px 0 0;
    padding: 22px 24px;
    border-left: 3px solid var(--accent-2);
    border-radius: 24px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.08);
    font-family: var(--font-serif);
    font-size: clamp(24px, 2.2vw, 38px);
    line-height: 1.28;
}

.about-submit-panel {
    align-items: center;
}

.about-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

@media (min-width: 1180px) and (min-height: 760px) and (hover: hover) {
    .about-page .about-hero-grid {
        min-height: calc(100svh - 270px);
    }
}

@media (max-width: 1120px), (max-height: 760px), (hover: none) {
    .about-page .page-section {
        overflow: visible;
    }

    .about-hero-grid {
        align-items: start;
    }

    .about-visual-stack {
        width: 100%;
        max-width: min(100%, 520px);
        justify-self: center;
    }

    .founder-compact-bio {
        display: grid;
        gap: 7px;
        width: 100%;
        max-width: 520px;
        justify-self: center;
        padding: 18px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 24px;
        background:
            linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045) 58%, rgba(116, 215, 255, 0.08)),
            rgba(13, 18, 31, 0.78);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.12),
            0 18px 48px rgba(0, 0, 0, 0.22);
    }

    .particle-orb-card {
        display: none;
    }

    .particle-orb-card canvas {
        display: none;
    }

    .founder-quote blockquote {
        max-width: 34ch;
        font-size: 17px;
        line-height: 1.46;
    }

    .founder-portrait-card {
        width: 100%;
        max-width: 520px;
        justify-self: center;
        box-sizing: border-box;
    }

    .portrait-frame {
        max-height: min(540px, 68vh);
    }
}

@media (max-width: 1040px) {
    .about-hero-grid,
    .about-origin-grid,
    .about-ambition-panel,
    .about-experience-panel {
        grid-template-columns: 1fr;
    }

    .about-visual-stack {
        max-width: 520px;
    }

    .about-experience-copy {
        order: -1;
    }

    .about-experience-image {
        width: 100%;
        max-width: 520px;
        justify-self: center;
    }

    .about-belief-grid,
    .about-experience-notes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-chapter-stack article {
        grid-template-columns: 1fr;
    }

    .about-submit-panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-submit-panel > * {
        min-width: 0;
    }
}

@media (max-width: 760px) {
    .about-title {
        max-width: 10.6ch;
    }

    .about-lede p,
    .about-origin-copy p,
    .about-platform-layout .section-intro p,
    .about-ambition-copy p,
    .about-submit-panel p {
        font-size: 16px;
        line-height: 1.78;
    }

    .about-lede p:nth-child(n+2),
    .about-origin-copy p:nth-of-type(n+2),
    .about-platform-layout .section-intro p:nth-of-type(n+2),
    .about-ambition-copy p:nth-of-type(n+2),
    .about-experience-copy p:nth-of-type(n+2),
    .about-submit-panel p:nth-of-type(n+2) {
        display: none;
    }

    .about-lede,
    .about-origin-copy,
    .about-experience-copy,
    .about-ambition-copy {
        gap: 12px;
    }

    .about-stats,
    .about-belief-grid,
    .about-platform-grid {
        grid-template-columns: 1fr;
    }

    .about-visual-stack {
        max-width: min(100%, 384px);
        gap: 12px;
    }

    .founder-portrait-card,
    .about-ambition-panel,
    .about-experience-panel,
    .about-belief-card,
    .about-platform-grid article,
    .about-chapter-stack article,
    .about-story-image {
        border-radius: 24px;
    }

    .portrait-frame {
        aspect-ratio: 4 / 5;
        max-height: 430px;
        border-radius: 18px;
    }

    .founder-portrait-card {
        padding: 10px;
    }

    .founder-compact-bio {
        padding: 16px;
        border-radius: 22px;
    }

    .founder-compact-bio span {
        font-size: 22px;
    }

    .founder-compact-bio small,
    .founder-compact-bio em {
        font-size: 13px;
        line-height: 1.45;
    }

    .founder-compact-bio blockquote {
        max-width: none;
        font-size: 16px;
        line-height: 1.52;
    }

    .about-story-image {
        max-width: none;
    }

    .about-experience-notes {
        grid-template-columns: 1fr;
    }

    .about-cta-actions {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .about-cta-actions .glow-button {
        width: 100%;
    }
}

.motion-gradient,
.stage-slab,
.stage-node,
.stage-scan {
    animation: none !important;
}

/* Final mobile navigation override: keep every nav item visible without relying
   on horizontal scrolling, including Android/WhatsApp in-app browsers. */
@media (max-width: 760px) {
    .site-nav {
        width: calc(100% - 18px);
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "brand actions"
            "nav nav";
        gap: 8px;
        overflow: visible;
    }

    .brand {
        grid-area: brand;
        width: max-content;
        max-width: calc(100vw - 172px);
    }

    .nav-actions {
        grid-area: actions;
        justify-self: end;
    }

    .nav-links {
        grid-area: nav;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
        justify-content: stretch;
        align-items: stretch;
        overflow: visible;
        min-height: auto;
        padding: 5px;
        border-radius: 22px;
        scrollbar-width: none;
    }

    .nav-links a {
        width: 100%;
        min-width: 0;
        min-height: 34px;
        height: 34px;
        padding: 0 3px;
        font-size: 13px;
        line-height: 1;
        text-align: center;
    }
}

/* 2026-05-12: marketplace polish, smoother camera scenes, stable mobile layouts. */
.site-nav {
    transition:
        transform 0.46s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.28s ease,
        filter 0.46s ease;
    will-change: transform, opacity;
}

body.nav-hidden .site-nav {
    transform: translate3d(0, calc(-100% - 22px), 0) scale(0.986);
    opacity: 0.06;
    filter: blur(8px);
    pointer-events: none;
}

.timeline-stage,
.timeline-device {
    display: none !important;
}

.cinema-path,
.cinema-focus,
.cinema-hud,
.cinema-data-stream,
.cinema-data-stream i {
    position: absolute;
    display: block;
    pointer-events: none;
}

.cinema-path {
    left: 50%;
    top: 50%;
    width: clamp(720px, 84vw, 1600px);
    height: clamp(240px, 30vh, 520px);
    border-radius: 999px;
    border: 1px solid rgba(255, 250, 241, 0.09);
    opacity: 0.26;
    transform:
        translate3d(calc(-50% + (var(--cinema-pan, 0) - 0.5) * -280px), calc(-50% + (var(--cinema-local, 0) - 0.5) * 120px), -40px)
        rotate(calc(-12deg + var(--cinema-pan, 0) * 32deg))
        scale(calc(0.86 + var(--cinema-ease, 0) * 0.32));
    will-change: transform, opacity;
}

.path-b {
    width: clamp(620px, 68vw, 1280px);
    height: clamp(360px, 48vh, 720px);
    opacity: 0.18;
    transform:
        translate3d(calc(-50% + (var(--cinema-pan, 0) - 0.5) * 420px), calc(-50% + (var(--cinema-local, 0) - 0.5) * -150px), -70px)
        rotate(calc(24deg - var(--cinema-pan, 0) * 44deg))
        scale(calc(0.9 + var(--cinema-ease, 0) * 0.18));
}

.path-c {
    width: clamp(520px, 52vw, 980px);
    height: clamp(180px, 22vh, 360px);
    opacity: 0.22;
    border-color: rgba(116, 215, 255, 0.12);
    transform:
        translate3d(calc(-50% + (var(--cinema-pan, 0) - 0.5) * -520px), calc(-50% + (var(--cinema-local, 0) - 0.5) * 210px), 30px)
        rotate(calc(4deg + var(--cinema-pan, 0) * 24deg))
        scale(calc(0.8 + var(--cinema-ease, 0) * 0.25));
}

.cinema-focus {
    width: clamp(160px, 18vw, 340px);
    aspect-ratio: 1;
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(2px);
    background:
        radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.42), transparent 10%),
        radial-gradient(circle, rgba(116, 215, 255, 0.25), rgba(141, 123, 255, 0.08) 48%, transparent 70%);
    transform:
        translate3d(calc(16vw + var(--cinema-pan, 0) * 52vw), calc(18vh + (var(--cinema-local, 0) - 0.5) * 70px), 80px)
        scale(calc(0.78 + var(--cinema-ease, 0) * 0.45));
}

.focus-b {
    right: 12%;
    bottom: 18%;
    width: clamp(110px, 13vw, 240px);
    opacity: 0.18;
    background:
        radial-gradient(circle at 34% 30%, rgba(255, 250, 241, 0.32), transparent 12%),
        radial-gradient(circle, rgba(255, 209, 102, 0.22), rgba(255, 122, 89, 0.08) 48%, transparent 72%);
    transform:
        translate3d(calc((var(--cinema-pan, 0) - 0.5) * -260px), calc((var(--cinema-local, 0) - 0.5) * 90px), 130px)
        scale(calc(0.86 + var(--cinema-ease, 0) * 0.2));
}

.cinema-hud {
    width: clamp(190px, 15vw, 280px);
    min-height: 92px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
        rgba(9, 14, 27, 0.58);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
    opacity: calc(0.12 + var(--cinema-ease, 0) * 0.26);
    transform:
        translate3d(calc((var(--cinema-pan, 0) - 0.5) * -160px), calc((var(--cinema-local, 0) - 0.5) * -60px), 180px)
        scale(calc(0.92 + var(--cinema-ease, 0) * 0.1));
    will-change: transform, opacity;
}

.cinema-hud b,
.cinema-hud i {
    display: block;
    font-style: normal;
}

.cinema-hud b {
    color: var(--accent);
    font-size: 14px;
    font-weight: 950;
}

.cinema-hud i {
    margin-top: 8px;
    color: rgba(255, 250, 241, 0.72);
    font-size: 13px;
    font-weight: 820;
}

.cinema-hud em {
    display: block;
    margin-top: 14px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff7a59, #ffd166, #74d7ff, #8d7bff);
    opacity: 0.72;
    transform-origin: left center;
    transform: scaleX(calc(0.32 + var(--cinema-local, 0) * 0.68));
}

.hud-market { left: 14%; top: 18%; }
.hud-product {
    left: 58%;
    top: 14%;
    transform:
        translate3d(calc((var(--cinema-pan, 0) - 0.5) * 230px), calc((var(--cinema-local, 0) - 0.5) * 80px), 180px)
        scale(calc(0.9 + var(--cinema-ease, 0) * 0.12));
}
.hud-trust {
    right: 10%;
    bottom: 18%;
    transform:
        translate3d(calc((var(--cinema-pan, 0) - 0.5) * -300px), calc((var(--cinema-local, 0) - 0.5) * -70px), 220px)
        scale(calc(0.9 + var(--cinema-ease, 0) * 0.12));
}

.cinema-data-stream {
    right: 8%;
    top: 44%;
    width: min(28vw, 460px);
    display: grid;
    gap: 12px;
    opacity: calc(0.16 + var(--cinema-ease, 0) * 0.16);
    transform:
        translate3d(calc((var(--cinema-pan, 0) - 0.5) * -240px), calc((var(--cinema-local, 0) - 0.5) * 80px), 120px);
}

.cinema-data-stream i {
    position: relative;
    width: calc(48% + var(--cinema-local, 0) * 38%);
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 250, 241, 0.12), rgba(116, 215, 255, 0.46), transparent);
}

.cinema-data-stream i:nth-child(2n) {
    margin-left: auto;
    width: calc(34% + var(--cinema-ease, 0) * 42%);
    background: linear-gradient(90deg, transparent, rgba(255, 209, 102, 0.44), rgba(255, 250, 241, 0.1));
}

.work-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 160px;
    max-height: 220px;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
        radial-gradient(circle at 22% 22%, rgba(255, 209, 102, 0.24), transparent 7rem),
        radial-gradient(circle at 78% 72%, rgba(116, 215, 255, 0.24), transparent 8rem),
        rgba(8, 14, 26, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
    transform: translateZ(0);
}

.works-grid.market-grid .work-card:has(.work-placeholder)::before,
.works-grid.market-grid .firebase-work-card:has(.work-placeholder)::before {
    content: none;
}

.work-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 34px 34px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 34px 34px;
    opacity: 0.28;
}

.work-placeholder::after {
    content: "";
    position: absolute;
    inset: auto -20% 12% 12%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff7a59, #ffd166, #74d7ff, #8d7bff, transparent);
    opacity: 0.62;
    transform: translateX(calc((var(--hover, 0) - 0.2) * 24px));
}

.work-placeholder span {
    position: absolute;
    display: block;
}

.placeholder-line,
.placeholder-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 250, 241, 0.18);
}

.placeholder-line {
    left: 12%;
    right: 34%;
    bottom: 30%;
}

.placeholder-line.wide {
    right: 16%;
    bottom: 42%;
}

.placeholder-bar.bar-a { left: 12%; right: 42%; top: 28%; background: rgba(116, 215, 255, 0.45); }
.placeholder-bar.bar-b { left: 22%; right: 26%; top: 48%; background: rgba(255, 209, 102, 0.48); }
.placeholder-bar.bar-c { left: 16%; right: 54%; top: 68%; background: rgba(255, 122, 89, 0.46); }

.placeholder-orb,
.placeholder-cloud-core,
.placeholder-gauge,
.placeholder-pulse {
    width: 74px;
    aspect-ratio: 1;
    border-radius: 50%;
    left: 13%;
    top: 18%;
    background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.52), rgba(116, 215, 255, 0.26) 34%, rgba(141, 123, 255, 0.12) 68%, transparent 72%);
    box-shadow: 0 0 42px rgba(116, 215, 255, 0.18);
}

.placeholder-grid,
.placeholder-window,
.placeholder-doc,
.placeholder-calendar,
.placeholder-book,
.placeholder-storefront {
    inset: 18% 10% auto auto;
    width: 48%;
    height: 54%;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(5, 10, 21, 0.3);
}

.placeholder-route {
    left: 16%;
    right: 12%;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 209, 102, 0.7), rgba(116, 215, 255, 0.7));
    transform: rotate(-12deg);
}

.placeholder-pin,
.placeholder-dot {
    width: 18px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #ffd166;
    box-shadow: 0 0 18px rgba(255, 209, 102, 0.4);
}

.placeholder-pin { left: 28%; top: 34%; }
.placeholder-dot.dot-a { left: 18%; top: 30%; }
.placeholder-dot.dot-b { left: 52%; top: 46%; background: #74d7ff; }
.placeholder-dot.dot-c { right: 18%; bottom: 22%; background: #ff7a59; }

.placeholder-card {
    width: 34%;
    height: 28%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
}

.mini-a { left: 12%; bottom: 16%; }
.mini-b { right: 12%; top: 18%; }

.placeholder-step {
    width: 27%;
    height: 30%;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
}

.step-1 { left: 10%; top: 22%; }
.step-2 { left: 37%; top: 42%; }
.step-3 { right: 10%; top: 24%; }
.placeholder-connector {
    left: 20%;
    right: 20%;
    top: 54%;
    height: 2px;
    background: linear-gradient(90deg, #ff7a59, #74d7ff);
}

.placeholder-column {
    width: 25%;
    top: 20%;
    bottom: 18%;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
}

.placeholder-column:nth-child(1) { left: 10%; }
.placeholder-column:nth-child(2) { left: 38%; }
.placeholder-column:nth-child(3) { right: 10%; }

.works-grid.market-grid {
    align-items: stretch;
}

.works-grid.market-grid .work-card,
.works-grid.market-grid .work-card-wide,
.works-grid.market-grid .work-card-compact,
.works-grid.market-grid .work-card-feature {
    min-height: 548px;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    contain: layout paint;
}

.works-grid.market-grid .work-card-feature {
    grid-column: span 2;
}

.works-grid.market-grid .work-card h3,
.works-grid.market-grid .work-card-feature h3 {
    line-height: 1.02;
    text-wrap: balance;
}

.works-grid.market-grid .work-card p,
.works-grid.market-grid .work-card-feature p {
    max-width: 100%;
    text-wrap: pretty;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.work-card-footer {
    margin-top: auto;
}

@media (min-width: 1121px) and (min-height: 761px) and (hover: hover) {
    .cinematic-motion .work-placeholder::after {
        animation: placeholder-scan 3.8s ease-in-out infinite alternate;
    }

    .cinematic-motion .placeholder-orb,
    .cinematic-motion .placeholder-cloud-core,
    .cinematic-motion .placeholder-gauge,
    .cinematic-motion .placeholder-pulse {
        animation: placeholder-breathe 4.6s ease-in-out infinite alternate;
    }
}

@keyframes placeholder-scan {
    from { transform: translateX(-12%); opacity: 0.42; }
    to { transform: translateX(14%); opacity: 0.72; }
}

@keyframes placeholder-breathe {
    from { transform: translate3d(0, 0, 0) scale(0.96); filter: saturate(90%); }
    to { transform: translate3d(10px, -6px, 0) scale(1.05); filter: saturate(125%); }
}

@media (max-width: 1120px), (max-height: 760px), (hover: none) {
    body.nav-hidden .site-nav {
        transform: none;
        opacity: 1;
        filter: none;
        pointer-events: auto;
    }

    .work-placeholder::after,
    .placeholder-orb,
    .placeholder-cloud-core,
    .placeholder-gauge,
    .placeholder-pulse {
        animation: none !important;
    }
}

@media (max-width: 1120px) {
    .works-grid.market-grid .work-card,
    .works-grid.market-grid .work-card-wide,
    .works-grid.market-grid .work-card-compact,
    .works-grid.market-grid .work-card-feature {
        min-height: 0;
    }

    .works-grid.market-grid .work-card-feature {
        grid-column: auto;
    }
}

@media (max-width: 760px) {
    html,
    body {
        max-width: 100%;
        overflow-x: clip;
    }

    .site-nav {
        left: max(8px, env(safe-area-inset-left));
        right: max(8px, env(safe-area-inset-right));
        width: auto;
        max-width: none;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        padding: 8px;
        border-radius: 24px;
    }

    .brand {
        max-width: calc(100vw - 168px);
    }

    .brand-copy strong {
        font-size: 15px;
    }

    .brand-copy small {
        font-size: 10px;
    }

    .nav-links {
        display: flex;
        justify-content: flex-start;
        gap: 6px;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x proximity;
        scroll-padding-inline: 10px;
        padding: 6px 10px;
        border-radius: 20px;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
    }

    .nav-links::after {
        content: "";
        flex: 0 0 22px;
    }

    .nav-links a {
        flex: 0 0 auto;
        width: auto;
        min-width: max-content;
        min-height: 38px;
        height: 38px;
        padding: 0 15px;
        scroll-snap-align: start;
        font-size: 14px;
        white-space: nowrap;
    }

    .page-section {
        padding-top: 136px;
        padding-bottom: 72px;
        scroll-margin-top: 126px;
    }

    .hero-title,
    .section-title {
        text-wrap: balance;
        word-break: keep-all;
        overflow-wrap: anywhere;
    }

    .hero-copy .lead,
    .section-lead,
    .process-copy p,
    .submit-panel p,
    .github-panel p {
        font-size: 16px;
        line-height: 1.74;
        text-wrap: pretty;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .market-toolbar {
        border-radius: 24px;
        padding: 12px;
    }

    .market-filters {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
    }

    .market-filters button {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .works-grid.market-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .work-placeholder,
    .works-grid.market-grid .work-card-feature .work-media {
        min-height: 190px;
        max-height: none;
        border-radius: 20px;
    }

    .works-grid.market-grid .work-card,
    .works-grid.market-grid .work-card-wide,
    .works-grid.market-grid .work-card-compact,
    .works-grid.market-grid .work-card-feature {
        min-height: 0;
        padding: 20px;
        border-radius: 26px;
        gap: 14px;
    }

    .works-grid.market-grid .work-card h3,
    .works-grid.market-grid .work-card-feature h3 {
        font-size: clamp(28px, 8vw, 40px);
    }

    .works-grid.market-grid .work-card p,
    .works-grid.market-grid .work-card-feature p {
        font-size: 15px;
        line-height: 1.68;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .mini-list {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .mini-list span {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

@media (max-width: 430px) {
    .brand {
        max-width: calc(100vw - 150px);
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .lang-toggle,
    .login-link {
        min-height: 42px;
    }

    .nav-links a {
        min-height: 36px;
        height: 36px;
        padding: 0 13px;
        font-size: 13px;
    }

    .hero-title {
        font-size: clamp(46px, 15vw, 62px);
    }

    .section-title {
        font-size: clamp(34px, 11vw, 48px);
    }
}

/* 2026-05-12 final stability pass: keep mobile/windowed layouts coherent. */
@media (max-width: 1180px) {
    .site-nav {
        left: max(14px, env(safe-area-inset-left));
        right: max(14px, env(safe-area-inset-right));
        width: auto;
        max-width: none;
    }

    .nav-links {
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .hero-grid,
    .section-inner,
    .about-hero-grid,
    .about-visual-stack,
    .works-grid,
    .market-toolbar {
        max-width: min(100%, var(--content-max, 1280px));
        min-width: 0;
    }
}

@media (max-width: 760px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        font-size: 16px;
        -webkit-text-size-adjust: 100%;
    }

    body.nav-hidden .site-nav,
    .site-nav {
        background:
            linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
            rgba(10, 16, 30, 0.92) !important;
        backdrop-filter: blur(22px) saturate(1.18) !important;
        -webkit-backdrop-filter: blur(22px) saturate(1.18) !important;
        left: max(10px, env(safe-area-inset-left)) !important;
        right: max(10px, env(safe-area-inset-right)) !important;
        top: max(12px, env(safe-area-inset-top)) !important;
        width: auto !important;
        max-width: calc(100vw - 20px) !important;
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-areas:
            "brand actions"
            "nav nav" !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 8px !important;
        border-radius: 24px !important;
        pointer-events: auto !important;
        box-sizing: border-box !important;
    }

    .brand {
        grid-area: brand !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: calc(100vw - 174px) !important;
        overflow: hidden !important;
    }

    .brand-copy {
        min-width: 0 !important;
    }

    .brand-copy strong {
        display: block !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: 15px !important;
        letter-spacing: 0 !important;
    }

    .brand-copy small {
        display: none !important;
    }

    .nav-actions {
        grid-area: actions !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 6px !important;
        min-width: 0 !important;
    }

    .login-link,
    .lang-toggle {
        min-height: 42px !important;
        height: 42px !important;
        min-width: 54px !important;
        padding: 0 12px !important;
        white-space: nowrap !important;
        font-size: 14px !important;
    }

    .lang-toggle {
        min-width: 68px !important;
    }

    .nav-links {
        grid-area: nav !important;
        background: rgba(14, 22, 38, 0.78) !important;
        display: flex !important;
        grid-template-columns: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 6px 10px !important;
        border-radius: 20px !important;
        scroll-padding-left: 10px !important;
        scroll-snap-type: x proximity !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-x !important;
        box-sizing: border-box !important;
    }

    .nav-links::before,
    .nav-links::after {
        content: "";
        flex: 0 0 8px;
        width: 8px;
    }

    .nav-links::-webkit-scrollbar {
        display: none !important;
    }

    .nav-links a {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: max-content !important;
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 14px !important;
        font-size: 14px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        scroll-snap-align: start !important;
    }

    .page-section {
        min-height: auto !important;
        padding: 150px 12px 76px !important;
        scroll-margin-top: 144px !important;
        box-sizing: border-box !important;
    }

    .hero-grid,
    .section-inner,
    .about-hero-grid,
    .about-visual-stack,
    .works-grid,
    .market-toolbar,
    .platform-grid,
    .process-grid,
    .timeline-grid,
    .submit-panel,
    .github-panel {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .hero-title,
    .section-title,
    .about-title,
    .work-card h3,
    .feature-copy h2 {
        max-width: 100% !important;
        word-break: keep-all !important;
        overflow-wrap: normal !important;
        text-wrap: balance !important;
        letter-spacing: 0 !important;
    }

    .hero-title {
        font-size: clamp(42px, 13.4vw, 58px) !important;
        line-height: 0.98 !important;
    }

    .section-title,
    .about-title {
        font-size: clamp(34px, 10.8vw, 48px) !important;
        line-height: 1.04 !important;
    }

    .about-title span,
    .hero-title span,
    .section-title span {
        display: block;
        max-width: 100%;
    }

    .hero-copy .lead,
    .section-lead,
    .about-lede p,
    .work-card p,
    .platform-card p,
    .process-card p,
    .timeline-card p {
        max-width: 100% !important;
        font-size: 16px !important;
        line-height: 1.72 !important;
        word-break: keep-all !important;
        overflow-wrap: break-word !important;
        text-wrap: pretty !important;
    }

    .about-lede p:nth-child(n + 2),
    .desktop-only-copy {
        display: none !important;
    }

    .works-grid.market-grid {
        grid-template-columns: 1fr !important;
    }

    .work-card,
    .work-card-feature,
    .work-card-wide,
    .work-card-compact,
    .feature-card,
    .platform-card,
    .process-card,
    .timeline-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        transform: none !important;
        box-sizing: border-box !important;
    }

    .work-media,
    .work-placeholder,
    .works-grid.market-grid .work-card-feature .work-media {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 210px !important;
        aspect-ratio: 16 / 10 !important;
        overflow: hidden !important;
        border-radius: 22px !important;
        box-sizing: border-box !important;
    }

    .work-media img,
    .founder-portrait-card img,
    .portrait-frame img {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    .founder-portrait-card,
    .founder-compact-bio,
    .portrait-frame {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .founder-portrait-card {
        padding: 10px !important;
        border-radius: 26px !important;
    }

    .portrait-frame {
        aspect-ratio: 4 / 5 !important;
        border-radius: 20px !important;
    }

    .founder-compact-bio {
        margin-top: 14px !important;
        padding: 22px !important;
        border-radius: 22px !important;
    }

    .founder-compact-bio h2 {
        font-size: clamp(30px, 9.2vw, 40px) !important;
        line-height: 1.02 !important;
        margin: 0 0 8px !important;
    }

    .founder-compact-bio p {
        font-size: 15px !important;
        line-height: 1.6 !important;
        margin: 0 0 10px !important;
    }

    .founder-compact-bio .quote,
    .founder-quote,
    .quote-card {
        font-size: clamp(20px, 6vw, 27px) !important;
        line-height: 1.35 !important;
        word-break: keep-all !important;
        overflow-wrap: break-word !important;
    }

    .cinema-camera,
    .motion-field,
    .cinema-depth,
    .cinema-hud,
    .cinema-data-stream,
    .cinema-path,
    .particle-orbit,
    .orbital-line {
        display: none !important;
    }
}

@media (max-width: 430px) {
    .site-nav {
        max-width: calc(100vw - 16px) !important;
        left: max(8px, env(safe-area-inset-left)) !important;
        right: max(8px, env(safe-area-inset-right)) !important;
    }

    .brand {
        max-width: calc(100vw - 158px) !important;
    }

    .login-link {
        min-width: 50px !important;
        padding-inline: 10px !important;
    }

    .lang-toggle {
        min-width: 62px !important;
        padding-inline: 10px !important;
    }

    .nav-links {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        overflow: visible !important;
        padding: 7px !important;
        gap: 5px !important;
        scroll-snap-type: none !important;
    }

    .nav-links::before,
    .nav-links::after {
        display: none !important;
    }

    .nav-links a {
        flex: 1 1 calc(33.333% - 6px) !important;
        justify-content: center !important;
        padding-inline: 6px !important;
        font-size: 11.5px !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .page-section {
        padding-top: 184px !important;
        scroll-margin-top: 178px !important;
    }

    .hero-title {
        font-size: clamp(39px, 12.6vw, 52px) !important;
    }

    .section-title,
    .about-title {
        font-size: clamp(31px, 9.8vw, 42px) !important;
    }

    .work-card,
    .work-card-feature,
    .work-card-wide,
    .work-card-compact {
        padding: 18px !important;
        border-radius: 24px !important;
    }

    .work-card h3,
    .work-card-feature h3 {
        font-size: clamp(28px, 8.6vw, 38px) !important;
    }
}

.ai-login-hint {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 1.6;
}

.home-ai-shell {
    position: fixed;
    right: max(22px, env(safe-area-inset-right));
    bottom: max(22px, env(safe-area-inset-bottom));
    z-index: 80;
    width: min(352px, calc(100vw - 28px));
    color: #fff;
    pointer-events: none;
}

.home-ai-launcher {
    position: relative;
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    padding: 4px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
        rgba(10, 14, 24, 0.68);
    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.38),
        0 0 0 8px rgba(116, 215, 255, 0.06);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    cursor: pointer;
    pointer-events: auto;
    animation: homeAiLauncherIn 460ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.home-ai-launcher img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: inherit;
    object-fit: cover;
}

.home-ai-launcher span {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #33e6bd;
    border: 2px solid rgba(9, 13, 22, 0.92);
    box-shadow: 0 0 18px rgba(51, 230, 189, 0.8);
}

.home-ai-launcher:hover {
    transform: translateY(-2px) scale(1.03);
}

.home-ai-panel {
    width: 100%;
    padding: 10px;
    border-radius: 22px;
    background: rgba(12, 16, 25, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(24px) saturate(1.25);
    -webkit-backdrop-filter: blur(24px) saturate(1.25);
    pointer-events: auto;
    animation: homeAiEnter 360ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.home-ai-panel[hidden],
.home-ai-launcher[hidden] {
    display: none;
}

.home-ai-shell.is-dragging,
.home-ai-shell.is-dragging * {
    cursor: grabbing !important;
    user-select: none;
}

.home-ai-chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 2px 8px;
    cursor: grab;
    touch-action: none;
}

.home-ai-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.home-ai-title img {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.home-ai-chat-head strong,
.home-ai-chat-head small {
    display: block;
}

.home-ai-chat-head small {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
}

.home-ai-chat-head button {
    flex: 0 0 auto;
    position: relative;
    z-index: 3;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    pointer-events: auto;
    transition: background 160ms ease, transform 160ms ease;
}

.home-ai-chat-head button:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.04);
}

.home-ai-intro {
    margin: 0 0 8px;
    padding: 9px 10px;
    border-radius: 16px;
    background: rgba(116, 215, 255, 0.09);
    border: 1px solid rgba(116, 215, 255, 0.13);
    color: rgba(255, 255, 255, 0.76);
    font-size: 12.5px;
    line-height: 1.55;
}

.home-ai-messages {
    display: grid;
    gap: 8px;
    max-height: min(248px, 42vh);
    overflow-y: auto;
    padding: 9px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    overscroll-behavior: contain;
}

.home-ai-message {
    display: grid;
    gap: 4px;
}

.home-ai-message span {
    color: rgba(255, 255, 255, 0.56);
    font-size: 12px;
}

.home-ai-message p {
    width: fit-content;
    max-width: 92%;
    margin: 0;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 13.5px;
    line-height: 1.55;
}

.home-ai-message.user {
    justify-items: end;
}

.home-ai-message.user p {
    background: rgba(71, 128, 255, 0.34);
}

.home-ai-message.is-typing p {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: auto;
    min-width: 48px;
    padding-block: 12px;
}

.home-ai-message.is-typing p i {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    animation: homeAiTyping 980ms ease-in-out infinite;
}

.home-ai-message.is-typing p i:nth-child(2) {
    animation-delay: 140ms;
}

.home-ai-message.is-typing p i:nth-child(3) {
    animation-delay: 280ms;
}

.home-ai-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 10px;
}

.home-ai-form textarea {
    min-height: 44px;
    max-height: 92px;
    resize: vertical;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 10px 12px;
    outline: none;
}

.home-ai-form button {
    min-width: 58px;
    border: 0;
    border-radius: 16px;
    background: #fff;
    color: #10131b;
    font-weight: 700;
    cursor: pointer;
}

.home-ai-form button:disabled {
    opacity: 0.62;
    cursor: wait;
}

@keyframes homeAiLauncherIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.84);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes homeAiEnter {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes homeAiTyping {
    0%,
    70%,
    100% {
        opacity: 0.34;
        transform: translateY(0);
    }
    35% {
        opacity: 1;
        transform: translateY(-4px);
    }
}

@media (max-width: 700px) {
    .home-ai-shell {
        right: max(10px, env(safe-area-inset-right));
        bottom: max(10px, env(safe-area-inset-bottom));
        width: calc(100vw - 20px);
    }

    .home-ai-launcher {
        width: 62px;
        height: 62px;
    }

    .home-ai-panel {
        border-radius: 20px;
    }

    .home-ai-messages {
        max-height: 220px;
    }
}
