:root {
    --ink: #0c0c0d;
    --paper: #f3f2ef;
    --red: #b57376;
    --steel: #d1dbe3;
    --muted: #7c7c83;
    --display: "Barlow Condensed", "D-DIN Condensed", "DIN Condensed", "Arial Narrow", sans-serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    --pad: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, p { margin: 0; font-weight: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
.red { color: var(--red); }

.ico {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

.container { width: min(1200px, 100% - 2 * var(--pad)); margin-inline: auto; }

.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--red);
}

.section-title {
    margin-top: 10px;
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(40px, 6vw, 88px);
    line-height: .95;
    text-transform: uppercase;
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.tags li {
    font-size: 12px;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 99px;
    border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
    color: color-mix(in srgb, currentColor 75%, transparent);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 99px;
    background: var(--accent, var(--red));
    color: #0b0c0d;
    font-size: 15px;
    font-weight: 600;
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px var(--accent, var(--red)); }
.btn .ico { font-size: 18px; transition: transform .3s; }
.btn:hover .ico { transform: translateX(3px); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); }

/* Scroll scenes: --p (0..1) is the pinned progress, --pe (0..1) the progress of the scene scrolling into view;
   both are written by main.js from ScrollMagic. Every .rv maps --p (or --pe with .in) onto its own
   [--s, --e] window as --t (linear) and --k (ease-out). */
.scene {
    --p: 1;
    --pe: 1;
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100lvh;
    overflow: hidden;
}
.js .scene, .hero { --p: 0; }
.js .scene { --pe: 0; }

.rv {
    --t: clamp(0, (var(--p) - var(--s, 0)) / (var(--e, 1) - var(--s, 0)), 1);
    --k: calc(var(--t) * (2 - var(--t)));
}
.rv.in { --t: clamp(0, (var(--pe) - var(--s, 0)) / (var(--e, 1) - var(--s, 0)), 1); }
.fade-in { opacity: var(--k); }
.fade-out { opacity: calc(1 - var(--k)); }
.fade-up { opacity: var(--k); transform: translate3d(0, calc((1 - var(--k)) * 48px), 0); }
.slide-l { opacity: var(--k); transform: translate3d(calc((1 - var(--k)) * -60px), 0, 0); }
.slide-r { opacity: var(--k); transform: translate3d(calc((1 - var(--k)) * 60px), 0, 0); }
.pop { opacity: var(--k); transform: scale(calc(.7 + .3 * var(--k))); }
.b-in {
    opacity: var(--k);
    transform: perspective(1400px) translate3d(0, calc((1 - var(--k)) * 90px), 0) rotateX(calc((1 - var(--k)) * 22deg)) scale(calc(.9 + .1 * var(--k)));
    transform-origin: 50% 100%;
}
.fade-up, .slide-l, .slide-r, .pop, .b-in { will-change: transform, opacity; }

/* Chrome */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px var(--pad);
    color: var(--ink);
    transition: color .4s;
    font-family: var(--display);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.nav--dark { color: #fff; }
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.nav__hat { width: 34px; height: 19px; fill: var(--red); }
.nav__links { display: flex; gap: clamp(16px, 3vw, 36px); }
.nav__links a { position: relative; }
.nav__links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: 100% 50%;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

/* Joker card (hero + contact) */
.card {
    --cw: 300px;
    position: relative;
    width: var(--cw);
    height: calc(var(--cw) * 1.4667);
    font-size: calc(var(--cw) / 7.5);
}
.card-face {
    position: absolute;
    inset: 0;
    border-radius: .35em;
    background: #000;
    color: var(--steel);
    font-family: var(--display);
    font-variant: small-caps;
    line-height: 1;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .55), 0 2px 4px rgba(0, 0, 0, .2);
}
.card-face::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .09) 50%, transparent 65%);
    transform: translateX(-100%);
    transition: transform 1.1s cubic-bezier(.2, .8, .2, 1);
    pointer-events: none;
}
.card-face--front {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.card-face--back { transform: rotateY(180deg); }
.card-lockup { font-size: .9em; line-height: .8; text-align: left; }
.card-line { white-space: nowrap; }
.card-line--2 { padding-left: .25em; }
.card-mind { position: relative; }
.card-hat {
    position: absolute;
    left: 50%;
    bottom: 100%;
    width: 3.1em;
    height: 1.68em;
    margin: 0 0 -.12em -1.55em;
    fill: var(--red);
}
.card-corner { position: absolute; font-size: .6em; line-height: 1.05; text-align: center; }
.card-corner--tl { left: .3em; top: .35em; }
.card-corner--br { right: .3em; bottom: .35em; }
.card-read {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: .9;
}
.card-read__sw { font-size: 1.22em; }
.card-read__more { display: block; margin: .12em 0 .2em; font-size: 1.1em; transform: scaleY(1.5); }
.card-read__more:hover { color: #d99a9d; }
.card-read__hw { font-size: 1.15em; }

.flip { --cw: min(300px, 45vh, 76vw); cursor: pointer; outline: none; perspective: 1400px; animation: card-in 1.4s cubic-bezier(.2, .8, .2, 1) both; }
.flip__inner {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transition: transform .9s cubic-bezier(.4, .2, .2, 1);
}
.flip.is-flipped .flip__inner, .flip:focus-visible .flip__inner { transform: rotateY(180deg); }
.flip:hover .card-face::after, .flip.is-flipped .card-face::after { transform: translateX(100%); }
@media (hover: hover) {
    .flip:hover .flip__inner { transform: rotateY(180deg); }
}
.flip .card-hat { transform-origin: 50% 90%; animation: hat-drop 1.1s .5s cubic-bezier(.3, 1.4, .5, 1) both; }
.is-top .flip .card-hat { animation: hat-drop 1.1s .5s cubic-bezier(.3, 1.4, .5, 1) both, hat-idle 4s 2.4s ease-in-out infinite; }

@keyframes card-in {
    from { opacity: 0; transform: translateY(60px) rotateX(-25deg) scale(.94); }
}
@keyframes hat-drop {
    from { opacity: 0; transform: translateY(-40px) rotate(-18deg); }
}
@keyframes fade {
    from { opacity: 0; }
}

/* Hero */
.hero {
    display: grid;
    place-items: center;
    background: var(--paper);
    perspective: 1400px;
}
.hero__bg {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12vh 0;
    pointer-events: none;
    --s: 0;
    --e: 1;
}
.hero__word {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(90px, 19vw, 320px);
    line-height: .8;
    text-transform: uppercase;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(12, 12, 13, .13);
    animation: fade 1.6s .3s both;
}
.hero__word--l { align-self: flex-start; transform: translate3d(calc(3vw - var(--t) * 45vw), 0, 0); }
.hero__word--r { align-self: flex-end; transform: translate3d(calc(-3vw + var(--t) * 45vw), 0, 0); }

.hero__stage {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
}
.dock-on .hero .flip { visibility: hidden; }
.hero__claim {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 var(--pad);
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(44px, 7.5vw, 120px);
    line-height: .95;
    text-align: center;
    text-transform: uppercase;
    pointer-events: none;
}
.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 28px;
    width: 22px;
    height: 36px;
    margin-left: -11px;
    border: 1.5px solid rgba(12, 12, 13, .35);
    border-radius: 12px;
}
.scroll-cue span {
    position: absolute;
    left: 50%;
    top: 7px;
    width: 3px;
    height: 7px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: var(--ink);
    animation: cue 1.8s infinite;
}
@keyframes cue {
    0% { opacity: 0; transform: translateY(0); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateY(12px); }
}

/* Manifesto */
.dark { background: var(--ink); color: #f1f1ee; }
.manifesto { display: flex; align-items: center; }
.manifesto__text {
    margin-top: 22px;
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(30px, 4.4vw, 68px);
    line-height: 1.08;
}
.manifesto__text .accent { color: var(--red); }
.w { opacity: calc(.13 + .87 * var(--k)); }

/* Capabilities */
.caps { display: flex; align-items: center; }
.caps__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: clamp(24px, 5vh, 56px);
}
.tile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px 24px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 24px 48px -28px rgba(0, 0, 0, .3);
}
.tile.assemble {
    opacity: min(1, var(--t) * 2.5);
    transform: translate3d(calc((1 - var(--k)) * var(--x)), calc((1 - var(--k)) * var(--y)), 0) rotate(calc((1 - var(--k)) * var(--r)));
    will-change: transform, opacity;
}
.tile--dark { background: #000; color: var(--steel); }
.tile__ico { font-size: 30px; color: var(--red); }
.tile h3 { font-family: var(--display); font-weight: 600; font-size: 32px; line-height: 1; text-transform: uppercase; }
.tile p { font-size: 15px; color: color-mix(in srgb, currentColor 68%, transparent); }
.tile .tags { margin-top: auto; padding-top: 6px; }
.caps__services {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-top: clamp(24px, 4vh, 40px);
    font-family: var(--display);
    font-size: clamp(18px, 2vw, 26px);
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
}
.caps__services i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

/* Work intro */
.work-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 44px;
    padding-inline: var(--pad);
    text-align: center;
}
.work-intro__title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(64px, 12vw, 200px);
    line-height: .85;
    text-transform: uppercase;
    opacity: calc(.12 + .88 * var(--k));
    transform: scale(calc(2.6 - 1.6 * var(--k)));
    will-change: transform;
}
.work-intro__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px clamp(24px, 5vw, 80px);
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(22px, 2.6vw, 36px);
    text-transform: uppercase;
}
.work-intro__list a { position: relative; transition: color .3s; }
.work-intro__list a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: 100% 50%;
    transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.work-intro__list a:hover { color: var(--red); }
.work-intro__list a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.work-intro__list span { margin-right: 8px; font-size: .55em; vertical-align: super; color: var(--red); }

/* Projects */
.project {
    --accent: #2fd08f;
    --bg: #09110d;
    display: flex;
    align-items: center;
    color: #eef0f2;
    background:
        radial-gradient(900px 600px at 78% 55%, color-mix(in srgb, var(--accent) 17%, transparent), transparent 65%),
        radial-gradient(700px 500px at 10% 100%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%),
        var(--bg);
}
.project--tiksy { --accent: #2cc0ee; --bg: #06121a; }
.project--led { --accent: #ffae2b; --bg: #110c06; }
.project--km { --accent: #ff7713; --bg: #0b0c0f; }
.project--tc { --accent: #b98cff; --bg: #0b0915; }
.project .eyebrow { color: var(--accent); }
.project__inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(32px, 5vw, 88px);
    align-items: center;
    width: min(1320px, 100% - 2 * var(--pad));
    margin-inline: auto;
}
.project__copy { container-type: inline-size; }
.project__title {
    margin: 14px 0 18px;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(56px, 8vw, 128px);
    line-height: .85;
    text-transform: uppercase;
}
.dot { color: var(--accent); }
.project__lead { max-width: 36ch; font-size: clamp(16px, 1.45vw, 20px); color: rgba(238, 240, 242, .8); }
.project__features { display: grid; gap: 10px; list-style: none; padding: 0; margin: 26px 0 30px; }
.project__features li { display: flex; gap: 12px; font-size: 15px; color: rgba(238, 240, 242, .68); }
.project__features li::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    margin-top: .6em;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}
.project__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.badge {
    padding: 7px 12px;
    border-radius: 99px;
    border: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.project__visual { position: relative; container-type: inline-size; }

.browser {
    border-radius: 14px;
    background: #14161a;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .5);
    overflow: hidden;
    font-size: clamp(10px, 2cqw, 14px);
}
.browser__bar {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 14px;
    background: #1c1f23;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.browser__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.browser__bar i:nth-child(2) { background: #febc2e; }
.browser__bar i:nth-child(3) { background: #28c840; }
.browser__url {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 45%;
    margin: 0 auto;
    padding: 4px 14px;
    border-radius: 7px;
    background: #111316;
    color: #9aa0a6;
    font-size: 12px;
}
.browser__url .ico { color: var(--accent); }
.browser__body { padding: clamp(16px, 3.6cqw, 30px); }

/* Light projects: LockLink and Docsy mirror their Tabler-based web apps */
.project--light {
    --accent: #066fd1;
    --l-ink: #182433;
    --l-muted: #6c7a91;
    --l-line: #dce1e7;
    color: var(--l-ink);
    background:
        radial-gradient(900px 600px at 78% 55%, rgba(66, 99, 235, .1), transparent 65%),
        linear-gradient(#eef3f6 12%, #fff 99%),
        #fff;
}
.project--light .project__title { font-family: var(--sans); font-size: min(100px, 16.5cqw); font-weight: 700; letter-spacing: -.055em; text-transform: none; white-space: nowrap; }
.project--light .project__lead { color: #49566c; }
.project--light .project__features li { color: var(--l-muted); }
.project--light .project__features li::before { box-shadow: none; }
.project--light .btn { background: var(--ink); color: #fff; }
.project--light .btn:hover { box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); }
.grad {
    display: inline-block;
    padding-bottom: .14em;
    margin-bottom: -.14em;
    background: linear-gradient(45deg, #066fd1, #4263eb, #4299e1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.browser--light {
    background: #fff;
    border-color: var(--l-line);
    box-shadow: 0 50px 90px -40px rgba(24, 36, 51, .35), 0 0 0 1px rgba(4, 32, 69, .05);
}
.browser--light .browser__bar { background: #f6f8fb; border-bottom-color: var(--l-line); }
.browser--light .browser__url { background: #eef3f6; color: var(--l-muted); }
.browser--light .browser__body { background: linear-gradient(#eef3f6 12%, #fff 99%); }

.ll { display: grid; gap: 1em; color: var(--l-ink); }
.ll__nav { display: flex; justify-content: space-between; align-items: center; }
.ll__logo { font-weight: 700; font-size: 1.15em; letter-spacing: -.03em; }
.ll__logo span { color: #007cff; }
.ll__hero { font-size: 1.6em; font-weight: 700; line-height: 1.15; letter-spacing: -.04em; text-align: center; }
.ll__grid { display: grid; grid-template-columns: minmax(0, 1fr) 11em; gap: 1em; }
.ll__main { display: flex; flex-direction: column; gap: .7em; }
.ll__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .7em; font-size: .85em; font-weight: 500; text-align: center; }
.ll__tabs span { padding: .45em; border-radius: 6px; background: #fff; border: 1px solid var(--l-line); }
.ll__tabs .is-on { background: var(--accent); border-color: var(--accent); color: #f6f8fb; }
.ll__drop {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 2.4em;
    min-height: 10em;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(4, 32, 69, .1);
    box-shadow: 0 0 4px rgba(24, 36, 51, .04);
    outline: 1px dashed var(--l-line);
    outline-offset: -.8em;
    overflow: hidden;
}
.ll__file {
    display: flex;
    align-items: center;
    gap: .8em;
    padding: .9em 1.1em;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--l-line);
    box-shadow: 0 14px 30px -14px rgba(24, 36, 51, .4);
    opacity: min(1, var(--t) * 3);
    transform: translate3d(0, calc((1 - var(--k)) * -9em), 0) rotate(calc((1 - var(--k)) * -14deg));
}
.ll__file .ico { font-size: 2em; color: var(--accent); }
.ll__file span { display: grid; }
.ll__file small { color: var(--l-muted); }
.ll__lock {
    width: 3.4em;
    color: color-mix(in srgb, var(--accent) calc(var(--k) * 100%), #c3cbd6);
    transform: scale(calc(1 + .12 * var(--k) * (1 - var(--k)) * 4));
    filter: drop-shadow(0 0 calc(var(--k) * 12px) color-mix(in srgb, var(--accent) 45%, transparent));
}
.ll__lock svg { width: 100%; height: auto; overflow: visible; }
.ll__shackle { transform: translateY(calc((1 - var(--k)) * -9px)); }
.ll__opts { display: flex; flex-direction: column; gap: .45em; font-size: .82em; }
.ll__opts b { font-weight: 500; }
.ll__opts b:not(:first-child) { margin-top: .4em; }
.ll__sw, .ll__radio { display: flex; align-items: center; gap: .6em; color: #49566c; }
.ll__sw::before {
    content: "";
    width: 2.2em;
    height: 1.2em;
    border-radius: 99px;
    background: var(--accent) radial-gradient(circle at calc(100% - .6em) 50%, #fff .38em, transparent .42em);
}
.ll__radio::before { content: ""; width: 1.1em; height: 1.1em; border-radius: 50%; background: #fff; border: 1px solid var(--l-line); }
.ll__radio.is-on::before { background: radial-gradient(circle, #fff .2em, var(--accent) .24em); border-color: var(--accent); }
.ll__cta {
    margin-top: auto;
    padding: .6em;
    border-radius: 6px;
    background: var(--accent);
    color: #f6f8fb;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 0 0 calc(sin(var(--t) * 180deg) * .45em) color-mix(in srgb, var(--accent) 25%, transparent);
    transform: scale(calc(1 - .05 * sin(var(--t) * 180deg)));
}
.ll__cipher {
    padding: .8em 1.1em;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--l-line);
    overflow: hidden;
    clip-path: inset(0 calc((1 - var(--k)) * 100%) 0 0 round 8px);
}
.ll__cipher code {
    display: block;
    font-family: var(--mono);
    font-size: .8em;
    line-height: 1.6;
    color: #4263eb;
    white-space: nowrap;
}
.ll__out { display: grid; grid-template-columns: 1fr 1fr; gap: .8em; }
.ll__chip {
    display: flex;
    align-items: center;
    gap: .8em;
    min-width: 0;
    padding: .7em 1em;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--l-line);
    box-shadow: 0 1px 1px rgba(24, 36, 51, .06);
}
.ll__chip .ico { font-size: 1.5em; color: var(--accent); }
.ll__chip span { display: grid; min-width: 0; }
.ll__chip small { color: var(--l-muted); font-size: .8em; text-transform: uppercase; letter-spacing: .1em; }
.ll__chip code { font-family: var(--mono); font-size: .9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ll__timer {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: .6em;
    padding: .5em 1em;
    border-radius: 99px;
    background: color-mix(in srgb, var(--accent) 8%, #fff);
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    color: var(--accent);
    font-weight: 600;
    font-size: .9em;
    transform-origin: 0 50%;
}
.ll__timer .ico { font-size: 1.2em; }

/* Docsy mock: client widget sends documents into the office panel */
.swap { display: grid; justify-items: start; }
.swap > * { grid-area: 1 / 1; }
.st { padding: .35em .75em; border-radius: 99px; font-size: .8em; font-weight: 600; white-space: nowrap; }

.dc { padding-bottom: 8cqw; }
.dc__admin { margin-right: 12cqw; font-size: clamp(10px, 1.9cqw, 13px); }
.browser--light .dc__body { display: grid; gap: .9em; background: #f6f8fb; }
.dc__nav { display: flex; justify-content: space-between; align-items: center; }
.dc__logo { font-weight: 700; font-size: 1.35em; letter-spacing: -.03em; }
.dc__user { display: inline-flex; align-items: center; gap: .5em; color: var(--l-muted); }
.dc__user .ico { width: 1.7em; height: 1.7em; padding: .3em; border-radius: 6px; background: #e6ebf2; color: var(--accent); }
.dc__case { display: flex; justify-content: space-between; align-items: flex-start; gap: 1em; }
.dc__case > div { display: grid; gap: .25em; min-width: 0; }
.dc__no { display: inline-flex; align-items: center; gap: .4em; color: var(--l-muted); font-size: .78em; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.dc__title { font-size: 1.3em; font-weight: 600; line-height: 1.2; }
.dc__meta { overflow: hidden; color: var(--l-muted); font-size: .85em; text-overflow: ellipsis; white-space: nowrap; }
.dc__meta .swap { display: inline-grid; font-weight: 500; }
.dc__meta em { font-style: normal; }
.dc__meta u { color: var(--accent); text-decoration: none; }
.dc__new { color: var(--accent); }
.dc__actions { display: flex; flex: none; gap: .5em; }
.dc__actions i { padding: .55em .9em; border-radius: 6px; background: var(--accent); color: #fff; font-size: .9em; font-style: normal; font-weight: 500; white-space: nowrap; }
.dc__actions .dc__close { background: #2fb344; }
.dc__msg {
    display: grid;
    gap: .35em;
    max-height: calc(var(--k) * 6em);
    margin-bottom: calc((var(--k) - 1) * .9em);
    padding: calc(var(--k) * .9em) 1em;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--l-line);
    opacity: var(--k);
}
.dc__msg b { font-weight: 500; }
.dc__msg span { font-size: .9em; }
.dc__doc { display: grid; gap: .5em; }
.dc__doc-title { font-weight: 600; }
.dc__doc-title em { color: #f76707; font-style: normal; }
.dc__file {
    display: grid;
    grid-template-columns: 3.4em minmax(0, 1fr) auto;
    align-items: center;
    gap: 1em;
    margin-left: 1em;
    padding: .8em 1em;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--l-line);
}
.dc__thumb { display: grid; place-items: center; height: 3.4em; border-radius: 6px; background: #eef3f6; color: var(--accent); }
.dc__thumb .ico { font-size: 1.7em; }
.dc__fname { display: grid; gap: .2em; min-width: 0; }
.dc__fname em { overflow: hidden; font-style: normal; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.dc__fname .dc__empty { color: var(--l-muted); font-weight: 400; }
.dc__fname small { color: var(--l-muted); font-size: .85em; }
.dc__dl { padding: .55em .9em; border-radius: 6px; background: var(--accent); color: #fff; font-size: .9em; font-weight: 500; }
.dc__log { display: flex; align-items: center; gap: .5em; color: var(--l-muted); font-size: .85em; }
.dc__log .ico { color: #2fb344; font-size: 1.25em; }

.dc__widget-out {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: 40cqw;
    pointer-events: none;
    opacity: calc(1 - var(--k));
    transform: translate3d(calc(var(--k) * 12cqw), calc(var(--k) * 6cqw), 0);
}
.dc__widget {
    display: grid;
    gap: .8em;
    padding: 1.2em;
    border-radius: 14px;
    background: #f6f8fb;
    border: 1px solid var(--l-line);
    color: var(--l-ink);
    font-size: clamp(10px, 1.9cqw, 12.5px);
    box-shadow: 0 40px 70px -24px rgba(24, 36, 51, .45);
    opacity: var(--k);
    transform: translate3d(calc((1 - var(--k)) * 70px), calc((1 - var(--k)) * 60px), 0) rotate(calc((1 - var(--k)) * 8deg));
}
.dc__firm { display: inline-flex; align-items: center; gap: .5em; justify-self: start; padding: .5em .7em; border-radius: 8px; background: #0f2a4a; border: 1px solid #d9b45a; color: #d9b45a; }
.dc__firm .ico { font-size: 1.6em; }
.dc__firm b { font-family: Georgia, serif; font-size: .75em; font-weight: 400; line-height: 1.05; letter-spacing: .08em; text-transform: uppercase; }
.dc__panes { display: grid; }
.dc__pane { display: grid; grid-area: 1 / 1; align-content: start; gap: .55em; }
.dc__pane strong { font-size: 1.2em; font-weight: 600; }
.dc__pane > small { color: var(--l-muted); }
.dc__pane--a { opacity: calc(1 - var(--k)); transform: translate3d(calc(var(--k) * -30px), 0, 0); }
.dc__pane--b { opacity: var(--k); transform: translate3d(calc((1 - var(--k)) * 30px), 0, 0); }
.dc__opt { padding: .65em .9em; border-radius: 6px; background: #edf3fb; border: 1px solid var(--accent); font-weight: 500; }
.dc__opt--pick { background: color-mix(in srgb, var(--accent) calc(var(--k) * 100%), #edf3fb); color: color-mix(in srgb, #fff calc(var(--k) * 100%), var(--l-ink)); }
.dc__req { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .5em; padding: .55em 0; border-bottom: 1px solid var(--l-line); }
.dc__req b { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.dc__req i { padding: .35em .6em; border-radius: 6px; background: #fff; border: 1px solid var(--l-line); font-size: .9em; font-style: normal; }
.dc__req em { padding: .4em .7em; border-radius: 6px; background: var(--accent); color: #fff; font-size: .9em; font-style: normal; }
.dc__send {
    justify-self: end;
    padding: .55em 1.1em;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-weight: 500;
    transform: scale(calc(1 - .06 * sin(var(--t) * 180deg)));
    box-shadow: 0 0 0 calc(sin(var(--t) * 180deg) * .45em) color-mix(in srgb, var(--accent) 25%, transparent);
}
.dc__fly {
    position: absolute;
    right: 18cqw;
    bottom: 10cqw;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 5cqw;
    height: 6cqw;
    border-radius: 6px;
    background: #fff;
    border: 1px solid var(--l-line);
    color: var(--accent);
    font-size: 3.4cqw;
    box-shadow: 0 10px 24px -8px rgba(24, 36, 51, .45);
    opacity: min(1, var(--t) * 6, (1 - var(--t)) * 6);
    transform: translate3d(calc(var(--k) * var(--fx)), calc(var(--k) * var(--fy)), 0) rotate(calc(var(--k) * -24deg)) scale(calc(1 - .4 * var(--k)));
    --fx: -69cqw;
    --fy: -30cqw;
}
.dc__fly--2 { right: 14cqw; bottom: 8cqw; --fx: -73cqw; --fy: -17.5cqw; }

/* Tablecast mock: projector + AI camera over a table, with live feedback */
.pj { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 3cqw; align-items: center; }
.pj__stage {
    position: relative;
    container-type: inline-size;
    aspect-ratio: 1 / 1.05;
    border-radius: 20px;
    background:
        radial-gradient(70% 45% at 50% 80%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
        linear-gradient(180deg, #17122a, #0d0b18 60%, #0a0913);
    border: 1px solid rgba(255, 255, 255, .07);
    box-shadow: 0 50px 90px -40px #000;
    overflow: hidden;
}
.pj__ceiling { position: absolute; left: 0; right: 0; top: 0; height: 5cqw; background: #0a0812; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.pj__rig {
    position: absolute;
    left: 50%;
    top: 5cqw;
    display: flex;
    align-items: flex-start;
    gap: 2cqw;
    margin-left: -7.5cqw;
    transform: translate3d(0, calc((1 - var(--k)) * -30cqw), 0);
}
.pj__rig::before { content: ""; position: absolute; left: 6.9cqw; top: -1cqw; width: 1.2cqw; height: 2cqw; background: #2a2540; }
.pj__proj { position: relative; width: 15cqw; height: 6cqw; border-radius: 1.4cqw; background: linear-gradient(180deg, #3a3456, #242038); box-shadow: 0 1cqw 2cqw rgba(0, 0, 0, .5); }
.pj__proj i {
    position: absolute;
    left: 50%;
    bottom: -1cqw;
    width: 4.4cqw;
    height: 2.4cqw;
    margin-left: -2.2cqw;
    border-radius: 0 0 50% 50%;
    background: radial-gradient(circle at 50% 30%, #fff, var(--accent) 45%, #2b2050 75%);
}
.pj__cam { display: flex; gap: .8cqw; align-items: center; padding: 1cqw 1.2cqw; margin-top: .6cqw; border-radius: 1cqw; background: #1c1930; }
.pj__cam i { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: #0b0a14; box-shadow: inset 0 0 0 .35cqw #3b3560; }
.pj__cam i:last-child { background: #ff4d6d; box-shadow: 0 0 1cqw #ff4d6d; animation: pulse-rec 1.6s infinite; }
@keyframes pulse-rec {
    50% { opacity: .35; }
}
.pj__beam {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 55%, #fff) 0%, color-mix(in srgb, var(--accent) 12%, transparent) 70%, transparent);
    clip-path: polygon(calc(50% - 1.8cqw) 11.6cqw, calc(50% + 1.8cqw) 11.6cqw, 93% 94%, 7% 94%);
    mix-blend-mode: screen;
    opacity: calc(var(--k) * .5);
}
.pj__scan {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(180deg, transparent 0 2.6cqw, rgba(120, 255, 200, .16) 2.6cqw 2.8cqw);
    background-size: 100% 5.6cqw;
    clip-path: polygon(calc(50% + 11.7cqw) 9.4cqw, calc(50% + 13.7cqw) 9.4cqw, 88% 90%, 30% 90%);
    opacity: calc(min(1, var(--t) * 10) * .8);
    animation: scan 2.4s linear infinite;
}
@keyframes scan {
    to { background-position: 0 5.6cqw; }
}

.pj__guest { position: absolute; width: 13cqw; height: 16cqw; }
.pj__guest::before, .pj__guest::after { content: ""; position: absolute; left: 50%; background: #2b2545; }
.pj__guest::before { top: 0; width: 6.6cqw; height: 6.6cqw; margin-left: -3.3cqw; border-radius: 50%; box-shadow: inset 0 -1.2cqw 1.6cqw color-mix(in srgb, var(--accent) 45%, transparent); }
.pj__guest::after { top: 6.2cqw; width: 13cqw; height: 12cqw; margin-left: -6.5cqw; border-radius: 6cqw 6cqw 2cqw 2cqw; box-shadow: inset 0 -2cqw 3cqw color-mix(in srgb, var(--accent) 35%, transparent); }
.pj__guest--1 { left: 17%; top: 40%; }
.pj__guest--2 { left: 43.5%; top: 37.5%; }
.pj__guest--3 { left: 70%; top: 40%; }
.pj__guest i {
    position: absolute;
    left: 50%;
    top: -5cqw;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 5cqw;
    height: 5cqw;
    margin-left: -2.5cqw;
    border-radius: 50%;
    background: #fff;
    color: #e8416b;
    font-size: 3cqw;
    box-shadow: 0 1cqw 2cqw rgba(0, 0, 0, .4);
    opacity: var(--k);
    transform: translate3d(0, calc((1 - var(--k)) * 3cqw), 0) scale(calc(.5 + .5 * var(--k)));
}
.pj__guest i .ico { fill: currentColor; stroke: none; }
.pj__guest--2 i { color: var(--accent); }
.pj__guest--2 i .ico { fill: none; stroke: currentColor; }

.pj__table { position: absolute; left: 6%; right: 6%; top: 50%; height: 44%; perspective: 90cqw; perspective-origin: 50% -40%; }
.pj__plane {
    position: absolute;
    inset: 0;
    border-radius: 3cqw;
    background: linear-gradient(180deg, #3b2a22, #2a1d18);
    box-shadow: 0 3cqw 0 #1a120f, 0 6cqw 6cqw -2cqw rgba(0, 0, 0, .7);
    transform: rotateX(48deg);
    transform-origin: 50% 100%;
}
.pj__show { position: absolute; inset: 3%; width: 94%; height: 94%; overflow: visible; opacity: var(--k); }
.pj__canvas { inset: 4% 2.5%; width: 95%; height: 92%; overflow: hidden; border-radius: 2cqw; }
.pj__show text { font-family: var(--sans); font-weight: 600; }
.pj__bg { opacity: calc(var(--k) * .9); }
.pj__blob { mix-blend-mode: screen; }
.pj__blob--a { animation: pj-drift-a 9s ease-in-out infinite; }
.pj__blob--b { animation: pj-drift-b 12s ease-in-out infinite; }
.pj__blob--c { animation: pj-drift-c 7s ease-in-out infinite; }
@keyframes pj-drift-a {
    50% { transform: translate(70px, 30px); }
}
@keyframes pj-drift-b {
    50% { transform: translate(-80px, -26px); }
}
@keyframes pj-drift-c {
    50% { transform: translate(-50px, 60px); }
}
.pj__wave { fill: none; stroke: #fff; stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: pj-wave 4.5s ease-out infinite; }
.pj__wave--2 { animation-delay: -1.5s; }
.pj__wave--3 { animation-delay: -3s; }
@keyframes pj-wave {
    from { opacity: .55; transform: scale(.05); }
    to { opacity: 0; transform: scale(1); }
}
.pj__sweep { transform: rotate(18deg); animation: pj-sweep 5s linear infinite; }
@keyframes pj-sweep {
    to { transform: translateX(300px) rotate(18deg); }
}
.pj__spark { fill: #fff; opacity: 0; transform-box: fill-box; transform-origin: center; animation: pj-twinkle 3.2s ease-in-out var(--d) infinite; }
@keyframes pj-twinkle {
    0%, 100% { opacity: 0; transform: translateY(0) scale(.4); }
    50% { opacity: .9; transform: translateY(-4px) scale(1); }
}
.pj__marks { opacity: min(1, var(--t) * 5, (1 - var(--t)) * 5); }
.pj__marks rect { fill: #fff; stroke: #000; stroke-width: 3; }
.pj__marks path { fill: none; stroke: rgba(255, 255, 255, .6); stroke-width: .6; stroke-dasharray: 3 3; }
.pj__town { opacity: var(--k); }
.pj__road { fill: none; stroke: color-mix(in srgb, var(--accent) 45%, #2a2340); stroke-width: 7; }
.pj__house { fill: color-mix(in srgb, var(--accent) 70%, #fff); }
.pj__tree { fill: #3ee08f; }
.pj__car, .pj__chef { offset-rotate: 0deg; }
.pj__car { fill: #ffd23f; offset-path: path("M35 30H165A32 32 0 0 1 165 94H35A32 32 0 0 1 35 30Z"); offset-distance: calc(var(--t) * 250%); }
.pj__chef { fill: #fff; offset-path: path("M52 39a23 23 0 1 1 0 46a23 23 0 1 1 0-46Z"); offset-distance: calc(var(--t) * -300%); }
.pj__plate { transform-box: fill-box; transform-origin: center; opacity: min(1, var(--t) * 3); transform: translate3d(0, calc((1 - var(--k)) * -30px), 0) scale(calc(1.3 - .3 * var(--k))); }
.pj__ring { fill: none; stroke: color-mix(in srgb, var(--accent) 80%, #fff); stroke-width: 1.4; animation: ring 2s ease-in-out infinite; }
@keyframes ring {
    50% { stroke-opacity: .3; }
}
.pj__dish { fill: #f4f1ea; }
.pj__food { fill: #c9743f; }
.pj__box { opacity: min(1, var(--t) * 4); }
.pj__box rect { fill: none; stroke: #78ffc8; stroke-width: .9; stroke-dasharray: 3 2; }
.pj__box text { fill: #78ffc8; font-size: 5px; }
.pj__name { fill: #fff; font-size: 7px; text-anchor: middle; opacity: var(--k); }
.pj__ripple { fill: none; stroke: #fff; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; opacity: calc(min(1, var(--t) * 6) * (1 - var(--t))); transform: scale(calc(.1 + var(--k) * 1.2)); }
.pj__menu { opacity: var(--k); transform-box: fill-box; transform-origin: 50% 100%; transform: scale(calc(.6 + .4 * var(--k))); }
.pj__menu rect { fill: rgba(255, 255, 255, .95); }
.pj__menu text { fill: #1a1330; font-size: 8px; }
.pj__menu .pj__menu-sub { fill: #7a55d6; font-size: 6px; }

.pj__hand-out { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: calc(1 - var(--k)); transform: translate3d(calc(var(--k) * 10cqw), calc(var(--k) * 16cqw), 0); }
.pj__hand {
    position: absolute;
    left: 70%;
    top: 55%;
    width: 16cqw;
    height: 16cqw;
    fill: #e9c3a7;
    stroke: #8a5f4a;
    stroke-width: 1.2;
    stroke-linejoin: round;
    opacity: min(1, var(--t) * 4);
    transform: translate3d(calc((1 - var(--k)) * 22cqw), calc((1 - var(--k)) * 34cqw), 0) rotate(-20deg);
}
.pj__chip {
    position: absolute;
    left: 4cqw;
    bottom: 4cqw;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 1.4cqw;
    padding: 1.6cqw 2.6cqw;
    border-radius: 99px;
    background: rgba(12, 10, 22, .85);
    border: 1px solid rgba(120, 255, 200, .4);
    color: #78ffc8;
    font-size: 3.2cqw;
    font-weight: 600;
    transform-origin: 0 100%;
}

.pj__feed {
    container-type: inline-size;
    display: grid;
    gap: 18px;
    padding: clamp(16px, 3.4cqw, 26px);
    border-radius: 20px;
    background: #120f22;
    border: 1px solid rgba(255, 255, 255, .07);
    box-shadow: 0 40px 80px -40px #000;
}
.pj__feed-head { display: flex; align-items: center; justify-content: space-between; }
.pj__feed-head strong { font-family: var(--display); font-weight: 600; font-size: 14cqw; line-height: 1; text-transform: uppercase; }
.pj__ai { padding: 1.4cqw 3.6cqw; border-radius: 99px; background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); font-size: 6.4cqw; font-weight: 600; }
.pj__log { display: grid; gap: 4cqw; list-style: none; margin: 0; padding: 0; }
.pj__log li { display: grid; grid-template-columns: auto 1fr; gap: 3.4cqw; align-items: start; }
.pj__log .ico { width: 12cqw; height: 12cqw; padding: 2.6cqw; border-radius: 3cqw; background: rgba(255, 255, 255, .06); color: var(--accent); }
.pj__log span { display: grid; line-height: 1.3; }
.pj__log b { font-size: 7cqw; font-weight: 600; }
.pj__log small { color: #8e89a6; font-size: 6cqw; }
.pj__meter { display: grid; grid-template-columns: 1fr auto; gap: 2.4cqw; align-items: baseline; color: #8e89a6; font-size: 6.4cqw; }
.pj__meter b { font-family: var(--display); font-size: 2.4em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.pj__meter i { grid-column: 1 / -1; height: 2.4cqw; border-radius: 99px; background: linear-gradient(90deg, var(--accent) calc(var(--k) * 92%), rgba(255, 255, 255, .08) 0); }

/* Tiksy mock */
.tk { display: grid; grid-template-columns: 1.08fr .92fr; gap: 3cqw; align-items: center; }
.tk__gate {
    position: relative;
    container-type: inline-size;
    aspect-ratio: 1 / 1.08;
    border-radius: 20px;
    background: linear-gradient(180deg, #19303b, #0f1d24 70%, #0b161c);
    border: 1px solid rgba(255, 255, 255, .07);
    box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .8);
    overflow: hidden;
}
.tk__sign {
    position: absolute;
    left: 12%;
    right: 36%;
    top: 7%;
    padding: 2cqw 0;
    border-radius: 6px;
    background: #0a1419;
    border: 1px solid rgba(255, 255, 255, .06);
    color: var(--accent);
    font-size: 4cqw;
    font-weight: 600;
    letter-spacing: .25em;
    text-align: center;
    text-transform: uppercase;
}
.tk__door {
    position: absolute;
    left: 12%;
    right: 36%;
    top: 20%;
    bottom: 0;
    overflow: hidden;
    border: 2.2cqw solid #2a3d47;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, .5);
}
.tk__spa {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background:
        radial-gradient(70% 45% at 50% 8%, rgba(255, 206, 140, .55), transparent 70%),
        linear-gradient(180deg, transparent 76%, #cbbba6 76%, #b3a28c),
        repeating-linear-gradient(90deg, #8c5b3c 0 5cqw, #6f462e 5cqw 5.4cqw);
}
.tk__spa::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 76%;
    bottom: 0;
    background: repeating-linear-gradient(90deg, transparent 0 7.6cqw, rgba(0, 0, 0, .12) 7.6cqw 7.9cqw);
}
.tk__bench { position: absolute; left: 0; right: 0; top: 54%; height: 3cqw; background: linear-gradient(#b07a50, #7d5236); box-shadow: 0 2.4cqw 0 -.8cqw rgba(0, 0, 0, .25); }
.tk__steam i {
    position: absolute;
    bottom: 12%;
    width: 16cqw;
    height: 16cqw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0) 70%);
    filter: blur(1.4cqw);
    opacity: 0;
    animation: steam 7s ease-out infinite;
}
.tk__steam i:nth-child(1) { left: -4%; animation-delay: 0s; }
.tk__steam i:nth-child(2) { left: 20%; animation-delay: -1.4s; }
.tk__steam i:nth-child(3) { left: 44%; animation-delay: -2.8s; }
.tk__steam i:nth-child(4) { left: 66%; animation-delay: -4.2s; }
.tk__steam i:nth-child(5) { left: 30%; animation-delay: -5.6s; animation-duration: 9s; }
@keyframes steam {
    0% { opacity: 0; transform: translateY(0) scale(.6); }
    25% { opacity: .85; }
    100% { opacity: 0; transform: translateY(-58cqw) scale(2); }
}

.tk__guest { position: absolute; left: 0; bottom: 20%; z-index: 1; width: 12cqw; height: 36cqw; animation: guest-walk 14s linear infinite; }
.tk__guest--b { bottom: 21.5%; --skin: #c68f6c; --towel: #e9f3f5; animation-delay: -4.7s; transform-origin: bottom; scale: .9; }
.tk__guest--c { bottom: 19.5%; --skin: #f1c7a5; --towel: #f7efe3; animation-delay: -9.3s; }
@keyframes guest-walk {
    from { transform: translateX(-16cqw); }
    to { transform: translateX(58cqw); }
}
.tk__walk { position: absolute; inset: 0; animation: guest-bob .55s ease-in-out infinite alternate; }
@keyframes guest-bob {
    to { transform: translateY(-.6cqw); }
}
.tk__walk i { position: absolute; display: block; background: var(--skin, #e0b393); }
.tk__head { left: 3cqw; top: 0; width: 6cqw; height: 6.6cqw; border-radius: 50%; }
.tk__head::before { content: ""; position: absolute; inset: 0 0 45% 0; border-radius: 3cqw 3cqw 1cqw 1cqw; background: #3b2a22; }
.tk__turban { left: 2.4cqw; top: -2cqw; z-index: 1; width: 7.2cqw; height: 5cqw; border-radius: 3.6cqw 3.6cqw 1.6cqw 1.6cqw; background: var(--towel) !important; box-shadow: inset 0 -1cqw 0 rgba(0, 0, 0, .06); }
.tk__torso { left: 1.2cqw; top: 6.2cqw; width: 9.6cqw; height: 9cqw; border-radius: 3.6cqw 3.6cqw 1cqw 1cqw; }
.tk__leg { left: 3.3cqw; top: 24cqw; width: 2.4cqw; height: 12cqw; border-radius: 1.2cqw; transform-origin: 50% 0; animation: guest-leg 1.1s ease-in-out infinite alternate; }
.tk__leg--2 { left: 6.3cqw; animation-delay: -1.1s; }
@keyframes guest-leg {
    from { transform: rotate(14deg); }
    to { transform: rotate(-14deg); }
}
.tk__towel {
    left: .4cqw;
    top: 11.5cqw;
    width: 11.2cqw;
    height: 14.5cqw;
    border-radius: 1.4cqw 1.4cqw 2.6cqw 2.6cqw;
    background: linear-gradient(100deg, transparent 62%, rgba(0, 0, 0, .07) 62% 64%, transparent 64%), var(--towel, #fbfaf6) !important;
    box-shadow: 0 1cqw 1.6cqw rgba(0, 0, 0, .18);
}
.tk__leaf {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    z-index: 2;
    background: linear-gradient(135deg, rgba(220, 240, 246, .55), rgba(160, 192, 204, .5));
    -webkit-backdrop-filter: blur(1.6cqw);
    backdrop-filter: blur(1.6cqw);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.tk__leaf::after {
    content: "";
    position: absolute;
    top: 46%;
    width: 1.2cqw;
    height: 9cqw;
    border-radius: 99px;
    background: #6d8793;
}
.tk__leaf--l { left: 0; transform: translateX(calc(var(--k) * -100%)); }
.tk__leaf--l::after { right: 5%; }
.tk__leaf--r { right: 0; transform: translateX(calc(var(--k) * 100%)); }
.tk__leaf--r::after { left: 5%; }
.tk__reader {
    position: absolute;
    right: 13%;
    top: 44%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2cqw;
    width: 12cqw;
    height: 22cqw;
    padding-top: 2cqw;
    border-radius: 2.4cqw;
    background: #0a1216;
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .7);
}
.tk__led {
    width: 2.2cqw;
    height: 2.2cqw;
    border-radius: 50%;
    color: color-mix(in srgb, #2bd67b calc(var(--k) * 100%), #ff4d4d);
    background: currentColor;
    box-shadow: 0 0 2.5cqw currentColor;
}
.tk__window { position: relative; width: 8cqw; height: 11cqw; border-radius: 1.2cqw; background: #1b262c; overflow: hidden; }
.tk__laser {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(50% + 38% * sin(var(--t) * 1080deg));
    height: 2px;
    background: #ff3b3b;
    box-shadow: 0 0 8px #ff3b3b;
    opacity: min(1, var(--t) * 20, (1 - var(--t)) * 20);
}
.tk__pass-out {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: calc(1 - var(--k));
    transform: translate3d(0, calc(var(--k) * 28cqw), 0);
}
.tk__pass {
    position: absolute;
    left: 6%;
    bottom: 6%;
    z-index: 2;
    display: grid;
    gap: 1.2cqw;
    width: 33cqw;
    padding: 3cqw;
    border-radius: 2.5cqw;
    background: #fff;
    color: #0f1a20;
    font-size: 3.2cqw;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .7);
    opacity: min(1, var(--t) * 4);
    transform: translate3d(calc(var(--k) * 34cqw), calc(var(--k) * -30cqw), 0) rotate(calc(-12deg + var(--k) * 12deg));
}
.tk__pass small { color: #6a7a83; font-size: .8em; }
.tk__pass b { font-family: var(--display); font-weight: 700; font-size: 1.7em; line-height: 1; text-transform: uppercase; }
.tk__barcode {
    height: 8cqw;
    background: repeating-linear-gradient(90deg, #0f1a20 0 2px, transparent 2px 4px, #0f1a20 4px 5px, transparent 5px 8px, #0f1a20 8px 11px, transparent 11px 12px);
}
.tk__toast {
    position: absolute;
    left: 50%;
    bottom: 5%;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 1.5cqw;
    margin-left: -32cqw;
    width: 64cqw;
    justify-content: center;
    padding: 2.4cqw 3cqw;
    border-radius: 99px;
    background: #2bd67b;
    color: #04160c;
    font-size: 3.6cqw;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 14px 30px -10px rgba(43, 214, 123, .6);
}
.tk__toast .ico { font-size: 1.3em; stroke-width: 2.5; }

.tk__dash {
    container-type: inline-size;
    display: grid;
    gap: 22px;
    padding: clamp(18px, 3.6cqw, 28px);
    border-radius: 20px;
    background: #0d1b22;
    border: 1px solid rgba(255, 255, 255, .07);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.tk__dash-head { display: flex; align-items: center; justify-content: space-between; }
.tk__dash-head strong { font-family: var(--display); font-weight: 600; font-size: 11cqw; line-height: 1; text-transform: uppercase; }
.tk__live { display: inline-flex; align-items: center; gap: 2cqw; color: #2bd67b; font-size: 5.6cqw; font-weight: 600; }
.tk__live::before { content: ""; width: 2.6cqw; height: 2.6cqw; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(43, 214, 123, .6); }
    100% { box-shadow: 0 0 0 3cqw rgba(43, 214, 123, 0); }
}
.tk__cap { display: grid; gap: 1.5cqw; }
.tk__cap-num { font-family: var(--display); font-size: 10cqw; line-height: 1; color: #7f9aa6; }
.tk__cap-num b { margin-right: 1.5cqw; font-size: 2.2em; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.tk__cap-label { color: #7f9aa6; font-size: 5.6cqw; }
.tk__bar { height: 2.6cqw; margin-top: 2cqw; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.tk__bar i {
    display: block;
    height: 100%;
    width: calc(var(--k) * 70%);
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), #2bd67b);
}
.tk__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4cqw; }
.tk__stats span { display: grid; padding: 4.5cqw; border-radius: 12px; background: rgba(255, 255, 255, .04); color: #7f9aa6; font-size: 5.2cqw; }
.tk__stats b { font-family: var(--display); font-weight: 700; font-size: 2.6em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.tk__slots { display: grid; gap: 3cqw; list-style: none; padding: 0; margin: 0; font-size: 5.2cqw; }
.tk__slots li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 3cqw; color: #b8c7ce; }
.tk__slots i { height: 1.8cqw; border-radius: 99px; background: linear-gradient(90deg, var(--accent) var(--w), rgba(255, 255, 255, .08) var(--w)); }
.tk__slots em { font-style: normal; color: #7f9aa6; font-variant-numeric: tabular-nums; }

/* LED display mock */
.led { display: grid; }
.led__frame {
    position: relative;
    padding: 1.6cqw;
    border-radius: 14px;
    background: #19191b;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 50px 90px -40px #000;
}
.led__mods { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); gap: 2px; aspect-ratio: 2.2 / 1; }
.led__mod {
    border-radius: 3px;
    background: #080706;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
    opacity: min(1, var(--t) * 2.5);
    transform: translate3d(calc((1 - var(--k)) * var(--x)), calc((1 - var(--k)) * var(--y)), 0) rotate(calc((1 - var(--k)) * var(--r)));
    will-change: transform, opacity;
}
.led__power {
    position: absolute;
    inset: 1.6cqw;
    background: radial-gradient(circle, rgba(255, 255, 255, .07) .3cqw, transparent .38cqw) 0 0 / 1cqw 1cqw;
    clip-path: inset(0 0 calc((1 - var(--k)) * 100%) 0);
}
.led__glow {
    position: absolute;
    inset: 0;
    opacity: calc(.3 + .7 * var(--k));
    filter: drop-shadow(0 0 .8cqw color-mix(in srgb, var(--accent) 70%, transparent));
}
.led__screen {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    overflow: hidden;
    font-family: var(--display);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    -webkit-mask: radial-gradient(circle, #000 .32cqw, transparent .4cqw) 0 0 / 1cqw 1cqw;
    mask: radial-gradient(circle, #000 .32cqw, transparent .4cqw) 0 0 / 1cqw 1cqw;
}
.led__slide { grid-area: 1 / 1; white-space: nowrap; }
.led__slide--a { font-size: 17cqw; letter-spacing: .06em; color: var(--accent); opacity: calc(1 - var(--k)); }
.led__slide--b { justify-self: start; font-size: 13cqw; opacity: min(1, var(--t) * 12); }
.led__slide--b span {
    display: inline-block;
    background: linear-gradient(90deg, #ff4f8b, var(--accent) 50%, #ffe14d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transform: translate3d(calc(96cqw - var(--t) * 260cqw), 0, 0);
}
.led__tag {
    position: absolute;
    right: 4cqw;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: .35em .8em;
    border-radius: 99px;
    background: #19191b;
    border: 1px solid rgba(255, 255, 255, .1);
    color: #2bd67b;
    font-size: clamp(10px, 1.8cqw, 12px);
    font-weight: 600;
    transform: translateY(50%);
}
.led__tag::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.led__sig {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: 0 0 0 calc(sin(var(--t) * 180deg) * 1.4cqw) color-mix(in srgb, var(--accent) 35%, transparent);
}
.led__app { position: relative; z-index: 2; width: 62cqw; margin: -8cqw 0 0 auto; font-size: clamp(11px, 2.2cqw, 14px); }
.led__body { display: grid; gap: .7em; }
.led__head { display: flex; justify-content: space-between; align-items: center; gap: 1em; }
.led__head strong { font-family: var(--display); font-weight: 600; font-size: 1.6em; line-height: 1; text-transform: uppercase; }
.led__on { display: inline-flex; align-items: center; gap: .45em; color: #8f949b; font-size: .85em; white-space: nowrap; }
.led__on::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: #2bd67b; box-shadow: 0 0 6px #2bd67b; }
.led__row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .8em;
    padding: .6em .8em;
    border-radius: 10px;
    background: #1c1d21;
    border: 1px solid rgba(255, 255, 255, .05);
}
.led__row--live { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 8%, #1c1d21); }
.led__thumb {
    width: 3.2em;
    height: 1.7em;
    border-radius: 4px;
    background: linear-gradient(var(--accent), var(--accent)) center / 60% 28% no-repeat, #080706;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.led__thumb--live { background: linear-gradient(90deg, #ff4f8b, var(--accent), #ffe14d) center / 76% 28% no-repeat, #080706; }
.led__name { display: grid; min-width: 0; font-weight: 600; line-height: 1.25; white-space: nowrap; }
.led__name small { color: #8f949b; font-size: .8em; font-weight: 400; }
.led__row .swap { justify-items: end; }
.st--air { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); }
.st--idle { background: rgba(255, 255, 255, .07); color: #9a9ea5; }
.led__ctrl { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8em; color: #8f949b; }
.led__ctrl .ico { font-size: 1.3em; }
.led__ctrl b { min-width: 2.8em; color: #fff; text-align: right; font-variant-numeric: tabular-nums; }
.led__bright { height: .5em; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.led__bright i { display: block; height: 100%; width: calc(20% + 60% * var(--k)); border-radius: inherit; background: linear-gradient(90deg, #7a4b10, var(--accent)); }
.led__push {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    padding: .7em;
    border-radius: 8px;
    background: var(--accent);
    color: #1a1004;
    font-weight: 600;
    transform: scale(calc(1 - .05 * sin(var(--t) * 180deg)));
    box-shadow: 0 0 0 calc(sin(var(--t) * 180deg) * .5em) color-mix(in srgb, var(--accent) 30%, transparent);
}

/* KartingManager mock */
.km__used { max-width: 40ch; margin-top: 22px; color: rgba(238, 240, 242, .5); font-size: 13px; }
.km__used b { color: #fff; font-weight: 600; }
.km { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 2.6cqw; align-items: start; padding-bottom: 4cqw; }
.km__board {
    display: grid;
    gap: .7em;
    padding: 1.4em;
    border-radius: 16px;
    background: linear-gradient(180deg, #16181d, #0f1014);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 50px 90px -40px #000;
    font-size: clamp(10px, 2cqw, 13px);
    font-variant-numeric: tabular-nums;
}
.km__head { display: flex; justify-content: space-between; align-items: center; gap: 1em; }
.km__head strong { font-family: var(--display); font-weight: 700; font-size: 1.9em; line-height: 1; text-transform: uppercase; }
.km__flag { display: inline-flex; align-items: center; gap: .45em; padding: .3em .7em; border-radius: 99px; background: rgba(43, 214, 123, .14); color: #2bd67b; font-weight: 600; white-space: nowrap; }
.km__cols, .km__row { display: grid; grid-template-columns: 2.4em minmax(0, 1fr) 4.6em 4.6em; gap: .6em; align-items: center; }
.km__cols { grid-template-columns: 2em 2.4em minmax(0, 1fr) 4.6em 4.6em; padding: 0 .7em; color: #6f7480; letter-spacing: .1em; text-transform: uppercase; }
.km__cols span { font-size: .8em; }
.km__cols span:last-child { text-align: right; }
.km__table { display: grid; grid-template-columns: 2em minmax(0, 1fr); gap: .6em; padding-left: .7em; }
.km__pos, .km__rows { display: grid; gap: .35em; list-style: none; margin: 0; padding: 0; }
.km__pos li { display: grid; place-items: center start; height: 2em; font-family: var(--display); font-weight: 700; font-size: 1.2em; line-height: 1; color: #9aa0aa; }
.km__pos li:first-child { color: var(--accent); }
.km__rows { position: relative; }
.km__row { height: 2.4em; padding: 0 .7em 0 0; border-radius: 8px; background: rgba(255, 255, 255, .035); color: #c9ccd2; }
.km__row--down { transform: translate3d(0, calc(var(--k) * 2.75em), 0); }
.km__row--up { position: relative; z-index: 1; transform: translate3d(0, calc(var(--k) * -2.75em), 0); background: color-mix(in srgb, var(--accent) calc(var(--k) * 14% + 4%), #16181d); }
.km__kart { display: grid; place-items: center; height: 100%; border-radius: 8px 0 0 8px; background: rgba(255, 255, 255, .08); color: #fff; font-weight: 700; }
.km__kart--hot { background: var(--accent); color: #140800; }
.km__name { overflow: hidden; color: #fff; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.km__best { color: color-mix(in srgb, #b57bff calc(var(--k) * 100%), #c9ccd2); font-weight: calc(400 + var(--k) * 300); }
.km__gap { display: grid; justify-items: end; }
.km__gap > * { grid-area: 1 / 1; font-weight: 500; }
.km__sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4em; margin-top: .2em; }
.km__sectors i { height: .35em; border-radius: 99px; background: linear-gradient(90deg, #b57bff calc(var(--k) * 100%), rgba(255, 255, 255, .08) 0); }
.km__sectors i:nth-child(2) { background: linear-gradient(90deg, #2bd67b calc(var(--k) * 100%), rgba(255, 255, 255, .08) 0); }
.km__sectors i:nth-child(3) { background: linear-gradient(90deg, #ffd23f calc(var(--k) * 100%), rgba(255, 255, 255, .08) 0); }

.km__side { display: grid; gap: 2.6cqw; }
.km__map, .km__book {
    display: grid;
    gap: .6em;
    padding: 1.1em;
    border-radius: 16px;
    background: #14161a;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 40px 80px -40px #000;
    font-size: clamp(10px, 1.9cqw, 12px);
}
.km__map svg { width: 100%; height: auto; overflow: visible; }
.km__map small { color: #7d828c; }
.km__track { fill: none; stroke: #2a2d34; stroke-width: 11; stroke-linejoin: round; }
.km__line { stroke: #fff; stroke-width: 3; stroke-dasharray: 2 2; }
.km__ov { --ov: var(--k); }
.km__car {
    offset-path: path("M40 15H160A25 25 0 0 1 160 65H110A12 12 0 0 0 110 89H160A8 8 0 0 1 160 105H40A45 45 0 0 1 40 15Z");
    offset-rotate: 0deg;
    offset-distance: calc(var(--t) * 300% + var(--o));
}
.km__car circle { fill: #e9ebef; stroke: #14161a; stroke-width: 1.5; }
.km__car text { fill: #14161a; font-family: var(--sans); font-size: 8px; font-weight: 700; text-anchor: middle; }
.km__car--hot circle { fill: var(--accent); }
.km__car--hot { filter: drop-shadow(0 0 3px var(--accent)); }
.km__book small { color: #7d828c; text-transform: uppercase; letter-spacing: .12em; font-size: .85em; }
.km__book strong { font-family: var(--display); font-weight: 600; font-size: 1.7em; line-height: 1; text-transform: uppercase; }
.km__book span { color: #a7abb3; }
.km__paid { display: inline-flex; align-items: center; gap: .4em; justify-self: start; padding: .3em .7em; border-radius: 99px; background: rgba(43, 214, 123, .14); color: #2bd67b !important; font-weight: 600; }
.km__social {
    position: absolute;
    left: 6cqw;
    bottom: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: .8em;
    padding: .9em 1.1em;
    border-radius: 14px;
    background: #fff;
    color: #15171b;
    font-size: clamp(11px, 2cqw, 14px);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
    transform-origin: 20% 100%;
}
.km__social-ico { display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 10px; background: var(--accent); color: #fff; font-size: 1.1em; }
.km__social-txt { display: grid; line-height: 1.3; }
.km__social-txt small { color: #6b7079; }
.km__likes { display: inline-flex; align-items: center; gap: .35em; margin-left: .6em; color: #e8416b; font-weight: 700; font-variant-numeric: tabular-nums; }
.km__likes .ico { fill: currentColor; }

/* Contact */
.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 3.5vh, 36px);
    padding: 60px var(--pad) 0;
    text-align: center;
}
.contact__title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(48px, 8vw, 128px);
    line-height: .9;
    text-transform: uppercase;
}
.word { display: inline-block; white-space: nowrap; }
.ch {
    display: inline-block;
    opacity: var(--k);
    transform: translate3d(calc((1 - var(--k)) * var(--dx)), calc((1 - var(--k)) * var(--dy)), 0) rotate(calc((1 - var(--k)) * var(--dr)));
}
.contact__stage { perspective: 1600px; }
.contact__rise { transform-style: preserve-3d; }
.contact__flip {
    --cw: min(250px, 32vh, 70vw);
    transform-style: preserve-3d;
    transform: rotateY(180deg);
}
.js:not(.reduced) body:not(.dock-home) .contact__flip { visibility: hidden; }
.card-contact {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .18em;
}
.card-contact__hat { width: 2.2em; height: 1.2em; margin-bottom: .3em; fill: var(--red); transform-origin: 50% 90%; }
.card-contact__l1 { font-size: 1.15em; }
.card-contact__mail { font-size: .62em; letter-spacing: .03em; border-bottom: 1px solid color-mix(in srgb, var(--red) 40%, transparent); }
.card-contact__mail:hover { color: #d99a9d; }
.card-contact__l3 { margin-top: .4em; font-size: .5em; opacity: .6; }
.contact__foot { display: grid; justify-items: center; gap: 18px; }
.contact__foot p { color: var(--muted); font-size: 17px; }

.is-end .card-contact__hat { animation: hat-idle 4s .3s ease-in-out infinite; }
.is-end .contact__flip .card-face::after { transform: translateX(100%); }
@keyframes hat-idle {
    0%, 32%, 100% { transform: none; }
    9% { transform: translateY(-.35em) rotate(-14deg); }
    18% { transform: translateY(-.08em) rotate(9deg); }
    25% { transform: translateY(-.02em) rotate(-3deg); }
}

/* Dock card: the hero card falls into the bottom-right corner and flies into the contact slot at the end.
   Position, size, tilt and flip are written by main.js; the card is 300px wide and scaled from there. */
.dock {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 90;
    width: 300px;
    height: 440px;
    visibility: hidden;
    pointer-events: none;
    outline: none;
    transform-origin: 50% 50%;
    will-change: transform;
    --shadow: 0;
    --lift: 0;
}
.dock::before, .dock::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 22px;
    background: #000;
    pointer-events: none;
}
.dock::before {
    inset: 6% 4%;
    filter: blur(calc(34px + 26px * var(--lift)));
    opacity: calc(var(--shadow) * (.55 - .1 * var(--lift)));
    transform: translate(calc(-9% - 5% * var(--lift)), calc(9% + 7% * var(--lift))) scale(calc(.98 + .04 * var(--lift)));
}
.dock::after {
    inset: 2% 3%;
    filter: blur(10px);
    opacity: calc(var(--shadow) * (.6 - .35 * var(--lift)));
    transform: translate(-2%, 2.5%);
}
.dock.is-visible { visibility: visible; }
.dock.is-docked { pointer-events: auto; cursor: pointer; }
.dock__card { --cw: 300px; position: absolute; inset: 0; transform-style: preserve-3d; }

/* Responsive */
@media (max-width: 1100px) {
    .caps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tile { padding: 20px; }
    .tile p { font-size: 14px; }
}

@media (max-width: 900px) {
    .nav__links a:not(:last-child) { display: none; }
    .project { align-items: flex-start; padding-top: 76px; }
    .project__inner { grid-template-columns: 1fr; gap: 24px; }
    .project__title { margin: 8px 0 10px; }
    .project__features { display: none; }
    .project__cta, .project__copy > div:last-child { margin-top: 18px; }
    .project__visual { width: min(100%, 560px); justify-self: center; }
    .dc { padding-bottom: 14cqw; }
    .dc__admin { margin-right: 0; }
    .dc__actions i:first-child, .dc__msg { display: none; }
    .dc__widget-out { width: 58cqw; }
    .tk { grid-template-columns: 1fr .85fr; }
    .pj { grid-template-columns: 1fr .8fr; }
    .tk__slots { display: none; }
    .led__app { width: 80cqw; margin-top: -5cqw; }
    .km__used { display: none; }
}

@media (max-width: 560px) and (max-height: 760px) {
    .tile p { display: none; }
}

@media (max-width: 700px), (max-height: 760px) {
    .tile .tags { display: none; }
    .tile { gap: 8px; }
    .tile h3 { font-size: 26px; }
}

@media (max-width: 560px) {
    .tile h3 { font-size: 22px; }
    .tile p { font-size: 13px; line-height: 1.4; }
    .caps__services { font-size: 16px; }
    .ll__cipher code { font-size: .7em; }
    .ll__out { grid-template-columns: 1fr; }
    .ll__grid { grid-template-columns: 1fr; }
    .ll__opts { display: none; }
    .dc__actions, .dc__log { display: none; }
    .km { grid-template-columns: 1fr; padding-bottom: 8cqw; }
    .pj { grid-template-columns: 1fr; }
    .work-intro { gap: 32px; padding-inline: 32px; }
    .work-intro__title { font-size: clamp(56px, 17vw, 88px); }
    .work-intro__list { flex-direction: column; gap: 0; width: 100%; font-size: 24px; text-align: left; }
    .work-intro__list li { border-top: 1px solid rgba(255, 255, 255, .12); }
    .work-intro__list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }
    .work-intro__list a { display: flex; align-items: baseline; padding: 13px 0; }
    .work-intro__list span { flex: none; width: 34px; margin: 0; vertical-align: baseline; }
    .work-intro__list a::after { content: "→"; position: static; height: auto; margin-left: auto; background: none; color: var(--red); transform: none; }
    .pj__feed { display: none; }
    .pj__stage { aspect-ratio: 1 / .92; }
    .km__social { left: 3cqw; }
    .km__side { grid-template-columns: 1fr 1fr; align-items: start; }
    .km__map small { display: none; }
}

/* No ScrollMagic: static final state, no pinning */
.reduced .scene { height: auto; min-height: 100vh; padding-block: 96px; }
.reduced .hero { padding-block: 0; }
.reduced .hero__claim, .reduced .scroll-cue { display: none; }

/* Placeholder pages for projects without a website yet */
.soon {
    --accent: #b98cff;
    --bg: #0b0915;
    display: grid;
    min-height: 100vh;
    min-height: 100svh;
    place-items: center;
    padding: var(--pad);
    color: #eef0f2;
    background:
        radial-gradient(900px 600px at 70% 60%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 65%),
        var(--bg);
}
.soon--tiksy { --accent: #2cc0ee; --bg: #06121a; }
.soon .eyebrow { color: var(--accent); }
.soon__main { width: min(760px, 100%); }
.soon__title { margin: 14px 0 20px; font-family: var(--display); font-weight: 700; font-size: clamp(64px, 12vw, 168px); line-height: .85; text-transform: uppercase; }
.soon__lead { max-width: 40ch; color: rgba(238, 240, 242, .75); font-size: clamp(17px, 1.6vw, 21px); }
.soon__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 34px; }
.soon__back { color: rgba(238, 240, 242, .6); font-weight: 500; }
.soon__back:hover { color: #fff; }
