.is-home {
    --pm-ink: #172026;
    --pm-panel: #fbf7ef;
    --pm-paper: #fffdf8;
    --pm-line: rgba(23, 32, 38, 0.13);
    --pm-teal: #0f766e;
    --pm-cyan: #0ea5b7;
    --pm-amber: #d97706;
    --pm-rose: #be185d;
    --pm-blue: #2563eb;
    background: #f7f1e7;
}

.pm-hero {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: #101820;
}

.pm-hero-media {
    position: absolute;
    inset: 0;
    background-image: url('/static/img/home/printer-studio-hero.jpg');
    background-size: cover;
    background-position: center;
    transform: scale(1.01);
}

.pm-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(12, 18, 23, 0.86) 0%, rgba(12, 18, 23, 0.74) 35%, rgba(12, 18, 23, 0.26) 72%, rgba(12, 18, 23, 0.08) 100%),
        linear-gradient(180deg, rgba(12, 18, 23, 0.28), rgba(12, 18, 23, 0.82));
}

.pm-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 360px;
    gap: 36px;
    align-items: center;
    width: 100%;
    padding-top: 72px;
    padding-bottom: 58px;
}

.pm-kicker,
.pm-section-label {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    color: #0f766e;
    font-size: 0.78rem;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pm-hero .pm-kicker {
    color: #9ee8df;
    margin-bottom: 16px;
}

.pm-hero h1 {
    max-width: 780px;
    color: #fffdf8;
    font-family: var(--font-heading);
    font-size: clamp(2.45rem, 6vw, 5.35rem);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0 0 22px;
}

.pm-lead {
    max-width: 640px;
    color: rgba(255, 253, 248, 0.86);
    font-size: 1.12rem;
    line-height: 1.6;
    margin: 0 0 28px;
}

.pm-search {
    width: min(100%, 620px);
    margin: 0 0 18px;
    z-index: 20;
}

.pm-search input {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 253, 248, 0.94);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.pm-quick-routes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 640px;
}

.pm-quick-routes a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.1);
    color: #fffdf8;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    backdrop-filter: blur(14px);
}

.pm-quick-routes a:hover {
    background: #fffdf8;
    color: var(--pm-ink);
}

.pm-hero-panel {
    display: grid;
    gap: 12px;
    align-self: end;
}

.pm-hero-panel a {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 4px 14px;
    align-items: center;
    min-height: 112px;
    padding: 18px;
    background: rgba(255, 253, 248, 0.9);
    color: var(--pm-ink);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.52);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.pm-hero-panel span {
    grid-row: span 2;
    color: var(--pm-teal);
    font-size: 0.78rem;
    font-weight: 900;
}

.pm-hero-panel strong {
    font-size: 1rem;
    line-height: 1.2;
}

.pm-hero-panel em {
    color: #5d6770;
    font-size: 0.88rem;
    line-height: 1.35;
    font-style: normal;
}

.pm-main {
    background:
        linear-gradient(180deg, #f7f1e7 0%, #fffdf8 44%, #f3f7f5 100%);
}

.pm-main .container {
    padding-top: 42px;
    padding-bottom: 56px;
}

.pm-lab-strip {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
    align-items: stretch;
    margin-bottom: 34px;
}

.pm-lab-card {
    min-height: 310px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: var(--pm-ink);
    color: #fffdf8;
    border: 1px solid var(--pm-line);
    box-shadow: 0 14px 36px rgba(23, 32, 38, 0.12);
}

.pm-lab-card-large {
    grid-row: span 2;
    min-height: 640px;
}

.pm-lab-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pm-lab-card:hover img {
    transform: scale(1.04);
}

.pm-lab-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 19, 24, 0.08), rgba(13, 19, 24, 0.84));
}

.pm-lab-card div {
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px;
}

.pm-lab-card span {
    display: inline-flex;
    margin-bottom: 10px;
    color: #9ee8df;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pm-lab-card h2 {
    font-size: clamp(1.25rem, 2.2vw, 2.15rem);
    line-height: 1.08;
    margin: 0 0 10px;
    color: #fffdf8;
}

.pm-lab-card p {
    color: rgba(255, 253, 248, 0.82);
    line-height: 1.5;
    margin: 0;
}

.pm-feature-row {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 18px;
    margin: 34px 0;
}

.pm-popular-card,
.pm-note,
.pm-closing {
    border: 1px solid var(--pm-line);
    border-radius: 8px;
    background: var(--pm-paper);
    box-shadow: 0 12px 32px rgba(23, 32, 38, 0.08);
}

.pm-popular-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 22px;
    align-items: center;
    padding: 26px;
    color: var(--pm-ink);
}

.pm-popular-mark {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 8px;
    background: #12312f;
    color: #fffdf8;
    font-size: 2.8rem;
}

.pm-popular-card h2 {
    margin: 8px 0 8px;
    line-height: 1.18;
    font-size: 1.55rem;
    color: var(--pm-ink);
}

.pm-popular-card p,
.pm-note p,
.pm-closing p {
    margin: 0;
    color: #59636c;
    line-height: 1.62;
}

.pm-popular-card strong {
    display: inline-flex;
    margin-top: 14px;
    color: var(--pm-teal);
}

.pm-note {
    padding: 24px;
    background: #12201f;
}

.pm-note .pm-section-label {
    color: #9ee8df;
    margin-bottom: 12px;
}

.pm-note p {
    color: rgba(255, 253, 248, 0.82);
}

.pm-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 18px;
}

.pm-section-head h2 {
    color: var(--pm-ink);
    font-size: clamp(1.5rem, 3vw, 2.35rem);
    line-height: 1.05;
    margin: 6px 0 0;
}

.pm-directory,
.pm-recent,
.pm-popular-list {
    padding: 34px 0;
}

.pm-category-board {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
}

.pm-category-card {
    position: relative;
    min-height: 190px;
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
    border: 1px solid var(--pm-line);
    border-radius: 8px;
    color: var(--pm-ink);
    background: #fffdf8;
    overflow: hidden;
}

.pm-category-card:nth-child(1),
.pm-category-card:nth-child(5) {
    grid-column: span 6;
}

.pm-category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.13), transparent 58%);
    pointer-events: none;
}

.pm-category-card span,
.pm-category-card strong,
.pm-category-card p {
    position: relative;
    z-index: 1;
}

.pm-category-card span {
    width: fit-content;
    padding: 5px 9px;
    border-radius: 6px;
    background: rgba(23, 32, 38, 0.08);
    color: var(--pm-ink);
    font-size: 0.75rem;
    font-weight: 900;
}

.pm-category-card strong {
    font-size: 1.15rem;
    line-height: 1.16;
    margin-top: auto;
}

.pm-category-card p {
    margin: 10px 0 0;
    color: #5f6870;
    font-size: 0.94rem;
    line-height: 1.45;
}

.accent-a { background: #e8f5f1; }
.accent-b { background: #ecf2ff; }
.accent-c { background: #fff2dc; }
.accent-d { background: #f7eafa; }
.accent-e { background: #e9f0ed; }
.accent-f { background: #f6efe4; }
.accent-g { background: #eaf5ff; }
.accent-h { background: #f2f8ea; }

.pm-recent-scroll {
    padding-bottom: 18px;
}

.pm-recent-scroll .recent-card,
.pm-articles-grid .article-home-card {
    border-radius: 8px;
    border-color: var(--pm-line);
}

.pm-articles-grid {
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}

.pm-refresh {
    text-align: center;
    margin-top: 28px;
}

.pm-loading {
    min-height: 92px;
    color: #76808a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pm-closing {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 28px;
    align-items: center;
    padding: 30px;
    margin-top: 34px;
    background: #fff8ed;
}

.pm-closing h2 {
    margin: 8px 0 0;
    color: var(--pm-ink);
    font-size: clamp(1.45rem, 3vw, 2.3rem);
    line-height: 1.06;
}

@media (max-width: 980px) {
    .pm-hero {
        min-height: auto;
    }

    .pm-hero-grid,
    .pm-feature-row,
    .pm-closing {
        grid-template-columns: 1fr;
    }

    .pm-hero-grid {
        padding-top: 54px;
    }

    .pm-hero-panel {
        grid-template-columns: repeat(3, 1fr);
    }

    .pm-hero-panel a {
        grid-template-columns: 1fr;
    }

    .pm-lab-strip {
        grid-template-columns: 1fr;
    }

    .pm-lab-card,
    .pm-lab-card-large {
        min-height: 380px;
    }

    .pm-category-card,
    .pm-category-card:nth-child(1),
    .pm-category-card:nth-child(5) {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .pm-hero-media {
        background-position: 60% center;
    }

    .pm-hero-shade {
        background: linear-gradient(180deg, rgba(12, 18, 23, 0.82), rgba(12, 18, 23, 0.76));
    }

    .pm-hero h1 {
        font-size: 2.35rem;
    }

    .pm-lead {
        font-size: 1rem;
    }

    .pm-quick-routes a {
        flex: 1 1 calc(50% - 10px);
        justify-content: center;
        text-align: center;
        padding-inline: 10px;
    }

    .pm-hero-panel {
        grid-template-columns: 1fr;
    }

    .pm-lab-card,
    .pm-lab-card-large {
        min-height: 330px;
    }

    .pm-popular-card {
        grid-template-columns: 1fr;
    }

    .pm-popular-mark {
        width: 72px;
        height: 72px;
        font-size: 2rem;
    }

    .pm-section-head {
        display: block;
    }

    .pm-category-card,
    .pm-category-card:nth-child(1),
    .pm-category-card:nth-child(5) {
        grid-column: span 12;
        min-height: 165px;
    }

    .pm-main .container {
        padding-top: 28px;
    }
}
