:root {
    --brand: #C94A2F;
    --brand-strong: #E85D3F;
    --gold: #E7B56A;
    --ink: #25262A;
    --muted: #6F7178;
    --dark: #17181C;
    --dark-soft: #22242A;
    --paper: #F7F5F1;
    --paper-2: #EEEAE4;
    --white: #FFFFFF;
    --line: rgba(37, 38, 42, .14);
    --line-dark: rgba(255, 255, 255, .12);
    --shadow-sm: 0 12px 30px rgba(23, 24, 28, .08);
    --shadow-md: 0 24px 60px rgba(23, 24, 28, .14);
    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 34px;
    --shell: 1240px;
    --section: clamp(72px, 9vw, 132px);
    --section-tight: clamp(54px, 6vw, 88px);
    --heading: clamp(2.15rem, 4.7vw, 5.2rem);
    --h2: clamp(1.8rem, 3vw, 3.35rem);
    --h3: clamp(1.05rem, 1.5vw, 1.35rem);
    --body: clamp(1rem, 1.1vw, 1.08rem);
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--paper);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: var(--body);
    line-height: 1.72;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

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

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

button {
    color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--ink);
    line-height: 1.08;
    letter-spacing: -.035em;
}

p:last-child,
ul:last-child,
ol:last-child {
    margin-bottom: 0;
}

.shell {
    width: min(calc(100% - 40px), var(--shell));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 999;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--white);
    color: var(--dark);
    box-shadow: var(--shadow-sm);
    transform: translateY(-150%);
    transition: transform .18s ease;
}

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

.eyebrow {
    margin-bottom: 14px;
    color: var(--brand);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    line-height: 1.2;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}

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

.button--primary {
    background: var(--brand-strong);
    color: var(--white);
    box-shadow: 0 12px 28px rgba(232, 93, 63, .24);
}

.button--primary:hover {
    box-shadow: 0 18px 34px rgba(232, 93, 63, .34);
}

.button--ghost {
    border-color: rgba(255, 255, 255, .26);
    background: rgba(255, 255, 255, .06);
    color: var(--white);
}

.page-home .hero .button--ghost {
    border-color: rgba(255, 255, 255, .24);
}

.button--light {
    background: var(--paper);
    color: var(--dark);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand);
    font-weight: 800;
}

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

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

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: rgba(23, 24, 28, .94);
    color: var(--white);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    display: flex;
    min-height: 82px;
    align-items: center;
    gap: 34px;
}

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

.brand__logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    object-fit: cover;
    background: var(--paper-2);
}

.brand__text {
    display: grid;
    gap: 1px;
}

.brand__text strong {
    color: var(--white);
    font-size: 1rem;
    letter-spacing: .04em;
}

.brand__text small {
    color: rgba(255, 255, 255, .58);
    font-size: .71rem;
    letter-spacing: .03em;
}

.primary-nav {
    display: flex;
    flex: 1 1 auto;
    justify-content: flex-end;
    align-items: stretch;
}

.primary-nav__link {
    position: relative;
    display: grid;
    min-width: 122px;
    align-content: center;
    gap: 2px;
    padding: 15px 14px 13px;
    border-radius: 13px;
    transition: background-color .2s ease;
}

.primary-nav__link span {
    color: rgba(255, 255, 255, .92);
    font-size: .9rem;
    font-weight: 800;
}

.primary-nav__link small {
    color: rgba(255, 255, 255, .44);
    font-size: .66rem;
}

.primary-nav__link:hover,
.primary-nav__link.is-active {
    background: rgba(255, 255, 255, .07);
}

.primary-nav__link.is-active::after {
    position: absolute;
    right: 14px;
    bottom: 8px;
    left: 14px;
    height: 2px;
    border-radius: 2px;
    background: var(--gold);
    content: "";
}

.nav-toggle {
    display: none;
    min-width: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: transparent;
    color: var(--white);
    cursor: pointer;
}

.nav-toggle__label {
    font-size: .85rem;
    font-weight: 800;
}

.nav-toggle__bars {
    display: grid;
    width: 18px;
    gap: 4px;
}

.nav-toggle__bars i {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:first-child {
    transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:last-child {
    transform: translateY(-3px) rotate(-45deg);
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 84% 15%, rgba(201, 74, 47, .34), transparent 29%),
        radial-gradient(circle at 20% 88%, rgba(231, 181, 106, .15), transparent 30%),
        var(--dark);
    color: var(--white);
}

.hero::before {
    position: absolute;
    inset: 0;
    opacity: .12;
    background-image:
        linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 64px 64px;
    content: "";
    pointer-events: none;
}

.hero__grid {
    position: relative;
    display: grid;
    min-height: 720px;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    align-items: center;
    gap: clamp(48px, 7vw, 100px);
    padding-block: clamp(72px, 8vw, 118px);
}

.hero__content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    max-width: 11.5em;
    margin-bottom: 28px;
    color: var(--white);
    font-size: var(--heading);
}

.hero .eyebrow {
    color: var(--gold);
}

.hero__lead,
.page-hero__lead {
    max-width: 740px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, .72);
    font-size: clamp(1.05rem, 1.4vw, 1.24rem);
}

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

.hero__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 42px 0 0;
    padding: 0;
    list-style: none;
}

.hero__meta li {
    display: grid;
    gap: 2px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    background: rgba(255, 255, 255, .04);
}

.hero__meta strong {
    font-size: .84rem;
}

.hero__meta span {
    color: rgba(255, 255, 255, .5);
    font-size: .72rem;
}

.hero__visual {
    position: relative;
    margin: 0;
}

.hero__visual img {
    aspect-ratio: 4 / 5;
    width: 100%;
    min-height: 540px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: 0 42px 100px rgba(0, 0, 0, .42);
}

.hero__visual::after {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: var(--radius-lg);
    content: "";
    pointer-events: none;
}

.hero__visual figcaption {
    position: absolute;
    right: -22px;
    bottom: 34px;
    left: 34px;
    display: grid;
    gap: 4px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    background: rgba(23, 24, 28, .86);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-md);
}

.hero__visual figcaption span {
    color: var(--gold);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.hero__visual figcaption strong {
    color: var(--white);
    font-size: .95rem;
}

.section {
    padding-block: var(--section);
}

.section--dense {
    padding-block: var(--section-tight);
}

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

.section--cinema {
    background: var(--dark);
    color: rgba(255, 255, 255, .74);
}

.section--editorial {
    padding-top: 0;
}

.section-heading {
    max-width: 820px;
    margin-bottom: 42px;
}

.section-heading--split {
    display: grid;
    max-width: none;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .65fr);
    align-items: end;
    gap: 54px;
}

.section-heading h2,
.split-feature h2,
.type-deep-dive h2,
.next-step h2,
.related-strip h2,
.monitor-layout h2,
.desktop-grid h2 {
    margin-bottom: 18px;
    font-size: var(--h2);
}

.section-heading p,
.split-feature p,
.type-deep-dive .lead,
.next-step p,
.monitor-layout p,
.desktop-grid p {
    color: var(--muted);
}

.section--cinema h2,
.section--cinema h3,
.section--cinema strong {
    color: var(--white);
}

.section--cinema p,
.section--cinema li {
    color: rgba(255, 255, 255, .68);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.filter-chip {
    padding: 10px 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: .85rem;
    font-weight: 800;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
    border-color: var(--dark);
    background: var(--dark);
    color: var(--white);
}

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

.media-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: 0 8px 24px rgba(23, 24, 28, .04);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.media-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 74, 47, .28);
    box-shadow: var(--shadow-sm);
}

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

.media-card__visual {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--paper-2);
}

.media-card__visual img {
    aspect-ratio: 4 / 5;
    width: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.media-card:hover .media-card__visual img {
    transform: scale(1.025);
}

.media-card__type {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(23, 24, 28, .82);
    color: var(--white);
    font-size: .7rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.media-card__body {
    padding: 18px;
}

.media-card__eyebrow {
    margin-bottom: 7px;
    color: var(--brand);
    font-size: .71rem;
    font-weight: 800;
}

.media-card h3 {
    margin-bottom: 10px;
    font-size: 1.08rem;
    line-height: 1.28;
}

.media-card h3 a:hover {
    color: var(--brand);
}

.media-card p {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tag-list li {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--paper-2);
    color: var(--muted);
    font-size: .68rem;
}

.media-card--compact {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    min-height: 176px;
}

.media-card--compact .media-card__visual img {
    height: 100%;
    aspect-ratio: auto;
}

.media-card--compact .media-card__body {
    padding: 16px;
}

.media-card--compact p {
    -webkit-line-clamp: 2;
}

.media-card--compact .tag-list {
    display: none;
}

.section-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 28px;
    padding: 22px 24px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-cta > div {
    display: grid;
    gap: 2px;
}

.section-cta strong {
    font-size: 1rem;
}

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

.split-feature {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: clamp(44px, 7vw, 96px);
}

.split-feature--reverse .split-feature__visual {
    order: 2;
}

.split-feature--reverse .split-feature__content {
    order: 1;
}

.split-feature__visual img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: 0 36px 90px rgba(0, 0, 0, .32);
}

.split-feature__content .eyebrow {
    color: var(--gold);
}

.mini-list {
    display: grid;
    gap: 4px;
    margin: 28px 0;
}

.mini-list article {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--line-dark);
}

.mini-list article:last-child {
    border-bottom: 1px solid var(--line-dark);
}

.mini-list article > span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: rgba(231, 181, 106, .12);
    color: var(--gold);
    font-size: .74rem;
    font-weight: 800;
}

.mini-list h3 {
    margin-bottom: 3px;
    font-size: 1rem;
}

.mini-list p {
    font-size: .85rem;
}

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

.topic-links {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.topic-link {
    display: grid;
    min-height: 154px;
    align-content: space-between;
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .56);
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.topic-link:hover {
    transform: translateY(-3px);
    border-color: rgba(201, 74, 47, .25);
    background: var(--white);
}

.topic-link strong {
    font-size: 1rem;
}

.topic-link span {
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.55;
}

.editorial-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--line);
}

.editorial-card {
    min-height: 310px;
    padding: clamp(26px, 3.5vw, 46px);
    background: var(--white);
}

.editorial-card h2 {
    margin-bottom: 16px;
    font-size: clamp(1.45rem, 2vw, 2.15rem);
}

.editorial-card p:not(.eyebrow) {
    color: var(--muted);
    font-size: .92rem;
}

.page-hero {
    position: relative;
    overflow: hidden;
    background: var(--dark);
    color: var(--white);
}

.page-hero::after {
    position: absolute;
    inset: auto -12% -60% 48%;
    width: 660px;
    height: 660px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 74, 47, .24), transparent 68%);
    content: "";
    pointer-events: none;
}

.page-hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 560px;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .72fr);
    align-items: center;
    gap: clamp(42px, 7vw, 92px);
    padding-block: clamp(66px, 8vw, 110px);
}

.page-hero h1 {
    max-width: 13em;
    margin-bottom: 22px;
    color: var(--white);
    font-size: clamp(2.6rem, 5vw, 5.4rem);
}

.page-hero .eyebrow {
    color: var(--gold);
}

.page-hero__grid > img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: 0 34px 80px rgba(0, 0, 0, .36);
}

.breadcrumb {
    margin-bottom: 28px;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .48);
    font-size: .76rem;
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    opacity: .55;
}

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

.anchor-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.anchor-nav a {
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    color: rgba(255,255,255,.75);
    font-size: .8rem;
    font-weight: 800;
}

.anchor-nav a:hover {
    border-color: rgba(255,255,255,.32);
    color: var(--white);
}

.type-deep-dive {
    border-top: 1px solid var(--line);
}

.type-deep-dive__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .74fr);
    align-items: center;
    gap: clamp(44px, 7vw, 100px);
}

.type-deep-dive:nth-of-type(even) .type-deep-dive__copy {
    order: 2;
}

.type-deep-dive:nth-of-type(even) img {
    order: 1;
}

.type-deep-dive__grid > img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    object-fit: cover;
}

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

.check-list li {
    position: relative;
    padding-left: 28px;
    color: var(--muted);
}

.check-list li::before {
    position: absolute;
    top: .56em;
    left: 0;
    width: 10px;
    height: 10px;
    border: 2px solid var(--brand);
    border-radius: 50%;
    content: "";
}

.check-list--light li {
    color: rgba(255,255,255,.68);
}

.check-list--light li::before {
    border-color: var(--gold);
}

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

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

.guide-card {
    min-height: 230px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.62);
}

.guide-card__number {
    display: block;
    margin-bottom: 34px;
    color: var(--brand);
    font-size: .73rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.guide-card h3 {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.guide-card p {
    color: var(--muted);
    font-size: .86rem;
}

.next-step {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
    gap: clamp(40px, 7vw, 96px);
    align-items: start;
}

.next-step__links {
    display: grid;
    gap: 10px;
}

.next-step__links a,
.not-found__links a {
    display: grid;
    gap: 4px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    transition: transform .2s ease, border-color .2s ease;
}

.next-step__links a:hover,
.not-found__links a:hover {
    transform: translateX(4px);
    border-color: rgba(201, 74, 47, .28);
}

.next-step__links strong,
.not-found__links strong {
    font-size: 1rem;
}

.next-step__links span,
.not-found__links span {
    color: var(--muted);
    font-size: .8rem;
}

.domain-card {
    display: inline-grid;
    min-width: min(100%, 480px);
    gap: 4px;
    margin-top: 28px;
    padding: 18px 20px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    background: rgba(255,255,255,.05);
}

.domain-card span {
    color: var(--gold);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.domain-card strong {
    color: var(--white);
    font-size: clamp(1rem, 2vw, 1.35rem);
    overflow-wrap: anywhere;
}

.domain-card a {
    margin-top: 6px;
    color: rgba(255,255,255,.72);
    font-size: .82rem;
    text-decoration: underline;
    text-underline-offset: 4px;
}

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

.path-card {
    display: flex;
    min-height: 270px;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    transition: transform .2s ease, box-shadow .2s ease;
}

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

.path-card > span {
    margin-bottom: 38px;
    color: var(--brand);
    font-size: .72rem;
    font-weight: 900;
}

.path-card h3 {
    margin-bottom: 12px;
}

.path-card p {
    margin-bottom: 24px;
    color: var(--muted);
    font-size: .86rem;
}

.path-card b {
    margin-top: auto;
    color: var(--brand);
    font-size: .82rem;
}

.related-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--white);
}

.related-strip h2 {
    margin-bottom: 0;
    font-size: clamp(1.5rem, 2.4vw, 2.6rem);
}

.device-layout {
    display: grid;
    grid-template-columns: minmax(340px, .82fr) minmax(0, 1.18fr);
    gap: clamp(44px, 7vw, 90px);
    align-items: start;
}

.device-layout__intro {
    position: sticky;
    top: 116px;
}

.device-layout__intro h2 {
    font-size: var(--h2);
}

.device-layout__intro > p:not(.eyebrow) {
    color: var(--muted);
}

.device-layout__intro img {
    margin-top: 28px;
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    object-fit: cover;
}

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

.stack-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 18px;
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
}

.stack-item > span,
.desktop-tip > span {
    color: var(--brand);
    font-size: .76rem;
    font-weight: 900;
}

.stack-item h3,
.desktop-tip h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.stack-item p,
.desktop-tip p {
    color: var(--muted);
    font-size: .9rem;
}

.desktop-grid {
    display: grid;
    grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr);
    gap: clamp(40px, 7vw, 88px);
    align-items: start;
}

.desktop-grid__heading {
    position: sticky;
    top: 116px;
    margin-bottom: 0;
}

.desktop-grid__tips {
    border-top: 1px solid var(--line);
}

.desktop-tip {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.monitor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .8fr);
    align-items: center;
    gap: clamp(42px, 7vw, 90px);
}

.monitor-layout__visual img {
    aspect-ratio: 16 / 10;
    width: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
}

.not-found {
    min-height: 70vh;
    padding-block: var(--section);
    background: var(--dark);
    color: var(--white);
}

.not-found__inner {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(360px, 1.2fr);
    gap: 80px;
    align-items: center;
}

.not-found__code {
    margin-bottom: 4px;
    color: var(--gold);
    font-size: clamp(4rem, 11vw, 9rem);
    font-weight: 900;
    line-height: .9;
    letter-spacing: -.08em;
}

.not-found h1 {
    margin-bottom: 18px;
    color: var(--white);
    font-size: clamp(2rem, 4vw, 4rem);
}

.not-found__inner > div > p:last-child {
    color: rgba(255,255,255,.64);
}

.not-found__links {
    display: grid;
    gap: 10px;
}

.not-found__links a {
    border-color: rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
}

.not-found__links strong {
    color: var(--white);
}

.not-found__links span {
    color: rgba(255,255,255,.52);
}

.site-footer {
    padding-top: 66px;
    background: #111216;
    color: rgba(255,255,255,.64);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.6fr) repeat(3, minmax(150px, .7fr));
    gap: 48px;
    padding-bottom: 52px;
}

.brand--footer .brand__logo {
    width: 42px;
    height: 42px;
}

.site-footer__brand p {
    max-width: 420px;
    margin-top: 18px;
    color: rgba(255,255,255,.46);
    font-size: .84rem;
}

.footer-title {
    margin-bottom: 18px;
    color: var(--white);
    font-size: .84rem;
    letter-spacing: .04em;
}

.footer-links {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    font-size: .8rem;
    transition: color .2s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding-block: 20px;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: .74rem;
}

.site-footer__bottom p {
    margin: 0;
}

.site-footer__bottom a {
    color: rgba(255,255,255,.72);
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

@media (max-width: 1120px) {
    .primary-nav__link {
        min-width: 105px;
        padding-inline: 10px;
    }

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

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

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

@media (max-width: 960px) {
    .shell {
        width: min(calc(100% - 30px), var(--shell));
    }

    .site-header__inner {
        position: relative;
        min-height: 72px;
        justify-content: space-between;
    }

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

    .primary-nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        padding: 10px;
        border: 1px solid rgba(255,255,255,.08);
        border-radius: 18px;
        background: rgba(23,24,28,.98);
        box-shadow: 0 28px 70px rgba(0,0,0,.34);
    }

    .primary-nav.is-open {
        display: grid;
    }

    .primary-nav__link {
        min-width: 0;
    }

    .hero__grid,
    .page-hero__grid {
        grid-template-columns: 1fr;
    }

    .hero__grid {
        min-height: auto;
    }

    .hero h1,
    .page-hero h1 {
        max-width: 14em;
    }

    .hero__visual {
        max-width: 720px;
    }

    .hero__visual img {
        min-height: 0;
        aspect-ratio: 16 / 11;
    }

    .hero__visual figcaption {
        right: 24px;
    }

    .page-hero__grid > img {
        max-height: 460px;
    }

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

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

    .split-feature,
    .type-deep-dive__grid,
    .device-layout,
    .desktop-grid,
    .monitor-layout,
    .next-step,
    .not-found__inner {
        grid-template-columns: 1fr;
    }

    .split-feature--reverse .split-feature__visual,
    .split-feature--reverse .split-feature__content,
    .type-deep-dive:nth-of-type(even) .type-deep-dive__copy,
    .type-deep-dive:nth-of-type(even) img {
        order: initial;
    }

    .device-layout__intro,
    .desktop-grid__heading {
        position: static;
    }

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

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

    .editorial-row {
        grid-template-columns: 1fr;
    }

    .editorial-card {
        min-height: 0;
    }

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

    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    :root {
        --section: 74px;
        --section-tight: 58px;
    }

    .shell {
        width: min(calc(100% - 24px), var(--shell));
    }

    .brand__text small {
        display: none;
    }

    .hero__grid,
    .page-hero__grid {
        gap: 34px;
        padding-block: 58px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: clamp(2.25rem, 12vw, 4rem);
    }

    .hero__lead,
    .page-hero__lead {
        font-size: 1rem;
    }

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

    .hero__visual img,
    .page-hero__grid > img {
        aspect-ratio: 4 / 3;
        border-radius: 22px;
    }

    .hero__visual figcaption {
        right: 14px;
        bottom: 14px;
        left: 14px;
    }

    .media-grid,
    .media-grid--home,
    .scenario-grid,
    .guide-grid,
    .guide-grid--three,
    .topic-links,
    .path-grid,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .media-card:not(.media-card--compact) {
        display: grid;
        grid-template-columns: 118px minmax(0, 1fr);
    }

    .media-card:not(.media-card--compact) .media-card__visual img {
        height: 100%;
        aspect-ratio: auto;
    }

    .media-card:not(.media-card--compact) .tag-list {
        display: none;
    }

    .media-card:not(.media-card--compact) p {
        -webkit-line-clamp: 2;
    }

    .section-cta,
    .related-strip,
    .site-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-cta {
        display: grid;
    }

    .related-strip {
        display: flex;
    }

    .site-footer__grid {
        gap: 32px;
    }

    .site-footer__brand {
        grid-column: auto;
    }

    .not-found__inner {
        gap: 42px;
    }
}

@media (max-width: 520px) {
    .site-header__inner {
        min-height: 66px;
    }

    .brand__logo {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .brand__text strong {
        font-size: .92rem;
    }

    .nav-toggle {
        min-width: 76px;
    }

    .primary-nav {
        grid-template-columns: 1fr;
    }

    .hero__actions,
    .page-hero .hero__actions {
        display: grid;
    }

    .button {
        width: 100%;
    }

    .filter-bar {
        flex-wrap: nowrap;
        margin-right: -12px;
        padding-right: 12px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .filter-bar::-webkit-scrollbar {
        display: none;
    }

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

    .media-card,
    .media-card--compact,
    .media-card:not(.media-card--compact) {
        grid-template-columns: 104px minmax(0, 1fr);
        min-height: 158px;
    }

    .media-card__body,
    .media-card--compact .media-card__body {
        padding: 13px;
    }

    .media-card h3 {
        font-size: .95rem;
    }

    .media-card p {
        font-size: .78rem;
    }

    .media-card__type {
        top: 8px;
        left: 8px;
        padding: 4px 7px;
    }

    .split-feature__visual img,
    .type-deep-dive__grid > img,
    .monitor-layout__visual img,
    .device-layout__intro img {
        border-radius: 18px;
    }

    .guide-card,
    .path-card,
    .topic-link {
        min-height: 0;
    }

    .guide-card__number,
    .path-card > span {
        margin-bottom: 20px;
    }

    .stack-item,
    .desktop-tip {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 12px;
    }

    .domain-card {
        width: 100%;
        min-width: 0;
    }
}

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

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

@media print {
    .site-header,
    .site-footer,
    .filter-bar,
    .hero__actions,
    .anchor-nav,
    .button,
    .skip-link {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
        font-size: 11pt;
    }

    .hero,
    .page-hero,
    .section--cinema,
    .section--soft,
    .not-found {
        color: #000;
        background: #fff;
    }

    .hero h1,
    .page-hero h1,
    .section--cinema h2,
    .section--cinema h3,
    .section--cinema p,
    .section--cinema li,
    .not-found h1 {
        color: #000;
    }

    .hero__grid,
    .page-hero__grid,
    .split-feature,
    .type-deep-dive__grid,
    .device-layout,
    .desktop-grid,
    .monitor-layout,
    .next-step,
    .not-found__inner {
        display: block;
        min-height: 0;
    }

    img {
        max-height: 320px;
        object-fit: contain;
    }
}
