:root {
    --bg: #f7f8f2;
    --bg-alt: #eceee4;
    --bg-deep: #dde2d4;
    --surface: #ffffff;
    --surface-soft: #fbfcf8;
    --border: #dfe3d7;
    --border-strong: #c3cab9;
    --text: #242a24;
    --text-secondary: #454e45;
    --text-muted: #727a71;
    --accent: #6e946f;
    --accent-dark: #334a39;
    --accent-soft: #d7e3c8;
    --warn: #c88f5a;
    --rose: #b66c72;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --nav-height: 64px;
    --max-width: 1180px;
    --radius: 8px;
    --shadow: 0 16px 40px -28px rgba(36, 42, 36, 0.36);
    --shadow-sm: 0 8px 20px -16px rgba(36, 42, 36, 0.32);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 24px);
}

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

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

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

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

svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

::selection {
    background: rgba(110, 148, 111, 0.22);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    transform: translateY(-140%);
    background: var(--text);
    color: var(--bg);
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 0.86rem;
    font-weight: 600;
    transition: transform 0.18s ease;
}

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

.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: var(--nav-height);
    background: rgba(247, 248, 242, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.site-nav.is-scrolled {
    box-shadow: 0 10px 28px -30px rgba(36, 42, 36, 0.5);
}

.nav-inner {
    min-height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark,
.footer-brand img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    object-fit: cover;
}

.brand em {
    font-family: var(--mono);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 400;
    color: var(--text-muted);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-menu a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.nav-menu a:hover,
.nav-menu a.is-active {
    color: var(--text);
    background: var(--bg-alt);
}

.nav-menu .nav-cta {
    margin-left: 6px;
    color: var(--bg);
    background: var(--text);
    font-weight: 700;
}

.nav-menu .nav-cta:hover {
    color: var(--bg);
    background: var(--text);
    transform: translateY(-1px);
}

.nav-cta svg {
    fill: currentColor;
    stroke: none;
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.section {
    padding: 88px 0;
}

.section-alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-split {
    border-bottom: 1px solid var(--border);
}

.section-heading h2,
.section-header h2,
.contact-section h2,
.asset-hero h1,
.page-header h1,
.section h2,
.cta-block h2 {
    margin: 0;
    letter-spacing: 0;
}

.section-num,
.eyebrow,
.mono,
.sidebar-block h2,
.catalog-meta,
.tool-foot,
.asset-facts dt,
.changelog-row > span,
.changelog-row time {
    font-family: var(--mono);
}

.section-num {
    display: block;
    margin-bottom: 9px;
    color: var(--text-muted);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0;
}

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

.section-header h2,
.section-heading h2,
.contact-section h2,
.section > .container > h2 {
    font-size: 2rem;
    line-height: 1.18;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 10px 17px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: var(--bg);
    background: var(--text);
    border-color: var(--text);
}

.btn-primary:hover {
    box-shadow: 0 10px 24px -18px rgba(36, 42, 36, 0.58);
}

.btn-ghost {
    color: var(--text-secondary);
    background: var(--surface);
    border-color: var(--border);
}

.btn-ghost:hover {
    color: var(--text);
    border-color: var(--text);
}

.btn-sm {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 0.82rem;
}

.btn.is-disabled,
.btn:disabled {
    opacity: 0.58;
    cursor: not-allowed;
    pointer-events: none;
}

.hero {
    padding-top: 68px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(247, 248, 242, 0)),
        var(--bg);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    align-items: center;
    gap: 56px;
}

.hero-copy {
    padding: 16px 0 62px;
    min-width: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    margin-bottom: 24px;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.76rem;
}

.eyebrow span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(110, 148, 111, 0.18);
}

.hero h1 {
    margin: 0;
    font-size: 4.35rem;
    line-height: 1;
    letter-spacing: 0;
}

.hero-kicker {
    margin: 18px 0 0;
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 700;
}

.hero-text {
    max-width: 560px;
    margin: 14px 0 0;
    color: var(--text-secondary);
    font-size: 1.06rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 34px;
    margin: 36px 0 0;
    padding: 22px 0 0;
    border-top: 1px solid var(--border);
}

.hero-metrics dt,
.hero-metrics dd {
    margin: 0;
}

.hero-metrics dt {
    font-family: var(--mono);
    color: var(--text-muted);
    font-size: 0.73rem;
    text-transform: uppercase;
}

.hero-metrics dd {
    margin-top: 5px;
    color: var(--text);
    font-size: 1.22rem;
    font-weight: 800;
}

.hero-visual {
    display: block;
    padding-bottom: 48px;
    max-width: 100%;
    min-width: 0;
}

.frame-link:hover .window-frame {
    transform: translateY(-4px) rotate(0deg);
    box-shadow: var(--shadow);
}

.window-frame {
    overflow: hidden;
    max-width: 100%;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transform: rotate(-1deg);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.window-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 9px 13px;
    background: var(--accent-dark);
    color: #edf3e8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.window-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e67f75;
}

.window-bar span:nth-child(2) {
    background: #deb56f;
}

.window-bar span:nth-child(3) {
    background: #88c37a;
}

.window-bar em {
    margin-left: 10px;
    font-family: var(--mono);
    font-size: 0.75rem;
    font-style: normal;
    color: rgba(237, 243, 232, 0.78);
}

.window-frame img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #181815;
}

.hero-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.hero-tags span,
.tag-row span,
.profile-pill-box span {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
    background: var(--surface);
    font-size: 0.78rem;
    font-weight: 600;
}

.marquee {
    overflow: hidden;
    padding: 16px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 28px;
    align-items: center;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    animation: marquee 40s linear infinite;
}

.marquee-track i {
    color: var(--accent);
    font-style: normal;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.about-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 72px;
    align-items: start;
}

.about-body p,
.contact-section p {
    max-width: 600px;
    margin: 0 0 16px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.pillars {
    list-style: none;
    margin: 30px 0 0;
    padding: 0;
    border-top: 1px solid var(--border);
}

.pillars li {
    display: grid;
    grid-template-columns: 168px 1fr;
    gap: 18px;
    padding: 17px 0;
    border-bottom: 1px solid var(--border);
}

.pillars strong {
    color: var(--text);
    font-size: 0.96rem;
}

.pillars span {
    color: var(--text-muted);
    font-size: 0.94rem;
}

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

.spotlight {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.spotlight-media {
    position: relative;
    display: block;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border);
}

.spotlight-media img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
}

.spotlight-badge {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 6px 10px;
    border-radius: var(--radius);
    background: rgba(36, 42, 36, 0.76);
    color: #fff;
    font-family: var(--mono);
    font-size: 0.76rem;
    backdrop-filter: blur(12px);
}

.spotlight-body {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 42px;
    padding: 42px 46px;
}

.card-meta,
.asset-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pill-unity {
    color: var(--accent-dark);
    background: rgba(110, 148, 111, 0.1);
    border-color: rgba(110, 148, 111, 0.35);
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--warn);
}

.status-dot.soon {
    background: var(--warn);
}

.status-dot.live {
    background: #74b587;
}

.status-dot.beta {
    background: var(--rose);
}

.spotlight h3,
.tool-card h2 {
    margin: 14px 0 0;
    font-size: 2rem;
    line-height: 1.1;
    letter-spacing: 0;
}

.spotlight-sub,
.tool-sub,
.asset-subtitle {
    margin: 8px 0 13px;
    color: var(--text-secondary);
    font-size: 1.08rem;
    font-weight: 700;
}

.spotlight p,
.tool-card p {
    color: var(--text-secondary);
}

.pinned-grid .spotlight {
    min-width: 0;
}

.pinned-grid .spotlight-media img {
    aspect-ratio: 16 / 9;
    max-height: none;
    object-fit: cover;
}

.pinned-grid .spotlight-badge {
    right: 10px;
    bottom: 10px;
    padding: 4px 7px;
    font-size: 0.62rem;
}

.pinned-grid .spotlight-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
}

.pinned-grid .spotlight h3 {
    font-size: 1.2rem;
}

.pinned-grid .spotlight-sub {
    margin: 7px 0 9px;
    font-size: 0.92rem;
}

.pinned-grid .spotlight p:not(.spotlight-sub) {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 0.86rem;
}

.pinned-grid .tag-row {
    margin-top: 13px;
}

.pinned-grid .tag-row span {
    padding: 3px 8px;
    font-size: 0.72rem;
}

.pinned-grid .card-actions {
    flex-direction: column;
    margin-top: 16px;
}

.pinned-grid .card-actions .btn {
    width: 100%;
    min-height: 36px;
    padding: 7px 10px;
    font-size: 0.8rem;
}

.pinned-grid .feature-list {
    display: none;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 18px;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0 28px;
    border-left: 1px solid var(--border);
}

.feature-list li {
    margin-bottom: 18px;
}

.feature-list li:last-child {
    margin-bottom: 0;
}

.feature-list strong {
    display: block;
    margin-bottom: 4px;
}

.feature-list span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.shot {
    position: relative;
    overflow: hidden;
    margin: 0;
    min-height: 220px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.shot img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.shot figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 34px 14px 12px;
    color: #fff;
    font-size: 0.82rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.78));
}

.contact-section {
    background: var(--surface-soft);
    border-top: 1px solid var(--border);
}

.contact-list {
    display: flex;
    flex-direction: column;
}

.contact-row {
    display: grid;
    grid-template-columns: 120px 1fr 24px;
    align-items: center;
    gap: 18px;
    padding: 18px 0;
    border-top: 1px solid var(--border);
    transition: padding-left 0.18s ease;
}

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

a.contact-row:hover {
    padding-left: 8px;
}

.contact-row span {
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.contact-row strong {
    color: var(--text);
    font-size: 1rem;
}

.contact-row svg,
.contact-row i {
    justify-self: end;
    color: var(--text-muted);
    font-style: normal;
}

.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 44px;
    padding: 34px 32px;
}

.footer-main p {
    max-width: 320px;
    margin: 12px 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.footer-cols h3 {
    margin: 0 0 10px;
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0;
}

.footer-cols a {
    display: block;
    padding: 4px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-cols a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 32px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 0.74rem;
}

.scroll-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 80;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    cursor: pointer;
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    color: var(--text);
    border-color: var(--text);
}

.fade-in,
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.page-header {
    padding: 56px 0 34px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-soft);
}

.page-header h1 {
    margin: 20px 0 10px;
    font-size: 3rem;
    line-height: 1.05;
}

.page-header p {
    max-width: 650px;
    margin: 0;
    color: var(--text-secondary);
    font-size: 1.03rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 0.8rem;
}

.back-link:hover {
    color: var(--text);
}

.catalog-shell {
    padding-top: 48px;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    align-items: start;
}

.catalog-main,
.asset-hero-copy,
.asset-hero-media {
    min-width: 0;
}

.catalog-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 28px);
}

.sidebar-block {
    margin-bottom: 32px;
}

.sidebar-block h2 {
    margin: 0 0 10px;
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 500;
    text-transform: uppercase;
}

.sidebar-nav,
.sidebar-subnav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sidebar-subnav {
    margin: 8px 0 0 28px;
    padding-left: 10px;
    border-left: 1px solid var(--border);
}

.sidebar-item,
.sub-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-left: 2px solid transparent;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text-muted);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.sidebar-item svg {
    width: 15px;
    height: 15px;
}

.sidebar-item:hover,
.sidebar-item.is-active,
.sub-filter:hover,
.sub-filter.is-active {
    color: var(--text);
    background: rgba(110, 148, 111, 0.09);
    border-left-color: var(--accent);
}

.sidebar-item span,
.sub-filter em {
    margin-left: auto;
    color: var(--text-muted);
    font-family: var(--mono);
    font-style: normal;
    font-size: 0.76rem;
}

.sub-filter span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-strong);
}

.sub-filter.is-active span {
    background: var(--accent);
}

.status-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.status-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 4px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.ebook-library {
    display: block;
    min-width: 0;
    margin-bottom: 28px;
}

.bookshelf-stage {
    position: relative;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 30px 30px 24px;
    background:
        linear-gradient(140deg, rgba(255, 255, 255, 0.78), rgba(236, 238, 228, 0.86)),
        radial-gradient(circle at 28% 20%, rgba(200, 143, 90, 0.18), transparent 38%),
        var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    perspective: 1500px;
    perspective-origin: 50% 58%;
    user-select: none;
}

.bookshelf-row {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 380px;
    transform-style: preserve-3d;
    overflow: visible;
    touch-action: pan-y;
    cursor: grab;
}

.bookshelf-row.is-grabbing {
    cursor: grabbing;
}

.bookshelf-ring {
    position: absolute;
    left: 50%;
    bottom: 130px;
    width: 0;
    height: 0;
    transform-style: preserve-3d;
    transform: rotateX(var(--ring-tilt, -15deg)) rotateY(var(--ring-angle, 0deg));
    will-change: transform;
}

.bookshelf-ring.is-snapping {
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.bookshelf-topbar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 14px;
    pointer-events: none;
    z-index: 2;
}

.bookshelf-topbar::before,
.bookshelf-topbar::after {
    content: "";
    flex: 1 1 0;
    max-width: 160px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(36, 42, 36, 0.22), transparent);
}

.bookshelf-hint {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(36, 42, 36, 0.78);
    white-space: nowrap;
}

.bookshelf-hint::before,
.bookshelf-hint::after {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: rgba(36, 42, 36, 0.38);
}

.library-book {
    position: absolute;
    left: 0;
    bottom: 0;
    display: block;
    width: 118px;
    height: 176px;
    margin-left: -59px;
    padding: 0;
    color: var(--text);
    background: transparent;
    border: 0;
    cursor: pointer;
    transform-style: preserve-3d;
    transform: rotateY(var(--slot-angle, 0deg)) translateZ(var(--ring-radius, 240px));
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.library-book:focus,
.library-book:focus-visible,
.bookshelf-stage:focus,
.bookshelf-stage:focus-visible {
    outline: none;
}

.library-book.is-active {
    transform: rotateY(var(--slot-angle, 0deg)) translateZ(calc(var(--ring-radius, 240px) + 70px));
}

.library-book .book-object {
    display: block;
}

.library-book .book-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
    white-space: nowrap;
}

.book-object {
    position: relative;
    width: 118px;
    height: 176px;
    transform-style: preserve-3d;
    transform: rotateY(90deg);
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.library-book.is-active .book-object {
    transform: rotateY(0deg) scale(1.15);
}

@media (prefers-reduced-motion: reduce) {
    .bookshelf-ring,
    .library-book,
    .book-object {
        transition: none !important;
    }
}

.book-face {
    position: absolute;
    top: 50%;
    left: 50%;
    backface-visibility: hidden;
    border-radius: 3px;
    box-sizing: border-box;
}

.book-front,
.book-back {
    width: 118px;
    height: 176px;
    margin: -88px 0 0 -59px;
}

.book-front {
    overflow: hidden;
    background: var(--cover-tint, #f4f4ec);
    border: 1px solid rgba(36, 42, 36, 0.22);
    transform: translateZ(15px);
}

.book-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
    user-drag: none;
}

.book-back {
    overflow: hidden;
    background: var(--cover-tint, #f4f4ec);
    border: 1px solid rgba(36, 42, 36, 0.22);
    transform: translateZ(-15px) rotateY(180deg);
}

.book-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
    user-drag: none;
}

.book-spine,
.book-pages {
    width: 30px;
    height: 176px;
    margin: -88px 0 0 -15px;
}

.book-spine {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #f7f8f2;
    background: var(--spine-gradient, linear-gradient(180deg, #334a39, #6e946f));
    border: 1px solid rgba(0, 0, 0, 0.34);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08),
                inset 2px 0 5px rgba(0, 0, 0, 0.18),
                inset -2px 0 5px rgba(0, 0, 0, 0.18);
    transform: translateX(-59px) rotateY(-90deg);
}

.book-spine > span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: var(--mono);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    white-space: nowrap;
    padding: 14px 0;
}

.book-pages {
    background:
        repeating-linear-gradient(90deg, #f3ecd6 0 1px, #ddd2b4 1px 3px, #f3ecd6 3px 4px);
    border: 1px solid rgba(36, 42, 36, 0.22);
    transform: translateX(59px) rotateY(90deg);
}

.book-top,
.book-bottom {
    width: 118px;
    height: 30px;
    margin: -15px 0 0 -59px;
}

.book-top {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.42), rgba(0,0,0,0.05)),
        repeating-linear-gradient(0deg, #efe7d0 0 1px, #d6c9a8 1px 3px, #efe7d0 3px 4px);
    border: 1px solid rgba(36, 42, 36, 0.18);
    transform: translateY(-88px) rotateX(90deg);
}

.book-bottom {
    background:
        linear-gradient(0deg, rgba(0,0,0,0.10), rgba(255,255,255,0.18)),
        repeating-linear-gradient(0deg, #e9deb9 0 1px, #c8bb94 1px 3px, #e9deb9 3px 4px);
    border: 1px solid rgba(36, 42, 36, 0.22);
    transform: translateY(88px) rotateX(-90deg);
}

.book-label {
    max-width: 160px;
    color: var(--accent-dark);
    font-family: var(--mono);
    font-size: 0.74rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.selected-book-slot {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr) auto;
    gap: 24px;
    flex: 0 0 auto;
    min-width: 0;
    min-height: 220px;
    margin-top: 14px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(51, 74, 57, 0.28);
    border-radius: calc(var(--radius) - 4px);
    box-shadow:
        0 18px 32px -22px rgba(36, 42, 36, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: start;
}

.selected-info-head,
.selected-info-body {
    min-width: 0;
}

.selected-info-head h2 {
    margin: 8px 0 0;
    font-size: 1.18rem;
    line-height: 1.25;
    min-height: 2.5em;
}

.selected-info-head .tool-sub {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.88rem;
}

.selected-info-body p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    min-height: 4.5em;
}

.selected-info-body .tag-row {
    margin-top: 12px;
    min-height: 2.4em;
    align-content: flex-start;
}

.selected-book-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: center;
    align-items: center;
    justify-content: center;
}

.selected-book-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 116px;
    height: 116px;
    padding: 0;
    color: #fdfdf7;
    background: linear-gradient(165deg, #7ea780, #5a7d5c);
    border: 1px solid rgba(36, 42, 36, 0.18);
    border-radius: 14px;
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
    box-shadow:
        0 16px 28px -14px rgba(51, 74, 57, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.selected-book-actions a:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow:
        0 20px 32px -14px rgba(51, 74, 57, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.selected-book-actions a:active {
    transform: translateY(0);
    filter: brightness(0.97);
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.search-box {
    position: relative;
    flex: 1;
    display: block;
}

.search-box > svg {
    position: absolute;
    top: 50%;
    left: 13px;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    min-height: 46px;
    padding: 11px 42px 11px 40px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.search-box input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(110, 148, 111, 0.13);
    outline: none;
}

.search-clear {
    position: absolute;
    top: 50%;
    right: 9px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: var(--text-muted);
    background: transparent;
    border: 0;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
}

.search-clear.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.search-clear:hover {
    color: var(--text);
    background: var(--bg-alt);
}

.view-toggle {
    display: flex;
    gap: 3px;
    padding: 3px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.view-toggle button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    color: var(--text-muted);
    background: transparent;
    border: 0;
    border-radius: 6px;
    font-size: 0.84rem;
    cursor: pointer;
}

.view-toggle button.is-active,
.view-toggle button:hover {
    color: var(--text);
    background: var(--bg-alt);
}

.catalog-meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 0.78rem;
}

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

.catalog-grid.is-list {
    grid-template-columns: 1fr;
    gap: 12px;
}

.tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tool-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.tool-card-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    text-indent: -9999px;
}

.tool-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

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

.ebook-card .tool-thumb {
    display: grid;
    place-items: center;
    padding: 22px;
    background:
        linear-gradient(135deg, rgba(110, 148, 111, 0.18), rgba(200, 143, 90, 0.12)),
        var(--bg-alt);
}

.ebook-card .tool-thumb img {
    width: auto;
    max-width: 62%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 18px 18px rgba(36, 42, 36, 0.18));
}

.tool-thumb span {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 5px 9px;
    border-radius: 6px;
    color: #fff;
    background: rgba(36, 42, 36, 0.72);
    font-family: var(--mono);
    font-size: 0.72rem;
}

.tool-body {
    flex: 1;
    padding: 18px;
}

.tool-card h2 {
    font-size: 1.15rem;
}

.tool-card p {
    margin: 8px 0 0;
    font-size: 0.9rem;
}

.tool-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    color: var(--text-muted);
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    font-size: 0.74rem;
}

.tool-foot > span {
    min-width: 0;
    flex: 1 1 auto;
}

.tool-foot strong {
    color: var(--text);
    font-family: var(--sans);
    font-size: 0.86rem;
}

.ebook-actions {
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: nowrap;
    flex: 0 0 auto;
    gap: 6px;
    justify-content: flex-end;
}

.ebook-actions a {
    padding: 7px 9px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    background: var(--surface);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.ebook-actions a:hover {
    border-color: var(--accent);
    background: var(--surface-soft);
}

.catalog-grid.is-list .tool-card {
    display: grid;
    grid-template-columns: 220px 1fr 160px;
    align-items: stretch;
}

.catalog-grid.is-list .tool-thumb {
    aspect-ratio: auto;
    border-bottom: 0;
    border-right: 1px solid var(--border);
}

.catalog-grid.is-list .tool-foot {
    flex-direction: column;
    justify-content: center;
    border-top: 0;
    border-left: 1px solid var(--border);
}

.tool-card.is-hidden {
    display: none;
}

.empty-state {
    margin-top: 20px;
    padding: 52px 24px;
    text-align: center;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.empty-state svg {
    width: 28px;
    height: 28px;
    margin-bottom: 12px;
}

.asset-hero {
    padding: 58px 0 54px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-soft);
}

.asset-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
    gap: 52px;
    align-items: center;
}

.asset-hero-copy .back-link {
    margin-bottom: 22px;
}

.asset-icon {
    width: 52px;
    height: 52px;
    padding: 4px;
    object-fit: contain;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.asset-title-row {
    align-items: center;
}

.asset-title-row .card-meta {
    margin-left: 4px;
}

.asset-hero h1 {
    margin-top: 18px;
    font-size: 4rem;
    line-height: 1;
}

.asset-subtitle {
    font-size: 1.26rem;
}

.asset-lede,
.block-lede {
    max-width: 760px;
    color: var(--text-secondary);
    font-size: 1.06rem;
}

.asset-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

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

.asset-facts div {
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.asset-facts dt,
.asset-facts dd {
    margin: 0;
}

.asset-facts dt {
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
}

.asset-facts dd {
    margin-top: 4px;
    font-weight: 700;
}

.asset-hero-media {
    overflow: hidden;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.asset-hero-media img {
    width: 100%;
    height: 100%;
    min-height: 330px;
    object-fit: contain;
}

.subnav {
    position: sticky;
    top: var(--nav-height);
    z-index: 90;
    background: rgba(247, 248, 242, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.subnav-inner {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.subnav a {
    display: inline-flex;
    padding: 14px 12px;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
}

.subnav a:hover,
.subnav a.is-active {
    color: var(--text);
    border-bottom-color: var(--accent);
}

.overview-gallery {
    margin-top: 28px;
}

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

.highlight {
    min-height: 214px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.highlight span {
    display: block;
    margin-bottom: 18px;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 700;
}

.highlight h3 {
    margin: 0 0 8px;
    font-size: 1.28rem;
}

.highlight p {
    margin: 0;
    color: var(--text-secondary);
}

.compare {
    overflow: hidden;
    margin-top: 36px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.compare h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0;
    padding: 18px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
}

.compare h3 em {
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 0.8rem;
    font-style: normal;
}

.table-wrap {
    overflow-x: auto;
}

.compare table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.compare th,
.compare td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.compare thead th {
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 0.74rem;
    text-transform: uppercase;
}

.compare tbody th {
    width: 28%;
}

.compare tbody td:nth-child(2) {
    color: var(--text-muted);
}

.compare tbody td:nth-child(3) {
    color: var(--text);
    background: rgba(110, 148, 111, 0.06);
    font-weight: 600;
}

.profiles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 42px;
    align-items: center;
}

.check-list {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
}

.check-list li {
    position: relative;
    padding: 8px 0 8px 18px;
    color: var(--text-secondary);
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.profiles-shot {
    overflow: hidden;
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.profiles-shot img {
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    background: #303030;
}

.profiles-shot figcaption {
    padding: 11px 14px;
    color: var(--text-muted);
    font-size: 0.84rem;
    border-top: 1px solid var(--border);
}

.profile-pill-box {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 36px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.profile-pill-box div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.profile-pill-box strong {
    width: 120px;
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 0.74rem;
    text-transform: uppercase;
}

.note {
    margin: 22px 0 0;
    padding: 15px 18px;
    color: var(--text-muted);
    background: var(--surface-soft);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
}

.note code {
    padding: 1px 5px;
    color: var(--text);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 5px;
}

.video-embed {
    overflow: hidden;
    max-width: 900px;
    margin: 28px auto 18px;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.video-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.clip-list {
    list-style: none;
    max-width: 900px;
    margin: 0 auto;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.clip-list li {
    margin: 0;
}

.clip-list button {
    width: 100%;
    display: grid;
    grid-template-columns: 66px 1fr;
    gap: 12px 18px;
    align-items: center;
    padding: 13px 14px;
    color: var(--text);
    background: transparent;
    border: 0;
    border-radius: 7px;
    text-align: left;
    cursor: pointer;
}

.clip-list button:hover,
.clip-list button.is-active {
    background: rgba(110, 148, 111, 0.1);
}

.clip-list span {
    grid-row: span 2;
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 0.82rem;
}

.clip-list strong {
    line-height: 1.25;
}

.clip-list em {
    color: var(--text-muted);
    font-style: normal;
    font-size: 0.86rem;
}

.changelog {
    margin-top: 24px;
}

.changelog-row {
    display: grid;
    grid-template-columns: 92px 92px 1fr;
    gap: 24px;
    padding: 18px 0;
    border-top: 1px solid var(--border);
}

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

.changelog-row > span {
    color: var(--text);
    font-weight: 700;
}

.changelog-row time {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.changelog-row p {
    margin: 0;
    color: var(--text-secondary);
}

.changelog-row strong {
    color: var(--text);
}

.cta-block {
    padding: 70px 0;
    text-align: center;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}

.cta-block p {
    max-width: 540px;
    margin: 12px auto 0;
    color: var(--text-secondary);
}

.cta-actions {
    justify-content: center;
}

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

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

@media (max-width: 980px) {
    .hero-grid,
    .about-grid,
    .contact-grid,
    .spotlight-body,
    .asset-hero-grid,
    .profiles-grid,
    .footer-main {
        grid-template-columns: 1fr;
    }

    .hero-copy,
    .hero-visual {
        padding-bottom: 34px;
    }

    .hero h1,
    .asset-hero h1 {
        font-size: 3.2rem;
    }

    .asset-hero-grid {
        gap: 30px;
    }

    .asset-facts {
        grid-template-columns: repeat(2, 1fr);
    }

    .catalog-layout {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .ebook-library {
        display: block;
    }

    .catalog-sidebar {
        position: static;
        min-width: 0;
    }

    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        max-width: 100%;
        padding-bottom: 4px;
    }

    .sidebar-block {
        min-width: 0;
    }

    .sidebar-item {
        min-width: max-content;
        border-left: 0;
        border-bottom: 2px solid transparent;
        border-radius: var(--radius);
    }

    .sidebar-item.is-active {
        border-bottom-color: var(--accent);
    }

    .sidebar-subnav {
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
        flex-direction: row;
    }

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

@media (max-width: 760px) {
    .container {
        padding: 0 20px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: 0;
        right: 0;
        top: var(--nav-height);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px 20px 18px;
        background: rgba(247, 248, 242, 0.98);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-sm);
        transform: translateY(-14px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
    }

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

    .nav-menu a {
        justify-content: flex-start;
        width: 100%;
        padding: 12px;
    }

    .nav-menu .nav-cta {
        margin-left: 0;
        justify-content: center;
    }

    .brand em {
        display: none;
    }

    .hero {
        padding-top: 44px;
    }

    .hero-grid {
        gap: 26px;
    }

    .hero h1,
    .asset-hero h1 {
        font-size: 2.55rem;
    }

    .hero-kicker {
        font-size: 1.22rem;
    }

    .section {
        padding: 64px 0;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .section-header h2,
    .section-heading h2,
    .contact-section h2,
    .section > .container > h2,
    .cta-block h2 {
        font-size: 1.65rem;
    }

    .pillars li,
    .contact-row,
    .changelog-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .contact-row svg,
    .contact-row i {
        justify-self: start;
    }

    .spotlight-body {
        padding: 24px 20px;
    }

    .feature-list {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid var(--border);
        padding-top: 20px;
    }

    .gallery-grid,
    .highlights-grid,
    .pinned-grid,
    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .asset-actions,
    .card-actions,
    .cta-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .btn,
    .asset-actions .btn,
    .card-actions .btn,
    .cta-actions .btn {
        width: 100%;
    }

    .catalog-toolbar,
    .catalog-meta {
        align-items: stretch;
        flex-direction: column;
    }

    .bookshelf-stage {
        min-height: 320px;
        padding: 30px 22px 52px;
        perspective: 1100px;
    }

    .bookshelf-row {
        min-height: 220px;
    }

    .bookshelf-base {
        left: 22px;
        right: 22px;
        bottom: 38px;
    }

    .selected-book-slot {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px;
    }

    .selected-info-head h2 {
        font-size: 1.18rem;
    }

    .selected-book-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .view-toggle {
        width: 100%;
    }

    .view-toggle button {
        flex: 1;
        justify-content: center;
    }

    .catalog-grid.is-list .tool-card {
        display: flex;
    }

    .catalog-grid.is-list .tool-thumb {
        aspect-ratio: 16 / 9;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .catalog-grid.is-list .tool-foot {
        border-left: 0;
        border-top: 1px solid var(--border);
    }

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

    .asset-hero-media img {
        min-height: auto;
    }

    .profile-pill-box div {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-pill-box strong {
        width: auto;
    }

    .clip-list button {
        grid-template-columns: 52px 1fr;
        gap: 8px 12px;
        padding: 12px 10px;
    }

    .clip-list em {
        display: none;
    }

    .footer-main {
        padding: 28px 20px;
    }

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

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

@media (max-width: 430px) {
    .hero-actions,
    .asset-actions,
    .card-actions,
    .cta-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .brand span {
        max-width: 160px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 520px) {
    .container {
        max-width: 390px;
        margin-left: 0;
        margin-right: auto;
    }

    .library-book {
        width: 136px;
    }

    .book-object {
        width: 104px;
        height: 156px;
    }
}
