/* 红果漫剧：温暖明快、内容优先的响应式界面 */
:root {
    --berry: #E85D75;
    --berry-deep: #D93F63;
    --orange: #F2A65A;
    --ink: #2F2530;
    --text: #332D34;
    --muted: #756A73;
    --paper: #FFF9F6;
    --panel: #F8EEF0;
    --line: #E8DADD;
    --white: #FFFFFF;
    --shadow-soft: 0 18px 55px rgba(72, 39, 51, .10);
    --shadow-card: 0 12px 36px rgba(72, 39, 51, .08);
    --radius-xl: 36px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --content: min(1180px, calc(100vw - 48px));
    --content-narrow: min(920px, calc(100vw - 48px));
    --ease: cubic-bezier(.2,.75,.25,1);
}

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

html {
    scroll-behavior: smooth;
    background: var(--paper);
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 90% 6%, rgba(242, 166, 90, .10), transparent 28rem),
        linear-gradient(180deg, #fffaf8 0%, var(--paper) 24rem, #fff 100%);
    color: var(--text);
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid rgba(217, 63, 99, .45);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: 12px;
    z-index: 9999;
    transform: translateY(-160%);
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    transition: transform .2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(232, 218, 221, .72);
    background: rgba(255, 249, 246, .88);
    backdrop-filter: blur(18px);
    transition: box-shadow .2s ease, background .2s ease;
}

.site-header.has-shadow {
    box-shadow: 0 10px 30px rgba(72, 39, 51, .07);
    background: rgba(255, 249, 246, .95);
}

.header-shell {
    width: var(--content);
    min-height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-logo {
    width: 44px;
    aspect-ratio: 1;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(217, 63, 99, .14);
}

.brand-text {
    display: grid;
    line-height: 1.18;
}

.brand-text strong {
    font-size: 1.03rem;
    letter-spacing: .02em;
    color: var(--ink);
}

.brand-text small {
    margin-top: 5px;
    color: var(--muted);
    font-size: .72rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav a {
    position: relative;
    padding: 9px 12px;
    border-radius: 999px;
    color: #5f535d;
    font-size: .9rem;
    transition: background .22s ease, color .22s ease, transform .22s ease;
}

.site-nav a:hover {
    background: rgba(232, 93, 117, .08);
    color: var(--berry-deep);
    transform: translateY(-1px);
}

.site-nav a.is-active {
    background: var(--ink);
    color: #fff;
}

.menu-toggle {
    display: none;
    align-items: center;
    gap: 9px;
    border: 0;
    border-radius: 999px;
    padding: 9px 12px;
    background: var(--panel);
    cursor: pointer;
}

.menu-toggle-lines {
    display: grid;
    gap: 3px;
}

.menu-toggle-lines i {
    display: block;
    width: 17px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.site-main {
    min-height: 70vh;
}

.section-shell {
    width: var(--content);
    margin-inline: auto;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--berry-deep);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading h2,
.page-intro h1,
.home-hero h1,
.online-hero h1,
.desktop-hero h1,
.about-hero h1,
.not-found h1 {
    margin: 0;
    color: var(--ink);
    font-weight: 850;
    letter-spacing: -.035em;
    line-height: 1.18;
}

.section-heading h2 {
    font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.section-heading > p:last-child {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--muted);
}

.section-heading-split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .8fr);
    align-items: end;
    gap: 36px;
}

.section-heading-split > p {
    justify-self: end;
    margin: 0;
    max-width: 520px;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 780;
    line-height: 1.2;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s ease, border-color .22s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--berry-deep);
    color: #fff;
    box-shadow: 0 10px 28px rgba(217, 63, 99, .22);
}

.button-primary:hover {
    box-shadow: 0 14px 36px rgba(217, 63, 99, .28);
}

.button-quiet {
    background: var(--panel);
    color: var(--ink);
}

.button-quiet:hover {
    background: #f3e1e5;
}

.button-outline {
    border-color: rgba(47, 37, 48, .16);
    background: rgba(255, 255, 255, .72);
    color: var(--ink);
}

.button-outline:hover {
    border-color: rgba(217, 63, 99, .38);
    color: var(--berry-deep);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--berry-deep);
    font-weight: 750;
    line-height: 1.35;
}

.text-link::after {
    content: "→";
    transition: transform .2s ease;
}

.text-link:hover::after {
    transform: translateX(4px);
}

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

.home-hero {
    width: var(--content);
    margin: 54px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr);
    align-items: center;
    gap: clamp(36px, 6vw, 86px);
    min-height: 580px;
}

.home-hero h1 {
    max-width: 760px;
    font-size: clamp(2.55rem, 6vw, 5rem);
}

.hero-lead {
    max-width: 720px;
    margin: 24px 0 0;
    color: #61555f;
    font-size: clamp(1.02rem, 1.6vw, 1.18rem);
}

.hero-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.hero-facts li {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .72);
    color: var(--muted);
    font-size: .82rem;
}

.hero-facts span {
    display: block;
    margin-bottom: 3px;
    color: var(--ink);
    font-size: .92rem;
    font-weight: 800;
}

.home-hero-media {
    position: relative;
    margin: 0;
}

.home-hero-media::before {
    content: "";
    position: absolute;
    inset: -28px -34px 32% 20%;
    z-index: -1;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(232, 93, 117, .2), rgba(242, 166, 90, .15));
    filter: blur(2px);
}

.home-hero-media img {
    width: 100%;
    aspect-ratio: .9;
    object-fit: cover;
    border-radius: 42px 42px 18px 42px;
    box-shadow: var(--shadow-soft);
}

.home-hero-media figcaption {
    position: absolute;
    left: -34px;
    right: 48px;
    bottom: -28px;
    padding: 18px 20px;
    border: 1px solid rgba(232, 218, 221, .88);
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    color: var(--muted);
    font-size: .88rem;
    box-shadow: var(--shadow-card);
}

.content-stage {
    padding-block: 120px 70px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
}

.work-card {
    grid-column: span 4;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 8px 28px rgba(72, 39, 51, .06);
    transition: transform .24s var(--ease), box-shadow .24s var(--ease);
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(72, 39, 51, .11);
}

.work-card-featured {
    grid-column: span 8;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
}

.work-card-media {
    display: block;
    overflow: hidden;
    background: var(--panel);
}

.work-card-media img {
    width: 100%;
    aspect-ratio: 1.35;
    object-fit: cover;
    transition: transform .45s var(--ease);
}

.work-card-featured .work-card-media img {
    height: 100%;
    min-height: 330px;
}

.work-card:hover .work-card-media img {
    transform: scale(1.035);
}

.work-card-body {
    padding: 22px;
}

.work-card h3 {
    margin: 14px 0 8px;
    color: var(--ink);
    font-size: 1.32rem;
    line-height: 1.3;
}

.work-card h3 a:hover {
    color: var(--berry-deep);
}

.work-card p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: .93rem;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.status,
.chip {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: .72rem;
    font-weight: 760;
    line-height: 1;
}

.status {
    color: #fff;
}

.state-serial {
    background: var(--berry-deep);
}

.state-complete {
    background: var(--ink);
}

.chip {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
}

.section-tail-link {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.web-watch-band {
    width: var(--content);
    margin: 50px auto 0;
    display: grid;
    grid-template-columns: 1fr minmax(320px, .72fr);
    align-items: center;
    gap: 48px;
    padding: clamp(36px, 6vw, 68px);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 12% 16%, rgba(255, 255, 255, .22), transparent 16rem),
        linear-gradient(135deg, #3d303c, #261e28);
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.web-watch-band h2 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    line-height: 1.2;
}

.web-watch-band .eyebrow {
    color: #ffd0d7;
}

.web-watch-band p:not(.eyebrow) {
    max-width: 730px;
    margin: 18px 0 0;
    color: #eadde5;
}

.web-watch-band img {
    width: 100%;
    aspect-ratio: 1.08;
    object-fit: cover;
    border-radius: 26px 26px 10px 26px;
}

.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    margin-top: 26px;
}

.inline-links a {
    border-bottom: 1px solid rgba(255, 255, 255, .45);
    color: #fff;
    font-weight: 760;
}

.inline-links a:hover {
    border-color: #fff;
}

.collection-section {
    padding-block: 110px 40px;
}

.collection-list {
    display: grid;
    gap: 14px;
}

.collection-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: center;
    gap: 28px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
}

.collection-row img {
    width: 100%;
    aspect-ratio: 1.45;
    object-fit: cover;
    border-radius: 18px;
}

.collection-row h3 {
    margin: 0 0 7px;
    color: var(--ink);
    font-size: 1.3rem;
}

.collection-row p {
    margin: 0 0 12px;
    max-width: 760px;
    color: var(--muted);
}

.update-preview {
    padding-block: 80px;
}

.update-list {
    border-top: 1px solid var(--line);
}

.update-list article {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 28px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.update-list time {
    color: var(--berry-deep);
    font-weight: 820;
}

.update-list h3 {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 1.08rem;
}

.update-list p {
    margin: 0;
    color: var(--muted);
}

.desktop-teaser {
    display: grid;
    grid-template-columns: minmax(300px, .8fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(40px, 7vw, 90px);
    padding-block: 60px 120px;
}

.desktop-teaser img {
    width: 100%;
    aspect-ratio: 1.14;
    object-fit: cover;
    border-radius: 34px;
    box-shadow: var(--shadow-card);
}

.desktop-teaser h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.2;
}

.desktop-teaser p:not(.eyebrow) {
    margin: 18px 0 24px;
    color: var(--muted);
}

.page-intro,
.about-hero,
.desktop-hero,
.online-hero {
    width: var(--content);
    margin: 54px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .7fr);
    align-items: center;
    gap: clamp(36px, 7vw, 88px);
    min-height: 470px;
}

.page-intro h1,
.about-hero h1,
.desktop-hero h1,
.online-hero h1 {
    max-width: 760px;
    font-size: clamp(2.35rem, 5.2vw, 4.45rem);
}

.page-intro p:not(.eyebrow),
.about-hero p:not(.eyebrow),
.desktop-hero p:not(.eyebrow),
.online-hero p:not(.eyebrow) {
    max-width: 760px;
    color: var(--muted);
    font-size: 1.03rem;
}

.page-intro img,
.about-hero img,
.desktop-hero img,
.online-hero img {
    width: 100%;
    max-height: 470px;
    aspect-ratio: .92;
    object-fit: cover;
    border-radius: 36px;
    box-shadow: var(--shadow-soft);
}

.online-hero figure {
    margin: 0;
    position: relative;
}

.online-hero figure img {
    max-height: none;
}

.online-hero figcaption {
    margin-top: 12px;
    color: var(--muted);
    font-size: .82rem;
}

.filter-panel {
    margin-top: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, .82);
}

.filter-copy h2 {
    margin: 0 0 4px;
    color: var(--ink);
    font-size: 1.15rem;
}

.filter-copy p {
    margin: 0;
    max-width: 520px;
    color: var(--muted);
    font-size: .85rem;
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.filter-button {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    background: #fff;
    cursor: pointer;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 720;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.filter-button:hover {
    border-color: rgba(217, 63, 99, .35);
    color: var(--berry-deep);
}

.filter-button.is-selected {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.jump-index {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.jump-index a {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--panel);
    color: var(--ink);
    font-size: .82rem;
    font-weight: 760;
}

.works-catalog {
    padding-block: 90px 120px;
}

.work-detail-list {
    display: grid;
    gap: 22px;
}

.work-detail-card {
    display: grid;
    grid-template-columns: minmax(220px, 310px) 1fr;
    gap: 30px;
    padding: 22px;
    scroll-margin-top: 110px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 8px 26px rgba(72, 39, 51, .05);
}

.work-detail-card[hidden] {
    display: none !important;
}

.work-detail-media img {
    width: 100%;
    aspect-ratio: .94;
    object-fit: cover;
    border-radius: 19px;
}

.work-detail-media .tag-row {
    margin-top: 12px;
}

.work-detail-heading {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.work-genre {
    margin: 0 0 4px;
    color: var(--berry-deep);
    font-size: .76rem;
    font-weight: 820;
    letter-spacing: .08em;
}

.work-detail-heading h3 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    line-height: 1.2;
}

.work-tagline {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 1.02rem;
}

.work-story {
    padding-top: 18px;
}

.work-story h4,
.work-insight-grid h4 {
    margin: 0 0 7px;
    color: var(--ink);
    font-size: .94rem;
}

.work-story p,
.work-insight-grid p {
    margin: 0;
    color: #655961;
    font-size: .92rem;
}

.work-insight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 18px;
}

.work-insight-grid section {
    padding: 16px;
    border-radius: 16px;
    background: var(--paper);
}

.chapter-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.chapter-strip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: .75rem;
}

.chapter-strip b {
    color: var(--berry-deep);
}

.work-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 18px;
}

.empty-filter-message {
    margin: 24px 0 0;
    padding: 20px;
    border-radius: 16px;
    background: var(--panel);
    text-align: center;
    color: var(--muted);
}

.anchor-sentinels {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}

.online-works {
    padding-block: 100px;
}

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

.online-work-grid article {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 21px;
    background: #fff;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}

.online-work-grid article:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.online-work-grid img {
    width: 100%;
    aspect-ratio: 1.12;
    object-fit: cover;
}

.online-work-grid article > div {
    padding: 18px;
}

.online-work-grid h3 {
    margin: 12px 0 6px;
    color: var(--ink);
    font-size: 1.1rem;
}

.online-work-grid p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: .86rem;
}

.browser-guide {
    width: var(--content);
    margin: 0 auto 100px;
    display: grid;
    grid-template-columns: 1fr minmax(290px, .44fr);
    gap: 24px;
}

.browser-guide-main,
.browser-notes {
    border-radius: 30px;
}

.browser-guide-main {
    padding: clamp(30px, 5vw, 58px);
    background: var(--ink);
    color: #fff;
}

.browser-guide-main .eyebrow {
    color: #ffd2d9;
}

.browser-guide-main > h2 {
    max-width: 740px;
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3.1rem);
    line-height: 1.2;
}

.step-list {
    display: grid;
    gap: 20px;
    margin-top: 34px;
}

.step-list article {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 18px;
}

.step-list article > span {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 14px;
    background: rgba(255,255,255,.09);
    color: #ffd2d9;
    font-weight: 820;
}

.step-list h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
}

.step-list p {
    margin: 0;
    color: #d8cbd3;
}

.browser-notes {
    padding: 22px;
    background: var(--panel);
}

.browser-notes img {
    width: 100%;
    aspect-ratio: 1.18;
    object-fit: cover;
    border-radius: 20px;
}

.browser-notes h2 {
    margin: 22px 0 10px;
    color: var(--ink);
    font-size: 1.28rem;
}

.browser-notes ul {
    margin: 0;
    padding-left: 1.2em;
    color: var(--muted);
}

.browser-notes li + li {
    margin-top: 7px;
}

.faq-section {
    padding-bottom: 120px;
}

.faq-list {
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item h3 {
    margin: 0;
}

.faq-item button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 0;
    padding: 22px 4px;
    background: transparent;
    cursor: pointer;
    text-align: left;
    color: var(--ink);
    font-weight: 780;
}

.faq-item button span {
    flex: 0 0 auto;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: var(--panel);
    color: var(--berry-deep);
    font-size: 1.2rem;
    transition: transform .2s ease;
}

.faq-item button[aria-expanded="true"] span {
    transform: rotate(45deg);
}

.faq-answer {
    max-width: 820px;
    padding: 0 4px 22px;
    color: var(--muted);
}

.faq-answer[hidden] {
    display: none;
}

.faq-answer p {
    margin: 0;
}

.desktop-layout-demo {
    padding-block: 100px;
}

.desktop-demo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.desktop-demo-grid article {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    transition: transform .22s var(--ease), border-color .22s ease;
}

.desktop-demo-grid article:hover {
    transform: translateY(-3px);
    border-color: rgba(217,63,99,.26);
}

.demo-label {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--panel);
    color: var(--berry-deep);
    font-size: .73rem;
    font-weight: 800;
}

.desktop-demo-grid h3 {
    margin: 16px 0 9px;
    color: var(--ink);
    font-size: 1.24rem;
}

.desktop-demo-grid p {
    margin: 0;
    color: var(--muted);
}

.desktop-work-samples {
    padding-block: 90px;
    background: linear-gradient(180deg, #fbf1f3, #fff9f6);
}

.desktop-sample-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.desktop-sample-grid article {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, .82);
}

.desktop-sample-grid img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    border-radius: 16px;
}

.desktop-sample-grid h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 1.2rem;
}

.desktop-sample-grid p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: .9rem;
}

.keyboard-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .7fr);
    align-items: center;
    gap: 50px;
    padding-block: 100px 120px;
}

.keyboard-section h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.2;
}

.keyboard-section p:not(.eyebrow) {
    color: var(--muted);
}

.key-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.key-grid span {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    background: var(--panel);
    color: var(--muted);
    font-size: .84rem;
}

kbd {
    min-width: 56px;
    padding: 6px 9px;
    border: 1px solid #d8c9cd;
    border-bottom-width: 3px;
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    text-align: center;
    font-family: inherit;
    font-weight: 800;
}

.update-timeline {
    padding-block: 90px 70px;
}

.timeline {
    position: relative;
    margin-left: 120px;
    border-left: 1px solid var(--line);
}

.timeline article {
    position: relative;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 30px;
    padding: 0 0 42px 36px;
}

.timeline article::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 8px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--berry-deep);
    box-shadow: 0 0 0 6px rgba(217, 63, 99, .10);
}

.timeline time {
    margin-left: -192px;
    color: var(--berry-deep);
    font-weight: 820;
    text-align: right;
}

.timeline h3 {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 1.18rem;
}

.timeline p {
    margin: 0;
    max-width: 780px;
    color: var(--muted);
}

.serial-overview {
    padding-block: 50px 90px;
}

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

.serial-grid article {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
}

.serial-grid h3 {
    margin: 0 0 8px;
    color: var(--ink);
}

.serial-grid p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: .9rem;
}

.completed-note {
    display: grid;
    grid-template-columns: minmax(260px, .62fr) 1fr;
    align-items: center;
    gap: 52px;
    padding-bottom: 120px;
}

.completed-note img {
    width: 100%;
    aspect-ratio: 1.25;
    object-fit: cover;
    border-radius: 28px;
}

.completed-note h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.2;
}

.completed-note p:not(.eyebrow) {
    margin: 16px 0 24px;
    color: var(--muted);
}

.about-points {
    padding-block: 100px;
}

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

.about-point-grid article {
    padding: 24px;
    border-top: 3px solid rgba(217, 63, 99, .35);
    border-radius: 0 0 18px 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(72, 39, 51, .05);
}

.about-point-grid h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 1.1rem;
}

.about-point-grid p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
}

.about-content-map {
    padding-block: 90px;
    background: var(--panel);
}

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

.content-map-grid article {
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255,255,255,.82);
}

.content-map-grid img {
    width: 100%;
    aspect-ratio: 1.24;
    object-fit: cover;
}

.content-map-grid article > div {
    padding: 0 18px 22px;
}

.content-map-grid h3 {
    margin: 18px 0 8px;
    color: var(--ink);
}

.content-map-grid p {
    margin: 0;
    color: var(--muted);
    font-size: .88rem;
}

.about-next {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
    padding-block: 110px 130px;
}

.about-next h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.2;
}

.about-next p:not(.eyebrow) {
    margin: 14px 0 0;
    color: var(--muted);
}

.not-found {
    width: var(--content-narrow);
    min-height: 64vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
    gap: 50px;
    padding-block: 90px;
}

.not-found-code {
    color: rgba(217, 63, 99, .16);
    font-size: clamp(5rem, 16vw, 10rem);
    font-weight: 900;
    letter-spacing: -.09em;
    line-height: 1;
}

.not-found h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.not-found p:not(.eyebrow) {
    color: var(--muted);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #2c232d;
    color: #eee4ea;
}

.footer-grid {
    width: var(--content);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr .6fr .6fr;
    gap: 60px;
    padding-block: 60px;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 12px;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 850;
}

.footer-grid p {
    max-width: 560px;
    margin: 0;
    color: #cbbcc6;
}

.footer-grid h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: .96rem;
}

.footer-grid section:not(:first-child) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

.footer-grid section:not(:first-child) a {
    color: #cbbcc6;
    font-size: .88rem;
}

.footer-grid section:not(:first-child) a:hover {
    color: #fff;
}

.footer-bottom {
    width: var(--content);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0 28px;
    border-top: 1px solid rgba(255,255,255,.08);
    color: #aa9aa4;
    font-size: .8rem;
}

@media (max-width: 1080px) {
    :root {
        --content: min(100% - 36px, 1000px);
        --content-narrow: min(100% - 36px, 860px);
    }

    .site-nav {
        gap: 2px;
    }

    .site-nav a {
        padding-inline: 9px;
        font-size: .84rem;
    }

    .home-hero {
        grid-template-columns: minmax(0, 1fr) minmax(310px, .7fr);
        gap: 44px;
    }

    .work-card {
        grid-column: span 6;
    }

    .work-card-featured {
        grid-column: span 12;
    }

    .online-work-grid,
    .about-point-grid,
    .content-map-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .browser-guide {
        grid-template-columns: 1fr 320px;
    }

    .desktop-demo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .header-shell {
        min-height: 70px;
    }

    .brand-text small {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: fixed;
        left: 18px;
        right: 18px;
        top: 78px;
        display: grid;
        gap: 6px;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: rgba(255, 249, 246, .98);
        box-shadow: var(--shadow-soft);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity .2s ease, transform .2s ease;
    }

    .site-nav.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .site-nav a {
        padding: 12px 14px;
        border-radius: 12px;
    }

    .home-hero,
    .page-intro,
    .about-hero,
    .desktop-hero,
    .online-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .home-hero {
        padding-top: 26px;
    }

    .home-hero-media {
        max-width: 660px;
    }

    .home-hero-media img {
        aspect-ratio: 1.5;
    }

    .home-hero-media figcaption {
        position: static;
        margin-top: 10px;
    }

    .page-intro img,
    .about-hero img,
    .desktop-hero img,
    .online-hero img {
        max-height: 390px;
        aspect-ratio: 1.6;
    }

    .section-heading-split {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .section-heading-split > p {
        justify-self: start;
    }

    .web-watch-band,
    .desktop-teaser,
    .keyboard-section,
    .completed-note {
        grid-template-columns: 1fr;
    }

    .web-watch-band img {
        max-height: 340px;
        aspect-ratio: 1.7;
    }

    .desktop-teaser img {
        max-height: 360px;
        aspect-ratio: 1.65;
    }

    .filter-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .filter-controls {
        justify-content: flex-start;
    }

    .work-detail-card {
        grid-template-columns: 220px 1fr;
    }

    .browser-guide {
        grid-template-columns: 1fr;
    }

    .browser-notes {
        display: grid;
        grid-template-columns: 200px 1fr;
        gap: 0 20px;
        align-items: start;
    }

    .browser-notes img {
        grid-row: 1 / span 2;
    }

    .desktop-sample-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid section:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    :root {
        --content: min(100% - 24px, 640px);
        --content-narrow: min(100% - 24px, 640px);
        --radius-xl: 26px;
        --radius-lg: 20px;
    }

    body {
        background:
            radial-gradient(circle at 100% 0, rgba(242, 166, 90, .09), transparent 20rem),
            var(--paper);
    }

    .header-shell {
        min-height: 64px;
    }

    .brand-logo {
        width: 38px;
        border-radius: 11px;
    }

    .brand-text strong {
        font-size: .94rem;
    }

    .site-nav {
        top: 70px;
        left: 12px;
        right: 12px;
    }

    .home-hero {
        margin-top: 30px;
        gap: 34px;
    }

    .home-hero h1 {
        font-size: clamp(2.25rem, 11vw, 3.4rem);
    }

    .hero-lead {
        font-size: .98rem;
    }

    .hero-facts {
        grid-template-columns: 1fr;
    }

    .home-hero-media img {
        aspect-ratio: 1.15;
        border-radius: 28px;
    }

    .content-stage {
        padding-block: 86px 50px;
    }

    .feature-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .work-card,
    .work-card-featured {
        grid-column: auto;
        display: block;
    }

    .work-card-featured .work-card-media img,
    .work-card-media img {
        min-height: 0;
        height: auto;
        aspect-ratio: 1.35;
    }

    .web-watch-band {
        gap: 28px;
        padding: 28px 22px;
    }

    .web-watch-band img {
        aspect-ratio: 1.25;
    }

    .collection-section {
        padding-block: 84px 20px;
    }

    .collection-row {
        grid-template-columns: 104px 1fr;
        align-items: start;
        gap: 16px;
        padding: 14px 0;
    }

    .collection-row img {
        aspect-ratio: 1;
    }

    .collection-row h3 {
        font-size: 1.08rem;
    }

    .collection-row p {
        font-size: .86rem;
    }

    .update-list article {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .desktop-teaser {
        padding-block: 34px 90px;
    }

    .page-intro,
    .about-hero,
    .desktop-hero,
    .online-hero {
        margin-top: 34px;
        gap: 28px;
    }

    .page-intro h1,
    .about-hero h1,
    .desktop-hero h1,
    .online-hero h1 {
        font-size: clamp(2.15rem, 10vw, 3.25rem);
    }

    .page-intro img,
    .about-hero img,
    .desktop-hero img,
    .online-hero img {
        aspect-ratio: 1.22;
        border-radius: 26px;
    }

    .filter-panel {
        margin-top: 52px;
        padding: 20px;
    }

    .filter-controls {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .filter-button {
        flex: 0 0 auto;
    }

    .works-catalog {
        padding-block: 70px 90px;
    }

    .work-detail-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 14px;
    }

    .work-detail-media img {
        aspect-ratio: 1.35;
    }

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

    .online-works {
        padding-block: 78px;
    }

    .online-work-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .online-work-grid article > div {
        padding: 14px;
    }

    .online-work-grid h3 {
        font-size: 1rem;
    }

    .browser-guide {
        margin-bottom: 84px;
    }

    .browser-guide-main {
        padding: 26px 20px;
    }

    .step-list article {
        grid-template-columns: 44px 1fr;
        gap: 12px;
    }

    .step-list article > span {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .browser-notes {
        display: block;
    }

    .browser-notes img {
        margin-bottom: 18px;
    }

    .faq-section {
        padding-bottom: 90px;
    }

    .desktop-layout-demo {
        padding-block: 78px;
    }

    .desktop-work-samples {
        padding-block: 74px;
    }

    .desktop-sample-grid article {
        grid-template-columns: 110px 1fr;
        gap: 14px;
    }

    .desktop-sample-grid img {
        min-height: 150px;
    }

    .keyboard-section {
        gap: 28px;
        padding-block: 80px 90px;
    }

    .key-grid {
        grid-template-columns: 1fr;
    }

    .update-timeline {
        padding-block: 70px 44px;
    }

    .timeline {
        margin-left: 6px;
    }

    .timeline article {
        grid-template-columns: 1fr;
        gap: 5px;
        padding-left: 28px;
        padding-bottom: 34px;
    }

    .timeline time {
        margin-left: 0;
        text-align: left;
    }

    .serial-overview {
        padding-block: 34px 76px;
    }

    .serial-grid {
        grid-template-columns: 1fr;
    }

    .completed-note {
        gap: 30px;
        padding-bottom: 92px;
    }

    .about-points {
        padding-block: 78px;
    }

    .about-point-grid,
    .content-map-grid {
        grid-template-columns: 1fr;
    }

    .about-content-map {
        padding-block: 72px;
    }

    .content-map-grid article {
        display: grid;
        grid-template-columns: 120px 1fr;
        align-items: stretch;
    }

    .content-map-grid img {
        height: 100%;
        aspect-ratio: auto;
    }

    .content-map-grid article > div {
        padding: 0 14px 14px;
    }

    .about-next {
        gap: 18px;
        padding-block: 84px 100px;
    }

    .not-found {
        grid-template-columns: 1fr;
        gap: 12px;
        min-height: 58vh;
        text-align: center;
    }

    .not-found .hero-actions {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-block: 48px;
    }

    .footer-grid section:first-child {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 6px;
    }
}

@media (max-width: 460px) {
    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .inline-links {
        align-items: flex-start;
        flex-direction: column;
    }

    .collection-row {
        grid-template-columns: 88px 1fr;
    }

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

    .online-work-grid article {
        display: grid;
        grid-template-columns: 120px 1fr;
    }

    .online-work-grid img {
        height: 100%;
        aspect-ratio: auto;
    }

    .desktop-sample-grid article {
        grid-template-columns: 1fr;
    }

    .desktop-sample-grid img {
        max-height: 220px;
    }

    .content-map-grid article {
        grid-template-columns: 96px 1fr;
    }
}

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