/* Homepage-only correction pass against REFERENCE.png (1536 × 1024). */
:root {
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

:root {
    --sidebar: 272px;
}

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.sidebar {
    width: var(--sidebar);
    background: #090a0b;
}

.brand {
    height: 88px;
    padding: 12px 18px 10px;
}

.brand img {
    width: 232px;
    height: 66px;
    object-fit: cover;
    filter: invert(1) hue-rotate(180deg) contrast(1.32) brightness(1.12);
    mix-blend-mode: screen;
}

.sidebar nav {
    padding-top: 12px;
}

.sidebar nav > a,
.nav-group > a {
    min-height: 44px;
    padding: 9px 24px;
    gap: 16px;
    font-size: 14px;
}

.sidebar nav svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar nav i {
    display: none;
}

.sub {
    padding: 2px 0 9px 65px;
}

.sub a {
    padding: 5px 0;
    font-size: 12px;
}

.sidebar-bottom {
    padding: 18px 24px 22px;
}

.main {
    margin-left: var(--sidebar);
}

.topbar {
    left: var(--sidebar);
    height: 68px;
    padding: 0 24px 0 30px;
}

.search-wrap {
    width: 420px;
    height: 40px;
    border-color: rgba(255, 255, 255, .16);
    background: rgba(7, 8, 8, .64);
}

.search-wrap > span {
    width: 45px;
    padding: 0;
    display: grid;
    place-items: center;
}

.search-wrap svg,
.topbar-tools svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.topbar-tools {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.collection-count {
    margin-left: 0;
    min-height: 38px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(7, 8, 8, .66);
}

.collection-count strong {
    margin-left: 0;
    border-radius: 9px;
    line-height: 16px;
    min-width: 20px;
    text-align: center;
    padding: 0 5px;
}

.museum-menu {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #c6c7c7;
    border: 1px solid #323436;
    background: rgba(7, 8, 8, .66);
    border-radius: 2px;
}

.hero {
    height: clamp(395px, 47.25vh, 505px);
    align-items: center;
    background-image:
        linear-gradient(90deg, rgba(5, 6, 6, .91) 0%, rgba(5, 6, 6, .66) 27%, rgba(5, 6, 6, .15) 52%, rgba(5, 6, 6, .02) 78%),
        linear-gradient(0deg, rgba(8, 9, 9, .55) 0%, transparent 19%),
        url('../images/hero.jpg');
    background-size: cover;
    background-position: 55% 57%;
}

.hero-copy {
    padding-left: 40px;
    margin-top: 41px;
    max-width: 610px;
    text-shadow: 0 2px 13px rgba(0, 0, 0, .8);
}

.hero-copy > p {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 400;
}

.hero h1 {
    width: 520px;
    margin: 0 0 13px;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: clamp(55px, 3.8vw, 60px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: .025em;
}

.hero-sub {
    font-size: 14px;
    line-height: 1.55;
    color: #d7d7d4;
}

.hero-actions {
    gap: 14px;
    margin-top: 21px;
}

.hero-actions .button {
    width: 205px;
    height: 44px;
    min-height: 44px;
    padding: 0 15px;
    border-radius: 3px;
    font-size: 13px;
}

.hero-actions .button.primary {
    width: 175px;
}

.museum-stats {
    top: 80px;
    right: 24px;
    width: 168px;
    border-color: rgba(255, 255, 255, .2);
    background: rgba(8, 9, 9, .79);
    border-radius: 4px;
    overflow: hidden;
}

.museum-stats > div + div {
    border-color: rgba(255, 255, 255, .17);
}

.museum-stats dt {
    height: 61px;
    grid-template-columns: 38px 1fr;
    padding: 7px 12px;
}

.museum-stats i {
    display: grid;
    place-items: center;
    color: #ef4738;
}

.museum-stats svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.museum-stats strong {
    font-size: 19px;
    font-weight: 700;
}

.museum-stats span {
    margin-top: 2px;
    font-size: 9px;
}

.museum-section {
    padding: 18px 24px;
}

.section-head {
    margin-bottom: 10px;
}

.section-head h2 {
    font-size: 17px;
    line-height: 1.2;
    letter-spacing: .17em;
}

.arrivals {
    height: 261px;
    padding-top: 22px;
    padding-bottom: 14px;
    overflow: hidden;
}

.arrivals .section-head > a {
    display: none;
}

.card-rail {
    grid-auto-columns: 200px;
    gap: 9px;
    padding-bottom: 0;
    scrollbar-width: none;
}

.card-rail::-webkit-scrollbar {
    display: none;
}

.exhibit-card {
    height: 191px;
    border-color: #343638;
    border-radius: 4px;
}

.exhibit-card img,
.exhibit-card .demo-photo {
    height: 135px;
}

.card-body {
    padding: 5px 10px 7px;
}

.card-body .type {
    font-size: 8px;
    line-height: 11px;
}

.card-body h3 {
    margin-top: 2px;
    font-size: 13px;
    line-height: 15px;
}

.card-body p {
    font-size: 9px;
    line-height: 12px;
}

.card-body small {
    display: none;
}

.demo-photo {
    position: relative;
    overflow: hidden;
    background: #181a1b;
    filter: none;
}

.demo-photo::before {
    content: attr(data-placeholder);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .12);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    font: 700 46px/1 Impact, 'Arial Narrow', sans-serif;
    letter-spacing: .06em;
}

.demo-photo::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72px;
    height: 1px;
    background: rgba(227, 59, 46, .48);
    transform: translate(-50%, 31px);
}

.home-lower {
    grid-template-columns: 1fr 1fr;
    min-height: 278px;
}

.home-lower .museum-section {
    padding-top: 21px;
}

.home-lower .section-head {
    margin-bottom: 7px;
}

.timeline-track {
    min-height: 106px;
    margin-bottom: 13px;
    scrollbar-width: none;
}

.timeline-track::-webkit-scrollbar { display: none; }

.timeline-track a {
    min-width: 74px;
}

.random-inner {
    height: 164px;
    grid-template-columns: 43% 1fr auto;
    gap: 17px;
    border-radius: 4px;
}

.random-photo::before {
    font-size: 58px;
}

.random-inner .button {
    width: 164px;
    min-height: 46px;
    margin-right: 24px;
    gap: 8px;
}

.random-inner .button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

@media (min-width: 1680px) {
    .card-rail { grid-auto-columns: 230px; }
    .hero-copy { padding-left: 42px; }
}

@media (max-height: 900px) and (min-width: 821px) {
    .brand { height: 78px; padding-top: 8px; padding-bottom: 8px; }
    .brand img { height: 60px; }
    .sidebar nav { padding-top: 8px; }
    .sidebar nav > a,
    .nav-group > a { min-height: 40px; padding-top: 7px; padding-bottom: 7px; }
    .sub { padding-top: 0; padding-bottom: 5px; }
    .sub a { padding-top: 4px; padding-bottom: 4px; }
    .museum-stats { top: 62px; width: 160px; }
    .museum-stats dt { height: 52px; grid-template-columns: 35px 1fr; padding: 5px 10px; }
    .museum-stats svg { width: 20px; height: 20px; }
}

@media (max-width: 1180px) and (min-width: 821px) {
    :root { --sidebar: 240px; }
    .brand img { width: 204px; }
    .hero-copy { padding-left: 32px; }
    .hero h1 { font-size: 51px; width: 450px; }
    .museum-stats { right: 16px; }
    .search-wrap { width: 360px; }
}

@media (max-width: 820px) {
    :root { --sidebar: 0px; }
    .sidebar { width: 265px; }
    .topbar { left: 0; padding-left: 64px; }
    .topbar-tools { display: none; }
    .hero { height: 650px; align-items: flex-end; background-position: 60% center; }
    .hero-copy { width: 100%; max-width: 610px; box-sizing: border-box; padding: 0 22px 37px; margin: 0; }
    .hero h1 { width: auto; font-size: 48px; }
    .museum-stats { top: 70px; left: 12px; right: 12px; width: auto; display: grid; grid-template-columns: repeat(3, 1fr); }
    .museum-stats > div:nth-child(n) { border-top: 0; }
    .museum-stats > div:nth-child(n+4) { border-top: 1px solid rgba(255,255,255,.17); }
    .museum-stats > div:not(:nth-child(3n+1)) { border-left: 1px solid rgba(255,255,255,.17); }
    .museum-stats dt { height: 55px; grid-template-columns: 28px 1fr; padding: 5px 8px; }
    .museum-stats svg { width: 18px; height: 18px; }
    .arrivals { height: 258px; }
    .card-rail { grid-auto-columns: 205px; }
    .home-lower { width: 100%; max-width: 100vw; min-width: 0; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
    .home-lower > .museum-section,
    .random-inner { min-width: 0; }
}

@media (max-width: 520px) {
    .topbar { height: 62px; }
    .hero { height: 660px; background-position: 63% center; }
    .hero-copy { padding: 0 16px 26px; }
    .hero-copy > p { font-size: 16px; }
    .hero h1 { font-size: 40px; }
    .hero-actions { width: 100%; flex-direction: column; }
    .hero-actions .button,
    .hero-actions .button.primary { width: 100%; }
    .museum-stats { top: 66px; left: 12px; right: 12px; width: auto; }
    .museum-stats dt { grid-template-columns: 25px 1fr; padding-left: 6px; padding-right: 5px; }
    .museum-stats span { font-size: 7px; letter-spacing: .045em; }
    .museum-section { padding-left: 12px; padding-right: 12px; }
    .random-inner { height: auto; grid-template-columns: 1fr; }
    .random-photo { height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
    .exhibit-card img,
    .exhibit-card .demo-photo { transition: none; }
}
