@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;
}

/* The founder page's heavy Chinese face (scripts/subset-founder-font.py also takes the homepage's
   headings). One weight only, and only for the heavy headings: body text keeps the system 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;
}

/* The homepage shares the founder page's look: black, warm white and one yellow, heavy type,
   thick rules, no glows, gradients or rounded cards. */
.home-page {
    --bg: #111110;
    --ink: #f2f1ea;
    --soft: #c9c8c0;
    --muted: #a8a79f;
    --faint: #8d8c84;
    --yellow: #ffd100;
    --card: #1c1c1a;
    --line: rgba(242, 241, 234, 0.3);
    --line-faint: rgba(242, 241, 234, 0.14);
    --on-yellow-line: rgba(17, 17, 16, 0.35);
    --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, 5vw, 72px);
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
}

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

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

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

:where(.home-body) p {
    margin: 0;
}

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

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

:where(.home-body) a {
    color: inherit;
    text-decoration: none;
}

.home-body a:focus-visible,
.home-body button:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 3px;
}

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

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

.home-bar {
    position: relative;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 36px;
    height: 72px;
    padding: 0 var(--pad-x);
}

.home-bar .brand {
    margin-right: auto;
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
}

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

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

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

.home-nav {
    display: flex;
    align-items: center;
    gap: 36px;
    font-size: 15px;
    font-weight: 600;
}

.home-nav a:hover {
    color: var(--yellow);
}

.home-bar .language-switcher {
    opacity: 1;
}

.home-bar .language-toggle {
    min-width: 44px;
    min-height: 40px;
    padding: 0 12px;
    border: 2px solid var(--ink);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-size: 13px;
}

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

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

.home-bar .language-option {
    border-radius: 0;
}

/* ---------- Film hero ---------- */

.film-hero {
    display: grid;
    grid-template-columns: minmax(340px, 480px) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "card screen"
        "card works";
}

.film-card {
    grid-area: card;
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    padding: 44px 48px 48px;
    background: var(--yellow);
    color: var(--bg);
}

.film-kicker {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 16px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--bg);
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.08em;
}

/* Sized to the card: "Antarctica" and 《南极》 both fill it without overflowing. */
.film-title {
    margin-top: 40px;
    font-family: var(--heavy);
    font-weight: 900;
    font-size: 64px;
    font-size: min(112px, 19cqi);
    line-height: 1;
    letter-spacing: -0.02em;
}

:lang(zh-CN) .film-title {
    font-size: min(112px, 24cqi);
}

.film-body {
    margin-top: 28px;
    font-size: clamp(18px, 1.6vw, 22px);
    font-weight: 700;
    line-height: 1.5;
}

.film-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 32px 0 0;
    border-top: 1px solid var(--on-yellow-line);
}

.film-facts div {
    padding: 12px 0 0 16px;
    border-left: 1px solid var(--on-yellow-line);
}

.film-facts div:first-child {
    padding-left: 0;
    border-left: 0;
}

.film-facts dt {
    font-family: var(--mono);
    font-size: 12px;
}

.film-facts dd {
    margin: 6px 0 0;
    font-family: var(--heavy);
    font-size: 34px;
    font-weight: 900;
    line-height: 1.1;
}

.film-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: auto;
    padding-top: 40px;
}

.film-play {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    height: 60px;
    padding: 0 22px;
    border: 0;
    background: var(--bg);
    color: var(--yellow);
    font: 800 18px var(--sans);
    cursor: pointer;
    transition: color 0.2s ease;
}

.film-play svg {
    width: 18px;
    height: 18px;
}

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

.film-how {
    display: inline-flex;
    gap: 8px;
    align-self: flex-start;
    font-size: 16px;
    font-weight: 800;
}

.film-how:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.film-card a:focus-visible,
.film-card button:focus-visible {
    outline-color: var(--bg);
}

/* 14:9 keeps both the title on the left of the cover and the face on the right; the cap keeps
   the first screen within the window on very wide displays. */
.film-screen {
    grid-area: screen;
    position: relative;
    aspect-ratio: 14 / 9;
    max-height: max(420px, calc(100svh - 280px));
    overflow: hidden;
    background: #000;
}

.film-screen .film-cover,
.film-screen .film-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.film-screen .film-cover {
    object-fit: cover;
    object-position: 50% 50%;
}

.film-screen .film-video {
    object-fit: contain;
    background: #000;
}

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

.film-works {
    grid-area: works;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(24px, 4vw, 48px);
    padding: 28px var(--pad-x) 32px 36px;
}

.film-works-label {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.film-works-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    font-family: var(--heavy);
    font-size: clamp(34px, 3.9vw, 56px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    transition: color 0.2s ease;
}

.film-works-arrow {
    color: var(--yellow);
}

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

/* ---------- Sections ---------- */

.home-section {
    padding-top: 96px;
}

.home-section:last-child {
    padding-bottom: 96px;
}

.home-inner {
    width: min(1296px, 100% - 2 * var(--pad-x));
    margin: 0 auto;
}

.rule-label {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    border-top: 3px solid var(--ink);
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.section-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 28px;
    margin: 28px 0 40px;
    font-family: var(--heavy);
    font-size: clamp(44px, 5vw, 72px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
}

.section-title .title-alt {
    font-family: var(--sans);
    font-size: clamp(19px, 2vw, 28px);
    font-weight: 700;
    letter-spacing: 0;
    color: var(--faint);
}

/* ---------- Core products ---------- */

.core {
    display: grid;
    grid-template-columns: minmax(0, 520fr) minmax(0, 728fr);
    column-gap: 48px;
    padding: 32px 0;
    border-top: 1px solid var(--line);
}

.core:last-child {
    border-bottom: 1px solid var(--line);
}

.core-media {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.core-copy {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.core-meta {
    display: flex;
    gap: 14px;
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.core-no {
    font-weight: 700;
    color: var(--yellow);
}

.core h3 {
    font-family: var(--heavy);
    font-size: clamp(32px, 3.1vw, 44px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
}

.core-title-icon {
    display: flex;
    align-items: center;
    gap: 14px;
}

.core-title-icon img {
    width: 1em;
    height: 1em;
}

.core-body {
    font-size: 17px;
    line-height: 1.6;
    color: var(--soft);
}

.core-points {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
    line-height: 1.5;
    color: var(--muted);
}

.core-points li {
    display: flex;
    gap: 12px;
}

.core-points li::before {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    margin-top: 0.45em;
    background: var(--yellow);
}

.core-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
}

.core-link {
    display: inline-flex;
    gap: 8px;
    padding-bottom: 3px;
    border-bottom: 3px solid var(--yellow);
    font-size: 16px;
    font-weight: 800;
    transition: color 0.2s ease;
}

.core-link.is-quiet {
    border-bottom-color: var(--line);
}

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

/* ---------- Small tools ---------- */

.tools-title {
    margin-top: 80px;
    margin-bottom: 32px;
    font-size: clamp(40px, 3.9vw, 56px);
}

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

.tool-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 18px;
    border-top: 3px solid var(--ink);
}

/* The cards in a row share their rows, so names, tags, bodies and links line up however long
   each card's copy runs. */
@supports (grid-template-rows: subgrid) {
    .tool-card {
        display: grid;
        grid-row: span 4;
        grid-template-rows: subgrid;
        row-gap: 10px;
    }
}

.tool-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--heavy);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.15;
}

.tool-icon {
    flex: none;
    width: 40px;
    height: 40px;
}

.tool-icon.is-round {
    border-radius: 50%;
}

.tool-icon.is-glyph {
    display: grid;
    place-items: center;
    background: var(--ink);
    color: var(--bg);
}

.tool-icon.is-glyph svg {
    width: 24px;
    height: 24px;
}

.tool-tag {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--faint);
}

.tool-body {
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
}

.tool-link {
    display: inline-flex;
    gap: 6px;
    align-self: start;
    font-size: 14px;
    font-weight: 700;
    color: var(--yellow);
}

.tool-link:hover {
    color: var(--ink);
}

/* ---------- Sky Studio works ---------- */

.works-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 48px;
    margin: 28px 0 40px;
}

.works-head .section-title {
    margin: 0;
}

.works-head p {
    max-width: 520px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--muted);
}

.works-feature {
    display: grid;
    grid-template-columns: minmax(0, 840fr) minmax(0, 432fr);
    gap: 24px;
}

.works-lead {
    position: relative;
    display: block;
}

.works-lead img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.works-caption {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.works-lead .works-caption {
    position: absolute;
    left: 0;
    bottom: 0;
    max-width: calc(100% - 48px);
    padding: 18px 24px 20px;
    background: var(--bg);
}

.works-meta {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--yellow);
}

.works-name {
    font-family: var(--heavy);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.25;
    transition: color 0.2s ease;
}

.works-lead .works-name {
    font-size: clamp(22px, 2.1vw, 30px);
}

.works-list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 3px solid var(--ink);
}

.works-list li {
    flex: 1;
    display: flex;
    border-bottom: 1px solid var(--line);
}

.works-list a {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 0;
}

.works-list img {
    flex: none;
    width: 44%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.works-lead:hover .works-name,
.works-list a:hover .works-name {
    color: var(--yellow);
}

.works-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.works-tile {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.works-tile img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.works-tile-name {
    font-size: 18px;
    font-weight: 800;
    transition: color 0.2s ease;
}

.works-tile:hover .works-tile-name {
    color: var(--yellow);
}

.works-price {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    min-height: 220px;
    padding: 24px 26px;
    background: var(--yellow);
    color: var(--bg);
}

.works-price:focus-visible {
    outline-color: var(--ink);
}

.works-price-label {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.08em;
}

.works-price-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 15px;
    line-height: 1.5;
}

.works-price-from {
    font-family: var(--heavy);
    font-size: clamp(44px, 4.4vw, 64px);
    font-weight: 900;
    line-height: 1;
}

.works-price-link {
    font-size: 16px;
    font-weight: 800;
}

.works-price:hover .works-price-link {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.works-more {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 16px;
}

.works-more-label {
    color: var(--muted);
}

.works-more a {
    font-weight: 700;
}

.works-more a:hover {
    color: var(--yellow);
}

.works-more .works-open {
    margin-left: auto;
    font-weight: 800;
    color: var(--yellow);
}

.works-more .works-open:hover {
    color: var(--ink);
}

/* ---------- Contact ---------- */

.home-contact {
    padding-top: 104px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 56px;
}

.contact-portrait {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--yellow);
}

.contact-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

.contact-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 14px;
    border-top: 3px solid var(--ink);
}

.contact-name {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 20px;
    font-family: var(--heavy);
    font-size: clamp(56px, 5.6vw, 80px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.01em;
}

.contact-name .title-alt {
    font-size: 0.45em;
    color: var(--faint);
}

.contact-role a {
    font-size: 20px;
    font-weight: 800;
    color: var(--yellow);
}

.contact-role a:hover {
    color: var(--ink);
}

.contact-body {
    max-width: 720px;
    font-size: 17px;
    line-height: 1.65;
    color: var(--muted);
}

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

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px;
    border: 2px solid var(--ink);
    font-size: 16px;
    font-weight: 800;
    transition: background 0.2s ease, color 0.2s ease;
}

.contact-button:hover {
    background: var(--ink);
    color: var(--bg);
}

.contact-button.is-primary {
    border-color: var(--yellow);
    background: var(--yellow);
    color: var(--bg);
}

.contact-button.is-primary:hover {
    border-color: var(--ink);
    background: var(--ink);
}

/* ---------- Narrower screens ---------- */

@media (max-width: 1100px) {
    .tool-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .film-hero {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        grid-template-areas:
            "screen"
            "card"
            "works";
    }

    .film-screen {
        aspect-ratio: 16 / 9;
        max-height: none;
    }

    .film-card {
        padding: 28px var(--pad-x) 32px;
    }

    .film-title {
        margin-top: 28px;
        font-size: min(112px, 15cqi);
    }

    :lang(zh-CN) .film-title {
        font-size: min(112px, 18cqi);
    }

    .film-works {
        padding: 24px var(--pad-x) 8px;
    }

    .core {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 22px;
    }

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

    .works-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .works-feature {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .contact-grid {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .home-bar {
        gap: 18px;
        height: 64px;
    }

    .home-bar .brand > span:last-child {
        display: none;
    }

    .home-nav {
        gap: 18px;
        font-size: 14px;
    }

    .film-title {
        font-size: min(112px, 19cqi);
    }

    :lang(zh-CN) .film-title {
        font-size: min(112px, 24cqi);
    }

    .film-facts dd {
        font-size: 28px;
    }

    .home-section {
        padding-top: 72px;
    }

    .home-section:last-child {
        padding-bottom: 72px;
    }

    .core-body {
        font-size: 16px;
    }

    .tool-grid,
    .works-tiles {
        grid-template-columns: minmax(0, 1fr);
    }

    .works-lead .works-caption {
        position: static;
        max-width: none;
        padding: 12px 0 4px;
    }

    .works-list img {
        width: 40%;
    }

    .works-more .works-open {
        margin-left: 0;
    }

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

    .contact-portrait {
        width: 160px;
    }
}
