
:root {
    --berry: #E85D75;
    --berry-deep: #D93F63;
    --orange: #F2A65A;
    --ink: #2F2530;
    --text: #332D34;
    --muted: #756A73;
    --paper: #FFF9F6;
    --soft: #F8EEF0;
    --white: #FFFFFF;
    --line: #EADDE0;
    --line-strong: #DCCBD0;
    --shadow-sm: 0 8px 24px rgba(74, 39, 52, .08);
    --shadow-md: 0 18px 50px rgba(74, 39, 52, .12);
    --shadow-lg: 0 28px 80px rgba(74, 39, 52, .16);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-pill: 999px;
    --shell: min(1180px, calc(100% - 40px));
    --ease: cubic-bezier(.2, .75, .25, 1);
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 0%, rgba(232, 93, 117, .07), transparent 28rem),
        linear-gradient(180deg, #fffdfa 0, var(--paper) 42rem, var(--paper) 100%);
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

button,
input {
    font: inherit;
}

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

button {
    color: inherit;
}

[hidden] {
    display: none !important;
}

::selection {
    background: rgba(232, 93, 117, .22);
    color: var(--ink);
}

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

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

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

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

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(234, 221, 224, .84);
    background: rgba(255, 249, 246, .9);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: var(--shell);
    min-height: 78px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-symbol {
    width: 44px;
    height: 44px;
    border-radius: 15px 15px 18px 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: end;
    gap: 3px;
    padding: 10px 9px;
    background: linear-gradient(145deg, var(--berry) 0%, var(--berry-deep) 100%);
    box-shadow: 0 12px 28px rgba(217, 63, 99, .22);
    transform: rotate(-2deg);
}

.brand-symbol span {
    display: block;
    border-radius: 999px;
    background: #fff;
}

.brand-symbol span:nth-child(1) { height: 48%; opacity: .78; }
.brand-symbol span:nth-child(2) { height: 82%; }
.brand-symbol span:nth-child(3) { height: 62%; opacity: .88; }

.brand-copy {
    display: grid;
    gap: 1px;
    line-height: 1.22;
}

.brand-copy strong {
    color: var(--ink);
    font-size: 1.04rem;
    letter-spacing: .03em;
}

.brand-copy small {
    color: var(--muted);
    font-size: .72rem;
}

.primary-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border: 1px solid rgba(234, 221, 224, .9);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .72);
}

.primary-nav a {
    position: relative;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    color: var(--muted);
    font-size: .92rem;
    font-weight: 650;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.primary-nav a:hover {
    color: var(--ink);
    background: var(--soft);
}

.primary-nav a[aria-current="page"] {
    color: var(--berry-deep);
    background: rgba(232, 93, 117, .1);
}

.header-cta {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border-radius: var(--radius-pill);
    color: var(--white);
    background: var(--ink);
    font-size: .9rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(47, 37, 48, .14);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(47, 37, 48, .2);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-backdrop {
    position: fixed;
    z-index: 90;
    inset: 0;
    background: rgba(47, 37, 48, .24);
    backdrop-filter: blur(2px);
}

.hero {
    min-height: 660px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .8fr);
    align-items: center;
    gap: clamp(36px, 6vw, 84px);
    padding-block: 74px 88px;
}

.hero-copy {
    padding-top: 10px;
}

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

.hero h1,
.subhero h1,
.desktop-hero h1,
.library-hero h1,
.work-detail-hero h1,
.error-card h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(2.6rem, 5.6vw, 5.25rem);
    line-height: 1.04;
    letter-spacing: -.045em;
}

.hero-lead {
    max-width: 700px;
    margin: 25px 0 0;
    color: #554951;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.9;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 19px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-size: .94rem;
    font-weight: 760;
    transition: transform .2s var(--ease), border-color .2s ease, background .2s ease, box-shadow .2s var(--ease);
}

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

.button-primary {
    color: var(--white);
    background: var(--berry-deep);
    box-shadow: 0 13px 30px rgba(217, 63, 99, .23);
}

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

.button-ghost {
    color: var(--ink);
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, .74);
}

.button-ghost:hover {
    border-color: rgba(232, 93, 117, .35);
    background: #fff;
}

.button-soft {
    color: var(--berry-deep);
    background: rgba(232, 93, 117, .1);
}

.button-light {
    color: var(--ink);
    background: var(--white);
}

.button-block {
    width: 100%;
}

.hero-facts {
    margin: 44px 0 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.hero-facts div {
    padding-left: 14px;
    border-left: 2px solid rgba(232, 93, 117, .22);
}

.hero-facts dt {
    color: var(--muted);
    font-size: .74rem;
}

.hero-facts dd {
    margin: 5px 0 0;
    color: var(--ink);
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.45;
}

.hero-visual {
    position: relative;
    min-height: 540px;
    display: grid;
    place-items: center;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: 6% 2% 8%;
    border-radius: 48% 52% 44% 56% / 42% 46% 54% 58%;
    background: linear-gradient(150deg, rgba(232, 93, 117, .14), rgba(242, 166, 90, .2));
    transform: rotate(5deg);
}

.hero-poster {
    position: relative;
    z-index: 1;
    width: min(390px, 86%);
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 38px;
    background: rgba(255, 255, 255, .78);
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 29px;
    object-fit: cover;
    background: var(--soft);
}

.hero-poster figcaption {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    display: grid;
    gap: 4px;
    padding: 14px 15px;
    border-radius: 16px;
    color: var(--white);
    background: rgba(47, 37, 48, .82);
    backdrop-filter: blur(14px);
}

.hero-poster figcaption span {
    font-size: .72rem;
    opacity: .72;
}

.hero-poster figcaption strong {
    font-size: .9rem;
    line-height: 1.4;
}

.floating-card {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: var(--radius-pill);
    color: var(--ink);
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--shadow-sm);
    font-size: .8rem;
    font-weight: 700;
}

.floating-card-top {
    top: 21%;
    left: 0;
}

.floating-card-bottom {
    right: -2%;
    bottom: 18%;
}

.mini-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--berry);
    box-shadow: 0 0 0 5px rgba(232, 93, 117, .13);
}

.mini-wave {
    width: 20px;
    height: 10px;
    border-top: 2px solid var(--orange);
    border-bottom: 2px solid var(--berry);
    border-radius: 50%;
    transform: rotate(-8deg);
}

.section-block {
    padding-block: 88px;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-heading h2,
.index-header h2,
.device-copy h2,
.watch-strip h2,
.editorial-aside h2,
.keyboard-card h2,
.desktop-compare h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.8rem, 3.2vw, 3.1rem);
    line-height: 1.12;
    letter-spacing: -.035em;
}

.section-heading > p:last-child,
.split-heading > p,
.device-copy > p,
.watch-strip-copy > p,
.editorial-aside > p,
.keyboard-card p,
.desktop-compare > div:first-child > p {
    margin: 16px 0 0;
    color: var(--muted);
    line-height: 1.9;
}

.split-heading {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .62fr);
    gap: 48px;
    align-items: end;
}

.split-heading > p {
    margin: 0;
}

.compact-heading {
    max-width: 660px;
}

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

.work-card {
    grid-column: span 4;
    overflow: hidden;
    border: 1px solid rgba(234, 221, 224, .9);
    border-radius: 26px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 10px 30px rgba(74, 39, 52, .05);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s ease;
}

.work-card:hover {
    transform: translateY(-5px);
    border-color: rgba(232, 93, 117, .24);
    box-shadow: var(--shadow-md);
}

.work-card-large {
    grid-column: span 8;
    display: grid;
    grid-template-columns: minmax(260px, .82fr) minmax(0, 1fr);
}

.work-media {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 250px;
    background: var(--soft);
}

.work-card-large .work-media {
    min-height: 100%;
}

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

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

.work-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 7px 10px;
    border-radius: var(--radius-pill);
    color: var(--white);
    background: rgba(47, 37, 48, .78);
    backdrop-filter: blur(10px);
    font-size: .72rem;
    font-weight: 740;
}

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

.work-card-large .work-card-body {
    align-self: center;
    padding: 34px;
}

.work-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 680;
}

.work-meta > span:not(.status-pill) {
    position: relative;
}

.work-meta > span:not(.status-pill) + span:not(.status-pill)::before {
    content: "·";
    margin-right: 10px;
    color: #BAABB0;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 0 8px;
    border-radius: var(--radius-pill);
    font-size: .7rem;
    font-weight: 800;
}

.status-done {
    color: #73501F;
    background: rgba(242, 166, 90, .18);
}

.status-serial {
    color: #A42A4A;
    background: rgba(232, 93, 117, .13);
}

.work-card h3,
.secondary-card h3,
.story-row h3,
.horizontal-work h3,
.text-tile h3,
.desktop-work h3,
.library-card h2,
.related-card h3 {
    margin: 10px 0 0;
    color: var(--ink);
    font-size: 1.2rem;
    line-height: 1.35;
    letter-spacing: -.02em;
}

.work-card h3 a:hover,
.secondary-card h3 a:hover,
.story-row h3 a:hover,
.horizontal-work h3 a:hover,
.text-tile h3 a:hover,
.desktop-work h3 a:hover,
.library-card h2 a:hover,
.related-card h3 a:hover {
    color: var(--berry-deep);
}

.work-card p,
.secondary-card p,
.story-row p,
.horizontal-work p,
.text-tile p,
.desktop-work p,
.library-card p,
.related-card p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.8;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    color: var(--berry-deep);
    font-size: .86rem;
    font-weight: 760;
}

.text-link span {
    transition: transform .2s ease;
}

.text-link:hover span {
    transform: translateX(3px);
}

.watch-strip {
    margin-top: 28px;
    color: var(--white);
    background:
        radial-gradient(circle at 80% 10%, rgba(242, 166, 90, .22), transparent 28rem),
        linear-gradient(130deg, #352936 0%, #4A2C39 58%, #59303B 100%);
}

.watch-strip-inner {
    min-height: 430px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .65fr);
    gap: 60px;
    align-items: center;
    padding-block: 68px;
}

.watch-strip .eyebrow {
    color: #FFD7B3;
}

.watch-strip h2 {
    color: #fff;
}

.watch-strip-copy > p {
    color: rgba(255, 255, 255, .72);
}

.inline-link-light {
    display: inline-flex;
    align-items: center;
    padding: 12px 8px;
    color: rgba(255, 255, 255, .86);
    font-size: .9rem;
    font-weight: 700;
}

.watch-strip-panel {
    display: grid;
    gap: 12px;
}

.panel-line {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 14px;
    align-items: center;
    padding: 15px 16px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 16px;
    background: rgba(255, 255, 255, .06);
}

.panel-line > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: #FFD7B3;
    background: rgba(242, 166, 90, .12);
    font-size: .78rem;
    font-weight: 800;
}

.panel-line div {
    display: grid;
    gap: 2px;
}

.panel-line strong {
    font-size: .94rem;
}

.panel-line small {
    color: rgba(255, 255, 255, .56);
    font-size: .76rem;
}

.category-cloud {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.category-chip {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 26px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, .68);
    transition: transform .22s var(--ease), border-color .22s ease, background .22s ease;
}

.category-chip:hover {
    transform: translateY(-3px);
    border-color: rgba(232, 93, 117, .32);
    background: #fff;
}

.category-chip strong {
    color: var(--ink);
    font-size: 1.04rem;
}

.category-chip span {
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.7;
}

.editorial-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(290px, .62fr);
    gap: 44px;
    align-items: start;
}

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

.story-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 36px;
    gap: 18px;
    align-items: center;
    padding-block: 18px;
    border-bottom: 1px solid var(--line);
}

.story-thumb {
    overflow: hidden;
    width: 110px;
    aspect-ratio: 1.25 / 1;
    border-radius: 14px;
    background: var(--soft);
}

.story-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-row h3 {
    margin-top: 5px;
}

.story-row p {
    margin-top: 5px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.story-arrow {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: var(--berry-deep);
    background: rgba(232, 93, 117, .1);
    font-weight: 800;
}

.editorial-aside {
    position: sticky;
    top: 106px;
    padding: 28px;
    border: 1px solid rgba(234, 221, 224, .9);
    border-radius: 26px;
    background: linear-gradient(160deg, #fff 0%, #fff8f7 100%);
    box-shadow: var(--shadow-sm);
}

.editorial-aside h2 {
    font-size: 1.6rem;
}

.rank-list {
    list-style: none;
    margin: 24px 0;
    padding: 0;
    display: grid;
}

.rank-list li {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.rank-list > li > span {
    color: #BBA9AF;
    font-size: .72rem;
    font-weight: 800;
}

.rank-list a {
    display: grid;
    gap: 2px;
}

.rank-list strong {
    color: var(--ink);
    font-size: .9rem;
}

.rank-list small {
    color: var(--muted);
    font-size: .72rem;
}

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

.secondary-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, .72);
}

.secondary-card img {
    width: 100%;
    height: 170px;
    border-radius: 16px;
    object-fit: cover;
    background: var(--soft);
}

.mini-label {
    color: var(--berry-deep);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
}

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

.tag-row span {
    padding: 5px 8px;
    border-radius: var(--radius-pill);
    color: #76636B;
    background: var(--soft);
    font-size: .68rem;
    font-weight: 700;
}

.device-callout {
    display: grid;
    grid-template-columns: minmax(300px, .72fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
    padding-block: 74px;
}

.device-visual {
    position: relative;
    overflow: hidden;
    min-height: 390px;
    display: grid;
    place-items: center;
    border-radius: 34px;
    background: linear-gradient(145deg, var(--soft), #FBE3E7);
}

.device-visual::before,
.device-visual::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.device-visual::before {
    width: 260px;
    height: 260px;
    top: -80px;
    right: -40px;
    background: rgba(242, 166, 90, .16);
}

.device-visual::after {
    width: 220px;
    height: 220px;
    bottom: -70px;
    left: -50px;
    background: rgba(232, 93, 117, .13);
}

.device-visual img {
    position: relative;
    z-index: 1;
    width: 72%;
    max-height: 330px;
    border-radius: 22px;
    object-fit: cover;
    box-shadow: var(--shadow-md);
    transform: rotate(-2deg);
}

.index-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.compact-index {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line-strong);
}

.compact-index a {
    min-height: 94px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 16px 20px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.compact-index a:nth-child(3n) {
    border-right: 0;
}

.compact-index a:hover {
    background: rgba(248, 238, 240, .7);
}

.compact-index-title {
    color: var(--ink) !important;
    font-size: .96rem !important;
    font-weight: 780 !important;
}

.compact-index a span:last-child {
    color: var(--muted);
    font-size: .74rem;
}

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

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

.faq-item h3 {
    margin: 0;
}

.faq-item button {
    width: 100%;
    min-height: 72px;
    display: grid;
    grid-template-columns: 1fr 34px;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border: 0;
    text-align: left;
    color: var(--ink);
    background: transparent;
    cursor: pointer;
    font-weight: 760;
}

.faq-icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    color: var(--berry-deep);
    background: rgba(232, 93, 117, .1);
    transition: transform .2s ease;
}

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

.faq-answer {
    max-width: 820px;
    padding: 0 54px 22px 0;
}

.faq-answer p {
    margin: 0;
    color: var(--muted);
}

/* Subpage hero */
.subhero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
    gap: 66px;
    align-items: center;
    padding-block: 74px 66px;
}

.subhero h1,
.desktop-hero h1,
.library-hero h1,
.work-detail-hero h1 {
    font-size: clamp(2.35rem, 4.8vw, 4.7rem);
}

.subhero-copy > p:last-of-type {
    max-width: 720px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 1.03rem;
}

.subhero-image {
    position: relative;
    margin: 0;
    padding: 12px;
    border-radius: 30px;
    background: #fff;
    box-shadow: var(--shadow-md);
}

.subhero-image::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 160px;
    height: 160px;
    top: -24px;
    right: -28px;
    border-radius: 50%;
    background: rgba(242, 166, 90, .18);
}

.subhero-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 22px;
    object-fit: cover;
    background: var(--soft);
}

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

.flow-card {
    position: relative;
    min-height: 260px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, .72);
}

.flow-number {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: var(--berry-deep);
    background: rgba(232, 93, 117, .1);
    font-size: .72rem;
    font-weight: 850;
}

.flow-card h3 {
    margin: 32px 0 0;
    color: var(--ink);
    font-size: 1.08rem;
}

.flow-card p {
    margin: 11px 0 0;
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.8;
}

.soft-section {
    background: var(--soft);
}

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

.horizontal-work {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 22px;
    background: rgba(255, 255, 255, .72);
}

.horizontal-work img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    border-radius: 16px;
    object-fit: cover;
    background: #f3e4e7;
}

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

.text-tile {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, .72);
}

.viewing-guide {
    display: grid;
    grid-template-columns: minmax(300px, .78fr) minmax(0, 1fr);
    gap: 62px;
    align-items: center;
}

.viewing-guide-image {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 34px;
    background: linear-gradient(145deg, #F4E2E6, #FFF1E7);
}

.viewing-guide-image img {
    width: 68%;
    max-height: 360px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.viewing-guide-copy h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.12;
    letter-spacing: -.035em;
}

.viewing-guide-copy > p {
    color: var(--muted);
}

.check-list {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 11px;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    color: #594D53;
    font-size: .9rem;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--berry);
    font-size: .68rem;
    font-weight: 900;
}

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

.category-table a {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 28px;
    gap: 24px;
    align-items: center;
    min-height: 86px;
    padding: 15px 8px;
    border-bottom: 1px solid var(--line);
}

.category-table strong {
    color: var(--ink);
}

.category-table span {
    color: var(--muted);
    font-size: .86rem;
}

.category-table b {
    color: var(--berry-deep);
    font-size: 1.1rem;
    transition: transform .2s ease;
}

.category-table a:hover b {
    transform: translateX(4px);
}

/* Desktop page */
.desktop-hero {
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 20%, rgba(232, 93, 117, .12), transparent 26rem),
        linear-gradient(180deg, #fffdfb 0, #fff6f3 100%);
}

.desktop-hero-inner {
    min-height: 610px;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(430px, 1fr);
    gap: 58px;
    align-items: center;
    padding-block: 70px;
}

.desktop-hero-copy > p:last-of-type {
    max-width: 680px;
    color: var(--muted);
}

.desktop-frame {
    border: 1px solid rgba(47, 37, 48, .16);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    transform: perspective(900px) rotateY(-4deg) rotateX(1deg);
}

.desktop-frame-top {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border-bottom: 1px solid #EEE5E7;
    background: #FAF5F6;
}

.desktop-frame-top i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #DCCBD0;
}

.desktop-frame-top i:first-child {
    background: #E85D75;
}

.desktop-frame-top i:nth-child(2) {
    background: #F2A65A;
}

.desktop-frame-top span {
    margin-left: 10px;
    color: #998A90;
    font-size: .64rem;
}

.desktop-frame-body {
    min-height: 380px;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 18px;
    padding: 20px;
}

.mock-sidebar {
    border-radius: 12px;
    background:
        linear-gradient(#F6E8EB 0 0) 15px 18px / 70px 10px no-repeat,
        linear-gradient(#F1D9DE 0 0) 15px 48px / 54px 7px no-repeat,
        linear-gradient(#F1D9DE 0 0) 15px 71px / 62px 7px no-repeat,
        linear-gradient(#F1D9DE 0 0) 15px 94px / 48px 7px no-repeat,
        #FFF7F8;
}

.mock-content {
    padding: 12px;
}

.mock-title {
    width: 48%;
    height: 18px;
    margin-bottom: 24px;
    border-radius: 999px;
    background: #E6D9DC;
}

.mock-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.mock-grid i {
    height: 126px;
    border-radius: 12px;
    background:
        linear-gradient(180deg, #F3DBE0 0 58%, #FFF 58% 100%);
    border: 1px solid #F0E6E8;
}

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

.desktop-tip {
    min-height: 255px;
    padding: 22px 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255,255,255,.72);
}

.desktop-tip > span {
    color: #C6B4BA;
    font-size: .72rem;
    font-weight: 850;
}

.desktop-tip h3 {
    margin: 44px 0 0;
    color: var(--ink);
    font-size: 1rem;
}

.desktop-tip p {
    color: var(--muted);
    font-size: .83rem;
    line-height: 1.8;
}

.desktop-compare {
    display: grid;
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.25fr);
    gap: 70px;
    align-items: center;
}

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

.compare-grid article {
    padding: 26px;
    border: 1px solid rgba(255,255,255,.86);
    border-radius: 24px;
    background: rgba(255,255,255,.68);
}

.compare-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    color: var(--berry-deep);
    background: rgba(232, 93, 117, .1);
    font-size: 1.4rem;
}

.compare-icon-mobile {
    color: #A76525;
    background: rgba(242, 166, 90, .16);
}

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

.compare-grid ul {
    margin: 14px 0 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: .84rem;
}

.compare-grid li + li {
    margin-top: 8px;
}

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

.desktop-work {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255,255,255,.76);
}

.desktop-work img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--soft);
}

.desktop-work > div {
    padding: 20px;
}

.keyboard-section {
    padding-block: 24px 96px;
}

.keyboard-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .75fr);
    gap: 50px;
    align-items: center;
    padding: 38px;
    border-radius: 30px;
    color: var(--white);
    background: var(--ink);
}

.keyboard-card h2 {
    color: #fff;
}

.keyboard-card p {
    color: rgba(255,255,255,.66);
}

.key-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.key-list span {
    padding: 12px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    color: rgba(255,255,255,.72);
    font-size: .78rem;
}

kbd {
    min-width: 28px;
    display: inline-grid;
    place-items: center;
    padding: 2px 6px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 6px;
    color: #fff;
    background: rgba(255,255,255,.08);
    box-shadow: inset 0 -2px 0 rgba(255,255,255,.08);
    font: 700 .72rem/1.5 inherit;
}

/* Library */
.library-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: end;
    padding-block: 72px 44px;
}

.library-hero > div:first-child {
    max-width: 820px;
}

.library-hero > div:first-child > p:last-child {
    max-width: 720px;
    color: var(--muted);
}

.library-count {
    min-width: 160px;
    display: grid;
    justify-items: end;
    padding-bottom: 8px;
}

.library-count strong {
    color: var(--berry-deep);
    font-size: 2.7rem;
    line-height: 1;
}

.library-count span {
    margin-top: 7px;
    color: var(--muted);
    font-size: .76rem;
}

.library-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 38px;
    align-items: start;
    padding-bottom: 92px;
}

.filter-panel {
    position: sticky;
    top: 104px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255,255,255,.78);
}

.filter-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.filter-panel-head h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1rem;
}

.filter-panel-head a {
    color: var(--berry-deep);
    font-size: .72rem;
    font-weight: 700;
}

.search-form {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}

.search-form label {
    color: var(--muted);
    font-size: .73rem;
    font-weight: 700;
}

.search-input-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
}

.search-input-row input {
    min-width: 0;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    color: var(--ink);
    background: #fff;
    font-size: .8rem;
}

.search-input-row button {
    height: 40px;
    padding: 0 11px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: var(--ink);
    cursor: pointer;
    font-size: .78rem;
    font-weight: 700;
}

.filter-group {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.filter-group h3 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: .78rem;
}

.filter-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.filter-links a {
    padding: 5px 8px;
    border-radius: var(--radius-pill);
    color: var(--muted);
    background: var(--soft);
    font-size: .7rem;
    font-weight: 650;
}

.filter-links a[aria-current="true"] {
    color: #fff;
    background: var(--berry-deep);
}

.filter-list {
    display: grid;
}

.filter-list a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    color: var(--muted);
    font-size: .75rem;
}

.filter-list a span {
    color: #C7B8BC;
}

.filter-list a:hover,
.filter-list a[aria-current="true"] {
    color: var(--berry-deep);
}

.library-results {
    min-width: 0;
}

.active-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    margin-bottom: 18px;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--muted);
    background: rgba(255,255,255,.68);
    font-size: .76rem;
}

.active-filter-bar b {
    padding: 4px 8px;
    border-radius: var(--radius-pill);
    color: var(--berry-deep);
    background: rgba(232,93,117,.1);
}

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

.library-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 23px;
    background: rgba(255,255,255,.78);
    transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}

.library-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.library-image {
    position: relative;
    display: block;
    overflow: hidden;
    height: 230px;
    background: var(--soft);
}

.library-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s var(--ease);
}

.library-card:hover .library-image img {
    transform: scale(1.025);
}

.library-image .status-pill {
    position: absolute;
    top: 14px;
    right: 14px;
    box-shadow: 0 6px 16px rgba(47,37,48,.08);
}

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

.library-card h2 {
    font-size: 1.16rem;
}

.empty-state {
    min-height: 420px;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    padding: 40px;
    border: 1px dashed var(--line-strong);
    border-radius: 24px;
    background: rgba(255,255,255,.55);
}

.empty-state h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1.6rem;
}

.empty-state > p:last-of-type {
    max-width: 480px;
    color: var(--muted);
}

/* Work detail */
.work-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 64px;
    align-items: center;
    padding-block: 58px 66px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
    color: #9A8A90;
    font-size: .74rem;
}

.breadcrumb a:hover {
    color: var(--berry-deep);
}

.detail-meta {
    margin-bottom: 14px;
}

.work-detail-summary {
    max-width: 760px;
    margin: 20px 0 0;
    color: #5E5056;
    font-size: 1.04rem;
    line-height: 1.9;
}

.detail-tags {
    margin-top: 18px;
}

.work-detail-poster {
    margin: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow-md);
}

.work-detail-poster img {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 21px;
    object-fit: cover;
    background: var(--soft);
}

.work-detail-poster figcaption {
    padding: 11px 6px 4px;
    color: var(--muted);
    font-size: .72rem;
    text-align: center;
}

.work-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 56px;
    align-items: start;
    padding-block: 28px 86px;
}

.work-article-body {
    display: grid;
    gap: 0;
}

.work-article-body > section {
    padding: 34px 0;
    border-top: 1px solid var(--line);
}

.work-article-body h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.45rem, 2.4vw, 2.2rem);
    line-height: 1.25;
    letter-spacing: -.025em;
}

.work-article-body > section > p:last-child {
    margin: 14px 0 0;
    color: #62555B;
    font-size: .98rem;
    line-height: 2;
}

.detail-note-card {
    display: grid;
    grid-template-columns: minmax(190px, .55fr) minmax(0, 1fr);
    gap: 30px;
    align-items: center;
    margin-top: 20px;
    padding: 30px !important;
    border: 0 !important;
    border-radius: 24px;
    background: var(--soft);
}

.detail-note-card h2 {
    margin-top: 8px;
    font-size: 1.35rem;
}

.work-detail-aside {
    position: sticky;
    top: 106px;
    display: grid;
    gap: 16px;
}

.detail-facts-card,
.aside-path-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255,255,255,.76);
}

.detail-facts-card h2,
.aside-path-card h2 {
    margin: 0;
    color: var(--ink);
    font-size: .96rem;
}

.detail-facts-card dl {
    margin: 18px 0 0;
}

.detail-facts-card dl div {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.detail-facts-card dt {
    color: var(--muted);
    font-size: .72rem;
}

.detail-facts-card dd {
    margin: 0;
    color: var(--ink);
    font-size: .78rem;
    font-weight: 700;
}

.aside-path-card {
    display: grid;
}

.aside-path-card h2 {
    margin-bottom: 10px;
}

.aside-path-card a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .78rem;
}

.aside-path-card a span {
    color: var(--berry-deep);
}

.related-section {
    margin-top: 18px;
}

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

.related-card {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 20px;
    background: rgba(255,255,255,.72);
}

.related-card img {
    width: 100%;
    aspect-ratio: 5 / 3;
    object-fit: cover;
}

.related-card > div {
    padding: 18px;
}

/* Footer */
.site-footer {
    padding: 72px max(20px, calc((100vw - min(1180px, calc(100vw - 40px))) / 2)) 18px;
    color: rgba(255,255,255,.72);
    background:
        radial-gradient(circle at 8% 20%, rgba(232,93,117,.12), transparent 28rem),
        #2F2530;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(150px, .55fr)) minmax(220px, .8fr);
    gap: 44px;
    padding-bottom: 48px;
}

.brand-mark-footer .brand-copy strong {
    color: #fff;
}

.brand-mark-footer .brand-copy small {
    color: rgba(255,255,255,.48);
}

.footer-brand p,
.footer-note p {
    max-width: 420px;
    margin: 20px 0 0;
    color: rgba(255,255,255,.52);
    font-size: .84rem;
}

.footer-column,
.footer-note {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.footer-column h2,
.footer-note h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: .86rem;
}

.footer-column a,
.footer-note a {
    color: rgba(255,255,255,.62);
    font-size: .8rem;
}

.footer-column a:hover,
.footer-note a:hover {
    color: #fff;
}

.footer-note .text-link {
    color: #FFD0D8;
}

.footer-bottom {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,.09);
    color: rgba(255,255,255,.38);
    font-size: .72rem;
}

.footer-bottom p {
    margin: 0;
}

/* Error page */
.error-page {
    min-height: 64vh;
    display: grid;
    place-items: center;
    padding-block: 80px;
}

.error-card {
    width: min(720px, 100%);
    padding: 48px;
    border: 1px solid var(--line);
    border-radius: 30px;
    text-align: center;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.error-card h1 {
    font-size: clamp(2.3rem, 5vw, 4rem);
}

.error-card > p:not(.eyebrow) {
    color: var(--muted);
}

.error-card .action-row {
    justify-content: center;
}

/* Motion helpers */
.js .site-header {
    transition: box-shadow .2s ease, background .2s ease;
}

.js .site-header.is-scrolled {
    box-shadow: 0 10px 28px rgba(47,37,48,.07);
    background: rgba(255,249,246,.96);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s var(--ease), transform .55s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    :root {
        --shell: min(100% - 32px, 980px);
    }

    .header-inner {
        grid-template-columns: auto 1fr auto;
        gap: 18px;
    }

    .primary-nav {
        gap: 2px;
    }

    .primary-nav a {
        padding-inline: 10px;
    }

    .hero {
        grid-template-columns: 1fr 390px;
        gap: 38px;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 5vw, 4.4rem);
    }

    .featured-grid {
        gap: 16px;
    }

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

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

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

    .desktop-tip-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .desktop-hero-inner {
        grid-template-columns: minmax(0, .82fr) minmax(390px, 1fr);
    }

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

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

@media (max-width: 860px) {
    :root {
        --shell: calc(100% - 28px);
    }

    .site-header {
        backdrop-filter: blur(14px);
    }

    .header-inner {
        min-height: 70px;
        grid-template-columns: 1fr auto;
    }

    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        padding: 8px 10px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: rgba(255,255,255,.82);
    }

    .menu-toggle-label {
        color: var(--ink);
        font-size: .8rem;
        font-weight: 700;
    }

    .menu-toggle-icon {
        width: 18px;
        display: grid;
        gap: 3px;
    }

    .menu-toggle-icon i {
        display: block;
        height: 2px;
        border-radius: 99px;
        background: var(--ink);
        transition: transform .2s ease, opacity .2s ease;
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle-icon i:nth-child(1) {
        transform: translateY(5px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle-icon i:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle-icon i:nth-child(3) {
        transform: translateY(-5px) rotate(-45deg);
    }

    .primary-nav {
        position: fixed;
        z-index: 110;
        top: 80px;
        right: 14px;
        left: 14px;
        display: grid;
        gap: 4px;
        padding: 12px;
        border-radius: 18px;
        background: #fff;
        box-shadow: var(--shadow-md);
        transform: translateY(-14px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform .2s var(--ease), opacity .2s ease, visibility .2s ease;
    }

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

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

    .hero,
    .subhero,
    .desktop-hero-inner,
    .work-detail-hero {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 0;
        padding-block: 58px 72px;
    }

    .hero-visual {
        min-height: 450px;
    }

    .hero-poster {
        width: min(360px, 78vw);
    }

    .floating-card-top {
        left: 7%;
    }

    .floating-card-bottom {
        right: 5%;
    }

    .split-heading,
    .watch-strip-inner,
    .editorial-layout,
    .device-callout,
    .viewing-guide,
    .desktop-compare,
    .keyboard-card,
    .work-detail-layout {
        grid-template-columns: 1fr;
    }

    .split-heading {
        gap: 12px;
    }

    .split-heading > p {
        max-width: 720px;
    }

    .editorial-aside,
    .filter-panel,
    .work-detail-aside {
        position: static;
    }

    .watch-strip-inner {
        gap: 34px;
    }

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

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

    .compact-index a:nth-child(3n) {
        border-right: 1px solid var(--line);
    }

    .compact-index a:nth-child(2n) {
        border-right: 0;
    }

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

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

    .desktop-hero-inner {
        min-height: 0;
    }

    .desktop-frame {
        max-width: 700px;
        transform: none;
    }

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

    .desktop-compare,
    .keyboard-card {
        gap: 30px;
    }

    .library-layout {
        grid-template-columns: 1fr;
    }

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

    .filter-group {
        margin-top: 16px;
        padding-top: 14px;
    }

    .work-detail-hero {
        gap: 34px;
    }

    .work-detail-poster {
        width: min(420px, 100%);
    }

    .work-detail-layout {
        gap: 18px;
    }

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

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

@media (max-width: 620px) {
    :root {
        --shell: calc(100% - 24px);
    }

    body {
        line-height: 1.65;
    }

    .brand-copy small {
        display: none;
    }

    .brand-symbol {
        width: 40px;
        height: 40px;
        border-radius: 13px 13px 16px 10px;
    }

    .menu-toggle-label {
        display: none;
    }

    .hero {
        padding-top: 44px;
    }

    .hero h1,
    .subhero h1,
    .desktop-hero h1,
    .library-hero h1,
    .work-detail-hero h1 {
        font-size: clamp(2.2rem, 12vw, 3.25rem);
    }

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

    .action-row {
        align-items: stretch;
    }

    .action-row .button {
        flex: 1 1 190px;
    }

    .hero-facts {
        grid-template-columns: 1fr;
        margin-top: 34px;
    }

    .hero-facts div {
        padding: 9px 0 9px 13px;
    }

    .hero-visual {
        min-height: 400px;
    }

    .floating-card {
        font-size: .72rem;
    }

    .floating-card-top {
        top: 18%;
        left: 0;
    }

    .floating-card-bottom {
        right: 0;
        bottom: 13%;
    }

    .section-block {
        padding-block: 62px;
    }

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

    .section-heading h2,
    .index-header h2,
    .device-copy h2,
    .watch-strip h2,
    .keyboard-card h2,
    .desktop-compare h2 {
        font-size: clamp(1.65rem, 8vw, 2.45rem);
    }

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

    .work-card,
    .work-card-large {
        grid-column: 1;
        display: block;
    }

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

    .work-media {
        min-height: 0;
    }

    .work-media img {
        aspect-ratio: 5 / 3.5;
    }

    .watch-strip {
        margin-top: 0;
    }

    .watch-strip-inner {
        padding-block: 56px;
    }

    .category-cloud,
    .flow-grid,
    .tile-grid,
    .desktop-tip-grid,
    .compare-grid,
    .related-grid,
    .library-grid {
        grid-template-columns: 1fr;
    }

    .category-chip {
        min-height: 135px;
    }

    .story-row {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .story-thumb {
        width: 86px;
    }

    .story-arrow {
        display: none;
    }

    .secondary-card,
    .horizontal-work {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 14px;
    }

    .secondary-card img {
        height: 150px;
    }

    .horizontal-work img {
        min-height: 160px;
    }

    .device-callout {
        gap: 30px;
        padding-block: 62px;
    }

    .device-visual,
    .viewing-guide-image {
        min-height: 330px;
    }

    .index-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .compact-index {
        grid-template-columns: 1fr;
    }

    .compact-index a,
    .compact-index a:nth-child(3n),
    .compact-index a:nth-child(2n) {
        border-right: 0;
    }

    .category-table a {
        grid-template-columns: 1fr 24px;
        gap: 8px;
        padding-block: 16px;
    }

    .category-table span {
        grid-column: 1;
        grid-row: 2;
    }

    .category-table b {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .desktop-frame-body {
        grid-template-columns: 70px 1fr;
        min-height: 280px;
        padding: 12px;
    }

    .mock-grid {
        gap: 7px;
    }

    .mock-grid i {
        height: 86px;
    }

    .keyboard-card {
        padding: 26px;
    }

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

    .library-hero {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-top: 54px;
    }

    .library-count {
        justify-items: start;
    }

    .library-image {
        height: 210px;
    }

    .work-detail-hero {
        padding-top: 38px;
    }

    .detail-note-card {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 24px !important;
    }

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

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

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 18px;
    }

    .error-card {
        padding: 34px 22px;
    }
}

@media (max-width: 420px) {
    .secondary-card,
    .horizontal-work {
        grid-template-columns: 1fr;
    }

    .secondary-card img,
    .horizontal-work img {
        height: 190px;
    }

    .story-row {
        grid-template-columns: 74px minmax(0, 1fr);
        gap: 12px;
    }

    .story-thumb {
        width: 74px;
        border-radius: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media print {
    .site-header,
    .site-footer,
    .menu-backdrop,
    .action-row,
    .filter-panel,
    .floating-card {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .page-shell {
        width: 100%;
    }

    .section-block {
        padding-block: 24px;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}
