/*
 * SoftCloud — showcase site.
 * Night stage, liquid glass. One art-directed dark theme: black that is nearly blue, type that is
 * nearly white, and light that comes from the logo's own teal and blue. Each product then brings
 * one colour of its own.
 */

/* ---------- Tokens ---------- */

:root {
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue",
        "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei",
        "Noto Sans CJK SC", sans-serif;
    --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
    --font-serif: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;

    --bg: #04070b;
    --bg-raise: #0a1017;
    --ink: #f1f5f7;
    --ink-soft: rgba(241, 245, 247, .66);
    --ink-faint: rgba(241, 245, 247, .42);
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .18);
    --teal: #2fe0c8;
    --cyan: #58cdf5;

    --ease: cubic-bezier(.2, .8, .2, 1);
    --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
    --gutter: clamp(20px, 4.4vw, 64px);
    --tone: var(--cyan);
    --tone-ink: #04121a;

    color-scheme: dark;
}

[data-tone="rhyme"] { --tone: #c8ff2e; --tone-ink: #10140a; }
[data-tone="words"] { --tone: #45e3c9; --tone-ink: #04140f; }
[data-tone="focus"] { --tone: #a3aaff; --tone-ink: #0a0b22; }
[data-tone="sbti"] { --tone: #ff9c78; --tone-ink: #1f0c05; }
[data-tone="tools"] { --tone: #6fcbff; --tone-ink: #04121c; }

/* ---------- Base ---------- */

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

html {
    background: var(--bg);
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 1rem/1.75 var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overflow-x: clip;
}

h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 650; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
::selection { background: var(--teal); color: #03110f; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 8px; }

.shell { width: min(1240px, 100% - var(--gutter) * 2); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 200; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); transform: translateY(-200%); }
.skip:focus { transform: none; }
/* Full-width punctuation carries blank space; hang it so centred lines look centred. */
.hang { margin-right: -.5em; }

/* Film grain: a little texture over everything, which also hides banding in the dark gradients. */
.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .055; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Buttons and labels ---------- */

.button {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    min-height: 54px;
    padding: 0 1.65em;
    border-radius: 999px;
    background: var(--ink);
    color: var(--bg);
    font-size: .9375rem;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .3s, border-color .3s;
}
.button .icon { width: 1.1em; height: 1.1em; transition: transform .4s var(--ease); }
.button:active { transform: scale(.97); transition-duration: .08s; }
.button--ghost { background: rgba(255, 255, 255, .04); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.button--tone { background: var(--tone); color: var(--tone-ink); }
@media (hover: hover) {
    .button:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(241, 245, 247, .45); }
    .button--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
    .button--tone:hover { box-shadow: 0 14px 44px -10px color-mix(in srgb, var(--tone) 70%, transparent); }
    .button:hover .icon { transform: translate(2px, -2px); }
    .button[href^="#"]:hover .icon { transform: translateY(3px); }
}

.label { display: flex; align-items: baseline; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: .875rem; letter-spacing: .14em; }
.label__num { color: var(--teal); font: 500 .8125rem var(--font-mono); letter-spacing: .04em; }
.label__en { margin-left: auto; color: var(--ink-faint); font: italic 400 1rem var(--font-serif); letter-spacing: 0; }

/* ---------- Navigation ---------- */

.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; height: 68px; padding-inline: var(--gutter); border-bottom: 1px solid transparent; transition: background-color .4s, border-color .4s, backdrop-filter .4s; }
.nav.is-stuck { background: rgba(4, 7, 11, .62); border-bottom-color: var(--line); -webkit-backdrop-filter: saturate(1.5) blur(18px); backdrop-filter: saturate(1.5) blur(18px); }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .04em; }
.nav__brand img { width: 34px; height: auto; }
.nav__links { position: absolute; left: 50%; display: flex; gap: 6px; translate: -50% 0; font-size: .9375rem; }
.nav__links a { padding: 8px 16px; border-radius: 999px; color: var(--ink-soft); transition: color .25s, background-color .25s; }
.nav__cta { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 9px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: .875rem; font-weight: 600; transition: box-shadow .25s, background-color .25s; }
.nav__cta .icon { width: 1em; height: 1em; }
@media (hover: hover) {
    .nav__links a:hover { color: var(--ink); background: rgba(255, 255, 255, .07); }
    .nav__cta:hover { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--ink-soft); }
}

/* ---------- Hero ---------- */

.hero { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100vh; height: 100svh; min-height: 600px; max-height: 1200px; overflow: hidden; overflow: clip; text-align: center; }
/* The page takes over from the scene through a fade, not an edge. */
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 22%; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .5s linear; }
.hero[data-scene="ready"] .hero__canvas { opacity: 1; }
/* A still of the same scene, for when WebGL is not there to draw it. */
.hero__still { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.hero__still img { width: 100%; height: 100%; object-fit: cover; }
.hero[data-scene="unavailable"] .hero__still { opacity: 1; }
/* pan-y: a vertical swipe that starts on the cloud still scrolls the page. */
.hero__touch { position: absolute; z-index: 2; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.hero__touch.is-dragging { cursor: grabbing; }
.hero:not([data-scene="ready"]) .hero__touch { pointer-events: none; }

.hero__copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: min(900px, 100% - var(--gutter) * 2); padding-bottom: clamp(56px, 8.5vh, 96px); pointer-events: none; }
.hero__copy a { pointer-events: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.eyebrow__sep { width: 18px; height: 1px; background: var(--line-strong); }
.hero__title { margin-top: 18px; font-size: clamp(2.5rem, min(5.2vw, 9vh), 4.75rem); font-weight: 650; line-height: 1.12; letter-spacing: -.01em; }
.hero__title .line { display: inline-block; white-space: nowrap; }
.line { display: block; overflow: hidden; padding: .1em .55em; margin: -.1em -.55em; }
.hero__lead { max-width: 36em; margin-top: 16px; color: var(--ink-soft); font-size: clamp(.9375rem, 1.2vw, 1.0625rem); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.hero__hint { position: absolute; z-index: 1; left: 50%; bottom: 18px; translate: -50% 0; color: var(--ink-faint); font-size: .75rem; letter-spacing: .12em; white-space: nowrap; }
.hint-touch { display: none; }
@media (hover: none), (pointer: coarse) { .hint-pointer { display: none; } .hint-touch { display: inline; } }

/* ---------- About ---------- */

.about { padding-block: clamp(96px, 15vw, 220px) clamp(72px, 10vw, 150px); }
.about__text { max-width: 19em; margin-top: clamp(36px, 5.5vw, 76px); font-size: clamp(1.75rem, 4.5vw, 4rem); font-weight: 650; line-height: 1.32; letter-spacing: -.01em; text-wrap: pretty; }
.about__text .char { color: rgba(241, 245, 247, calc(.16 + .84 * clamp(0, (var(--progress, 1) * var(--count) - var(--i)) / 6, 1))); }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(64px, 9vw, 120px); }
.figures > div { display: flex; flex-direction: column-reverse; gap: 6px; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.figures dt { color: var(--ink-faint); font-size: .875rem; letter-spacing: .06em; }
.figures dd { font-size: clamp(3rem, 8vw, 6.5rem); font-weight: 600; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.figures dd small { margin-left: .35em; color: var(--ink-soft); font-size: .2em; font-weight: 500; letter-spacing: .04em; }

/* ---------- Works ---------- */

/* Glows and tilted cards reach past their columns; clip them here so they cannot widen the page. */
.works { position: relative; padding-top: clamp(40px, 6vw, 88px); overflow-x: clip; }
.works__title { margin-top: clamp(32px, 4.5vw, 60px); font-size: clamp(1.9rem, 4.3vw, 3.75rem); line-height: 1.2; letter-spacing: -.01em; }
.works__title .line:last-child { color: var(--ink-faint); }

.work { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; padding-block: clamp(56px, 7.5vw, 112px); scroll-margin-top: 40px; }
.work__copy { grid-column: 1 / span 5; }
.work .scene { grid-column: 7 / -1; }
.work:nth-of-type(even) .work__copy { grid-column: 8 / -1; grid-row: 1; }
.work:nth-of-type(even) .scene { grid-column: 1 / span 6; grid-row: 1; }
.work__meta { display: flex; align-items: center; gap: 14px; color: var(--ink-soft); font-size: .8125rem; letter-spacing: .14em; }
.work__num { display: inline-grid; place-items: center; min-width: 40px; height: 26px; padding: 0 10px; border-radius: 999px; background: color-mix(in srgb, var(--tone) 16%, transparent); color: var(--tone); font: 600 .75rem var(--font-mono); letter-spacing: .02em; }
.work__name { margin-top: 22px; font-size: clamp(2.6rem, 5.4vw, 5rem); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; }
.work__pitch { margin-top: 18px; font-size: clamp(1.125rem, 1.7vw, 1.4375rem); font-weight: 600; line-height: 1.5; }
.work__text { max-width: 30em; margin-top: 14px; color: var(--ink-soft); line-height: 1.9; }
.work__points { display: grid; gap: 10px; margin-top: 26px; font-size: .9375rem; }
.work__points li { display: flex; align-items: center; gap: 12px; }
.work__points li::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 10px color-mix(in srgb, var(--tone) 80%, transparent); }
.work__go { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 36px; }
.work__host { color: var(--ink-faint); font: 500 .8125rem var(--font-mono); }

/*
 * Scenes: each product as a few pieces of its own interface, set at different depths on a tilted
 * plane. Everything inside is sized in em, so a scene scales as one piece with its font-size.
 */
.scene { position: relative; aspect-ratio: 1.16; font-size: clamp(8.5px, 1.04vw, 15.5px); perspective: 1500px; }
.scene__glow { position: absolute; inset: -6% -10% -10%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--tone) 34%, transparent), transparent); opacity: .55; filter: blur(24px); animation: breathe 9s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .78; transform: scale(1.06); } }
.scene__plane { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(calc(5deg + var(--tilt-y, 0) * -1deg)) rotateY(calc(-11deg + var(--tilt-x, 0) * 1deg)); transition: transform .7s var(--ease); }
.work:nth-of-type(even) .scene__plane { transform: rotateX(calc(5deg + var(--tilt-y, 0) * -1deg)) rotateY(calc(11deg + var(--tilt-x, 0) * 1deg)); }

.ui { position: absolute; padding: 1.7em 1.9em; border-radius: 1.5em; transform: translateZ(var(--z, 0)); box-shadow: 0 2.6em 5em -1.6em rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .05); line-height: 1.5; transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--wait, 0s); }
.ui--paper { background: linear-gradient(170deg, #fbfaf4, #eeebe0); color: #14160f; }
.ui--ink { background: linear-gradient(170deg, #12161b, #0a0d11); box-shadow: 0 2.6em 5em -1.6em rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .1); }
.ui--navy { background: linear-gradient(165deg, #183349, #0e2134); box-shadow: 0 2.6em 5em -1.6em rgba(0, 0, 0, .8), 0 0 0 1px rgba(150, 205, 255, .16); }
.ui--glass { background: linear-gradient(170deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .045)); box-shadow: 0 2.6em 5em -1.6em rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .22), 0 0 0 1px rgba(255, 255, 255, .12); }
.ui--chip { display: inline-flex; align-items: center; gap: .55em; padding: .75em 1.2em; border-radius: 999px; background: var(--tone); color: var(--tone-ink); font-size: 1.05em; font-weight: 700; white-space: nowrap; box-shadow: 0 1.4em 3em -.8em color-mix(in srgb, var(--tone) 60%, transparent); }
.ui--chip span { font-weight: 500; opacity: .7; }
.ui--chip .icon { width: 1.1em; height: 1.1em; stroke-width: 2.6; }
.ui__label { display: flex; justify-content: space-between; gap: 1em; margin-bottom: 1em; font-size: .85em; letter-spacing: .08em; opacity: .55; }
/* Until a work scrolls into view its pieces wait a little lower, then arrive one after another. */
.js .work:not(.is-in) .ui { opacity: 0; transform: translateZ(var(--z, 0)) translateY(4em); }
.caret { display: inline-block; width: .09em; height: 1.1em; margin-left: .12em; background: currentColor; vertical-align: -.16em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* 01 押韵共创 — cream paper, black ink, lime marker */
.rhyme-search { --z: 20px; left: 1%; top: 7%; width: 76%; padding: 1.9em 2.1em 2.2em; }
.rhyme-search__brand { display: flex; align-items: center; gap: .55em; font: 800 1.05em/1 Impact, "Haettenschweiler", "Arial Narrow Bold", "Helvetica Neue", sans-serif; letter-spacing: .06em; }
.rhyme-search__brand b { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: .5em; background: #c8ff2e; font: 800 .95em var(--font-sans); letter-spacing: 0; }
.rhyme-search__brand span { margin-left: .4em; font: 500 .8em var(--font-sans); letter-spacing: .08em; opacity: .55; }
.rhyme-search__title { margin-top: 1.5em; font-size: 2.05em; font-weight: 700; letter-spacing: -.01em; }
.rhyme-search__title mark { padding: 0 .12em; border-radius: .18em; background: #c8ff2e; color: inherit; }
.rhyme-search__field { display: flex; align-items: center; gap: .8em; height: 3.9em; margin-top: 1.1em; padding: 0 .55em 0 1.1em; border: .14em solid rgba(20, 22, 15, .16); border-radius: 1em; background: rgba(20, 22, 15, .04); }
.rhyme-search__field .icon { width: 1.4em; height: 1.4em; opacity: .5; }
.rhyme-search__field span { font-size: 1.6em; font-weight: 700; }
.rhyme-search__field .caret { margin-left: -.5em; font-size: 1.6em; }
.rhyme-search__field em { margin-left: auto; padding: .7em 1.15em; border-radius: .7em; background: #c8ff2e; font-style: normal; font-weight: 700; }
.rhyme-list { --z: 80px; --wait: .12s; right: 0; top: 49%; width: 61%; }
.rhyme-list li { display: flex; align-items: baseline; gap: .9em; padding: .62em 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.rhyme-list b { font-size: 1.55em; font-weight: 700; }
.rhyme-list span { color: var(--ink-faint); font: 500 1em var(--font-mono); }
.rhyme-list span em { color: var(--tone); font-style: normal; }
.rhyme-list i { margin-left: auto; padding: .2em .7em; border-radius: 999px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 55%, transparent); color: var(--tone); font-size: .78em; font-style: normal; }
.rhyme-chip { --z: 130px; --wait: .24s; left: 4%; bottom: 8%; }

/* 02 软云单词 — the navy practice screen and a keyboard */
.typer { --z: 20px; left: 3%; top: 5%; width: 82%; padding: 1.5em 2em 1.7em; text-align: center; }
.typer__bar { display: flex; align-items: center; gap: .6em; font-size: .85em; }
.typer__bar span { padding: .25em .8em; border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--ink-soft); }
.typer__bar i { width: .7em; height: .7em; margin-left: auto; border-radius: 50%; background: var(--tone); box-shadow: 0 0 .9em var(--tone); }
.typer__word { display: flex; justify-content: center; margin-top: .55em; font: 700 4.3em/1.25 var(--font-mono); letter-spacing: .05em; }
.typer__word span { position: relative; color: rgba(241, 245, 247, .3); transition: color .12s; }
.typer__word .is-done { color: var(--tone); text-shadow: 0 0 .5em color-mix(in srgb, var(--tone) 55%, transparent); }
.typer__word .is-next { color: var(--ink); }
.typer__word .is-next::after { content: ''; position: absolute; left: 6%; right: 6%; bottom: -.02em; height: .06em; border-radius: 1em; background: var(--tone); animation: blink 1.1s steps(1) infinite; }
.typer__phonetic { color: var(--ink-faint); font: 500 1.05em var(--font-mono); }
.typer__meaning { margin-top: .2em; font-size: 1.2em; }
.typer__stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1.3em; padding-top: 1.1em; border-top: 1px solid rgba(255, 255, 255, .1); }
.typer__stats dd { font: 600 1.55em var(--font-mono); font-variant-numeric: tabular-nums; }
.typer__stats dt { color: var(--ink-faint); font-size: .82em; letter-spacing: .08em; }
.keys { --z: 85px; --wait: .12s; right: 0; bottom: 10%; width: 71%; display: grid; gap: .45em; padding: 1.1em 1.2em; }
.keys p { display: flex; justify-content: center; gap: .45em; }
.keys b { display: grid; place-items: center; width: 2.55em; height: 2.55em; border-radius: .55em; background: rgba(255, 255, 255, .08); box-shadow: inset 0 -.14em 0 rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(255, 255, 255, .1); color: var(--ink-soft); font: 600 .95em var(--font-mono); transition: background-color .15s, color .15s, transform .1s; }
.keys b.is-next { background: var(--tone); color: var(--tone-ink); box-shadow: 0 0 1.4em color-mix(in srgb, var(--tone) 70%, transparent); }
.keys b.is-down { transform: translateY(.12em); background: rgba(255, 255, 255, .2); }
.words-chip { --z: 130px; --wait: .24s; left: 3%; bottom: 3%; }

/* 03 软云专注 — a mixer, a timer, sound spreading outward */
.ripples { position: absolute; right: 2%; top: 0; width: 46%; aspect-ratio: 1; transform: translateZ(-40px); }
.ripples i { position: absolute; inset: 0; border: 1px solid color-mix(in srgb, var(--tone) 60%, transparent); border-radius: 50%; opacity: 0; animation: ripple 6s linear infinite; }
.ripples i:nth-child(2) { animation-delay: -2s; }
.ripples i:nth-child(3) { animation-delay: -4s; }
@keyframes ripple { from { transform: scale(.25); opacity: .9; } to { transform: scale(1.15); opacity: 0; } }
.mixer { --z: 20px; left: 2%; top: 13%; width: 70%; }
.mixer__title { margin-bottom: .9em; font-size: 1.75em; font-weight: 700; }
.mixer li { display: grid; grid-template-columns: 2.5em 4.4em 1fr; align-items: center; gap: .9em; padding: .55em 0; }
.mixer .icon { width: 2.5em; height: 2.5em; padding: .62em; border-radius: .8em; background: rgba(255, 255, 255, .07); color: var(--tone); }
.mixer b { font-size: 1.1em; font-weight: 600; }
.mixer i { position: relative; height: .42em; border-radius: 1em; background: rgba(255, 255, 255, .12); }
.mixer i::before { content: ''; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); border-radius: 1em; background: var(--tone); transform-origin: left; animation: level 5s ease-in-out infinite alternate; }
.mixer i::after { content: ''; position: absolute; top: 50%; left: calc(var(--v) * 100%); width: 1.25em; height: 1.25em; border-radius: 50%; background: #fff; box-shadow: 0 .2em .7em rgba(0, 0, 0, .5); translate: -50% -50%; }
.mixer li:nth-child(2) i::before { animation-duration: 7s; }
.mixer li:nth-child(3) i::before { animation-duration: 4s; }
.mixer li:nth-child(4) i::before { animation-duration: 6s; }
@keyframes level { from { opacity: .7; } to { opacity: 1; } }
.timer { --z: 95px; --wait: .12s; right: 1%; bottom: 5%; display: grid; place-items: center; align-content: center; width: 37%; aspect-ratio: 1; padding: 0; border-radius: 50%; text-align: center; }
.timer svg { position: absolute; inset: 9%; width: 82%; height: 82%; rotate: -90deg; }
.timer circle { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 3.5; }
.timer circle + circle { stroke: var(--tone); stroke-linecap: round; stroke-dasharray: 100; animation: countdown 24s linear infinite; }
@keyframes countdown { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.timer b { font: 600 2.5em/1.1 var(--font-mono); font-variant-numeric: tabular-nums; }
.timer span { color: var(--ink-soft); font-size: .9em; letter-spacing: .1em; }
.focus-chip { --z: 135px; --wait: .24s; left: 9%; bottom: 5%; }
.focus-chip b { font-size: 1.25em; }

/* 04 SBTI — a result card on warm paper and a question beside it */
.result { --z: 20px; left: 2%; top: 4%; width: 63%; padding-bottom: 1.9em; }
.result__code { color: #e4532a; font-size: 5.4em; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.result__name { margin-top: .15em; font-size: 1.7em; font-weight: 700; }
.result__quote { margin-top: .3em; opacity: .62; }
.result__dims { display: flex; gap: 1.05em; margin-top: 1.5em; padding-top: 1.2em; border-top: 1px solid rgba(20, 22, 15, .12); }
.result__dims p { display: grid; grid-template-columns: repeat(3, .72em); gap: .3em; align-items: end; justify-content: center; height: 4.6em; }
.result__dims i { height: calc(var(--h) * 1.05em); border-radius: .22em; background: #e4532a; opacity: calc(.3 + var(--h) * .23); transform-origin: bottom; }
.result__dims span { grid-column: 1 / -1; align-self: end; font-size: .75em; text-align: center; opacity: .6; }
.question { --z: 90px; --wait: .12s; right: -1%; bottom: 2%; width: 52%; }
.question__text { font-size: 1.35em; font-weight: 650; }
.question li { margin-top: .6em; padding: .72em 1.05em; border-radius: .85em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: var(--ink-soft); }
.question li.is-picked { background: var(--tone); box-shadow: none; color: var(--tone-ink); font-weight: 650; }
.sbti-chip { --z: 135px; --wait: .24s; right: 2%; top: 9%; }
.sbti-chip b { font-size: 1.25em; }

/* 05 软云工具箱 — five tiles, each a door */
.work--tools { align-items: start; }
.tiles { grid-column: 7 / -1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.tiles li { grid-column: span 2; }
.tiles li:nth-child(-n + 2) { grid-column: span 3; }
.tile { --mx: 50%; --my: 0%; position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%; min-height: 172px; padding: 22px; border-radius: 22px; background: radial-gradient(260px circle at var(--mx) var(--my), color-mix(in srgb, var(--tone) 16%, transparent), transparent 70%), rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .4s, transform .5s var(--ease); }
.tile__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: auto; border-radius: 14px; background: color-mix(in srgb, var(--tone) 14%, transparent); color: var(--tone); }
.tile__icon .icon { width: 22px; height: 22px; }
.tile strong { margin-top: 22px; font-size: 1.125rem; font-weight: 650; }
.tile > span:last-of-type { color: var(--ink-soft); font-size: .875rem; line-height: 1.6; }
.tile__go { position: absolute; top: 22px; right: 22px; width: 18px; height: 18px; color: var(--ink-faint); transition: color .3s, transform .4s var(--ease); }
@media (hover: hover) {
    .tile:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 55%, transparent); transform: translateY(-4px); }
    .tile:hover .tile__go { color: var(--tone); transform: translate(3px, -3px); }
}

/* ---------- Values ---------- */

.values { padding-block: clamp(96px, 14vw, 200px) clamp(72px, 10vw, 140px); }
.values__title { margin-top: clamp(32px, 4.5vw, 60px); font-size: clamp(2.25rem, 6.4vw, 5.75rem); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; }
.values__title .line:last-child { background: linear-gradient(90deg, var(--teal), var(--cyan) 55%, #7aa2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.values__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(56px, 8vw, 110px); }
.values__list li { padding-top: 24px; border-top: 1px solid var(--line-strong); }
.values__num { color: var(--teal); font: italic 400 1.125rem var(--font-serif); }
.values__list h3 { margin-top: 14px; font-size: 1.375rem; }
.values__list p { max-width: 20em; margin-top: 10px; color: var(--ink-soft); font-size: .9375rem; line-height: 1.9; }

/* ---------- Finale and footer ---------- */

.finale { position: relative; padding-top: clamp(96px, 14vw, 200px); text-align: center; overflow: hidden; overflow: clip; }
.finale::before { content: ''; position: absolute; left: 50%; bottom: -30%; width: min(1200px, 130vw); aspect-ratio: 1.6; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(47, 224, 200, .2), rgba(59, 130, 246, .1) 55%, transparent); pointer-events: none; }
.finale__title .reveal-up { white-space: nowrap; }
.finale__title { font-size: clamp(2rem, 7.4vw, 6.5rem); font-weight: 700; line-height: 1.14; letter-spacing: -.02em; }
.finale__actions { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(28px, 4vw, 48px); }
/* The name once more, as an outline the light catches from above. */
.finale__mark { position: relative; margin: clamp(64px, 9vw, 130px) 0 -.04em; font-size: clamp(4.5rem, 21.5vw, 23rem); font-weight: 800; line-height: .8; letter-spacing: -.065em; background: linear-gradient(to bottom, rgba(88, 205, 245, .5), rgba(88, 205, 245, 0) 82%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .12); -webkit-user-select: none; user-select: none; }

.footer { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-block: 28px 36px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .875rem; }
.footer__brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; letter-spacing: .04em; }
.footer__brand span { margin-left: 8px; color: var(--ink-faint); font-weight: 400; letter-spacing: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.footer__links a { transition: color .25s; }
.footer__base { width: 100%; color: var(--ink-faint); font-size: .8125rem; }
@media (hover: hover) { .footer__links a:hover { color: var(--ink); } }

/* ---------- Motion ---------- */

/* Hero: lines rise once the scene has begun to fade up. */
.js .rise { opacity: 0; transform: translateY(1.1em); }
.js .hero:not([data-scene="loading"]) .rise, .js .is-late .rise { animation: rise 1.1s var(--ease) both; animation-delay: var(--d, 0s); }
.hero__title .line:nth-child(1) .rise { --d: .25s; }
.hero__title .line:nth-child(2) .rise { --d: .36s; }
.eyebrow.rise { --d: .12s; }
.hero__lead.rise { --d: .5s; }
.hero__actions.rise { --d: .62s; }
.hero__hint.rise { --d: 1.4s; }
@keyframes rise { from { opacity: 0; transform: translateY(1.1em); } to { opacity: 1; transform: none; } }

.js .reveal { transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--stagger, 0s); }
.js .reveal:not(.is-in) { opacity: 0; transform: translateY(26px); }
.js .reveal-up { display: inline-block; transition: transform 1.1s var(--ease); }
.js .line:nth-child(2) > .reveal-up { transition-delay: .1s; }
.js [data-lines]:not(.is-in) .reveal-up { transform: translateY(110%); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
    .js .rise, .js .reveal:not(.is-in), .js .work:not(.is-in) .ui { opacity: 1; transform: translateZ(var(--z, 0)); }
    .js .rise, .js .reveal:not(.is-in), .js [data-lines]:not(.is-in) .reveal-up { transform: none; }
}

/* ---------- Responsive ---------- */

/* Short screens: the small line above the headline gives its room to the cloud. */
@media (max-height: 700px) and (min-width: 721px) {
    .eyebrow { display: none; }
    .hero__title { margin-top: 0; }
}

@media (max-width: 1000px) {
    .work { display: block; padding-block: clamp(64px, 11vw, 110px); }
    .scene { max-width: 640px; margin: 44px auto 0; font-size: clamp(7.4px, 2.25vw, 14px); }
    .scene__glow { inset: -4% 0 -8%; }
    .scene__plane, .work:nth-of-type(even) .scene__plane { transform: rotateX(calc(4deg + var(--tilt-y, 0) * -1deg)) rotateY(calc(-6deg + var(--tilt-x, 0) * 1deg)); }
    .tiles { margin-top: 40px; }
    .values__list { grid-template-columns: 1fr; gap: 0; }
    .values__list li { padding-block: 24px; }
}

@media (max-width: 720px) {
    html { scroll-padding-top: 72px; }
    .nav { height: 58px; }
    .nav__links { display: none; }
    .hero { min-height: 560px; }
    .hero__title { font-size: clamp(2.5rem, 11.5vw, 3.75rem); }
    .hero__title .line { display: block; }
    .hero__copy { padding-bottom: 54px; }
    .hero__actions { width: 100%; }
    .hero__actions .button { flex: 1 1 auto; justify-content: center; }
    .hero__hint { bottom: 14px; }
    .label__en { font-size: .875rem; }
    .figures { gap: 14px; }
    .figures dt { font-size: .75rem; }
    .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
    .tiles li, .tiles li:nth-child(-n + 2) { grid-column: span 1; }
    .tiles li:first-child { grid-column: 1 / -1; }
    .tile { min-height: 150px; padding: 18px; }
    .tile strong { margin-top: 16px; font-size: 1rem; }
    .footer__links { margin-left: 0; }
}
