@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Noto Sans SC Black cut down to the page's Chinese characters (scripts/subset-founder-font.py).
   One weight only, and only for the heavy headings: body text keeps the system's Chinese font. */
@font-face {
    font-family: "Founder Sans";
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url("../fonts/founder-sans.woff2?v=20261105-core") format("woff2");
    unicode-range: U+3000-303F, U+4E00-9FFF, U+FF00-FFEF;
}

.founder-page {
    --bg: #111110;
    --ink: #f2f1ea;
    --muted: #a8a79f;
    --faint: #8d8c84;
    --dim: #6e6d66; /* large decorative type only: too faint for small text */
    --yellow: #ffd100;
    --card: #1c1c1a;
    --card-hover: #262624;
    --line: rgba(242, 241, 234, 0.14);
    --line-strong: rgba(242, 241, 234, 0.3);
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    /* Inter first so Latin in a heading stays Inter; Chinese falls through to the heavy subset. */
    --heavy: "Inter", "Founder Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
    --pad-x: clamp(20px, 4.2vw, 84px);
    --stage-w: min(100vw, calc(100vh * 16 / 9));
    --stage-h: calc(var(--stage-w) * 9 / 16);
    --u: calc(var(--stage-w) / 100);
    scroll-behavior: auto;
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
}

.founder-body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

:where(.founder-body) img,
:where(.founder-body) video {
    display: block;
    max-width: 100%;
}

:where(.founder-body) img {
    height: auto;
}

:where(.founder-body) button {
    font: inherit;
    color: inherit;
}

:where(.founder-body) :is(h1, h2, h3) {
    max-width: none;
    margin: 0;
    letter-spacing: normal;
}

.founder-body ::selection {
    background: var(--yellow);
    color: var(--bg);
}

/* ---------- Top bar ---------- */

.founder-bar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 64px;
    padding: 0 var(--pad-x);
    background: linear-gradient(180deg, rgba(17, 17, 16, 0.86), rgba(17, 17, 16, 0));
    pointer-events: none;
}

.founder-bar > * {
    pointer-events: auto;
}

.founder-bar .brand {
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
}

.founder-bar .brand-mark {
    width: 28px;
    height: 28px;
}

.founder-bar .brand-mark rect {
    fill: var(--yellow);
}

.founder-bar .brand-mark path {
    fill: var(--bg);
}

.founder-bar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.founder-bar .language-toggle {
    min-height: 36px;
    padding: 0 12px;
    border: 2px solid var(--ink);
    border-radius: 0;
    background: rgba(17, 17, 16, 0.6);
    color: var(--ink);
}

.founder-bar .language-menu,
.founder-bar .language-option {
    border-radius: 0;
}

.founder-bar .language-menu {
    background: var(--card);
    border: 1px solid var(--line-strong);
    backdrop-filter: none;
}

.present-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 16px 0 12px;
    border: 0;
    border-radius: 0;
    background: var(--yellow);
    color: var(--bg);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease;
}

.present-button svg {
    width: 14px;
    height: 14px;
}

.present-button:hover {
    background: var(--ink);
}

.present-button:focus-visible,
.founder-bar .language-toggle:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 2px;
}

html[data-mode="present"] .founder-bar {
    display: none;
}

@media (max-width: 899px) {
    .present-button {
        display: none;
    }

    /* Content scrolls under the bar in the static layout; a deeper scrim keeps the brand legible. */
    .founder-bar {
        background: linear-gradient(180deg, rgba(17, 17, 16, 0.96) 0%, rgba(17, 17, 16, 0.86) 62%, rgba(17, 17, 16, 0) 100%);
    }
}

/* ---------- Presentation chrome ---------- */

.present-ui,
.present-exit {
    display: none;
}

html[data-mode="present"] {
    overflow: hidden;
    scrollbar-width: none;
    cursor: none;
}

html[data-mode="present"]::-webkit-scrollbar {
    display: none;
}

html[data-mode="present"].show-cursor {
    cursor: auto;
}

html[data-mode="present"] .present-ui {
    display: block;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 60;
    pointer-events: none;
}

.present-progress {
    height: 4px;
    background: rgba(242, 241, 234, 0.1);
}

.present-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--yellow);
    transition: width 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

.present-count {
    position: absolute;
    right: 18px;
    bottom: 14px;
    font: 600 12px/1 var(--sans);
    letter-spacing: 0.08em;
    color: var(--faint);
}

.present-film {
    position: absolute;
    left: 18px;
    bottom: 14px;
    font: 600 12px/1 var(--sans);
    letter-spacing: 0.08em;
    color: var(--faint);
    opacity: 0;
    transition: opacity 0.3s ease;
}

html[data-mode="present"].show-cursor .present-film {
    opacity: 1;
}

.present-film.is-saved .present-film-state {
    color: var(--yellow);
}

html[data-mode="present"] .present-exit {
    display: block;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 61;
    height: 34px;
    padding: 0 14px;
    border: 2px solid var(--ink);
    border-radius: 0;
    background: rgba(17, 17, 16, 0.85);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

html[data-mode="present"].show-cursor .present-exit {
    opacity: 1;
}

html[data-mode="present"] .ring-controls {
    display: none;
}

html[data-mode="present"]:not(.show-cursor) .film-controls {
    opacity: 0;
    pointer-events: none;
}

html[data-capture] .present-ui,
html[data-capture] .present-exit {
    display: none !important;
}

html[data-capture] *,
html[data-capture] *::before,
html[data-capture] *::after {
    animation: none !important;
    transition: none !important;
}

/* ---------- Slide frame: the name bar and the rule every slide hangs from ----------
   The bar text only shows while presenting; browsing, the fixed top bar sits there. */

.slide-bar,
.slide-rule {
    display: none;
}

.slide-bar {
    justify-content: space-between;
    align-items: baseline;
    visibility: hidden;
}

.slide-bar > span {
    font: 600 1.15em/1 var(--sans);
    letter-spacing: -0.01em;
}

html[data-mode="present"] .slide-bar,
html[data-capture] .slide-bar {
    visibility: visible;
}

.slide-rule {
    background: var(--ink);
    transform-origin: 0 50%;
}

.title-alt {
    font-weight: 400;
    letter-spacing: -0.04em;
    color: var(--dim);
}

.title-alt:empty {
    display: none;
}

/* ---------- Opening (phones first; the 16:9 cover is further down) ---------- */

.opening {
    --pw: min(92vw, 440px);
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background: var(--bg);
    isolation: isolate;
}

.opening .frame {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    padding: 0 20px 40px;
}

.opening .slide-rule {
    display: block;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 64px;
    height: 3px;
}

.opening-block {
    position: absolute;
    left: 50%;
    right: 0;
    top: 67px;
    height: calc(var(--pw) * 1195 / 1200 + 38px);
    background: var(--yellow);
    transform-origin: 100% 0;
}

.opening-portrait {
    position: absolute;
    right: 0;
    top: 105px;
    width: var(--pw);
    aspect-ratio: 1200 / 1195;
    margin: 0;
}

.opening-portrait img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: 50% 100%;
}

.opening-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: calc(105px + var(--pw) * 1195 / 1200 + 18px);
}

.opening-name {
    font: 900 min(24vw, 112px)/0.9 var(--heavy);
    letter-spacing: -0.055em;
    white-space: nowrap;
}

html[lang="zh-CN"] .opening-name {
    font-size: min(25.6vw, 120px);
    line-height: 1;
    letter-spacing: -0.02em;
}

.opening-name .char {
    display: inline-block;
}

.opening-kicker {
    margin: 0.024em 0 0;
    font: 900 min(23.6vw, 110px)/0.9 var(--sans);
    letter-spacing: -0.055em;
    white-space: nowrap;
}

.opening-kicker:empty,
.opening-role-alt:empty {
    display: none;
}

.opening-role {
    margin: 0;
    font: 700 22px/1.3 var(--sans);
}

.opening-role::before {
    content: "";
    display: block;
    width: 140px;
    height: 6px;
    margin: 20px 0 14px;
    background: var(--yellow);
}

.opening-role-alt {
    margin: 2px 0 0;
    font: 500 15px/1.3 var(--sans);
    color: var(--muted);
}

.opening-index {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    margin: 30px 0 0;
    padding: 12px 0 0;
    list-style: none;
    border-top: 2px solid var(--ink);
}

.opening-index li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ix-no {
    font: 700 13px/1.2 var(--sans);
    color: var(--yellow);
}

.ix-verb {
    font: 900 17px/1.25 var(--heavy);
}

.ix-product {
    font: 500 13px/1.35 var(--sans);
    color: var(--muted);
}

/* ---------- Shared text pieces ---------- */

.eyebrow {
    margin: 0 0 0.9em;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--yellow);
}

/* A step reads as its number, a rule, then the verb: the columns of the loop overview. */
.step-chip {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 0 0 1.4em;
}

.step-no {
    align-self: flex-start;
    font: 900 5.2em/0.85 var(--sans);
    letter-spacing: -0.05em;
    color: var(--yellow);
}

.step-chip > span:last-child {
    margin-top: 0.3em;
    padding-top: 0.26em;
    border-top: max(2px, 0.03em) solid var(--ink);
    font: 900 3.4em/1 var(--heavy);
    letter-spacing: -0.02em;
}

/* Chinese headings set their brackets and commas proportionally, so 《南极》 starts flush left. */
html[lang="zh-CN"] :is(.step-product, .film-title, .ov-product, .ix-product) {
    font-feature-settings: "palt";
}

.step-product {
    margin: 0 0 0.4em;
    font: 800 2.7em/1.05 var(--heavy);
    letter-spacing: -0.035em;
}

.step-product a {
    text-decoration: none;
}

.step-product a:hover {
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-decoration-thickness: 0.06em;
    text-underline-offset: 0.12em;
}

.step-body {
    margin: 0;
    max-width: 26em;
    font-size: 1.3em;
    line-height: 1.65;
    color: var(--muted);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    margin-top: 1.6em;
    padding-bottom: 0.15em;
    border-bottom: max(2px, 0.12em) solid var(--yellow);
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    color: var(--ink);
    transition: color 0.2s ease;
}

.text-link:hover {
    color: var(--yellow);
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4em 2.6em;
    margin-top: 2.2em;
}

.stat-num {
    display: block;
    font: 900 5em/0.9 var(--sans);
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
}

.stat:nth-child(2) .stat-num {
    color: var(--yellow);
}

.stat-label {
    display: block;
    margin-top: 0.55em;
    font-size: 1.05em;
    color: var(--muted);
}

/* ---------- Window chrome ---------- */

.win {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 0.5em;
    background: #1a1a18;
    box-shadow: 0 2em 5em rgba(0, 0, 0, 0.55);
}

.win-chrome {
    display: flex;
    align-items: center;
    gap: 0.5em;
    height: 2.4em;
    padding: 0 1em;
    border-bottom: 1px solid var(--line);
    background: #222220;
}

.win-chrome i {
    width: 0.78em;
    height: 0.78em;
    border-radius: 50%;
    background: #ff5f57;
}

.win-chrome i:nth-child(2) {
    background: #febc2e;
}

.win-chrome i:nth-child(3) {
    background: #28c840;
}

.win-url,
.win-title {
    margin: 0 auto;
    padding-right: 3em;
    font: 500 0.88em/1 var(--mono);
    color: var(--faint);
    white-space: nowrap;
}

.win-url {
    padding: 0.4em 1.2em;
    border-radius: 0.3em;
    background: rgba(242, 241, 234, 0.06);
}

/* ---------- Loop (static layout first) ---------- */

.loop {
    position: relative;
    padding: 88px 20px 40px;
    background: var(--bg);
}

.stage {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    font-size: clamp(10.5px, 2.6vw, 12px);
}

.loop-overview {
    margin: 0 0 4.5em;
}

.ov-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 0.3em;
    font: 900 clamp(40px, 11vw, 72px)/1.05 var(--heavy);
    letter-spacing: -0.02em;
}

.ov-cols,
.loop-title {
    display: none;
}

.world {
    position: relative;
}

.flow,
.fly-tile,
.film-caption,
.tile-shimmer {
    display: none;
}

.scene {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2.4em;
    margin: 0 0 7em;
}

.scene-text {
    order: -1;
}

.learn-visual {
    position: relative;
    padding-bottom: 4em;
}

.win-course img {
    width: 100%;
}

.course-preview {
    position: absolute;
    right: -0.5em;
    bottom: 0;
    display: block;
    width: 46%;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 0.4em;
    box-shadow: 0 1.6em 4em rgba(0, 0, 0, 0.6);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.course-preview:hover,
.course-preview:focus-visible {
    border-color: var(--yellow);
    box-shadow: 0 0 0 max(2px, 0.16em) var(--yellow), 0 1.6em 4em rgba(0, 0, 0, 0.6);
    outline: none;
}

.course-preview img {
    width: 100%;
}

.course-preview::before,
.course-preview::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    pointer-events: none;
}

.course-preview::after {
    width: 3.2em;
    height: 3.2em;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 2em rgba(0, 0, 0, 0.4);
    transform: translate(-50%, -50%);
}

.course-preview::before {
    z-index: 1;
    width: 1.1em;
    height: 1.3em;
    background: var(--bg);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    transform: translate(-36%, -50%);
}

.studio-body {
    display: grid;
    grid-template-columns: 6.4em 1fr;
}

.studio-nav {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
    padding: 1.3em 0.7em;
    border-right: 1px solid var(--line);
}

.studio-nav span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45em;
    padding: 0.75em 0.2em;
    border-radius: 0.3em;
    color: var(--faint);
}

.studio-nav svg {
    width: 1.6em;
    height: 1.6em;
}

.studio-nav b {
    font-size: 0.82em;
    font-weight: 600;
}

.studio-nav .is-active {
    color: var(--yellow);
    background: rgba(255, 209, 0, 0.1);
}

.studio-main {
    display: flex;
    flex-direction: column;
    gap: 1.3em;
    min-width: 0;
    padding: 1.5em;
}

.prompt {
    display: flex;
    align-items: center;
    gap: 0.8em;
    min-height: 3.6em;
    padding: 0.5em 0.55em 0.5em 1.2em;
    border: 1px solid var(--line-strong);
    border-radius: 0.4em;
    background: rgba(242, 241, 234, 0.04);
}

.prompt-text {
    position: relative;
    flex: 1;
    min-width: 0;
    font-size: 1.05em;
    line-height: 1.45;
}

.prompt-typed {
    position: absolute;
    inset: 0;
}

@keyframes blink {
    50% { opacity: 0; }
}

.gen-btn {
    flex: none;
    padding: 0.7em 1.3em;
    border-radius: 0.3em;
    background: var(--yellow);
    color: var(--bg);
    font-size: 0.95em;
    font-weight: 800;
    box-shadow: 0 0 calc(var(--glow, 0) * 2.6em) calc(var(--glow, 0) * 0.4em) rgba(255, 209, 0, 0.6);
}

.tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1em;
}

.tile {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 0.3em;
    background: #222220;
}

.tile video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tile-shimmer {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(100deg, rgba(242, 241, 234, 0.025) 25%, rgba(242, 241, 234, 0.12) 45%, rgba(242, 241, 234, 0.025) 65%);
    background-size: 240% 100%;
    animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer {
    from { background-position: 120% 0; }
    to { background-position: -120% 0; }
}

.tile-label {
    position: absolute;
    left: 0.75em;
    bottom: 0.6em;
    z-index: 2;
    font-size: 0.85em;
    font-weight: 600;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.tile-chip {
    position: absolute;
    right: 0.6em;
    top: 0.6em;
    z-index: 2;
    padding: 0.35em 0.5em;
    border-radius: 0.2em;
    background: rgba(17, 17, 16, 0.72);
    color: var(--yellow);
    font: 600 0.68em/1 var(--mono);
}

/* 02 opens on the film's canvas in Sky Studio, then the window switches to the Shots view. Both
   share the window: stacked here, one over the other in the animated layout. */
.studio-stack {
    display: flex;
    flex-direction: column;
}

.canvas-view {
    position: relative;
    order: -1;
    overflow: hidden;
    aspect-ratio: 2800 / 1781;
    border-bottom: 1px solid var(--line);
    background: #0d0d0d;
}

/* The screenshot and its box scale together, about the box's centre, when 02 dives into the shot. */
.canvas-zoom {
    position: absolute;
    inset: 0;
    transform-origin: 47.68% 45.6%;
}

.canvas-shot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Box, lines and loupe sit in percent of the screenshot, measured on its icebreaker card: the same
   shot as the first tile of the Shots view (scripts/make-founder-canvas.py). */
.canvas-box {
    position: absolute;
    left: 44.45%;
    top: 42.49%;
    width: 6.46%;
    height: 6.19%;
    box-sizing: border-box;
    border: max(2px, 0.16em) solid var(--yellow);
}

.canvas-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.canvas-lines line {
    stroke: var(--yellow);
    stroke-width: 2px;
    vector-effect: non-scaling-stroke;
}

.canvas-loupe {
    position: absolute;
    left: 57.05%;
    top: 51.73%;
    width: 42.67%;
    aspect-ratio: 16 / 9;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
    border: max(2px, 0.16em) solid var(--yellow);
    background: #000;
    box-shadow: 0 1.6em 4em rgba(0, 0, 0, 0.6);
}

.canvas-loupe video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stacked, the caption introduces the window below it. */
.canvas-caption {
    display: flex;
    align-items: center;
    gap: 0.6em;
    margin: 0 0 -1.2em;
    font-size: 1.1em;
    line-height: 1.4;
    color: var(--muted);
}

.canvas-caption::before {
    content: "";
    flex: none;
    width: 0.6em;
    height: 0.6em;
    background: var(--yellow);
}

.scene-create .studio {
    order: 1;
}

.skywin-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1em;
    padding: 1.1em 1.1em 0.8em;
}

.monitor {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 0.3em;
    background: #000;
}

.monitor video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inspector {
    display: flex;
    flex-direction: column;
    gap: 0.45em;
    min-width: 0;
    padding: 0.3em 0.2em;
}

.insp-label {
    font: 600 0.68em/1 var(--mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--faint);
}

.insp-tc {
    margin-bottom: 0.55em;
    font: 600 2em/1.1 var(--mono);
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.insp-clip {
    margin-bottom: 0.7em;
    font: 600 1.05em/1.2 var(--mono);
    font-variant-numeric: tabular-nums;
    color: var(--yellow);
}

.insp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45em;
}

.insp-chips span {
    padding: 0.4em 0.6em;
    border: 1px solid var(--line);
    border-radius: 0.2em;
    background: rgba(242, 241, 234, 0.04);
    font: 500 0.72em/1 var(--mono);
    color: var(--muted);
}

/* ---------- 03: an AI assistant working SkyCut (static layout first) ---------- */

/* The markup is each chat's end state; founder.js types the request, streams each reply into
   .chat-stream over its transparent .chat-text (which keeps the layout and stays readable to
   screen readers), and flips each tool from data-state="run" to "done". */
.chat-tabs,
.chatcut {
    display: none;
}

.chat-stack {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.chat-label {
    display: flex;
    align-items: baseline;
    gap: 0.5em;
    margin: 1.4em 0 0;
    font: 800 1.5em/1.2 var(--heavy);
}

.chat-label:first-child {
    margin-top: 0;
}

.chat-no {
    font-family: var(--sans);
    color: var(--yellow);
}

.chat-win {
    font-size: 1.25em;
}

.chat-head {
    display: flex;
    align-items: center;
    gap: 0.45em;
    height: 2.6em;
    padding: 0 0.9em;
    border-bottom: 1px solid var(--line);
    background: #1f1f1d;
}

.chat-head i {
    width: 0.62em;
    height: 0.62em;
    border-radius: 50%;
    background: #3a3935;
}

.chat-app {
    margin-left: 0.45em;
    font-size: 0.9em;
    font-weight: 700;
}

.chat-pill {
    margin-left: auto;
    padding: 0.3em 0.7em;
    border: 1px solid rgba(255, 209, 0, 0.5);
    border-radius: 999px;
    font: 500 0.68em/1.2 var(--mono);
    color: var(--yellow);
    white-space: nowrap;
}

.chat-log {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7em;
    padding: 1.1em 1.1em 0.3em;
}

.chat-log > * {
    margin: 0;
}

.chat-user {
    align-self: flex-end;
    max-width: 84%;
    padding: 0.6em 0.95em;
    border-radius: 0.8em;
    background: #2d2d2a;
    line-height: 1.5;
}

.chat-ai {
    position: relative;
    line-height: 1.6;
    color: #d9d8d0;
    text-wrap: pretty;
}

.js-motion .chat-text {
    color: transparent;
}

.chat-stream {
    position: absolute;
    inset: 0;
}

.chat-think {
    display: none;
    align-items: center;
    gap: 0.55em;
    color: var(--faint);
}

.chat-mark {
    flex: none;
    width: 0.45em;
    height: 0.45em;
    background: var(--yellow);
}

.chat-think .chat-mark {
    animation: chat-pulse 1s ease-in-out infinite;
}

.chat-dots {
    display: inline-flex;
    gap: 0.2em;
    margin-left: 0.2em;
}

.chat-dots i {
    width: 0.24em;
    height: 0.24em;
    border-radius: 50%;
    background: currentColor;
    animation: chat-dot 1.1s ease-in-out infinite;
}

.chat-dots i:nth-child(2) {
    animation-delay: 0.15s;
}

.chat-dots i:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes chat-dot {
    0%, 80%, 100% { opacity: 0.25; }
    40% { opacity: 1; }
}

@keyframes chat-pulse {
    50% { opacity: 0.35; }
}

.chat-tool {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    align-self: stretch;
    max-width: 36em;
}

.chat-tool-line {
    display: flex;
    align-items: center;
    gap: 0.6em;
    margin: 0;
    font: 500 0.82em/1.35 var(--mono);
    color: var(--muted);
}

.chat-run {
    display: none;
    align-items: center;
    color: var(--faint);
}

.chat-tool[data-state="run"] .chat-run {
    display: inline-flex;
}

.chat-check {
    flex: none;
    width: 1.15em;
    height: 1.15em;
    color: var(--yellow);
}

.chat-tool[data-state="run"] .chat-check {
    display: none;
}

.chat-pct {
    margin-left: auto;
    color: var(--yellow);
    font-variant-numeric: tabular-nums;
}

.chat-bar {
    display: block;
    height: 0.3em;
    overflow: hidden;
    border-radius: 0.15em;
    background: #2d2d2a;
}

.chat-bar b {
    display: block;
    width: calc(var(--p, 1) * 100%);
    height: 100%;
    background: var(--yellow);
}

.chat-frames {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.3em;
    width: 100%;
    max-width: 31em;
}

.chat-frames figure {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 0.25em;
    background: #000;
}

.chat-frames img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-time {
    position: absolute;
    left: 0.4em;
    top: 0.4em;
    padding: 0.1em 0.4em;
    border-radius: 0.2em;
    background: rgba(0, 0, 0, 0.65);
    font: 600 0.55em/1.3 var(--mono);
}

/* The subtitles as they were: small Helvetica, the "before" the AI looked at. */
.chat-frames figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.5em;
    display: flex;
    flex-direction: column;
    align-items: center;
    font: 400 0.42em/1.25 Helvetica, Arial, sans-serif;
    color: #fff;
    text-align: center;
    text-shadow: 0 0 2px #000;
}

.chat-files {
    align-self: stretch;
    max-width: 36em;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0.5em;
    list-style: none;
}

.chat-files li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.2em 1em;
    padding: 0.65em 0.85em;
    font-size: 0.86em;
    color: var(--muted);
}

.chat-files li + li {
    border-top: 1px solid var(--line);
}

.chat-file {
    font-family: var(--mono);
    color: var(--yellow);
}

/* Both covers at one height: 16:9 next to 4:3. */
.chat-covers {
    display: flex;
    align-self: stretch;
    gap: 0.6em;
    max-width: 36em;
}

.chat-covers figure {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 0.4em;
}

.chat-covers figure:first-child {
    flex: 16 1 0;
}

.chat-covers figure:last-child {
    flex: 12 1 0;
}

.chat-covers figcaption {
    position: absolute;
    left: 0.5em;
    bottom: 0.5em;
    padding: 0.2em 0.45em;
    border-radius: 0.25em;
    background: rgba(17, 17, 16, 0.8);
    font: 600 0.68em/1.2 var(--mono);
}

.chat-table {
    align-self: stretch;
    max-width: 36em;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0.5em;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.88em;
}

.chat-table th,
.chat-table td {
    padding: 0.6em 0.85em;
    text-align: left;
}

.chat-table th {
    background: #232321;
    font-weight: 600;
    color: var(--muted);
}

.chat-table td {
    border-top: 1px solid var(--line);
}

.chat-table td:not(:first-child) {
    font-family: var(--mono);
}

.chat-input {
    display: flex;
    align-items: center;
    gap: 0.8em;
    height: 2.8em;
    margin: 0.7em 0.9em 0.9em;
    padding: 0 0.4em 0 0.9em;
    border: 1px solid var(--line-strong);
    border-radius: 0.7em;
}

.chat-draft {
    position: relative;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.chat-placeholder {
    color: var(--faint);
}

/* founder.js slides the draft left as it grows, so the newest characters stay in view. */
.chat-typed {
    position: absolute;
    left: 0;
    top: 0;
}

.chat-typed:not(:empty)::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1.1em;
    margin-left: 2px;
    vertical-align: -0.18em;
    background: var(--yellow);
    animation: blink 1s steps(1) infinite;
}

.chat-send {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 2em;
    height: 2em;
    border-radius: 0.5em;
    background: #3a3935;
    color: var(--bg);
    transition: background 0.2s ease;
}

.chat-send[data-ready="1"] {
    background: var(--yellow);
}

.chat-send svg {
    width: 1em;
    height: 1em;
}

/* ---------- Timeline (loop and SkyCut section): the real edit, in yellows and whites ---------- */

.tl {
    display: grid;
    grid-template-columns: 3.2em 1fr;
    padding: 0.8em 1.1em 1.1em 0;
    border-top: 1px solid var(--line);
}

.tl-heads,
.tl-inner {
    display: flex;
    flex-direction: column;
    gap: 0.26em;
}

.tl-head {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tl-head span {
    font: 600 0.62em/1 var(--mono);
    color: var(--faint);
}

.r-ruler,
.r-sub {
    height: 1.2em;
    flex: none;
}

.r-ov {
    height: 1.1em;
    flex: none;
}

.r-v1 {
    height: 2.9em;
    flex: none;
}

.r-a {
    height: 0.95em;
    flex: none;
}

.tl:not(.tl-compact) .r-a {
    height: 0.82em;
}

.tl-area {
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.tl-inner {
    position: relative;
    transform-origin: 0 0;
}

.tl-ruler {
    position: relative;
    background: linear-gradient(90deg, rgba(242, 241, 234, 0.25) 1px, transparent 1px) 0 100% / calc(100% / 42.4) 55% repeat-x;
}

.tl-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--yellow);
}

.tl-row {
    position: relative;
    border-radius: 0.15em;
    background: rgba(242, 241, 234, 0.03);
}

.clip {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 0.12em;
}

/* founder.js gives each picture clip a --h from a short list (186–262): read here as a lightness,
   so neighbouring clips stay apart in shades of the one yellow. */
.r-v1 .clip {
    background: hsl(48 100% calc(38% + (var(--h, 205) - 186) * 0.3%));
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.38);
}

.r-sub .clip {
    top: 22%;
    bottom: 22%;
    background: rgba(242, 241, 234, 0.75);
}

.r-ov .clip {
    background: rgba(242, 241, 234, 0.35);
}

.r-a .clip {
    background:
        repeating-linear-gradient(90deg, rgba(242, 241, 234, 0.85) 0 1px, transparent 1px 3px) center / 100% 62% no-repeat,
        rgba(242, 241, 234, 0.08);
    box-shadow: inset 0 0 0 1px rgba(242, 241, 234, 0.28);
}

.tl-row.r-a:nth-child(even) .clip {
    background:
        repeating-linear-gradient(90deg, rgba(255, 209, 0, 0.9) 0 1px, transparent 1px 3px) center / 100% 62% no-repeat,
        rgba(255, 209, 0, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 209, 0, 0.35);
}

.tl-playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 3;
    width: 2px;
    margin-left: -1px;
    background: var(--ink);
    pointer-events: none;
}

.tl-playhead i {
    position: absolute;
    left: 50%;
    top: 0;
    width: 0.9em;
    height: 1.1em;
    transform: translateX(-50%);
    background: var(--ink);
    clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%);
}

/* ---------- Film block (static layout) ---------- */

.film-block {
    display: flex;
    flex-direction: column;
    gap: 2.2em;
    max-width: 980px;
    margin: 0 auto;
    font-size: clamp(10.5px, 2.6vw, 12px);
}

.film-block-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 0.4em;
    background: #000;
    box-shadow: 0 2em 5em rgba(0, 0, 0, 0.55);
}

.film-block-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.film-block-copy {
    order: -1;
}

.film-play {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.8em 1.3em 0.8em 1em;
    border: 0;
    border-radius: 0;
    background: var(--yellow);
    color: var(--bg);
    font-size: 1.05em;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 0.8em 2.4em rgba(0, 0, 0, 0.45);
    transition: background 0.2s ease;
}

.film-play:hover {
    background: var(--ink);
}

.film-play svg {
    width: 1.15em;
    height: 1.15em;
}

.film-play .icon-pause,
.film-play .label-pause,
.film-play.is-playing .icon-play,
.film-play.is-playing .label-play {
    display: none;
}

.film-play.is-playing .icon-pause,
.film-play.is-playing .label-pause {
    display: inline;
}

.film-controls {
    display: flex;
    align-items: stretch;
    gap: 0.6em;
}

.film-sound {
    display: grid;
    place-items: center;
    width: 3.1em;
    padding: 0;
    border: max(2px, 0.12em) solid var(--ink);
    border-radius: 0;
    background: rgba(17, 17, 16, 0.55);
    color: var(--ink);
    font-size: 1.05em;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.film-sound[hidden] {
    display: none;
}

.film-sound:hover {
    border-color: var(--yellow);
    background: var(--yellow);
    color: var(--bg);
}

.film-sound svg {
    width: 1.35em;
    height: 1.35em;
}

.film-sound .icon-sound-off,
.film-sound.is-muted .icon-sound-on {
    display: none;
}

.film-sound.is-muted .icon-sound-off {
    display: block;
}

/* Below the film, not on it: the cover's title runs down to its bottom edge. */
.film-block .film-controls {
    margin-top: -0.8em;
}

/* ---------- SkyCut section ---------- */

.skycut {
    position: relative;
    padding: 72px 20px;
    background: var(--bg);
}

.sc-stage {
    display: flex;
    flex-direction: column;
    gap: 4em;
    max-width: 1080px;
}

.sc-text .eyebrow {
    font-size: 1em;
}

.sc-title {
    display: flex;
    align-items: center;
    gap: 0.12em;
    font: 900 5.8em/0.95 var(--sans);
    letter-spacing: -0.05em;
}

/* macOS icons carry their own transparent margin, so the image runs a little taller than the caps. */
.sc-icon {
    flex: none;
    width: 0.98em;
    height: auto;
    margin-left: -0.08em;
}

.sc-sub {
    margin: 0.5em 0 0;
    font: 700 1.85em/1.25 var(--sans);
    letter-spacing: -0.02em;
}

.sc-body {
    margin: 0.8em 0 0;
    max-width: 27em;
    font-size: 1.15em;
    line-height: 1.65;
    color: var(--muted);
}

.sc-features {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
    margin: 1.8em 0 0;
    padding: 0;
    list-style: none;
}

.sc-features li {
    display: flex;
    align-items: center;
    gap: 0.7em;
    font-size: 1.12em;
    font-weight: 500;
}

.sc-features svg {
    flex: none;
    width: 1.35em;
    height: 1.35em;
    padding: 0.2em;
    background: var(--yellow);
    color: var(--bg);
}

.sc-stats {
    gap: 1.4em 2.6em;
    margin-top: 1.7em;
}

.sc-stats .stat-num {
    font-size: 3.6em;
}

.sc-stats .stat-label {
    font-size: 0.95em;
}

.sc-download {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1em 1.4em;
    margin-top: 1.7em;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.9em 1.45em 0.9em 1.15em;
    border-radius: 0;
    background: var(--yellow);
    color: var(--bg);
    font-size: 1.05em;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn-primary:hover {
    background: var(--ink);
}

.btn-primary svg {
    width: 1.15em;
    height: 1.15em;
}

.sc-fine {
    display: flex;
    flex-direction: column;
    gap: 0.25em;
    margin: 0;
    max-width: 24em;
    font-size: 0.8em;
    line-height: 1.45;
    color: var(--faint);
}

.sc-fine span:first-child {
    color: var(--muted);
    font-weight: 600;
}

.sc-visual {
    position: relative;
}

.sc-win-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1em;
    padding: 1em 1em 0.6em;
}

.sc-monitor {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 0.3em;
    background: #000;
}

.sc-monitor video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sc-tc {
    position: absolute;
    left: 0.7em;
    top: 0.6em;
    padding: 0.35em 0.5em;
    border-radius: 0.2em;
    background: rgba(17, 17, 16, 0.72);
    font: 600 0.72em/1 var(--mono);
    font-variant-numeric: tabular-nums;
}

.sc-subs {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

.sc-subs-head {
    display: flex;
    justify-content: space-between;
    margin: 0 0 0.6em;
    font-size: 0.78em;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--faint);
}

.sc-subs-viewport {
    position: relative;
    height: 13em;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

.sc-subs-list {
    margin: 0;
    padding: 0;
    list-style: none;
    transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}

.sc-subs-list li {
    display: grid;
    grid-template-columns: 3.4em 1fr;
    gap: 0.05em 0.55em;
    padding: 0.42em 0.55em;
    border-radius: 0.2em;
    opacity: 0.42;
    transition: opacity 0.3s ease, background 0.3s ease;
}

.sc-subs-list li.is-active {
    opacity: 1;
    background: rgba(255, 209, 0, 0.1);
    box-shadow: inset 2px 0 0 var(--yellow);
}

.cue-time {
    grid-row: span 2;
    font: 500 0.7em/1.7 var(--mono);
    color: var(--faint);
}

.cue-main {
    font-size: 0.84em;
    line-height: 1.35;
}

.cue-alt {
    font-size: 0.7em;
    line-height: 1.35;
    color: var(--faint);
}

.mcp-bubble {
    position: relative;
    width: fit-content;
    max-width: 22em;
    margin: 1.4em 0 0;
    padding: 1em 1.2em;
    border: 1px solid var(--line-strong);
    border-top: max(2px, 0.16em) solid var(--yellow);
    background: var(--card);
    box-shadow: 0 1.6em 4em rgba(0, 0, 0, 0.5);
}

.mcp-bubble p {
    margin: 0;
}

.mcp-head {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-bottom: 0.5em !important;
    font: 600 0.72em/1 var(--mono);
    letter-spacing: 0.08em;
    color: var(--faint);
}

.mcp-dot {
    width: 0.6em;
    height: 0.6em;
    background: var(--yellow);
}

.mcp-ask {
    font-size: 1em;
    font-weight: 600;
}

.mcp-done {
    display: flex;
    align-items: center;
    gap: 0.45em;
    margin-top: 0.55em !important;
    font-size: 0.82em;
    color: var(--yellow);
}

.mcp-done svg {
    width: 1.1em;
    height: 1.1em;
}

/* ---------- Small tools (list first; the seven placards are further down) ---------- */

.tools {
    position: relative;
    padding: 96px var(--pad-x) 64px;
    background: var(--bg);
}

.tools .frame {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
}

.tools-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 0.3em;
    margin: 0 0 32px;
    font: 900 clamp(40px, 9vw, 84px)/1.05 var(--heavy);
    letter-spacing: -0.02em;
}

.placards,
.ring-controls {
    display: none;
}

.showcase {
    display: grid;
    gap: 24px;
}

.tool {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    border-top: 3px solid var(--yellow);
    background: var(--card);
}

.tool-demo {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #242422;
}

.tool-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    min-width: 0;
    padding: 22px 20px 26px;
}

.tool-icon {
    width: 56px;
    height: auto;
}

/* Mini-program logos are shown round, as WeChat shows them. */
.tool-icon.is-round,
.pc-icon.is-round {
    border-radius: 50%;
}

/* Tools without an app icon get a drawn one. */
.tool-icon.is-glyph,
.pc-icon.is-glyph {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border-radius: 22%;
    background: var(--ink);
    color: var(--bg);
}

.tool-icon.is-glyph svg,
.pc-icon.is-glyph svg {
    width: 56%;
    height: 56%;
}

.tool-tag {
    margin: 0;
    font: 700 13px/1.3 var(--sans);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--yellow);
}

.tool-copy h3 {
    font: 900 clamp(26px, 3vw, 40px)/1.05 var(--heavy);
    letter-spacing: -0.03em;
}

.tool-copy p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
}

.tool-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    width: fit-content;
    margin-top: 6px;
    padding: 10px 16px;
    border: 2px solid var(--ink);
    border-radius: 0;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    color: var(--ink);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tool-link:hover {
    border-color: var(--yellow);
    background: var(--yellow);
    color: var(--bg);
}

/* SkySheet: the same window before and after, split by a divider. */

.compare {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #ececef;
    cursor: ew-resize;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
}

.compare-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 0 0;
    pointer-events: none;
}

.compare-before {
    clip-path: inset(0 calc(100% - var(--split, 50%)) 0 0);
}

.compare-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--split, 50%);
    width: 3px;
    margin-left: -1.5px;
    background: var(--yellow);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

/* The knob follows the divider but stays whole inside the frame at either end of the wipe. */
.compare-knob {
    position: absolute;
    left: clamp(24px, var(--split, 50%), calc(100% - 24px));
    top: 50%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
    background: var(--yellow);
    color: var(--bg);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.compare-knob svg {
    width: 22px;
    height: 22px;
}

.compare:focus-visible .compare-knob {
    outline: 3px solid var(--bg);
    outline-offset: 3px;
}

.compare-label {
    position: absolute;
    bottom: 14px;
    padding: 6px 11px;
    background: rgba(17, 17, 16, 0.86);
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    pointer-events: none;
}

.compare-label.is-before {
    left: 14px;
    opacity: var(--before-o, 1);
}

.compare-label.is-after {
    right: 14px;
    opacity: var(--after-o, 1);
}

/* Sky Cards: the promo cards cycle on a phone-shaped frame, next to the mini program code. */

.demo-cards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6%;
    background: var(--yellow);
}

.cards-phone {
    position: relative;
    height: 86%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 6px solid var(--bg);
    border-radius: 26px;
    box-shadow: 0 24px 60px rgba(60, 48, 0, 0.35);
}

.cards-phone img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.cards-phone img.is-current {
    opacity: 1;
}

.cards-code {
    position: relative;
    width: 24%;
    aspect-ratio: 1;
    margin: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 40px rgba(60, 48, 0, 0.3);
}

.cards-code img {
    position: absolute;
    left: -33%;
    top: -98.4%;
    width: 166%;
    max-width: none;
}

/* Photo to 3D: a slow pan across the demo panorama. */

.demo-pano {
    container-type: inline-size;
    background: #0a0a0a;
}

.pano-view {
    position: absolute;
    inset: 0;
}

.pano-view img {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    max-width: none;
    height: 100%;
    animation: pano-pan 18s ease-in-out infinite alternate;
    animation-play-state: paused;
}

.tool.is-live .pano-view img {
    animation-play-state: running;
}

@keyframes pano-pan {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% + 100cqw)); }
}

.pano-badge {
    position: absolute;
    left: 16px;
    top: 16px;
    padding: 6px 10px;
    background: var(--yellow);
    color: var(--bg);
    font: 700 13px/1 var(--mono);
    letter-spacing: 0.08em;
}

.pano-compass {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 38px;
    height: 38px;
    border: 2px solid rgba(242, 241, 234, 0.7);
    border-radius: 50%;
    background: rgba(17, 17, 16, 0.5);
}

.pano-compass i {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2px;
    height: 15px;
    margin-left: -1px;
    background: var(--yellow);
    transform-origin: 50% 100%;
    transform: translateY(-100%) rotate(0deg);
    animation: compass 18s ease-in-out infinite alternate;
    animation-play-state: paused;
}

.tool.is-live .pano-compass i {
    animation-play-state: running;
}

@keyframes compass {
    from { transform: translateY(-100%) rotate(-150deg); }
    to { transform: translateY(-100%) rotate(150deg); }
}

/* PDFMark: a note and an image drop onto a PDF page. */

.demo-pdf {
    display: grid;
    place-items: center;
}

.pdf-page {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3.2%;
    height: 84%;
    aspect-ratio: 1 / 1.3;
    padding: 8% 9%;
    background: #fbfaf7;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.pdf-line {
    display: block;
    height: 2.4%;
    background: #d9d6cf;
}

.pdf-line.w90 { width: 90%; }
.pdf-line.w88 { width: 88%; }
.pdf-line.w82 { width: 82%; }
.pdf-line.w80 { width: 80%; }
.pdf-line.w75 { width: 75%; }
.pdf-line.w70 { width: 70%; }
.pdf-line.w60 { width: 60%; }

.pdf-block {
    display: block;
    height: 22%;
    background: #e3e0d8;
}

.pdf-note {
    position: absolute;
    right: -6%;
    top: 14%;
    padding: 6px 12px;
    background: var(--yellow);
    color: var(--bg);
    font-size: clamp(11px, 1vw, 16px);
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
    transform: rotate(4deg);
}

.pdf-stamp {
    position: absolute;
    left: 14%;
    bottom: 12%;
    width: 22%;
    aspect-ratio: 1;
    padding: 4px;
    border: 2px dashed var(--bg);
    background: rgba(255, 209, 0, 0.12);
}

.pdf-stamp img {
    width: 100%;
    height: 100%;
}

.pdf-cursor {
    position: absolute;
    left: 40%;
    top: 46%;
    width: 18px;
    height: 24px;
    background: var(--bg);
    clip-path: polygon(0 0, 100% 66%, 56% 70%, 74% 100%, 58% 100%, 42% 74%, 0 92%);
    opacity: 0;
}

.tool.is-live .pdf-note {
    animation: drop-note 3.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.tool.is-live .pdf-stamp {
    animation: drop-stamp 3.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.tool.is-live .pdf-cursor {
    animation: pdf-cursor 3.2s ease-in-out both;
}

@keyframes drop-note {
    0%, 18% { opacity: 0; transform: translate(-30px, -40px) rotate(-8deg) scale(1.2); }
    38% { opacity: 1; transform: rotate(4deg) scale(1); }
    100% { opacity: 1; transform: rotate(4deg); }
}

@keyframes drop-stamp {
    0%, 46% { opacity: 0; transform: translate(40px, 30px) scale(1.25); }
    68% { opacity: 1; transform: none; }
    100% { opacity: 1; transform: none; }
}

@keyframes pdf-cursor {
    0% { opacity: 0; transform: translate(60px, -60px); }
    14% { opacity: 1; }
    30% { transform: translate(110px, -110px); }
    56% { transform: translate(-90px, 90px); }
    80% { opacity: 1; transform: translate(-60px, 120px); }
    100% { opacity: 0; transform: translate(-60px, 120px); }
}

/* SkyDict: a word is typed and its entry appears. */

.demo-dict {
    display: grid;
    place-items: center;
}

.dict-window {
    width: 78%;
    overflow: hidden;
    border-radius: 10px;
    background: #fbfbfd;
    color: #1d1d1f;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.dict-chrome {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 14px;
    border-bottom: 1px solid #e6e6ea;
}

.dict-chrome i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #d6d6db;
}

.dict-badge {
    margin-left: auto;
    padding: 3px 8px;
    background: var(--yellow);
    color: var(--bg);
    font-size: 11px;
    font-weight: 800;
}

.dict-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid #ececf0;
    font-size: clamp(16px, 1.6vw, 26px);
    font-weight: 600;
}

.dict-search svg {
    flex: none;
    width: 22px;
    height: 22px;
    color: #9a9aa2;
}

.dict-typed::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 2px;
    vertical-align: -0.12em;
    background: #c99f00;
    animation: blink 1s steps(1) infinite;
}

.dict-result {
    padding: 18px 20px 22px;
}

.dict-result p {
    margin: 0;
}

.dict-word {
    font-size: clamp(18px, 1.7vw, 28px);
    font-weight: 700;
}

.dict-word span {
    margin-left: 8px;
    font-size: 0.62em;
    font-weight: 500;
    color: #6e6e76;
}

.dict-pos {
    margin-top: 8px !important;
    font: 600 12px/1 var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7a6000;
}

.dict-meaning {
    margin-top: 8px !important;
    font-size: clamp(14px, 1.2vw, 19px);
    line-height: 1.5;
    color: #2c2c30;
}

.js-motion .tool[data-tool="skydict"] .dict-result {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.js-motion .tool[data-tool="skydict"].is-found .dict-result {
    opacity: 1;
    transform: none;
}

/* Linguist: the promo clip. */

.demo-linguist video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sky Avatars Console: a listening device and a short exchange. */

.demo-voice {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 6%;
    padding: 0 7%;
}

.voice-device {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 28px 0;
    border: 2px solid var(--line-strong);
    border-radius: 32px;
    background: rgba(242, 241, 234, 0.03);
}

.voice-orb {
    width: 38%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff6c4, var(--yellow) 48%, #8a6d00 100%);
    box-shadow: 0 0 40px rgba(255, 209, 0, 0.45);
}

.tool.is-live .voice-orb {
    animation: orb 1.8s ease-in-out infinite;
}

@keyframes orb {
    50% { transform: scale(1.07); box-shadow: 0 0 60px rgba(255, 209, 0, 0.7); }
}

.voice-wave {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 34px;
}

.voice-wave i {
    width: 5px;
    height: 100%;
    background: var(--yellow);
    transform: scaleY(0.25);
}

.tool.is-live .voice-wave i {
    animation: wave 1.1s ease-in-out infinite;
}

.voice-wave i:nth-child(2) { animation-delay: -0.9s; }
.voice-wave i:nth-child(3) { animation-delay: -0.4s; }
.voice-wave i:nth-child(4) { animation-delay: -0.7s; }
.voice-wave i:nth-child(5) { animation-delay: -0.2s; }
.voice-wave i:nth-child(6) { animation-delay: -0.6s; }
.voice-wave i:nth-child(7) { animation-delay: -1s; }
.voice-wave i:nth-child(8) { animation-delay: -0.3s; }
.voice-wave i:nth-child(9) { animation-delay: -0.8s; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.25); }
    50% { transform: scaleY(1); }
}

.voice-status {
    font: 600 12px/1 var(--mono);
    letter-spacing: 0.08em;
    color: var(--yellow);
}

.voice-chat {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bubble {
    max-width: 92%;
    margin: 0;
    padding: 12px 16px;
    font-size: clamp(13px, 1.1vw, 17px);
    line-height: 1.45;
}

.bubble.is-user {
    align-self: flex-end;
    background: rgba(242, 241, 234, 0.12);
}

.bubble.is-ai {
    align-self: flex-start;
    background: var(--yellow);
    color: var(--bg);
    font-weight: 600;
}

.js-motion .bubble {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.tool.is-live .bubble.is-user {
    opacity: 1;
    transform: none;
    transition-delay: 0.4s;
}

.tool.is-live .bubble.is-ai {
    opacity: 1;
    transform: none;
    transition-delay: 1.6s;
}

/* ---------- Closing (phones first; the 16:9 bookend to the cover is further down) ---------- */

.closing {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background: var(--bg);
    isolation: isolate;
}

.closing .frame {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    min-height: 100vh;
    min-height: 100svh;
    padding: 96px 20px 56px;
}

.closing .slide-rule {
    display: block;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 64px;
    height: 3px;
}

.closing-block {
    display: none;
    background: var(--yellow);
    transform-origin: 100% 0;
}

.closing-eyebrow {
    margin: 0 0 14px;
    font: 900 30px/1 var(--heavy);
    color: var(--yellow);
}

.closing-name {
    font: 900 min(22vw, 104px)/0.9 var(--heavy);
    letter-spacing: -0.055em;
    white-space: nowrap;
}

html[lang="zh-CN"] .closing-name {
    line-height: 1;
    letter-spacing: -0.02em;
}

.closing-kicker {
    margin: 0.024em 0 0;
    font: 900 min(20vw, 96px)/0.9 var(--sans);
    letter-spacing: -0.055em;
    white-space: nowrap;
}

.closing-kicker:empty {
    display: none;
}

.closing-role {
    margin: 0;
    font: 700 20px/1.3 var(--sans);
}

.closing-role::before {
    content: "";
    display: block;
    width: 120px;
    height: 6px;
    margin: 18px 0 12px;
    background: var(--yellow);
}

.closing-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.closing-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 18px;
    border: 2px solid var(--ink);
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.closing-links a:hover {
    border-color: var(--yellow);
    background: var(--yellow);
    color: var(--bg);
}

.closing-links svg {
    width: 18px;
    height: 18px;
}

/* The code is printed straight on the yellow, which is its quiet zone: keep four modules of it all round. */
.closing-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 40px 0 30px;
    background: var(--yellow);
    color: var(--bg);
}

.closing-qr img,
.closing-qr figcaption {
    width: min(67vw, 261px);
}

.closing-qr img {
    height: auto;
}

.closing-qr figcaption {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    column-gap: 12px;
    margin-top: 40px;
    padding-top: 10px;
    border-top: 4px solid;
}

.closing-qr figcaption span {
    font: 900 22px/1.1 var(--heavy);
    text-wrap: balance;
}

.closing-qr figcaption b {
    margin-top: 5px;
    font: 700 13px/1.2 var(--mono);
}

/* Points up at the code. */
.closing-qr figcaption svg {
    grid-area: 1 / 2 / 3;
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: square;
}

/* ---------- Phones and portrait screens ---------- */

@media (max-width: 760px), (max-aspect-ratio: 1/1) {
    .founder-page {
        --pad-x: 20px;
    }

    .founder-bar {
        height: 56px;
    }

    .opening .slide-rule,
    .closing .slide-rule {
        top: 58px;
    }

    .opening-block {
        top: 61px;
    }

    .tool-copy {
        gap: 10px;
    }

    .demo-voice {
        grid-template-columns: 0.8fr 1.2fr;
        padding: 0 5%;
    }

    .voice-device {
        gap: 10px;
        padding: 14px 0;
        border-radius: 22px;
    }

    .voice-wave {
        height: 22px;
    }

    .cards-phone {
        border-width: 4px;
        border-radius: 18px;
    }
}

@media (min-width: 761px) {
    .tool {
        grid-template-columns: 58fr 42fr;
    }

    .tool-copy {
        padding: 28px 32px;
    }
}

/* ======================================================================
   16:9 slides for the cover and the closing (landscape screens)
   ====================================================================== */

@media (min-width: 761px) and (min-aspect-ratio: 1001/1000) {
    .opening,
    .closing {
        height: 100vh;
        height: 100svh;
        min-height: 560px;
    }

    /* Centred with offsets, not a transform: the cover's exit animation owns the frame's transform. */
    .opening .frame,
    .closing .frame {
        position: absolute;
        left: calc(50% - var(--stage-w) / 2);
        top: calc(50% - var(--stage-h) / 2);
        display: block;
        width: var(--stage-w);
        height: var(--stage-h);
        min-height: 0;
        padding: 0;
        font-size: var(--u);
    }

    .opening .slide-bar,
    .closing .slide-bar {
        display: flex;
        position: absolute;
        left: 5em;
        right: 5em;
        top: 2.55em;
    }

    .opening .slide-rule,
    .closing .slide-rule {
        left: 5em;
        right: 5em;
        top: 5.2em;
        height: max(2px, 0.16em);
    }

    /* The yellow block runs past the 16:9 frame to the screen's edges. */
    .opening-block,
    .closing-block {
        display: block;
        position: absolute;
        left: 61.46em;
        top: 5.36em;
        right: -50vw;
        bottom: -50vh;
        height: auto;
    }

    /* Runs a little past the screen's bottom edge, so the bust never ends above it. */
    .opening-portrait {
        left: 51.56em;
        right: auto;
        top: auto;
        bottom: calc((var(--stage-h) - 100vh) / 2 - 2.6em);
        width: 46.875em;
    }

    .opening-card {
        position: absolute;
        left: 5em;
        top: 17.5em;
        padding: 0;
    }

    html[lang="zh-CN"] .opening-card {
        top: 8.75em;
    }

    .opening-name {
        font-size: 15em;
    }

    html[lang="zh-CN"] .opening-name {
        font-size: 14.58em;
    }

    .opening-kicker {
        font-size: 13.02em;
    }

    .opening-role {
        font-size: 2.5em;
        line-height: 1.2;
    }

    .opening-role::before {
        width: 10.83em;
        height: 0.167em;
        margin: 1.04em 0 0.46em;
    }

    .opening-role-alt {
        margin-top: 0.2em;
        font-size: 1.56em;
    }

    .opening-index {
        position: absolute;
        left: 5em;
        bottom: 3.33em;
        width: 45.83em;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.04em;
        margin: 0;
        padding: 0.83em 0 0;
        border-top-width: max(2px, 0.1em);
    }

    .opening-index li {
        gap: 0.21em;
    }

    .ix-no {
        font-size: 1.04em;
    }

    .ix-verb {
        font-size: 1.15em;
    }

    .ix-product {
        font-size: 0.94em;
    }

    .closing-copy {
        position: absolute;
        left: 5em;
        top: 13em;
    }

    html[lang="zh-CN"] .closing-copy {
        top: 9.5em;
    }

    .closing-eyebrow {
        margin: 0 0 0.45em;
        font-size: 3.2em;
    }

    .closing-name {
        font-size: 12em;
    }

    html[lang="zh-CN"] .closing-name {
        font-size: 11.5em;
    }

    .closing-kicker {
        font-size: 10em;
    }

    .closing-role {
        font-size: 2.2em;
        line-height: 1.2;
    }

    .closing-role::before {
        width: 12.3em;
        height: 0.19em;
        margin: 1.18em 0 0.52em;
    }

    .closing-links {
        gap: 1em;
        margin-top: 3em;
    }

    .closing-links a {
        gap: 0.6em;
        min-height: 0;
        padding: 0.9em 1.3em;
        border-width: max(2px, 0.12em);
        font-size: 1.15em;
    }

    .closing-links svg {
        width: 1.2em;
        height: 1.2em;
    }

    /* Centred in the yellow block, about five modules below its top edge. */
    .closing-qr {
        position: absolute;
        left: 65.63em;
        top: 10.45em;
        width: 30.21em;
        padding: 0;
        background: none;
    }

    .closing-qr img,
    .closing-qr figcaption {
        width: 100%;
    }

    .closing-qr figcaption {
        column-gap: 1em;
        margin-top: 4.38em;
        padding-top: 1.04em;
        border-top-width: 0.31em;
    }

    .closing-qr figcaption span {
        font-size: 2.4em;
    }

    .closing-qr figcaption b {
        margin-top: 0.38em;
        font-size: 1.35em;
    }

    .closing-qr figcaption svg {
        width: 3.33em;
        height: 3.33em;
    }
}

/* ======================================================================
   Pinned 16:9 stage layout (desktop with motion)
   ====================================================================== */

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
    .loop,
    .skycut {
        height: 100vh;
        padding: 0;
        overflow: hidden;
    }

    .stage {
        position: absolute;
        left: 50%;
        top: 50%;
        width: var(--stage-w);
        height: var(--stage-h);
        max-width: none;
        margin: 0;
        overflow: hidden;
        /* At the film beat (--film-p 0 → 1) the loop stage grows by --film-cover so the film fills
           screens that aren't 16:9 instead of sitting between letterbox bars. */
        transform: translate(-50%, -50%) scale(calc(1 + (var(--film-cover, 1) - 1) * var(--film-p, 0)));
        font-size: var(--u);
    }

    .stage .slide-bar,
    .tools .slide-bar {
        display: flex;
        position: absolute;
        left: 5em;
        right: 5em;
        top: 2.55em;
        z-index: 7;
    }

    .stage .slide-rule,
    .tools .slide-rule {
        display: block;
        position: absolute;
        left: 5em;
        right: 5em;
        top: 5.2em;
        z-index: 7;
        height: max(2px, 0.16em);
    }

    /* The loop opens on all four steps side by side, then flies into each one. */
    .loop-overview {
        position: absolute;
        inset: 0;
        z-index: 6;
        margin: 0;
        background: var(--bg);
    }

    /* Placed in stage units: the title's own em is six times larger. */
    .ov-title {
        position: absolute;
        left: calc(var(--u) * 5);
        top: calc(var(--u) * 7.08);
        flex-wrap: nowrap;
        gap: 0.27em;
        font-size: 6.25em;
        line-height: 1;
        white-space: nowrap;
    }

    .ov-cols {
        display: grid;
        position: absolute;
        left: 5em;
        right: 5em;
        top: 16.15em;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 1.25em;
    }

    .ov-col {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    /* One row per part, so the verbs, bodies and yellow facts line up across the columns
       however long each language's copy runs. */
    @supports (grid-template-rows: subgrid) {
        .ov-col {
            display: grid;
            grid-row: span 6;
            grid-template-rows: subgrid;
        }
    }

    .ov-head {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin: 0;
    }

    .ov-no {
        font: 900 7.81em/0.85 var(--sans);
        letter-spacing: -0.05em;
        color: var(--yellow);
    }

    .ov-arrow {
        font: 300 4.69em/0.85 var(--sans);
    }

    .ov-img {
        width: 100%;
        height: 12.14em;
        margin-top: 1.25em;
        object-fit: cover;
    }

    .ov-link {
        display: block;
        margin-top: 1.25em;
    }

    .ov-link .ov-img {
        margin-top: 0;
        transition: box-shadow 0.2s ease;
    }

    .ov-link:hover .ov-img,
    .ov-link:focus-visible .ov-img {
        box-shadow: 0 0 0 max(2px, 0.16em) var(--yellow);
    }

    .ov-link:focus-visible {
        outline: none;
    }

    .ov-verb {
        margin: 0.333em 0 0;
        padding-top: 0.25em;
        border-top: max(2px, 0.027em) solid var(--ink);
        font: 900 3.75em/1 var(--heavy);
        letter-spacing: -0.02em;
    }

    .ov-product {
        margin: 0.4em 0 0;
        font: 700 1.5625em/1.15 var(--heavy);
        letter-spacing: -0.02em;
    }

    .ov-body {
        margin: 0.5em 0 0;
        font-size: 1.04em;
        line-height: 1.6;
        color: var(--muted);
        text-wrap: pretty;
    }

    .ov-fact {
        margin: 0.78em 0 0;
        font: 600 0.94em/1.4 var(--sans);
        color: var(--yellow);
    }

    /* While the camera moves, the four verbs sit under the rule with the current one in yellow. */
    .loop-title {
        display: block;
        position: absolute;
        left: 5em;
        top: 6.3em;
        z-index: 5;
        margin: 0;
        white-space: nowrap;
    }

    .lt-row {
        display: flex;
        align-items: baseline;
        margin: 0;
        font: 900 1.9em/1.2 var(--heavy);
        letter-spacing: -0.01em;
    }

    .lt-step {
        display: inline-flex;
        align-items: baseline;
    }

    .lt-verb {
        color: var(--dim);
        transition: color 0.35s ease;
    }

    .lt-verb.is-active {
        color: var(--yellow);
    }

    .lt-arrow {
        margin: 0 0.35em;
        font-weight: 300;
        color: var(--dim);
    }

    .world {
        position: absolute;
        left: 0;
        top: 0;
        width: 200em;
        height: 112.5em;
        transform-origin: 0 0;
        transform: translate(calc(var(--cx, 0) * -1em), calc(var(--cy, 0) * -1em)) scale(var(--cs, 1));
        will-change: transform;
    }

    .flow {
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        width: 200em;
        height: 112.5em;
        overflow: visible;
        pointer-events: none;
    }

    .flow-path {
        fill: none;
        stroke: var(--yellow);
        stroke-width: 0.22;
        stroke-linecap: round;
    }

    .flow-dot {
        fill: var(--yellow);
    }

    .scene {
        position: absolute;
        display: block;
        width: 100em;
        height: 56.25em;
        margin: 0;
    }

    .scene-learn {
        left: 0;
        top: 0;
    }

    .scene-create {
        left: 100em;
        top: 0;
    }

    .scene-edit {
        left: 100em;
        top: 56.25em;
    }

    .scene-text {
        position: absolute;
    }

    .learn-visual {
        position: absolute;
        left: 5em;
        top: 12em;
        width: 52em;
        height: 36em;
        padding: 0;
        perspective: 120em;
    }

    .win-course {
        position: absolute;
        left: 0;
        top: 0;
        width: 50em;
    }

    .course-preview {
        right: -2em;
        bottom: 1em;
        width: 22em;
    }

    .js-motion .prompt-ghost {
        visibility: hidden;
    }

    .learn-text {
        left: 61em;
        top: 11.5em;
        width: 34em;
    }

    .studio {
        position: absolute;
        left: 5em;
        top: 10.6em;
        width: 57em;
    }

    .tile-shimmer {
        display: block;
    }

    .prompt-typed::after {
        content: "";
        display: inline-block;
        width: 2px;
        height: 1.15em;
        margin-left: 2px;
        vertical-align: -0.2em;
        background: var(--yellow);
        animation: blink 1s steps(1) infinite;
    }

    .create-text {
        left: 66em;
        top: 12.5em;
        width: 30em;
    }

    .studio-stack {
        display: grid;
    }

    .studio-stack > * {
        grid-area: 1 / 1;
    }

    .canvas-view {
        border-bottom: 0;
    }

    /* Placed in stage units: its own em is a little larger. */
    .canvas-caption {
        position: absolute;
        left: calc(var(--u) * 5);
        top: calc(var(--u) * 50.4);
        margin: 0;
        font-size: 1.05em;
    }

    .skywin {
        position: absolute;
        left: 5em;
        top: 10.4em;
        width: 61em;
    }

    .skywin-top {
        grid-template-columns: 30.4em 1fr;
    }

    .edit-text {
        left: 69em;
        top: 12.5em;
        width: 27em;
    }

    /* 03, second half: the camera stays on SkyCut while its text clears for the AI's chat on the
       left and a smaller SkyCut window on the right. The three chats share one spot. */
    .scene-chat {
        left: 100em;
        top: 56.25em;
    }

    .chat-tabs {
        display: grid;
        position: absolute;
        right: 5em;
        top: 6.7em;
        width: 26.25em;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75em;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .chat-tabs li {
        padding-top: 0.55em;
        border-top: 0.25em solid #3a3935;
        font: 700 0.95em/1.2 var(--sans);
        color: var(--faint);
        transition: color 0.35s ease, border-color 0.35s ease;
    }

    .chat-tabs li.is-active {
        border-top-color: var(--yellow);
        color: var(--ink);
    }

    .chat-stack {
        display: block;
        position: absolute;
        left: 5em;
        top: 10.4em;
        width: 53.75em;
        height: 43.75em;
    }

    .chat-label {
        display: none;
    }

    /* Sized so the longest chat (German) ends above the input. */
    .chat-win {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        font-size: 1.0625em;
    }

    .chat-head {
        flex: none;
        height: 2.75em;
        padding: 0 1.1em;
    }

    .chat-log {
        flex: 1;
        min-height: 0;
        gap: 0.55em;
        padding: 1.1em 2.3em 0;
        overflow: hidden;
    }

    .chat-frames {
        max-width: 29em;
    }

    .chat-covers {
        max-width: 32em;
    }

    .chat-input {
        flex: none;
        height: 3.1em;
        margin: 0.8em 1.1em 1.1em;
    }

    .chatcut {
        display: block;
        position: absolute;
        left: 60.25em;
        top: 10.4em;
        width: 34.75em;
    }

    .cc-monitor {
        position: relative;
        margin: 0.875em 0.875em 0;
        overflow: hidden;
        aspect-ratio: 16 / 9;
        border-radius: 0.3em;
        background: #000;
    }

    .cc-monitor > img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .cc-frame,
    .cc-cover {
        opacity: 0;
    }

    /* The covers chat leaves its cover shown inline; the other chats' views must not see it. */
    .chatcut:not([data-view="covers"]) .cc-cover {
        display: none;
    }

    .cc-frame.is-on {
        opacity: 1;
    }

    /* Small Helvetica until the AI restyles them, then larger PingFang with a heavier outline. */
    .cc-subs {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 1.4em;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0;
        font-family: Helvetica, Arial, sans-serif;
        font-size: 0.72em;
        line-height: 1.18;
        color: #fff;
        text-align: center;
        text-shadow: 0 0 2px #000;
        opacity: 0;
        transition: font-size 0.5s ease;
    }

    .chatcut[data-view="subs"] .cc-subs {
        opacity: 1;
    }

    .chatcut[data-caption="big"] .cc-subs {
        font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
        font-size: 1.3em;
        font-weight: 600;
        line-height: 1.15;
        text-shadow: 0 0 2px #000, 0 0 3px #000, 0 1px 4px rgba(0, 0, 0, 0.9);
    }

    .cc-chip,
    .cc-busy {
        position: absolute;
        left: 0.75em;
        top: 0.75em;
        padding: 0.3em 0.55em;
        border-radius: 0.25em;
        font: 600 0.75em/1.2 var(--mono);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .cc-chip {
        background: var(--yellow);
        color: var(--bg);
    }

    .cc-busy {
        display: inline-flex;
        align-items: center;
        background: rgba(17, 17, 16, 0.85);
    }

    .chatcut[data-view="covers"][data-gen="run"] .cc-busy,
    .chatcut[data-view="covers"][data-gen="done"] .cc-chip {
        opacity: 1;
    }

    .cc-strip {
        position: absolute;
        left: 0.875em;
        right: 0.875em;
        bottom: 0.875em;
        padding: 0.7em 0.8em;
        border: 1px solid var(--line);
        border-radius: 0.35em;
        background: rgba(28, 28, 26, 0.92);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .chatcut[data-view="export"]:not([data-export="idle"]) .cc-strip {
        opacity: 1;
    }

    .cc-strip p {
        display: flex;
        justify-content: space-between;
        margin: 0 0 0.55em;
        font: 500 0.8em/1.2 var(--mono);
    }

    .cc-pct,
    .cc-done {
        font-variant-numeric: tabular-nums;
        color: var(--yellow);
    }

    .cc-done,
    .chatcut[data-export="done"] .cc-pct {
        display: none;
    }

    .chatcut[data-export="done"] .cc-done {
        display: inline;
    }

    .cc-insp {
        display: flex;
        align-items: flex-end;
        gap: 1.8em;
        padding: 0.9em 0.875em 0.75em;
    }

    .cc-field {
        display: flex;
        flex-direction: column;
        gap: 0.4em;
    }

    .cc-insp .insp-tc,
    .cc-insp .insp-clip {
        margin: 0;
        font-size: 1.45em;
    }

    .cc-insp .insp-chips {
        margin-left: auto;
    }

    .chatcut .tl {
        font-size: 0.8em;
    }

    .chatcut[data-hl="sub"] .tl-row.r-sub {
        box-shadow: 0 0 0 max(2px, 0.2em) var(--yellow);
    }

    .fly-tile {
        display: block;
        position: absolute;
        left: calc(var(--fx, 0) * 1em);
        top: calc(var(--fy, 0) * 1em);
        z-index: 10;
        width: calc(var(--fw, 10) * 1em);
        height: calc(var(--fh, 6) * 1em);
        overflow: hidden;
        border-radius: 0.25em;
        visibility: hidden;
        box-shadow: 0 0 0 0.22em var(--yellow), 0 1.6em 4em rgba(0, 0, 0, 0.6);
    }

    .fly-tile video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Sits beside the stage, not in it, so the --film-cover zoom never pushes it off screen. */
    .film-caption {
        display: block;
        position: absolute;
        left: 5em;
        bottom: 3.6em;
        z-index: 6;
        width: 46em;
        font-size: var(--u);
        visibility: hidden;
    }

    .film-caption::before {
        content: "";
        position: absolute;
        left: -10em;
        right: -40em;
        bottom: -8em;
        top: -10em;
        z-index: -1;
        background: radial-gradient(60% 70% at 20% 80%, rgba(17, 17, 16, 0.78), transparent 72%);
        pointer-events: none;
    }

    .film-caption > *,
    .film-caption::before {
        transition: opacity 0.6s ease;
    }

    .film-caption.is-idle > *,
    .film-caption.is-idle::before {
        opacity: 0;
        pointer-events: none;
    }

    /* Until the film plays, its cover shows the title, so the caption keeps only its play button. */
    .film-caption.is-cover > :not(.film-controls),
    .film-caption.is-cover::before {
        opacity: 0;
    }

    .film-caption .step-chip {
        font-size: 0.72em;
    }

    .film-title {
        margin: 0 0 0.3em;
        font: 900 5em/1 var(--heavy);
        letter-spacing: -0.03em;
    }

    .film-caption .step-body {
        max-width: 30em;
        font-size: 1.25em;
        color: rgba(242, 241, 234, 0.82);
    }

    .film-caption .film-controls {
        margin-top: 1.6em;
    }

    .film-block {
        display: none;
    }

    .sc-stage {
        display: block;
        gap: 0;
    }

    .sc-text {
        position: absolute;
        left: 5em;
        top: 7.6em;
        width: 30em;
    }

    .sc-visual {
        position: absolute;
        left: 37.5em;
        top: 8em;
        width: 57.5em;
        perspective: 160em;
    }

    .sc-win-top {
        grid-template-columns: 33em 1fr;
    }

    .sc-subs {
        position: relative;
    }

    .sc-subs-viewport {
        position: absolute;
        left: 0;
        right: 0;
        top: 1.7em;
        bottom: 0;
        height: auto;
    }

    /* Hangs off the window's edge but stays clear of the text column, whose lines run long in German. */
    .mcp-bubble {
        position: absolute;
        left: -1.5em;
        top: 23em;
        margin: 0;
        z-index: 4;
    }

    /* ---------- Small tools: seven placards; each in turn opens into its demo card ---------- */

    .tools {
        height: 100vh;
        height: 100svh;
        min-height: 640px;
        padding: 0;
        overflow: hidden;
    }

    .tools .frame {
        position: absolute;
        left: calc(50% - var(--stage-w) / 2);
        top: calc(50% - var(--stage-h) / 2);
        width: var(--stage-w);
        height: var(--stage-h);
        max-width: none;
        margin: 0;
        font-size: var(--u);
    }

    .tools-title {
        position: absolute;
        left: calc(var(--u) * 5);
        top: calc(var(--u) * 7.08);
        flex-wrap: nowrap;
        gap: 0.27em;
        margin: 0;
        font-size: 6.25em;
        line-height: 1;
        white-space: nowrap;
    }

    .ring {
        position: absolute;
        inset: 0;
        /* Vertical drags still scroll the page; horizontal ones reach the swipe handler. */
        touch-action: pan-y;
    }

    .placards {
        display: grid;
        position: absolute;
        left: 5em;
        right: 5em;
        top: 16.15em;
        height: 33.33em;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        column-gap: 1.25em;
        animation: placards-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    }

    .placard {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        min-width: 0;
        margin: 0;
        padding: 1.15em 1.15em 1.35em;
        overflow: hidden;
        border: 0;
        border-top: max(2px, 0.16em) solid var(--ink);
        background: var(--card);
        color: var(--ink);
        font: inherit;
        text-align: left;
        cursor: pointer;
        transition: background 0.25s ease, opacity 0.3s ease, border-color 0.25s ease;
    }

    .placard:hover {
        background: var(--card-hover);
    }

    .placard:focus-visible {
        outline: 2px solid var(--yellow);
        outline-offset: 2px;
    }

    .pc-no {
        font: 900 3.33em/0.85 var(--sans);
        letter-spacing: -0.05em;
        color: var(--yellow);
    }

    .pc-icon {
        display: block;
        flex: none;
        width: 3.75em;
        height: 3.75em;
        margin-top: 2.08em;
        object-fit: contain;
    }

    .pc-name {
        margin-top: 1em;
        font: 800 1.36em/1.12 var(--heavy);
        letter-spacing: -0.02em;
    }

    .pc-tag {
        margin-top: 0.6em;
        font: 500 0.885em/1.4 var(--sans);
    }

    .pc-body {
        align-self: stretch;
        margin-top: 1.15em;
        padding-top: 1.15em;
        border-top: 1px solid var(--ink);
        font-size: 0.9em;
        line-height: 1.6;
        color: var(--muted);
    }

    .pc-arrow {
        margin-top: auto;
        padding-top: 0.4em;
        font-size: 1.67em;
        line-height: 1;
    }

    /* A card is open: the placards fold into a strip of tabs along the bottom. */
    .tools.is-spotlight .placards {
        top: 47.6em;
        height: 6em;
        animation-name: strip-in;
    }

    .tools.is-spotlight .placard {
        flex-direction: row;
        align-items: center;
        gap: 0.55em;
        padding: 0 0.8em;
        opacity: 0.5;
    }

    .tools.is-spotlight .placard.is-active {
        opacity: 1;
        border-top-color: var(--yellow);
        background: var(--card-hover);
    }

    .tools.is-spotlight .pc-no {
        font-size: 1.35em;
    }

    .tools.is-spotlight .pc-icon {
        width: 2.1em;
        height: 2.1em;
        margin: 0;
    }

    .tools.is-spotlight .pc-name {
        display: -webkit-box;
        min-width: 0;
        margin: 0;
        overflow: hidden;
        font-size: 1em;
        line-height: 1.1;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .tools.is-spotlight :is(.pc-tag, .pc-body, .pc-arrow) {
        display: none;
    }

    @keyframes placards-in {
        from { opacity: 0; transform: translateY(2em); }
        to { opacity: 1; transform: none; }
    }

    @keyframes strip-in {
        from { opacity: 0; transform: translateY(1.5em); }
        to { opacity: 1; transform: none; }
    }

    .showcase {
        display: block;
        position: absolute;
        inset: 0;
        pointer-events: none;
    }

    .tool {
        position: absolute;
        left: 5em;
        top: 15.4em;
        width: 90em;
        grid-template-columns: 49em 41em;
        border-top-width: max(2px, 0.16em);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(1.6em);
        transition:
            opacity 0.4s ease,
            transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
            visibility 0s linear 0.55s;
    }

    .tool.is-current {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        transition:
            opacity 0.45s ease 0.12s,
            transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.12s,
            visibility 0s;
    }

    .ring.is-instant .tool {
        transition: none !important;
    }

    .tool-copy {
        gap: 1.1em;
        padding: 2.6em 3em;
    }

    .tool-icon {
        width: 4.2em;
    }

    .tool-tag {
        font-size: 0.85em;
    }

    .tool-copy h3 {
        font-size: 3.4em;
    }

    .tool-copy p {
        font-size: 1.2em;
    }

    .tool-link {
        margin-top: 0.4em;
        padding: 0.75em 1.2em;
        font-size: 1em;
    }

    .ring-controls {
        display: flex;
        position: absolute;
        right: 5em;
        top: 8.6em;
        align-items: center;
        gap: 1em;
    }

    .ring-button {
        display: grid;
        place-items: center;
        width: 3em;
        height: 3em;
        padding: 0;
        border: max(2px, 0.12em) solid var(--ink);
        border-radius: 0;
        background: transparent;
        cursor: pointer;
        transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }

    .ring-button svg {
        width: 1.4em;
        height: 1.4em;
    }

    .ring-button:hover,
    .ring-button:focus-visible {
        border-color: var(--yellow);
        background: var(--yellow);
        color: var(--bg);
        outline: none;
    }

    .ring-dots {
        display: flex;
        gap: 0.45em;
    }

    .ring-dots i {
        width: 1.5em;
        height: 0.3em;
        background: var(--dim);
        transition: background 0.3s ease;
    }

    .ring-dots i.is-active {
        background: var(--yellow);
    }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    .tile-shimmer,
    .voice-orb,
    .voice-wave i,
    .pano-view img,
    .pano-compass i,
    .dict-typed::after,
    .chat-dots i,
    .chat-mark,
    .chat-typed::after {
        animation: none !important;
    }

    .cards-phone img {
        transition: none;
    }

    .bubble,
    .dict-result {
        opacity: 1 !important;
        transform: none !important;
    }
}
