:root {
    color-scheme: dark;
    --bg: #070a10;
    --bg-2: #0d121b;
    --panel: rgba(17, 23, 33, 0.84);
    --panel-strong: #111722;
    --text: #f5f7fb;
    --muted: #a8b4c2;
    --line: rgba(255, 255, 255, 0.14);
    --cyan: #57e3f2;
    --teal: #25d5c7;
    --violet: #9b7bff;
    --rose: #ff5a8d;
    --gold: #e9c77d;
    --paper: #f4efe3;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
    --max: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 14% 8%, rgba(87, 227, 242, 0.16), transparent 31rem),
        radial-gradient(circle at 82% 18%, rgba(155, 123, 255, 0.16), transparent 32rem),
        linear-gradient(180deg, #070a10 0%, #101722 47%, #070a10 100%);
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.55;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}

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

button,
input,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

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

.site-header {
    position: sticky;
    z-index: 40;
    top: 0;
    display: grid;
    grid-template-columns: minmax(16rem, 1fr) auto auto;
    gap: 1rem;
    align-items: center;
    width: 100%;
    padding: 0.68rem max(1rem, calc((100vw - var(--max)) / 2));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(7, 10, 16, 0.88);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.brand-mark {
    position: relative;
    isolation: isolate;
    display: grid;
    width: 4.4rem;
    height: 4.4rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(87, 227, 242, 0.52);
    border-radius: 8px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(87, 227, 242, 0.24), rgba(155, 123, 255, 0.22)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
    color: var(--cyan);
    box-shadow:
        0 18px 42px rgba(37, 213, 199, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.brand-mark::before {
    content: "";
    position: absolute;
    inset: -35%;
    z-index: -1;
    background: conic-gradient(from 210deg, transparent, rgba(87, 227, 242, 0.55), rgba(155, 123, 255, 0.48), transparent 62%);
    animation: logoSweep 7s linear infinite;
}

.brand-mark span {
    position: relative;
    z-index: 1;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-shadow: 0 0 18px rgba(87, 227, 242, 0.65);
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
}

.brand small {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.main-nav,
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.main-nav a {
    border-radius: 8px;
    color: #dde5ee;
    font-weight: 800;
    padding: 0.55rem 0.72rem;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.user-chip {
    color: #dbe6ef;
    font-size: 0.9rem;
    font-weight: 800;
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(22rem, 1.1fr);
    gap: 2rem;
    align-items: center;
    width: min(var(--max), calc(100% - 2rem));
    min-height: 39rem;
    margin: 0 auto;
    padding: 4.4rem 0 3.1rem;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 1.5rem -2rem 0;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background:
        linear-gradient(100deg, rgba(10, 14, 22, 0.95), rgba(14, 19, 30, 0.72) 48%, rgba(155, 123, 255, 0.08)),
        linear-gradient(135deg, rgba(37, 213, 199, 0.08), transparent 42%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 7rem);
    box-shadow: var(--shadow);
}

.hero-copy {
    min-width: 0;
    padding-left: 0.25rem;
}

.artist-card {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(87, 227, 242, 0.36);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 28px 74px rgba(0, 0, 0, 0.42), 0 0 34px rgba(87, 227, 242, 0.13);
}

.artist-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(128deg, rgba(255, 255, 255, 0.2), transparent 26%, transparent 72%, rgba(87, 227, 242, 0.14));
    mix-blend-mode: screen;
}

.artist-card img {
    display: block;
    width: 100%;
    height: clamp(10.8rem, 16.5vw, 15rem);
    object-fit: cover;
    object-position: center 34%;
    filter: saturate(1.03) contrast(1.03);
}

.artist-card figcaption {
    position: relative;
    z-index: 1;
    padding: 0.82rem 0.9rem 0.92rem;
    background:
        linear-gradient(180deg, rgba(9, 13, 20, 0.1), rgba(6, 8, 12, 0.86)),
        rgba(9, 13, 20, 0.78);
}

.artist-card figcaption span {
    display: block;
    color: var(--cyan);
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    line-height: 1.25;
    text-transform: uppercase;
}

.artist-card h1 {
    margin: 0.24rem 0 0;
    color: #effdff;
    font-size: clamp(1.48rem, 2.9vw, 2.18rem);
    line-height: 1;
    text-shadow: 0 0 26px rgba(87, 227, 242, 0.42);
}

.artist-message {
    position: relative;
    border-left: 1px solid rgba(87, 227, 242, 0.46);
    border-radius: 8px;
    padding: 1rem 1.05rem 1rem 1.2rem;
    background:
        linear-gradient(90deg, rgba(87, 227, 242, 0.11), rgba(255, 255, 255, 0.035)),
        rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.artist-message::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 -1px;
    width: 1px;
    background: rgba(87, 227, 242, 0.95);
    box-shadow: 0 0 22px rgba(87, 227, 242, 0.5);
}

.artist-message p {
    margin: 0;
    color: #e7eff6;
    font-size: clamp(1rem, 1.2vw, 1.13rem);
    line-height: 1.48;
}

.eyebrow {
    margin: 0 0 0.75rem;
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

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

h1,
h2 {
    font-family: Georgia, "Times New Roman", serif;
}

h1 {
    margin-bottom: 0.9rem;
    font-size: clamp(3rem, 7vw, 4.8rem);
    line-height: 0.95;
}

h2 {
    margin-bottom: 0.72rem;
    font-size: clamp(1.72rem, 3vw, 2.1rem);
    line-height: 1.13;
}

h3 {
    font-size: 1.04rem;
    line-height: 1.22;
}

.hero-lead {
    max-width: 31rem;
    color: #dbe5ef;
    font-size: 1.16rem;
}

.hero-actions,
.contact-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.button {
    display: inline-flex;
    min-height: 2.72rem;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 900;
    padding: 0.66rem 1rem;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button.mini {
    min-height: 2.38rem;
    padding: 0.48rem 0.72rem;
    font-size: 0.9rem;
}

.button.primary {
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    color: #071014;
    box-shadow: 0 14px 36px rgba(87, 227, 242, 0.16);
}

.button.ghost {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.06);
}

.button:hover,
.button:focus-visible,
.filter-pills button:hover,
.filter-pills button:focus-visible {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.11);
}

.hero-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    width: min(37rem, 100%);
    margin-top: 2rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
}

.hero-panel div {
    padding: 0.95rem;
    background: rgba(9, 13, 20, 0.76);
}

.hero-panel strong,
.hero-panel span {
    display: block;
}

.hero-panel strong {
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.65rem;
}

.hero-panel span {
    color: var(--muted);
    font-size: 0.82rem;
}

.hero-showcase {
    position: relative;
    isolation: isolate;
    min-height: 31rem;
    overflow: visible;
    perspective: 900px;
}

.hero-cover {
    --hero-rotate: 0deg;
    --hero-hover-y: 0px;
    --hero-pop-z: 0px;
    --hero-scale: 1;
    position: absolute;
    display: grid;
    width: 18.5rem;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 30px 75px rgba(0, 0, 0, 0.44);
    cursor: zoom-in;
    text-align: left;
    transform: translate3d(0, var(--hero-hover-y), var(--hero-pop-z)) rotate(var(--hero-rotate)) scale(var(--hero-scale));
    transform-origin: center center;
    transform-style: preserve-3d;
    transition:
        transform 520ms cubic-bezier(0.2, 0.85, 0.2, 1),
        border-color 420ms ease,
        box-shadow 520ms ease,
        filter 420ms ease;
    will-change: transform;
}

.hero-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, transparent 45%, rgba(6, 8, 12, 0.86) 100%),
        linear-gradient(115deg, rgba(255, 255, 255, 0.18), transparent 28%);
}

.hero-cover img {
    display: block;
    width: 100%;
    height: auto !important;
    aspect-ratio: 16 / 11;
    object-fit: cover;
}

.hero-cover span {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 1;
    padding: 1rem;
}

.hero-cover strong,
.hero-cover small {
    display: block;
}

.hero-cover strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
}

.hero-cover small {
    color: var(--muted);
}

.hero-cover-1 {
    top: 2rem;
    left: 7%;
    z-index: 6;
    width: 24rem;
    --hero-rotate: -4deg;
}

.hero-cover-2 {
    top: 0.4rem;
    right: 8%;
    z-index: 3;
    width: 16.9rem;
    --hero-rotate: 7deg;
}

.hero-cover-3 {
    top: 10rem;
    right: -1%;
    z-index: 4;
    width: 17.5rem;
    --hero-rotate: -5deg;
}

.hero-cover-4 {
    bottom: 1rem;
    left: 23%;
    z-index: 2;
    width: 18rem;
    --hero-rotate: 4deg;
}

.hero-cover-5 {
    right: 14%;
    bottom: 2.4rem;
    z-index: 1;
    width: 15.5rem;
    --hero-rotate: -8deg;
}

.hero-cover-6 {
    left: 0;
    top: 16rem;
    z-index: 1;
    width: 15.8rem;
    --hero-rotate: 8deg;
}

.hero-cover:nth-child(n+4) span {
    padding: 0.78rem;
}

.hero-cover:nth-child(n+4) strong {
    font-size: 1rem;
}

.hero-cover:hover,
.hero-cover:focus-visible,
.hero-cover.is-touch-preview {
    --hero-rotate: 0deg;
    --hero-hover-y: -18px;
    --hero-pop-z: 72px;
    --hero-scale: 1.065;
    z-index: 20;
    border-color: rgba(87, 227, 242, 0.5);
    box-shadow: 0 46px 98px rgba(0, 0, 0, 0.62), 0 0 34px rgba(87, 227, 242, 0.16);
    filter: brightness(1.06) saturate(1.08);
}
.cover-card,
.service-grid article,
.contact-section,
.newsletter-section,
.lightbox-panel,
.auth-panel {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.section {
    width: min(var(--max), calc(100% - 2rem));
    margin: 4.8rem auto;
}

.section-heading {
    max-width: 45rem;
    margin-bottom: 1.35rem;
}

.section-heading p:not(.eyebrow) {
    color: var(--muted);
}

.toolbar {
    display: grid;
    grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.2fr);
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.15rem;
}

.search-field,
.newsletter-form label,
.auth-form label {
    display: grid;
    gap: 0.42rem;
}

.search-field {
    position: relative;
    padding: 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(215, 247, 243, 0.34);
    border-radius: 18px 4px 18px 4px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(2, 55, 61, 0.72) 42%, rgba(1, 30, 35, 0.86)),
        repeating-linear-gradient(122deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 22px);
    box-shadow:
        0 18px 44px rgba(0, 24, 29, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 0 0 1px rgba(87, 227, 242, 0.06);
}

.search-field::before {
    content: "";
    position: absolute;
    inset: 0.42rem;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px 3px 14px 3px;
}

.search-field:focus-within {
    border-color: rgba(214, 255, 248, 0.74);
    box-shadow:
        0 22px 54px rgba(0, 23, 28, 0.3),
        0 0 34px rgba(113, 244, 232, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.search-field span,
.newsletter-form label,
.auth-form label {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.search-field span {
    position: relative;
    z-index: 1;
    color: #e9fffb;
}

.search-field input,
.newsletter-form input,
.auth-form input,
.rating-form input,
.rating-form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    outline: none;
    padding: 0.7rem 0.78rem;
}

.search-field input {
    min-height: 3rem;
    position: relative;
    z-index: 1;
    border-color: rgba(255, 255, 255, 0.2);
    background:
        radial-gradient(circle at 18% 50%, rgba(134, 255, 242, 0.16), transparent 17rem),
        rgba(0, 22, 27, 0.54);
    box-shadow: inset 0 1px 18px rgba(0, 0, 0, 0.24);
}

.search-field input:focus,
.newsletter-form input:focus,
.auth-form input:focus,
.rating-form input:focus,
.rating-form textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(87, 227, 242, 0.14);
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
}

.filter-pills button {
    min-height: 2.32rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #dfe7f0;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 900;
    padding: 0.4rem 0.72rem;
}

.filter-pills button.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    color: #071014;
}

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

.cover-card {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.cover-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(135deg, rgba(87, 227, 242, 0.18), rgba(255, 90, 141, 0.1));
    transition: opacity 180ms ease;
}

.cover-card:hover {
    border-color: rgba(87, 227, 242, 0.32);
    transform: translateY(-2px);
}

.cover-card:hover::before {
    opacity: 1;
}

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

.cover-image-button {
    display: grid;
    width: 100%;
    min-height: 18rem;
    padding: 0;
    overflow: hidden;
    border: 0;
    background:
        radial-gradient(circle at 50% 36%, rgba(87, 227, 242, 0.14), transparent 17rem),
        #0c1119;
    cursor: zoom-in;
}

.book-object {
    --book-angle: -7deg;
    --book-depth: 1.2rem;
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    perspective: 1100px;
    transform-style: preserve-3d;
}

.book-object[hidden] {
    display: none;
}

.book-face,
.book-side {
    position: absolute;
    border-radius: 6px;
    transform-style: preserve-3d;
}

.book-front {
    inset: 6% 12% 6% 8%;
    z-index: 3;
    overflow: hidden;
    background: #111;
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.36);
    transform: rotateY(var(--book-angle)) translateZ(var(--book-depth));
    transition: transform 220ms ease, filter 220ms ease;
}

.book-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-pages {
    top: 7%;
    right: 6.5%;
    bottom: 7%;
    z-index: 2;
    width: 10%;
    background:
        repeating-linear-gradient(90deg, #efe8d9 0 2px, #d7cdb9 2px 4px),
        var(--paper);
    box-shadow: inset -8px 0 15px rgba(0, 0, 0, 0.18);
    transform: rotateY(68deg) translateX(0.15rem);
    transform-origin: left center;
}

.book-spine {
    top: 7%;
    left: 6.2%;
    bottom: 7%;
    z-index: 1;
    width: 8%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.42)), #10151e;
    transform: rotateY(-62deg);
    transform-origin: right center;
}

.book-back {
    inset: 8% 13.5% 5% 9.5%;
    z-index: 0;
    background: linear-gradient(135deg, rgba(87, 227, 242, 0.18), rgba(155, 123, 255, 0.12)), #10151e;
    transform: rotateY(var(--book-angle)) translateZ(-0.55rem);
}

.book-object-card {
    aspect-ratio: 16 / 11;
}

.cover-card:hover .book-front {
    transform: rotateY(-11deg) translateZ(calc(var(--book-depth) + 0.12rem)) scale(1.015);
    filter: saturate(1.08) contrast(1.04);
}

.cover-card-3d .cover-image-button {
    overflow: hidden;
    touch-action: pan-y;
    background:
        radial-gradient(circle at 54% 34%, rgba(87, 227, 242, 0.18), transparent 14rem),
        linear-gradient(145deg, rgba(10, 16, 24, 0.98), rgba(5, 8, 13, 0.96));
}

.cc-three-book3d {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    isolation: isolate;
    overflow: visible;
    cursor: grab;
    outline: 0;
    touch-action: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.cc-three-book3d[hidden] {
    display: none;
}

.cc-three-book3d.is-dragging {
    cursor: grabbing;
}

.cc-three-book3d.is-touch-armed {
    cursor: grabbing;
}

.cc-three-book3d-card {
    aspect-ratio: 16 / 11;
    touch-action: pan-y;
}

.cc-three-book3d-card .jk-book3d-canvas,
.cc-three-book3d-card .jk-book3d-fallback-link {
    touch-action: pan-y;
}

.cc-three-book3d .jk-book3d-canvas,
.cc-three-book3d .jk-book3d-fallback-link {
    position: absolute;
    inset: 0;
}

.cc-three-book3d .jk-book3d-canvas {
    --jk-book3d-shadow-x: 0px;
    --jk-book3d-shadow-y: 34px;
    --jk-book3d-shadow-blur: 52px;
    --jk-book3d-shadow-alpha: 0.48;
    z-index: 2;
    opacity: 0;
    transition: opacity 220ms ease;
}

.cc-three-book3d.is-ready.has-3d-painted .jk-book3d-canvas {
    opacity: 1;
}

.cc-three-book3d.has-3d-error .jk-book3d-canvas {
    opacity: 0;
}

.cc-three-book3d .jk-book3d-canvas::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 8%;
    z-index: 0;
    width: 44%;
    height: 12%;
    border-radius: 999px;
    background: rgba(0, 0, 0, var(--jk-book3d-shadow-alpha));
    filter: blur(var(--jk-book3d-shadow-blur));
    transform: translate(calc(-50% + var(--jk-book3d-shadow-x)), var(--jk-book3d-shadow-y)) rotate(-7deg);
    pointer-events: none;
}

.cc-three-book3d .jk-book3d-canvas canvas {
    position: relative;
    z-index: 1;
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.cc-three-book3d .jk-book3d-fallback-link {
    z-index: 1;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.cc-three-book3d .jk-book3d-fallback-img {
    width: auto;
    max-width: 58%;
    max-height: 86%;
    object-fit: contain;
    filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.42));
    opacity: 1;
    transition: opacity 220ms ease;
}

.cc-three-book3d.is-ready.has-3d-painted:not(.has-3d-error) .jk-book3d-fallback-img {
    opacity: 0;
}

.cc-three-book3d.has-3d-error .jk-book3d-fallback-img {
    opacity: 1;
}

.cc-three-book3d-large {
    width: 100%;
    min-height: inherit;
    height: min(82vh, 48rem);
    touch-action: none;
}

.cc-three-book3d-large .jk-book3d-canvas::after {
    width: 36%;
    height: 9%;
    bottom: 6%;
}

.cc-three-book3d-large .jk-book3d-fallback-img {
    max-width: min(48vh, 28rem);
    max-height: min(76vh, 43rem);
}

.cover-meta {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 10.4rem;
    flex-direction: column;
    padding: 1rem;
}

.category-label {
    align-self: flex-start;
    margin-bottom: 0.7rem;
    border: 1px solid rgba(87, 227, 242, 0.3);
    border-radius: 8px;
    color: var(--cyan);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    padding: 0.2rem 0.48rem;
    text-transform: uppercase;
}

.cover-meta h3 {
    margin-bottom: 0.34rem;
}

.cover-meta p {
    margin-bottom: auto;
    color: var(--muted);
}

.rating-line,
.modal-rating {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.stars {
    color: var(--gold);
    letter-spacing: 0.08em;
}

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

.service-grid article {
    border-radius: 8px;
    padding: 1.15rem;
}

.service-grid span {
    display: block;
    margin-bottom: 0.72rem;
    color: var(--gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.65rem;
}

.service-grid p,
.contact-section p,
.newsletter-section p {
    color: var(--muted);
}

.contact-section,
.newsletter-section {
    justify-content: space-between;
    width: min(var(--max), calc(100% - 2rem));
    margin: 4.8rem auto 2rem;
    border-radius: 8px;
    padding: 1.35rem;
}

.contact-section div,
.newsletter-section div {
    max-width: 47rem;
}

.contact-section h2 {
    overflow-wrap: anywhere;
}

.newsletter-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(19rem, 0.55fr);
    gap: 1.4rem;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.newsletter-form,
.auth-form {
    display: grid;
    gap: 0.85rem;
}

.lightbox[hidden],
.auth-modal[hidden],
.rating-form[hidden],
.auth-gate[hidden] {
    display: none;
}

.lightbox,
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.auth-modal {
    z-index: 95;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 8, 0.8);
    backdrop-filter: blur(16px);
}

.lightbox-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.34fr) minmax(18rem, 0.66fr);
    width: min(74rem, 100%);
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    border-radius: 8px;
}

.lightbox-media {
    display: grid;
    min-height: 29rem;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(87, 227, 242, 0.12), transparent 42%),
        rgba(8, 11, 16, 0.94);
}

.book-object-large {
    width: min(92%, 52rem);
    min-height: 27rem;
    aspect-ratio: 16 / 11;
}

.book-object-large .book-front {
    inset: 4% 13% 4% 8%;
}

.lightbox.is-book3d .lightbox-panel {
    grid-template-columns: minmax(0, 1.55fr) minmax(17rem, 0.45fr);
    width: min(92rem, 100%);
}

.lightbox.is-book3d .lightbox-media {
    min-height: min(82vh, 48rem);
}

.lightbox-info {
    min-width: 0;
    overflow: auto;
    border-left: 1px solid var(--line);
    background: rgba(16, 21, 29, 0.97);
    padding: 1.25rem;
}

.icon-button {
    position: absolute;
    z-index: 3;
    display: grid;
    width: 2.55rem;
    height: 2.55rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(14, 18, 25, 0.82);
    cursor: pointer;
    font-size: 1.6rem;
}

.close-button {
    top: 0.75rem;
    right: 0.75rem;
}

.nav-button {
    top: 50%;
    transform: translateY(-50%);
}

.prev-button {
    left: 0.75rem;
}

.next-button {
    right: calc(34% + 0.75rem);
}

.rating-form {
    display: grid;
    gap: 0.85rem;
    margin: 1.3rem 0;
}

.rating-form label,
.rating-form fieldset {
    display: grid;
    gap: 0.4rem;
    margin: 0;
    border: 0;
    color: #dbe5ee;
    font-weight: 700;
    padding: 0;
}

.rating-form textarea {
    resize: vertical;
}

.auth-gate {
    display: grid;
    gap: 0.7rem;
    margin: 1rem 0;
    border: 1px solid rgba(87, 227, 242, 0.2);
    border-radius: 8px;
    background: rgba(87, 227, 242, 0.07);
    padding: 0.9rem;
}

.auth-gate p,
.signed-in-note {
    margin-bottom: 0;
    color: #dce7ef;
}

.auth-panel {
    position: relative;
    width: min(52rem, 100%);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    border-radius: 8px;
    padding: 1.35rem;
}

.social-auth {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 1rem;
}

.social-auth-button {
    min-height: 2.75rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(87, 227, 242, 0.1));
}

.social-auth-button.is-disabled {
    cursor: not-allowed;
    opacity: 0.68;
}

.social-auth-note {
    grid-column: 1 / -1;
    margin: 0.1rem 0 0;
}

.auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.auth-form {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    padding: 1rem;
}

.check-row {
    display: flex !important;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.check-row input {
    width: auto;
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.star-input {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.12rem;
    width: max-content;
    border: 1px solid rgba(233, 199, 125, 0.22);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(233, 199, 125, 0.12), rgba(87, 227, 242, 0.05)),
        rgba(6, 28, 31, 0.58);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 14px 34px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    padding: 0.22rem;
    touch-action: none;
    user-select: none;
}

.star-input::after {
    content: "";
    position: absolute;
    inset: -0.55rem;
    border-radius: 14px;
    background: radial-gradient(circle, rgba(233, 199, 125, 0.2), transparent 62%);
    opacity: calc(0.12 + (var(--rating-value, 5) * 0.045));
    pointer-events: none;
}

.star-input button {
    position: relative;
    z-index: 1;
    width: 2.05rem;
    height: 2.05rem;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: rgba(233, 199, 125, 0.56);
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
    text-shadow: 0 0 0 rgba(233, 199, 125, 0);
    transition: color 180ms ease, background 180ms ease, text-shadow 180ms ease;
}

.star-input button.is-selected {
    background: rgba(233, 199, 125, 0.12);
    color: var(--gold);
    text-shadow: 0 0 14px rgba(233, 199, 125, 0.52);
}

.form-note {
    color: var(--muted);
    font-size: 0.9rem;
}

.comment-list {
    display: grid;
    gap: 0.75rem;
}

.comment {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
}

.comment header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
    color: #fff;
    font-weight: 800;
}

.comment time {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 500;
}

.comment p {
    margin-bottom: 0;
    color: #d8e2ea;
}

@keyframes logoSweep {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1060px) {
    .site-header {
        grid-template-columns: 1fr auto;
    }

    .main-nav {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 3.5rem;
    }

    .hero-showcase {
        min-height: 30rem;
    }

    .hero-cover-1 {
        left: 6%;
        width: 21rem;
    }

    .hero-cover-2 {
        top: 0.6rem;
        right: 5%;
        width: 15rem;
    }

    .hero-cover-3 {
        top: 9.4rem;
        right: 2%;
        width: 15.5rem;
    }

    .hero-cover-4 {
        bottom: 0;
        left: 28%;
        width: 16rem;
    }

    .hero-cover-5 {
        right: 18%;
        bottom: 5.2rem;
        width: 13rem;
    }

    .hero-cover-6 {
        left: 1%;
        top: 16rem;
        width: 13.5rem;
    }

    .toolbar,
    .gallery-grid,
    .service-grid,
    .newsletter-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-pills {
        justify-content: flex-start;
    }

    .lightbox-panel {
        grid-template-columns: 1fr;
        overflow: auto;
    }

    .lightbox.is-book3d .lightbox-panel {
        grid-template-columns: 1fr;
    }

    .lightbox-media {
        min-height: 20rem;
    }

    .lightbox.is-book3d .lightbox-media {
        min-height: min(70vh, 40rem);
    }

    .cc-three-book3d-large {
        height: min(70vh, 40rem);
    }

    .book-object-large {
        min-height: 20rem;
    }

    .lightbox-info {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .next-button {
        right: 0.75rem;
    }
}

@media (max-width: 680px) {
    .site-header {
        align-items: flex-start;
        grid-template-columns: 1fr;
        padding: 0.72rem 1rem;
    }

    .brand-mark {
        width: 3.8rem;
        height: 3.8rem;
    }

    .brand small {
        display: none;
    }

    .main-nav,
    .header-actions {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.15rem;
    }

    .main-nav a {
        padding-inline: 0.55rem;
        white-space: nowrap;
    }

    .hero {
        width: min(100% - 1.5rem, var(--max));
        padding-top: 2.8rem;
    }

    .hero::before {
        inset-inline: -0.2rem;
    }
.artist-card figcaption {
        padding: 0.62rem 0.66rem 0.7rem;
    }

    .artist-card figcaption span {
        font-size: 0.54rem;
        letter-spacing: 0.1em;
    }

    .artist-card h1 {
        font-size: 1.28rem;
    }

    .artist-message {
        padding: 0.78rem 0.82rem 0.78rem 0.92rem;
    }

    .artist-message p {
        font-size: 0.95rem;
        line-height: 1.42;
    }

    .hero-panel,
    .toolbar,
    .gallery-grid,
    .service-grid,
    .newsletter-section,
    .auth-grid {
        grid-template-columns: 1fr;
    }

    .hero-showcase {
        min-height: 27rem;
    }

    .hero-cover {
        width: 72%;
    }

    .hero-cover-1 {
        left: 0;
        top: 1.2rem;
        width: 84%;
    }

    .hero-cover-2 {
        right: 0;
        top: 8.5rem;
        width: 68%;
    }

    .hero-cover-3 {
        left: 10%;
        right: auto;
        top: auto;
        bottom: 0.4rem;
        width: 70%;
    }

    .hero-cover-4 {
        right: 4%;
        bottom: 4.5rem;
        left: auto;
        width: 55%;
    }

    .hero-cover-5,
    .hero-cover-6 {
        display: none;
    }
.section {
        margin-block: 3.5rem;
    }

    .cover-image-button {
        min-height: 16rem;
    }

    .cc-three-book3d-card {
        aspect-ratio: 4 / 3;
    }

    .book-object-card {
        aspect-ratio: 4 / 3;
    }

    .contact-section {
        align-items: flex-start;
        flex-direction: column;
    }

    .lightbox,
    .auth-modal {
        padding: 0;
    }

    .lightbox-panel,
    .auth-panel {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .book-object-large {
        width: 100%;
        min-height: 58vh;
    }

    .lightbox.is-book3d .lightbox-media {
        min-height: 62vh;
    }

    .cc-three-book3d-large {
        height: 62vh;
        min-height: 62vh;
    }

}

/* Chris Covers concept skin */
:root {
    --bg: #063f44;
    --bg-2: #0b5157;
    --panel: rgba(6, 50, 54, 0.78);
    --panel-strong: #063b40;
    --text: #f7faf7;
    --muted: #d4e2df;
    --line: rgba(255, 255, 255, 0.18);
    --cyan: #8fdade;
    --teal: #4aaeb2;
    --violet: #4f7f88;
    --rose: #d6efe9;
    --gold: #eff3ee;
    --shadow: 0 28px 70px rgba(0, 30, 34, 0.36);
    --max: 1480px;
}

html {
    background: #063f44;
}

body {
    background:
        radial-gradient(circle at 70% 38%, rgba(221, 237, 229, 0.26), transparent 21rem),
        linear-gradient(90deg, #07535a 0%, #0a555a 38%, #164f51 64%, #05383e 100%);
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
}

body::before {
    opacity: 1;
    background:
        radial-gradient(circle at 76% 42%, rgba(255, 255, 255, 0.16), transparent 22rem),
        radial-gradient(circle at 14% 73%, rgba(255, 255, 255, 0.13), transparent 16rem),
        linear-gradient(180deg, rgba(1, 23, 26, 0.08), rgba(1, 23, 26, 0.34));
    background-size: auto;
    mask-image: none;
}

.site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 2rem;
    min-height: 6.9rem;
    padding: 0.85rem max(1.5rem, calc((100vw - var(--max)) / 2));
    border-bottom: 0;
    background: #07595f;
    box-shadow: 0 8px 32px rgba(0, 31, 36, 0.24);
    backdrop-filter: none;
}

.brand {
    gap: 0;
}

.brand > span:not(.brand-mark) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.brand-mark {
    width: 5.7rem;
    height: 5.7rem;
    border: 0;
    border-radius: 0;
    background: #4aabb0;
    color: #fff;
    box-shadow: none;
}

.brand-mark::before {
    display: none;
}

.brand-mark span {
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 4.1rem;
    font-weight: 300;
    letter-spacing: 0;
    line-height: 1;
    text-shadow: none;
}

.main-nav {
    justify-content: center;
    gap: 4.8rem;
}

.main-nav a {
    position: relative;
    border-radius: 0;
    color: #fff;
    font-size: 1.48rem;
    font-weight: 800;
    letter-spacing: 0;
    padding: 0.45rem 0.15rem;
    text-transform: uppercase;
}

.main-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0.16rem;
    left: 0;
    height: 2px;
    background: currentColor;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 260ms ease, opacity 260ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    background: transparent;
    color: #fff;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    opacity: 0.9;
    transform: scaleX(1);
}

.header-actions {
    justify-self: end;
}

.button {
    border-radius: 3px;
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(5, 62, 68, 0.44);
    color: #fff;
    box-shadow: none;
    letter-spacing: 0;
    text-transform: uppercase;
    transition: border-color 220ms ease, background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.button.primary {
    border-color: rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    box-shadow: none;
}

.button.ghost {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(3, 49, 54, 0.38);
}

.button:hover,
.button:focus-visible,
.filter-pills button:hover,
.filter-pills button:focus-visible,
.button:hover,
.button:focus-visible {
    border-color: rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 24px rgba(180, 239, 236, 0.2);
}

.hero {
    isolation: isolate;
    display: block;
    width: 100%;
    max-width: none;
    min-height: calc(100vh - 6.9rem);
    margin: 0;
    overflow: hidden;
    padding: 6.8rem max(1.5rem, calc((100vw - var(--max)) / 2)) 9.2rem;
    background:
        radial-gradient(circle at 61% 43%, rgba(232, 239, 231, 0.33), transparent 18rem),
        linear-gradient(90deg, rgba(2, 68, 74, 0.98) 0%, rgba(10, 92, 96, 0.94) 45%, rgba(8, 64, 67, 0.98) 100%);
}

.hero::before {
    inset: 0;
    z-index: -2;
    border: 0;
    border-radius: 0;
    background:
        linear-gradient(90deg, rgba(2, 48, 52, 0.44), transparent 40%, rgba(1, 34, 38, 0.38)),
        radial-gradient(circle at 20% 82%, rgba(238, 247, 240, 0.22), transparent 15rem);
    box-shadow: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(2, 40, 45, 0.08), transparent 40%, rgba(1, 27, 32, 0.38)),
        linear-gradient(180deg, transparent 64%, rgba(2, 35, 39, 0.32));
}

.hero-copy {
    position: relative;
    z-index: 3;
    width: min(43rem, 52%);
    padding-left: 0;
}

.hero-title-block h1 {
    margin: 0 0 2.15rem;
    color: #f4f6f2;
    font-family: "Bodoni 72", "Bodoni MT", Didot, Georgia, "Times New Roman", serif;
    font-size: 8.2rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 0.82;
    text-shadow: 2px 3px 0 rgba(0, 0, 0, 0.55), 0 0 16px rgba(255, 255, 255, 0.16);
    text-transform: uppercase;
}

.hero-title-block h1 span {
    display: block;
}

.hero-role,
.hero-statement {
    color: #f4f6f2;
    font-family: "Bodoni 72", "Bodoni MT", Didot, Georgia, "Times New Roman", serif;
    letter-spacing: 0;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.58), 0 0 12px rgba(255, 255, 255, 0.12);
    text-transform: uppercase;
}

.hero-role {
    margin: 0 0 4.4rem 1.1rem;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}

.hero-statement {
    max-width: 42rem;
    margin: 0 0 1.5rem;
    font-size: 1.82rem;
    line-height: 1.24;
}

.hero-actions {
    position: relative;
    z-index: 5;
    margin-top: 1.5rem;
}

.hero-panel {
    position: relative;
    z-index: 5;
    width: min(34rem, 100%);
    margin-top: 1.2rem;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 22px 54px rgba(0, 31, 35, 0.18);
}

.hero-panel div {
    background: rgba(4, 51, 56, 0.48);
}

.hero-panel strong {
    font-family: "Bodoni 72", "Bodoni MT", Didot, Georgia, "Times New Roman", serif;
    font-weight: 600;
}

.hero-panel span {
    color: #e3eeee;
}

.hero-portrait {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    width: min(58vw, 68rem);
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.92;
    mix-blend-mode: normal;
}

.hero-portrait::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 48% 28%, rgba(218, 235, 225, 0.18), transparent 18rem),
        linear-gradient(90deg, rgba(1, 45, 50, 0.58) 0%, rgba(48, 106, 100, 0.26) 45%, rgba(1, 33, 41, 0.5) 100%);
    opacity: 0.52;
    mix-blend-mode: soft-light;
    filter: none;
}

.hero-portrait img {
    width: auto;
    max-width: none;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    opacity: 0.88;
    filter: saturate(0.9) contrast(0.94) brightness(0.84);
    mask-image:
        linear-gradient(90deg, transparent 0%, #000 8%, #000 94%, transparent 100%),
        linear-gradient(180deg, transparent 0%, #000 5%, #000 94%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-image:
        linear-gradient(90deg, transparent 0%, #000 8%, #000 94%, transparent 100%),
        linear-gradient(180deg, transparent 0%, #000 5%, #000 94%, transparent 100%);
    -webkit-mask-composite: source-in;
    transform: translateX(5%);
}

.hero-showcase {
    position: absolute;
    bottom: 1.6rem;
    left: max(1.5rem, calc((100vw - var(--max)) / 2 - 1.8rem));
    z-index: 4;
    width: min(42rem, 47vw);
    min-height: 12rem;
    opacity: 0.92;
    perspective: 760px;
}

.hero-cover {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: translate3d(0, var(--hero-hover-y), var(--hero-pop-z)) rotate(var(--hero-rotate)) scale(var(--hero-scale));
}

.hero-cover::after,
.hero-cover span {
    display: none;
}

.hero-cover img {
    aspect-ratio: 2 / 3;
    border-radius: 2px;
    height: auto !important;
    object-fit: cover;
    box-shadow: 0 16px 28px rgba(0, 18, 21, 0.46), 0 0 22px rgba(234, 247, 242, 0.18);
}

.hero-cover-1 {
    top: auto;
    bottom: 0.6rem;
    left: 0;
    z-index: 3;
    width: 7.2rem;
    --hero-rotate: -7deg;
}

.hero-cover-2 {
    top: auto;
    right: auto;
    bottom: 0.25rem;
    left: 5.9rem;
    z-index: 4;
    width: 8.1rem;
    --hero-rotate: 5deg;
}

.hero-cover-3 {
    top: auto;
    right: auto;
    bottom: 0;
    left: 12.4rem;
    z-index: 7;
    width: 9.4rem;
    --hero-rotate: 0deg;
}

.hero-cover-4 {
    top: auto;
    right: auto;
    bottom: 0.6rem;
    left: 20.2rem;
    z-index: 5;
    width: 7.8rem;
    --hero-rotate: -4deg;
}

.hero-cover-5 {
    top: auto;
    right: auto;
    bottom: 0.9rem;
    left: 26.7rem;
    z-index: 2;
    width: 7.1rem;
    --hero-rotate: 4deg;
}

.hero-cover-6 {
    top: auto;
    left: 31.9rem;
    bottom: 1.3rem;
    z-index: 1;
    width: 6.4rem;
    --hero-rotate: -5deg;
}

.hero-cover:hover,
.hero-cover:focus-visible,
.hero-cover.is-touch-preview {
    --hero-hover-y: -0.8rem;
    --hero-pop-z: 3rem;
    --hero-scale: 1.05;
    filter: brightness(1.04) saturate(1.04);
}
.cover-card,
.service-grid article,
.contact-section,
.newsletter-section,
.lightbox-panel,
.auth-panel {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(5, 51, 56, 0.78);
    box-shadow: 0 24px 64px rgba(0, 28, 32, 0.3);
}

.section {
    color: #f4f7f4;
}

.section-heading h2,
.contact-section h2,
.newsletter-section h2,
.auth-panel h2 {
    font-family: "Bodoni 72", "Bodoni MT", Didot, Georgia, "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: 0;
}

.eyebrow,
.artist-card figcaption span {
    color: #d8f3ef;
}

.filter-pills button,
.search-field input,
.comment-form input,
.comment-form textarea {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(1, 38, 42, 0.48);
    color: #fff;
}

.search-field {
    border-color: rgba(220, 255, 250, 0.38);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(3, 69, 75, 0.78) 42%, rgba(1, 32, 37, 0.9)),
        repeating-linear-gradient(122deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 22px);
}

.search-field input {
    border-color: rgba(232, 255, 252, 0.24);
    background:
        radial-gradient(circle at 18% 50%, rgba(142, 255, 243, 0.18), transparent 17rem),
        rgba(0, 20, 25, 0.56);
}

.search-field input:focus {
    border-color: rgba(232, 255, 252, 0.82);
    box-shadow:
        0 0 0 3px rgba(117, 242, 232, 0.14),
        inset 0 1px 18px rgba(0, 0, 0, 0.22);
}

.filter-pills button.is-active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

@media (max-width: 1060px) {
    .site-header {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0.9rem 1.4rem;
        min-height: auto;
    }

    .main-nav {
        grid-column: 1 / -1;
        justify-content: center;
        gap: 2rem;
    }

    .header-actions {
        justify-self: end;
    }
}

@media (max-width: 980px) {
    .hero {
        min-height: auto;
        padding: 5rem 1.5rem 3.5rem;
    }

    .hero-copy {
        width: min(40rem, 100%);
    }

    .hero-title-block h1 {
        font-size: 5.7rem;
    }

    .hero-role {
        margin-bottom: 2.5rem;
        font-size: 1.55rem;
    }

    .hero-statement {
        max-width: 34rem;
        font-size: 1.35rem;
    }

    .hero-portrait {
        right: -18vw;
        width: 82vw;
        opacity: 0.5;
    }

    .hero-showcase {
        position: relative;
        bottom: auto;
        left: auto;
        width: min(38rem, 100%);
        margin-top: 2.2rem;
    }
}

@media (max-width: 680px) {
    .site-header {
        grid-template-columns: auto 1fr;
        padding: 0.75rem 1rem;
    }

    .brand-mark {
        width: 4.2rem;
        height: 4.2rem;
    }

    .brand-mark span {
        font-size: 3.05rem;
    }

    .main-nav {
        gap: 1rem;
        justify-content: flex-start;
    }

    .main-nav a {
        font-size: 0.92rem;
        white-space: nowrap;
    }

    .header-actions {
        grid-column: 1 / -1;
        justify-self: stretch;
        width: 100%;
        gap: 0.45rem;
        overflow-x: auto;
    }

    .header-actions .button.mini {
        min-height: 2.28rem;
        padding: 0.42rem 0.66rem;
        font-size: 0.78rem;
    }

    .hero {
        width: 100%;
        padding: 4rem 1rem 2.4rem;
    }

    .hero-title-block h1 {
        font-size: 3.55rem;
    }

    .hero-role {
        margin: 0 0 2rem 0.4rem;
        font-size: 1.08rem;
    }

    .hero-statement {
        font-size: 1.05rem;
    }

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

    .hero-portrait {
        right: -36vw;
        width: 118vw;
        opacity: 0.46;
    }

    .hero-portrait img {
        height: 90%;
    }

    .hero-showcase {
        display: none;
    }
}

/* Chris Covers desktop proportion and gallery polish */
@media (min-width: 981px) {
    :root {
        --max: 1360px;
    }

    body {
        background: linear-gradient(102deg, #053f44 0%, #0a6268 43%, #103f44 100%);
    }

    body::before {
        background:
            radial-gradient(circle at 76% 42%, rgba(255, 255, 255, 0.12), transparent 20rem),
            radial-gradient(circle at 14% 73%, rgba(255, 255, 255, 0.08), transparent 16rem),
            linear-gradient(180deg, rgba(1, 24, 28, 0.04), rgba(1, 24, 28, 0.28));
    }

    .site-header {
        min-height: 3.65rem;
        padding-block: 0.34rem;
        gap: 1rem;
    }

    .brand-mark {
        width: 3.1rem;
        height: 3.1rem;
    }

    .brand-mark span {
        font-size: 2.2rem;
    }

    .main-nav {
        gap: clamp(2rem, 5.2vw, 4.4rem);
    }

    .main-nav a {
        font-size: clamp(0.92rem, 1.08vw, 1.05rem);
        padding-block: 0.24rem;
    }

    .header-actions .button.mini {
        min-height: 1.95rem;
        padding: 0.28rem 0.58rem;
        font-size: 0.72rem;
    }

    .hero {
        min-height: clamp(28.5rem, calc(100vh - 3.65rem), 35rem);
        padding-top: clamp(2.2rem, 4.4vh, 3.2rem);
        padding-bottom: 2.2rem;
        background:
            radial-gradient(circle at 62% 36%, rgba(203, 220, 209, 0.2), transparent 21rem),
            linear-gradient(90deg, rgba(2, 65, 68, 0.98) 0%, rgba(18, 103, 103, 0.91) 46%, rgba(11, 60, 65, 0.98) 100%);
    }

    .hero::before {
        background:
            linear-gradient(110deg, rgba(2, 38, 43, 0.58) 0%, rgba(2, 38, 43, 0.06) 40%, rgba(2, 38, 43, 0.42) 100%),
            repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 32px);
    }

    .hero::after {
        background:
            linear-gradient(104deg, transparent 0 48%, rgba(255, 255, 255, 0.12) 48% 49%, transparent 49% 100%),
            linear-gradient(180deg, transparent 68%, rgba(1, 28, 33, 0.48));
    }

    .hero-copy {
        width: min(31.5rem, 40vw);
    }

    .hero-title-block h1 {
        margin-bottom: 0.95rem;
        font-size: clamp(4.2rem, 5.55vw, 5.5rem);
        line-height: 0.84;
    }

    .hero-role {
        margin: 0 0 1.42rem 0.32rem;
        font-size: clamp(1rem, 1.12vw, 1.22rem);
    }

    .hero-statement {
        max-width: 30rem;
        margin-bottom: 0.82rem;
        font-size: clamp(0.98rem, 1.25vw, 1.18rem);
        line-height: 1.28;
    }

    .hero-actions {
        margin-top: 1rem;
        gap: 0.6rem;
    }

    .hero-actions .button {
        min-height: 2.36rem;
        padding: 0.48rem 0.82rem;
        font-size: 0.82rem;
    }

    .hero-panel {
        display: none;
    }

    .hero-portrait {
        top: 0;
        right: max(1rem, calc((100vw - var(--max)) / 2));
        bottom: 0;
        width: min(43vw, 38rem);
        opacity: 0.95;
    }

    .hero-portrait::before {
        background:
            radial-gradient(circle at 48% 28%, rgba(218, 235, 225, 0.2), transparent 16rem),
            linear-gradient(90deg, rgba(2, 55, 59, 0.52) 0%, rgba(74, 120, 111, 0.22) 47%, rgba(1, 35, 43, 0.58) 100%);
        opacity: 0.46;
    }

    .hero-portrait img {
        height: min(105%, 36.5rem);
        transform: translateX(1%);
        filter: saturate(0.9) contrast(0.94) brightness(0.84);
        opacity: 0.9;
        mask-image:
            linear-gradient(90deg, transparent 0%, #000 8%, #000 94%, transparent 100%),
            linear-gradient(180deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
        mask-composite: intersect;
        -webkit-mask-image:
            linear-gradient(90deg, transparent 0%, #000 8%, #000 94%, transparent 100%),
            linear-gradient(180deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
        -webkit-mask-composite: source-in;
    }

    .hero-showcase {
        bottom: 0.65rem;
        left: max(1.2rem, calc((100vw - var(--max)) / 2 + 0.2rem));
        width: min(39rem, 45vw);
        min-height: 16rem;
        opacity: 0.98;
    }

    .hero-showcase::before {
        content: "";
        position: absolute;
        right: 1rem;
        bottom: 0.2rem;
        left: -0.8rem;
        z-index: -1;
        height: 10.7rem;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 18px 3px 18px 3px;
        background:
            linear-gradient(128deg, rgba(255, 255, 255, 0.1), rgba(4, 52, 57, 0.24) 38%, rgba(1, 24, 29, 0.12)),
            repeating-linear-gradient(112deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 22px);
        box-shadow: 0 22px 48px rgba(0, 23, 27, 0.28);
        transform: skewX(-7deg);
        transform-origin: bottom left;
    }

    .hero-cover img {
        box-shadow:
            0 15px 24px rgba(0, 16, 20, 0.48),
            0 0 18px rgba(226, 249, 244, 0.14);
    }

    .hero-cover-1 {
        bottom: 1.05rem;
        left: 0.25rem;
        z-index: 2;
        width: 6.7rem;
        --hero-rotate: -13deg;
    }

    .hero-cover-2 {
        bottom: 3.25rem;
        left: 5.25rem;
        z-index: 5;
        width: 7.55rem;
        --hero-rotate: 8deg;
    }

    .hero-cover-3 {
        bottom: 0.45rem;
        left: 11.35rem;
        z-index: 7;
        width: 8.65rem;
        --hero-rotate: -2deg;
    }

    .hero-cover-4 {
        bottom: 2.65rem;
        left: 18.65rem;
        z-index: 4;
        width: 6.65rem;
        --hero-rotate: 14deg;
    }

    .hero-cover-5 {
        bottom: 0.9rem;
        left: 23.95rem;
        z-index: 3;
        width: 7.05rem;
        --hero-rotate: -10deg;
    }

    .hero-cover-6 {
        bottom: 4.05rem;
        left: 29.55rem;
        z-index: 1;
        width: 6.1rem;
        --hero-rotate: 7deg;
    }
}

@media (min-width: 681px) {
/* Gallery 3D refinement */
:root {
    --accent-warm: #e8c99d;
    --accent-warm-soft: #f3dfbd;
    --accent-warm-deep: #b78b52;
}

main a:not(.button):not(.cover-image-button):not(.hero-cover) {
    color: var(--accent-warm-soft);
    text-decoration: underline;
    text-decoration-color: rgba(232, 201, 157, 0.46);
    text-underline-offset: 0.18em;
    transition: color 220ms ease, text-decoration-color 220ms ease, text-shadow 220ms ease;
}

main a:not(.button):not(.cover-image-button):not(.hero-cover):hover,
main a:not(.button):not(.cover-image-button):not(.hero-cover):focus-visible {
    color: #fff2d4;
    text-decoration-color: rgba(255, 242, 212, 0.86);
    text-shadow: 0 0 18px rgba(232, 201, 157, 0.25);
}

.gallery-section {
    margin-top: 3.1rem;
}

.toolbar {
    align-items: end;
    gap: 0.72rem;
}

.search-field {
    border-color: rgba(232, 201, 157, 0.34);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(6, 73, 78, 0.62) 42%, rgba(2, 31, 36, 0.82)),
        repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 18px);
    box-shadow:
        0 18px 44px rgba(0, 27, 31, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.045),
        0 0 32px rgba(232, 201, 157, 0.08);
}

.search-field span {
    color: var(--accent-warm-soft);
    text-shadow: 0 0 18px rgba(232, 201, 157, 0.13);
}

.search-field input {
    border-color: rgba(217, 237, 232, 0.2);
    background:
        radial-gradient(circle at 8% 50%, rgba(232, 201, 157, 0.12), transparent 8rem),
        rgba(0, 18, 22, 0.58);
    color: #fffaf0;
}

.search-field input::placeholder {
    color: rgba(239, 225, 206, 0.55);
}

.search-field input:focus {
    border-color: rgba(232, 201, 157, 0.62);
    box-shadow:
        0 0 0 3px rgba(232, 201, 157, 0.1),
        0 0 30px rgba(232, 201, 157, 0.16);
}

.gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
    gap: 0.68rem;
    contain: layout paint;
}

.cover-card {
    min-width: 0;
    grid-template-rows: auto auto;
    border: 1px solid rgba(224, 248, 244, 0.16);
    border-radius: 18px 4px 18px 4px;
    background:
        linear-gradient(143deg, rgba(255, 255, 255, 0.105), rgba(4, 50, 55, 0.74) 40%, rgba(1, 24, 28, 0.9)),
        repeating-linear-gradient(122deg, rgba(255, 255, 255, 0.038) 0 1px, transparent 1px 19px);
    box-shadow: 0 18px 42px rgba(0, 24, 29, 0.23);
    transition: border-color 240ms ease, box-shadow 240ms ease, background 240ms ease;
}

.cover-card:hover {
    border-color: rgba(232, 201, 157, 0.36);
    transform: none;
    box-shadow:
        0 21px 48px rgba(0, 22, 27, 0.32),
        0 0 28px rgba(232, 201, 157, 0.08);
}

.cover-card::before {
    opacity: 0.5;
    background:
        linear-gradient(130deg, rgba(255, 255, 255, 0.14), transparent 30%),
        linear-gradient(38deg, transparent 0 61%, rgba(232, 201, 157, 0.1) 61% 65%, transparent 65%);
    transition: opacity 260ms ease;
}

.cover-card:hover::before {
    opacity: 0.82;
}

.cover-image-button {
    min-height: 0;
    aspect-ratio: 0.7 / 1;
    place-items: center;
    contain: layout paint;
    background:
        radial-gradient(circle at 50% 27%, rgba(169, 241, 233, 0.15), transparent 10.5rem),
        linear-gradient(152deg, rgba(255, 255, 255, 0.045), rgba(4, 45, 50, 0.4) 36%, rgba(1, 16, 20, 0.94)),
        repeating-linear-gradient(139deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 21px);
}

.cover-card-3d .cover-image-button {
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 28%, rgba(209, 236, 225, 0.17), transparent 10rem),
        linear-gradient(152deg, rgba(255, 255, 255, 0.055), rgba(4, 46, 51, 0.46) 34%, rgba(1, 15, 20, 0.95)),
        repeating-linear-gradient(139deg, rgba(255, 255, 255, 0.036) 0 1px, transparent 1px 21px);
}

.cc-three-book3d-card {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    touch-action: pan-y;
}

.cc-three-book3d-card .jk-book3d-canvas {
    inset: 0.16rem 0.1rem 0.1rem;
}

.cc-three-book3d-card .jk-book3d-fallback-img {
    max-width: 78%;
    max-height: 90%;
}

.cc-three-book3d-card:not(.has-3d-painted):not(.has-3d-error) .jk-book3d-fallback-img {
    transform-origin: center center;
    animation: ccFallbackBookDrift 8.5s ease-in-out infinite;
}

.cover-card:nth-child(5n + 2) .cc-three-book3d-card:not(.has-3d-painted):not(.has-3d-error) .jk-book3d-fallback-img {
    animation-delay: -1.35s;
}

.cover-card:nth-child(5n + 3) .cc-three-book3d-card:not(.has-3d-painted):not(.has-3d-error) .jk-book3d-fallback-img {
    animation-delay: -2.7s;
}

.cover-card:nth-child(5n + 4) .cc-three-book3d-card:not(.has-3d-painted):not(.has-3d-error) .jk-book3d-fallback-img {
    animation-delay: -4.05s;
}

.cover-card:nth-child(5n + 5) .cc-three-book3d-card:not(.has-3d-painted):not(.has-3d-error) .jk-book3d-fallback-img {
    animation-delay: -5.4s;
}

.cc-three-book3d-card .jk-book3d-canvas::after {
    bottom: 10%;
    width: 50%;
    height: 10%;
}

.cover-meta {
    min-height: 6.2rem;
    padding: 0.66rem 0.72rem 0.74rem;
}

.category-label {
    margin-bottom: 0.42rem;
    border-color: rgba(232, 201, 157, 0.44);
    background: rgba(232, 201, 157, 0.1);
    color: var(--accent-warm-soft);
    font-size: 0.62rem;
    padding: 0.15rem 0.38rem;
}

.cover-meta h3 {
    margin-bottom: 0.2rem;
    color: #fffdf7;
    font-size: clamp(0.94rem, 0.95vw, 1.02rem);
    line-height: 1.13;
}

.cover-meta p {
    color: #d9e6e2;
}

.cover-meta p,
.rating-line {
    font-size: 0.8rem;
    line-height: 1.28;
}

.rating-line {
    color: #efe7d8;
}

.stars {
    color: #f1d391;
    text-shadow: 0 0 14px rgba(232, 201, 157, 0.16);
}

.filter-pills button {
    border-color: rgba(215, 239, 235, 0.2);
    color: #eff7f3;
}

.filter-pills button:hover,
.filter-pills button:focus-visible {
    border-color: rgba(232, 201, 157, 0.42);
    color: #fff4dd;
    box-shadow: 0 0 20px rgba(232, 201, 157, 0.1);
}

.filter-pills button.is-active {
    border-color: rgba(232, 201, 157, 0.58);
    background:
        linear-gradient(135deg, rgba(232, 201, 157, 0.28), rgba(255, 255, 255, 0.1)),
        rgba(3, 58, 63, 0.72);
    color: #fff4dd;
}

@keyframes ccFallbackBookDrift {
    0%,
    100% {
        transform: perspective(780px) rotateY(-9deg) rotateX(1.4deg) translateY(0);
        filter: drop-shadow(-8px 25px 34px rgba(0, 0, 0, 0.42));
    }

    46% {
        transform: perspective(780px) rotateY(12deg) rotateX(-1.2deg) translateY(-0.18rem);
        filter: drop-shadow(10px 27px 36px rgba(0, 0, 0, 0.46));
    }

    68% {
        transform: perspective(780px) rotateY(4deg) rotateX(0.7deg) translateY(-0.08rem);
    }
}

@media (min-width: 1320px) {
    .gallery-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 681px) and (max-width: 980px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cover-image-button {
        aspect-ratio: 0.74 / 1;
    }
}

@media (max-width: 680px) {
    .site-header {
        padding: 0.5rem 0.84rem;
        gap: 0.56rem 0.76rem;
    }

    .brand-mark {
        width: 3.35rem;
        height: 3.35rem;
    }

    .brand-mark span {
        font-size: 2.32rem;
    }

    .main-nav {
        gap: 0.88rem;
    }

    .main-nav a {
        font-size: 0.92rem;
    }

    .header-actions .button.mini {
        min-height: 2.15rem;
        padding: 0.34rem 0.62rem;
        font-size: 0.76rem;
    }

    .hero-portrait {
        right: -31vw;
        width: 112vw;
        opacity: 0.74;
    }

    .hero-portrait::before {
        opacity: 0.48;
        background:
            radial-gradient(circle at 48% 28%, rgba(218, 235, 225, 0.2), transparent 15rem),
            linear-gradient(90deg, rgba(1, 52, 58, 0.55) 0%, rgba(53, 116, 110, 0.24) 47%, rgba(1, 35, 43, 0.6) 100%);
    }

    .hero-portrait img {
        height: 92%;
        opacity: 0.86;
        filter: saturate(0.9) contrast(0.94) brightness(0.84);
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.82rem;
    }

    .cover-image-button {
        aspect-ratio: 0.78 / 1;
        min-height: 17rem;
    }

    .cover-meta {
        min-height: 0;
    }
}

}

/* Final compact hero and clean portrait treatment. */
#top {
    scroll-margin-top: 4.5rem;
}

@media (min-width: 981px) {
    .site-header {
        min-height: 3.15rem;
        padding-block: 0.26rem;
    }

    .brand-mark {
        width: 2.85rem;
        height: 2.85rem;
    }

    .brand-mark span {
        font-size: 2rem;
    }

    .main-nav a {
        font-size: clamp(0.86rem, 0.96vw, 0.98rem);
        padding-block: 0.18rem;
    }

    .header-actions .button.mini {
        min-height: 1.84rem;
        padding: 0.24rem 0.52rem;
        font-size: 0.68rem;
    }

    .hero {
        min-height: clamp(23.5rem, 45vh, 30rem);
        padding-top: clamp(1.9rem, 3.4vh, 2.65rem);
        padding-bottom: 1.35rem;
        background:
            radial-gradient(circle at 64% 36%, rgba(197, 218, 207, 0.22), transparent 17rem),
            linear-gradient(96deg, rgba(2, 63, 67, 0.99) 0%, rgba(17, 101, 100, 0.94) 45%, rgba(8, 55, 60, 0.99) 100%);
    }

    .hero::before {
        background:
            linear-gradient(110deg, rgba(2, 36, 41, 0.48) 0%, rgba(2, 50, 53, 0.08) 40%, rgba(2, 35, 41, 0.42) 100%),
            repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.038) 0 1px, transparent 1px 32px);
    }

    .hero::after {
        background:
            linear-gradient(104deg, transparent 0 54%, rgba(255, 255, 255, 0.08) 54% 55%, transparent 55% 100%),
            linear-gradient(180deg, transparent 72%, rgba(1, 28, 33, 0.44));
    }

    .hero-copy {
        width: min(29rem, 38vw);
        padding-top: 0.12rem;
        z-index: 8;
    }

    .hero-title-block h1 {
        margin-bottom: 0.62rem;
        font-size: clamp(3.45rem, 4.7vw, 4.55rem);
        line-height: 0.86;
    }

    .hero-role {
        margin: 0 0 0.92rem 0.18rem;
        font-size: clamp(0.84rem, 0.92vw, 1rem);
    }

    .hero-statement {
        max-width: 25rem;
        margin-bottom: 0.54rem;
        font-size: clamp(0.84rem, 1.02vw, 0.98rem);
        line-height: 1.24;
    }

    .hero-actions {
        position: relative;
        z-index: 10;
        margin-top: 0.68rem;
        gap: 0.52rem;
    }

    .hero-actions .button {
        min-height: 2.08rem;
        padding: 0.38rem 0.68rem;
        font-size: 0.72rem;
    }

    .hero-portrait {
        right: max(1.2rem, calc((100vw - var(--max)) / 2 + 0.8rem));
        width: min(34vw, 29rem);
        opacity: 0.98;
    }

    .hero-portrait::before {
        background:
            radial-gradient(circle at 50% 38%, rgba(210, 231, 221, 0.14), transparent 14rem),
            linear-gradient(90deg, rgba(1, 49, 55, 0.32) 0%, rgba(71, 117, 111, 0.1) 48%, rgba(2, 42, 49, 0.36) 100%);
        opacity: 0.3;
        mix-blend-mode: normal;
    }

    .hero-portrait img {
        height: min(96%, 27.5rem);
        transform: none;
        opacity: 0.96;
        filter: saturate(0.98) contrast(1.02) brightness(0.96);
        mask-image:
            linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%),
            linear-gradient(180deg, #000 0%, #000 94%, transparent 100%);
        -webkit-mask-image:
            linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%),
            linear-gradient(180deg, #000 0%, #000 94%, transparent 100%);
    }

    .hero-showcase {
        bottom: 0.24rem;
        width: min(33.5rem, 42vw);
        min-height: 12.4rem;
    }

    .hero-showcase::before {
        height: 7.8rem;
        opacity: 0.58;
    }

    .hero-cover-1 {
        width: 5.55rem;
    }

    .hero-cover-2 {
        width: 6.65rem;
    }

    .hero-cover-3 {
        width: 7.45rem;
    }

    .hero-cover-4 {
        width: 5.75rem;
    }

    .hero-cover-5,
    .hero-cover-6 {
        width: 4.85rem;
    }
}

@media (max-width: 680px) {
    #top {
        scroll-margin-top: 12rem;
    }

    .hero-portrait {
        right: -18vw;
        width: 104vw;
        opacity: 0.82;
    }

    .hero-portrait::before {
        opacity: 0.3;
        mix-blend-mode: normal;
    }

    .hero-portrait img {
        height: 88%;
        transform: none;
        opacity: 0.9;
        filter: saturate(0.98) contrast(1.02) brightness(0.96);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
    }
}

/* Stable visual repair: keep the hero pile contained and gallery images always paint. */
.cover-card {
    content-visibility: visible;
    contain-intrinsic-size: none;
}

.cc-three-book3d.is-ready.has-3d-error .jk-book3d-fallback-img,
.cc-three-book3d.has-3d-error .jk-book3d-fallback-img,
.cc-three-book3d:not(.has-3d-painted) .jk-book3d-fallback-img,
.cc-three-book3d:not(.has-3d-painted) .jk-book3d-fallback-link {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 681px) {
    .gallery-grid {
        contain: none;
    }

    .cover-card {
        contain: none;
    }

    .cover-image-button {
        contain: layout paint;
    }
}

@media (min-width: 981px) {
    .hero {
        overflow: hidden;
    }

    .hero-showcase {
        position: absolute;
        left: max(1.1rem, calc((100vw - var(--max)) / 2 + 0.6rem));
        right: auto;
        bottom: 0.3rem;
        z-index: 4;
        width: min(23.8rem, 31vw);
        min-height: 8rem;
        max-height: 8.25rem;
        perspective: 760px;
        pointer-events: auto;
    }

    .hero-showcase::before {
        bottom: -0.4rem;
        left: 2%;
        width: 86%;
        height: 4.4rem;
        opacity: 0.48;
    }

    .hero-cover {
        top: auto;
        right: auto;
        display: block;
        width: 4.7rem;
        max-width: none;
        overflow: hidden;
        border-radius: 5px;
    }

    .hero-cover img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 2 / 3;
        object-fit: cover;
    }

    .hero-cover span {
        display: none;
    }

    .hero-cover-1 {
        bottom: 0.35rem;
        left: 0.2rem;
        z-index: 1;
        width: 3.65rem;
        --hero-rotate: -13deg;
    }

    .hero-cover-2 {
        bottom: 0.2rem;
        left: 3.1rem;
        z-index: 2;
        width: 4.3rem;
        --hero-rotate: 9deg;
    }

    .hero-cover-3 {
        bottom: 0;
        left: 6.5rem;
        z-index: 6;
        width: 5.15rem;
        --hero-rotate: -2deg;
    }

    .hero-cover-4 {
        bottom: 0.38rem;
        left: 10.8rem;
        z-index: 4;
        width: 4.05rem;
        --hero-rotate: 12deg;
    }

    .hero-cover-5 {
        bottom: 0.24rem;
        left: 14.25rem;
        z-index: 3;
        width: 3.75rem;
        --hero-rotate: -9deg;
    }

    .hero-cover-6 {
        bottom: 0.78rem;
        left: 17.35rem;
        z-index: 1;
        width: 3.45rem;
        --hero-rotate: 7deg;
    }
}

/* Hero polish: stronger cover pile, softer portrait edges. */
.hero-portrait {
    isolation: isolate;
}

.hero-portrait img {
    position: relative;
    z-index: 0;
}

.hero-portrait::after {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 52% 52%, transparent 42%, rgba(3, 54, 59, 0.12) 70%, rgba(3, 54, 59, 0.34) 100%),
        linear-gradient(180deg, rgba(3, 54, 59, 0.28) 0%, transparent 26%, transparent 82%, rgba(2, 38, 45, 0.3) 100%);
}

@media (min-width: 981px) {
    .hero-portrait {
        right: 0;
        width: min(54vw, 50rem);
    }

    .hero-portrait::before {
        background:
            radial-gradient(ellipse at 52% 45%, rgba(213, 232, 223, 0.18), transparent 56%);
        opacity: 0.2;
    }

    .hero-portrait img {
        height: min(101%, 29.5rem);
        transform: translateX(1.5%);
        mask-image:
            linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.24) 10%, #000 30%, #000 70%, rgba(0, 0, 0, 0.24) 90%, transparent 100%),
            linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.34) 10%, #000 22%, #000 88%, transparent 100%);
        -webkit-mask-image:
            linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.24) 10%, #000 30%, #000 70%, rgba(0, 0, 0, 0.24) 90%, transparent 100%),
            linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.34) 10%, #000 22%, #000 88%, transparent 100%);
    }

    .hero-showcase {
        bottom: 0.22rem;
        left: max(1.1rem, calc((100vw - var(--max)) / 2 + 0.55rem));
        width: min(34rem, 42vw);
        min-height: 11.35rem;
        max-height: 11.8rem;
    }

    .hero-showcase::before {
        bottom: -0.58rem;
        left: -0.15rem;
        width: 92%;
        height: 5.9rem;
        opacity: 0.56;
    }

    .hero-cover {
        filter: drop-shadow(0 22px 24px rgba(0, 21, 26, 0.34));
    }

    .hero-cover-1 {
        bottom: 0.48rem;
        left: 0;
        width: 5.15rem;
        --hero-rotate: -14deg;
    }

    .hero-cover-2 {
        bottom: 0.12rem;
        left: 4.08rem;
        width: 6.15rem;
        --hero-rotate: 9deg;
    }

    .hero-cover-3 {
        bottom: 0;
        left: 8.95rem;
        width: 7.25rem;
        --hero-rotate: -2deg;
    }

    .hero-cover-4 {
        bottom: 0.5rem;
        left: 15.15rem;
        width: 5.75rem;
        --hero-rotate: 13deg;
    }

    .hero-cover-5 {
        bottom: 0.26rem;
        left: 19.9rem;
        width: 5.3rem;
        --hero-rotate: -9deg;
    }

    .hero-cover-6 {
        bottom: 0.88rem;
        left: 24.15rem;
        width: 4.85rem;
        --hero-rotate: 7deg;
    }
}

@media (max-width: 680px) {
    .hero-portrait::after {
        background:
            radial-gradient(ellipse at 52% 52%, transparent 42%, rgba(2, 54, 59, 0.12) 72%, rgba(2, 54, 59, 0.3) 100%),
            linear-gradient(180deg, rgba(2, 54, 59, 0.22) 0%, transparent 24%, transparent 82%, rgba(2, 38, 45, 0.28) 100%);
    }
}

/* Hero collision guard: the floating covers keep their own lane below the copy. */
@media (min-width: 981px) {
    .hero {
        min-height: clamp(34rem, 60vh, 39rem);
        padding-bottom: clamp(2.1rem, 3.5vh, 2.9rem);
    }

    .hero-copy {
        width: min(31rem, 38vw);
    }

    .hero-actions {
        margin-bottom: clamp(10.25rem, 18vh, 13.5rem);
    }

    .hero-showcase {
        bottom: clamp(1.1rem, 2.4vh, 1.9rem);
        left: max(1.1rem, calc((100vw - var(--max)) / 2 + 0.3rem));
        width: min(31rem, 38vw);
        min-height: clamp(9.8rem, 17vh, 11.6rem);
        max-height: 11.8rem;
    }

    .hero-showcase::before {
        bottom: -0.5rem;
        left: 0.05rem;
        width: 89%;
        height: clamp(5.1rem, 9vh, 6rem);
    }

    .hero-cover-1 {
        bottom: 0.42rem;
        left: 0;
        width: clamp(4.25rem, 4vw, 5.05rem);
    }

    .hero-cover-2 {
        bottom: 0.1rem;
        left: clamp(3.45rem, 3.55vw, 4rem);
        width: clamp(5.05rem, 4.9vw, 5.95rem);
    }

    .hero-cover-3 {
        bottom: 0;
        left: clamp(7.65rem, 7.9vw, 8.8rem);
        width: clamp(6.05rem, 5.8vw, 6.95rem);
    }

    .hero-cover-4 {
        bottom: 0.46rem;
        left: clamp(12.7rem, 13.1vw, 14.7rem);
        width: clamp(4.95rem, 4.85vw, 5.6rem);
    }

    .hero-cover-5 {
        bottom: 0.24rem;
        left: clamp(16.75rem, 17.2vw, 19.15rem);
        width: clamp(4.45rem, 4.4vw, 5rem);
    }

    .hero-cover-6 {
        bottom: 0.78rem;
        left: clamp(20.35rem, 20.9vw, 23rem);
        width: clamp(4.05rem, 4vw, 4.55rem);
    }
}

@media (min-width: 981px) and (max-height: 840px) {
    .hero {
        min-height: 35rem;
        padding-top: 2.1rem;
    }

    .hero-title-block h1 {
        font-size: clamp(3.35rem, 4.35vw, 4.35rem);
    }

    .hero-role {
        margin-bottom: 0.72rem;
    }

    .hero-statement {
        max-width: 25rem;
        font-size: clamp(0.8rem, 0.95vw, 0.92rem);
    }

    .hero-actions {
        margin-bottom: 11.6rem;
    }

    .hero-showcase {
        bottom: 1rem;
        width: min(29rem, 39vw);
        min-height: 10.1rem;
    }
}

@media (min-width: 981px) and (max-width: 1320px) {
    .hero {
        min-height: 34.5rem;
    }

    .hero-copy {
        width: min(27rem, 41vw);
    }

    .hero-showcase {
        width: min(27.5rem, 42vw);
    }

    .hero-cover-1 {
        width: 4.1rem;
    }

    .hero-cover-2 {
        left: 3.35rem;
        width: 4.9rem;
    }

    .hero-cover-3 {
        left: 7.45rem;
        width: 5.9rem;
    }

    .hero-cover-4 {
        left: 12.35rem;
        width: 4.85rem;
    }

    .hero-cover-5 {
        left: 16.35rem;
        width: 4.35rem;
    }

    .hero-cover-6 {
        left: 19.85rem;
        width: 3.95rem;
    }
}

/* Hero composition: larger recommendation stack filling the lower-left panel. */
@media (min-width: 981px) {
    .hero {
        min-height: clamp(38rem, 70vh, 50rem);
        padding-top: clamp(2rem, 4vh, 3rem);
        padding-bottom: clamp(1.6rem, 3vh, 2.4rem);
    }

    .hero-copy {
        width: min(35rem, 43vw);
    }

    .hero-title-block h1 {
        margin-bottom: 0.72rem;
        font-size: clamp(3.8rem, 5.2vw, 5.85rem);
    }

    .hero-role {
        margin-bottom: 0.82rem;
    }

    .hero-statement {
        max-width: 34rem;
        margin-bottom: 0.9rem;
    }

    .hero-actions {
        margin-bottom: 0;
    }

    .hero-showcase {
        right: auto;
        bottom: clamp(1.1rem, 2.4vh, 1.9rem);
        left: max(1.2rem, calc((100vw - var(--max)) / 2 + 0.3rem));
        width: min(42rem, 45vw);
        height: clamp(14.5rem, 26vh, 21.5rem);
        min-height: 0;
        max-height: none;
        opacity: 0.99;
    }

    .hero-showcase::before {
        right: auto;
        bottom: -0.4rem;
        left: 0.1rem;
        width: min(39rem, 96%);
        height: clamp(8.6rem, 16vh, 12.5rem);
        opacity: 0.5;
    }

    .hero-cover {
        filter: drop-shadow(0 24px 24px rgba(0, 20, 24, 0.34));
    }

    .hero-cover-1 {
        bottom: 0.75rem;
        left: 0;
        z-index: 2;
        width: clamp(6.15rem, 5.6vw, 8.15rem);
        --hero-rotate: -13deg;
    }

    .hero-cover-2 {
        bottom: 0.28rem;
        left: clamp(4.65rem, 4.75vw, 6.35rem);
        z-index: 3;
        width: clamp(6.95rem, 6.5vw, 9.25rem);
        --hero-rotate: 8deg;
    }

    .hero-cover-3 {
        bottom: 0;
        left: clamp(9.55rem, 9.15vw, 12.55rem);
        z-index: 7;
        width: clamp(8.25rem, 7.9vw, 11.35rem);
        --hero-rotate: -1deg;
    }

    .hero-cover-4 {
        bottom: 0.68rem;
        left: clamp(16.7rem, 15.85vw, 21.35rem);
        z-index: 5;
        width: clamp(6.95rem, 6.7vw, 9.35rem);
        --hero-rotate: 12deg;
    }

    .hero-cover-5 {
        bottom: 1rem;
        left: clamp(22.65rem, 21.35vw, 28.35rem);
        z-index: 4;
        width: clamp(6.25rem, 5.95vw, 8.2rem);
        --hero-rotate: -8deg;
    }

    .hero-cover-6 {
        bottom: 1.45rem;
        left: clamp(27.8rem, 26.1vw, 34rem);
        z-index: 1;
        width: clamp(5.55rem, 5.3vw, 7.35rem);
        --hero-rotate: 7deg;
    }
}

@media (min-width: 981px) and (max-height: 860px) {
    .hero {
        min-height: 38rem;
    }

    .hero-title-block h1 {
        font-size: clamp(3.35rem, 4.4vw, 4.8rem);
    }

    .hero-statement {
        max-width: 28rem;
        font-size: clamp(0.84rem, 0.98vw, 1rem);
    }

    .hero-showcase {
        height: 14.6rem;
    }
}

@media (min-width: 981px) and (max-width: 1320px) {
    .hero {
        min-height: 37rem;
    }

    .hero-copy {
        width: min(29rem, 43vw);
    }

    .hero-showcase {
        width: min(34rem, 52vw);
        height: 14.3rem;
    }

    .hero-cover-1 {
        width: 5.55rem;
    }

    .hero-cover-2 {
        left: 4.15rem;
        width: 6.25rem;
    }

    .hero-cover-3 {
        left: 8.65rem;
        width: 7.55rem;
    }

    .hero-cover-4 {
        left: 15.1rem;
        width: 6.25rem;
    }

    .hero-cover-5 {
        left: 20.25rem;
        width: 5.65rem;
    }

    .hero-cover-6 {
        left: 24.75rem;
        width: 5rem;
    }
}

/* Hero left panel alignment: use the full first-screen stage, not the inner content rail. */
@media (min-width: 1321px) {
    .hero {
        padding-inline: clamp(2rem, 2.2vw, 3.2rem);
    }

    .hero-copy {
        width: min(41rem, 45vw);
    }

    .hero-showcase {
        left: clamp(1.4rem, 2vw, 2.8rem);
        width: min(50rem, 50vw);
    }

    .hero-cover-1 {
        width: clamp(6.6rem, 6.1vw, 8.7rem);
    }

    .hero-cover-2 {
        left: clamp(5.1rem, 5.1vw, 7.1rem);
        width: clamp(7.4rem, 7vw, 10rem);
    }

    .hero-cover-3 {
        left: clamp(10.65rem, 10.3vw, 14rem);
        width: clamp(8.9rem, 8.55vw, 12.4rem);
    }

    .hero-cover-4 {
        left: clamp(18.5rem, 17.6vw, 23.7rem);
        width: clamp(7.6rem, 7.2vw, 10.2rem);
    }

    .hero-cover-5 {
        left: clamp(24.55rem, 23.4vw, 31.2rem);
        width: clamp(6.85rem, 6.45vw, 8.95rem);
    }

    .hero-cover-6 {
        left: clamp(30rem, 28.65vw, 37.8rem);
        width: clamp(6.15rem, 5.75vw, 8rem);
    }
}

/* Hero recommendation wall: make the six random covers a real visual feature. */
@media (min-width: 981px) {
    .hero {
        min-height: clamp(50rem, 88vh, 64rem);
    }

    .hero-showcase {
        top: clamp(22rem, 43vh, 30rem);
        bottom: auto;
        left: max(1.2rem, calc((100vw - var(--max)) / 2 + 0.45rem));
        width: min(50rem, 58vw);
        height: clamp(21rem, 40vh, 32rem);
        min-height: 0;
        max-height: none;
        z-index: 5;
    }

    .hero-showcase::before {
        bottom: 0.15rem;
        left: 0.2rem;
        width: min(45rem, 98%);
        height: clamp(11rem, 20vh, 16rem);
        opacity: 0.62;
        filter: blur(26px);
    }

    .hero-cover {
        filter: drop-shadow(0 34px 30px rgba(0, 16, 20, 0.42));
    }

    .hero-cover img {
        box-shadow:
            0 28px 48px rgba(0, 16, 20, 0.48),
            0 0 28px rgba(238, 249, 244, 0.14);
    }

    .hero-cover-1 {
        bottom: 1.25rem;
        left: 0;
        z-index: 2;
        width: clamp(8.4rem, 8.2vw, 11.8rem);
        --hero-rotate: -14deg;
    }

    .hero-cover-2 {
        bottom: 0.48rem;
        left: clamp(6.35rem, 6.1vw, 8.9rem);
        z-index: 4;
        width: clamp(9.7rem, 9.5vw, 13.8rem);
        --hero-rotate: 9deg;
    }

    .hero-cover-3 {
        bottom: 0;
        left: clamp(13.85rem, 13.1vw, 18.6rem);
        z-index: 8;
        width: clamp(12rem, 11.9vw, 17.4rem);
        --hero-rotate: -1deg;
    }

    .hero-cover-4 {
        bottom: 0.85rem;
        left: clamp(24.2rem, 22.85vw, 32rem);
        z-index: 5;
        width: clamp(9.8rem, 9.6vw, 14rem);
        --hero-rotate: 12deg;
    }

    .hero-cover-5 {
        bottom: 1.55rem;
        left: clamp(32.15rem, 30.25vw, 41rem);
        z-index: 3;
        width: clamp(8.7rem, 8.35vw, 12rem);
        --hero-rotate: -9deg;
    }

    .hero-cover-6 {
        bottom: 2.25rem;
        left: clamp(39.2rem, 36.7vw, 49rem);
        z-index: 1;
        width: clamp(7.85rem, 7.45vw, 10.8rem);
        --hero-rotate: 8deg;
    }
}

@media (min-width: 1600px) {
    .hero-showcase {
        width: min(60rem, 56vw);
        height: clamp(25rem, 43vh, 35rem);
    }

    .hero-cover-1 {
        width: clamp(11rem, 7.5vw, 14rem);
    }

    .hero-cover-2 {
        left: clamp(8.2rem, 5.9vw, 10.2rem);
        width: clamp(12.8rem, 8.7vw, 16.4rem);
    }

    .hero-cover-3 {
        left: clamp(18.1rem, 12.8vw, 22rem);
        width: clamp(15.6rem, 10.8vw, 20.8rem);
    }

    .hero-cover-4 {
        left: clamp(31.4rem, 21.7vw, 38.4rem);
        width: clamp(13rem, 8.8vw, 16.8rem);
    }

    .hero-cover-5 {
        left: clamp(42rem, 29vw, 50.5rem);
        width: clamp(11.3rem, 7.6vw, 14.2rem);
    }

    .hero-cover-6 {
        left: clamp(51rem, 35vw, 60rem);
        width: clamp(10rem, 6.75vw, 12.6rem);
    }
}

@media (min-width: 981px) and (max-width: 1320px) {
    .hero {
        min-height: clamp(44rem, 86vh, 52rem);
    }

    .hero-showcase {
        top: clamp(21rem, 42vh, 25rem);
        width: min(41rem, 62vw);
        height: clamp(18rem, 36vh, 24rem);
    }

    .hero-cover-1 {
        width: clamp(7.1rem, 7.3vw, 8.9rem);
    }

    .hero-cover-2 {
        left: clamp(5.25rem, 5.5vw, 6.6rem);
        width: clamp(8rem, 8.2vw, 10.2rem);
    }

    .hero-cover-3 {
        left: clamp(11.25rem, 11.6vw, 14rem);
        width: clamp(10rem, 10.2vw, 12.9rem);
    }

    .hero-cover-4 {
        left: clamp(19.7rem, 20.2vw, 24rem);
        width: clamp(8rem, 8.3vw, 10.3rem);
    }

    .hero-cover-5 {
        left: clamp(26.25rem, 26.8vw, 31.4rem);
        width: clamp(7.2rem, 7.4vw, 9rem);
    }

    .hero-cover-6 {
        left: clamp(31.9rem, 32.6vw, 37.6rem);
        width: clamp(6.45rem, 6.55vw, 8rem);
    }
}

@media (max-width: 980px) {
    .hero-showcase {
        display: block;
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: min(43rem, 100%);
        height: clamp(16rem, 34vw, 20rem);
        margin: clamp(1.8rem, 4vw, 2.8rem) 0 0;
        opacity: 0.98;
    }

    .hero-cover {
        display: block !important;
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .hero-cover::after,
    .hero-cover span {
        display: none;
    }

    .hero-cover img {
        display: block;
        width: 100%;
        height: auto !important;
        aspect-ratio: 2 / 3;
        object-fit: cover;
        box-shadow: 0 18px 34px rgba(0, 18, 22, 0.44);
    }

    .hero-cover-1 {
        top: auto;
        bottom: 0.65rem;
        left: 0;
        width: clamp(5.4rem, 14vw, 7.2rem);
        --hero-rotate: -14deg;
    }

    .hero-cover-2 {
        top: auto;
        right: auto;
        bottom: 0.28rem;
        left: clamp(4rem, 10.5vw, 5.6rem);
        width: clamp(6.1rem, 15.6vw, 8rem);
        --hero-rotate: 8deg;
    }

    .hero-cover-3 {
        top: auto;
        right: auto;
        bottom: 0;
        left: clamp(8.7rem, 22vw, 11.4rem);
        width: clamp(7.35rem, 18.5vw, 9.7rem);
        --hero-rotate: -1deg;
    }

    .hero-cover-4 {
        top: auto;
        right: auto;
        bottom: 0.55rem;
        left: clamp(14.8rem, 37vw, 19rem);
        width: clamp(6rem, 15.4vw, 8rem);
        --hero-rotate: 11deg;
    }

    .hero-cover-5 {
        top: auto;
        right: auto;
        bottom: 0.9rem;
        left: clamp(19.9rem, 49vw, 25.2rem);
        width: clamp(5.35rem, 13.5vw, 7.2rem);
        --hero-rotate: -8deg;
    }

    .hero-cover-6 {
        top: auto;
        bottom: 1.25rem;
        left: clamp(24.2rem, 59vw, 30.3rem);
        width: clamp(4.8rem, 12vw, 6.5rem);
        --hero-rotate: 8deg;
    }
}

@media (max-width: 680px) {
    .hero-cover-5,
    .hero-cover-6 {
        display: block !important;
    }

    .hero-showcase {
        height: clamp(13.25rem, 44vw, 16.2rem);
        margin-top: 1.45rem;
    }

    .hero-cover-1 {
        width: clamp(4.5rem, 18vw, 5.35rem);
    }

    .hero-cover-2 {
        left: clamp(3.25rem, 13vw, 4rem);
        width: clamp(5.05rem, 20vw, 6rem);
    }

    .hero-cover-3 {
        left: clamp(7.05rem, 28vw, 8.7rem);
        width: clamp(6.05rem, 24vw, 7.1rem);
    }

    .hero-cover-4 {
        left: clamp(12.05rem, 47vw, 14.5rem);
        width: clamp(5rem, 19.5vw, 5.8rem);
    }

    .hero-cover-5 {
        left: clamp(16.05rem, 63vw, 19rem);
        width: clamp(4.4rem, 17vw, 5.2rem);
    }

    .hero-cover-6 {
        left: clamp(19.2rem, 75vw, 22.3rem);
        width: clamp(4rem, 15vw, 4.7rem);
    }
}

/* Hero recommendation pile: larger, more prominent, and collision-safe. */
@media (min-width: 981px) {
    .hero {
        min-height: clamp(50rem, 88vh, 64rem);
    }

    .hero-showcase {
        top: clamp(22rem, 45vh, 28rem);
        right: auto;
        bottom: auto;
        left: clamp(1.1rem, 1.8vw, 2.2rem);
        width: min(66rem, 58vw);
        height: clamp(24rem, 45vh, 30rem);
        min-height: 0;
        max-height: none;
        z-index: 6;
    }

    .hero-showcase::before {
        right: auto;
        bottom: 0;
        left: 0;
        width: min(58rem, 98%);
        height: clamp(12rem, 20vh, 15rem);
        opacity: 0.68;
        filter: blur(30px);
    }

    .hero-cover {
        filter: drop-shadow(0 38px 34px rgba(0, 15, 18, 0.46));
    }

    .hero-cover img {
        box-shadow:
            0 32px 58px rgba(0, 16, 20, 0.52),
            0 0 34px rgba(238, 249, 244, 0.16);
    }

    .hero-cover-1 {
        bottom: 1.5rem;
        left: 0;
        z-index: 2;
        width: clamp(10rem, 12vw, 16rem);
        --hero-rotate: -15deg;
    }

    .hero-cover-2 {
        bottom: 0.6rem;
        left: clamp(5.2rem, 7vw, 8rem);
        z-index: 4;
        width: clamp(12rem, 15vw, 20rem);
        --hero-rotate: 9deg;
    }

    .hero-cover-3 {
        bottom: 0;
        left: clamp(11.2rem, 15vw, 16rem);
        z-index: 8;
        width: clamp(15rem, 20vw, 25rem);
        --hero-rotate: -1deg;
    }

    .hero-cover-4 {
        bottom: 0.95rem;
        left: clamp(21.8rem, 27vw, 30rem);
        z-index: 5;
        width: clamp(12rem, 15vw, 19rem);
        --hero-rotate: 12deg;
    }

    .hero-cover-5 {
        bottom: 1.35rem;
        left: clamp(30rem, 38vw, 42rem);
        z-index: 3;
        width: clamp(10rem, 12vw, 16rem);
        --hero-rotate: -9deg;
    }

    .hero-cover-6 {
        bottom: 2.05rem;
        left: clamp(37rem, 47vw, 52rem);
        z-index: 1;
        width: clamp(9rem, 11vw, 14rem);
        --hero-rotate: 8deg;
    }
}

@media (min-width: 981px) and (max-width: 1320px) {
    .hero {
        min-height: clamp(46rem, 92vh, 54rem);
    }

    .hero-showcase {
        top: clamp(21.25rem, 45vh, 24rem);
        width: min(48rem, 62vw);
        height: clamp(22.5rem, 49vh, 30rem);
    }

    .hero-cover-1 {
        width: clamp(8.4rem, 10vw, 10rem);
    }

    .hero-cover-2 {
        left: clamp(4.4rem, 6.2vw, 5.6rem);
        width: clamp(9.6rem, 12vw, 12.8rem);
    }

    .hero-cover-3 {
        left: clamp(9.6rem, 14vw, 12.2rem);
        width: clamp(12.2rem, 18vw, 16.5rem);
    }

    .hero-cover-4 {
        left: clamp(18.2rem, 27vw, 23.4rem);
        width: clamp(9.7rem, 12vw, 12.7rem);
    }

    .hero-cover-5 {
        left: clamp(25rem, 37vw, 31.8rem);
        width: clamp(8.25rem, 10.3vw, 10.3rem);
    }

    .hero-cover-6 {
        left: clamp(30.6rem, 45vw, 37.8rem);
        width: clamp(7.5rem, 9.4vw, 9.4rem);
    }
}

@media (max-width: 980px) {
    .hero-showcase {
        width: min(46rem, 100%);
        height: clamp(18rem, 46vw, 24rem);
        margin-top: clamp(1.6rem, 4vw, 2.6rem);
    }

    .hero-cover-1 {
        bottom: 0.95rem;
        left: -0.8rem;
        width: clamp(6rem, 17vw, 8rem);
    }

    .hero-cover-2 {
        bottom: 0.45rem;
        left: clamp(3.6rem, 12vw, 5.8rem);
        width: clamp(6.8rem, 19vw, 9.25rem);
    }

    .hero-cover-3 {
        bottom: 0;
        left: clamp(8.2rem, 26vw, 12.6rem);
        width: clamp(8.2rem, 23.5vw, 11.2rem);
    }

    .hero-cover-4 {
        bottom: 0.7rem;
        left: clamp(14.4rem, 45vw, 21.5rem);
        width: clamp(6.8rem, 19vw, 9rem);
    }

    .hero-cover-5 {
        bottom: 1.2rem;
        left: clamp(19.4rem, 61vw, 28.4rem);
        width: clamp(6rem, 16.5vw, 7.8rem);
    }

    .hero-cover-6 {
        bottom: 1.75rem;
        left: clamp(23.5rem, 74vw, 34.2rem);
        width: clamp(5.35rem, 14.5vw, 6.9rem);
    }
}

@media (max-width: 680px) {
    .hero-showcase {
        height: clamp(16.8rem, 62vw, 20rem);
        margin-top: 1.65rem;
    }

    .hero-cover-1 {
        left: -0.65rem;
        width: clamp(5.9rem, 24vw, 6.8rem);
    }

    .hero-cover-2 {
        left: clamp(3rem, 13vw, 3.75rem);
        width: clamp(6.65rem, 27vw, 7.55rem);
    }

    .hero-cover-3 {
        left: clamp(7.7rem, 32vw, 9.2rem);
        width: clamp(8.05rem, 33vw, 9.2rem);
    }

    .hero-cover-4 {
        left: clamp(13.45rem, 54vw, 15.6rem);
        width: clamp(6.6rem, 27vw, 7.45rem);
    }

    .hero-cover-5 {
        left: clamp(18.1rem, 72vw, 20.7rem);
        width: clamp(5.85rem, 23vw, 6.65rem);
    }

    .hero-cover-6 {
        left: clamp(21.8rem, 86vw, 24.8rem);
        width: clamp(5.15rem, 20vw, 5.9rem);
    }
}

/* Final hero balance: compact stage with six equally visible recommendations. */
@media (min-width: 981px) {
    .hero {
        min-height: clamp(39rem, 72vh, 48rem);
        padding-top: clamp(2.25rem, 3.8vh, 3.2rem);
        padding-bottom: clamp(1rem, 2vh, 1.35rem);
    }

    .hero-copy {
        width: min(39rem, 44vw);
    }

    .hero-title-block h1 {
        font-size: clamp(4.75rem, 5.4vw, 6.4rem);
    }

    .hero-role {
        margin-bottom: clamp(1rem, 2vh, 1.35rem);
    }

    .hero-statement {
        max-width: 37rem;
        margin-bottom: 1rem;
        font-size: clamp(1rem, 1.25vw, 1.22rem);
        line-height: 1.25;
    }

    .hero-actions {
        margin-bottom: 0;
    }

    .hero-portrait {
        width: min(49vw, 58rem);
        align-items: center;
        justify-content: flex-end;
    }

    .hero-portrait img {
        height: clamp(33rem, 62vh, 40rem);
        object-position: center center;
        transform: translateX(2%) translateY(-1.5rem);
    }

    .hero-showcase {
        top: auto;
        right: auto;
        bottom: clamp(1rem, 2vh, 1.35rem);
        left: clamp(1.25rem, 2vw, 2.4rem);
        width: min(52rem, 49vw);
        height: clamp(20rem, 38vh, 24.25rem);
        min-height: 0;
        max-height: none;
        z-index: 6;
    }

    .hero-showcase::before {
        right: auto;
        bottom: 0;
        left: 0.2rem;
        width: min(50rem, 98%);
        height: clamp(10rem, 18vh, 13rem);
        opacity: 0.62;
        filter: blur(26px);
    }

    .hero-cover {
        filter: drop-shadow(0 34px 30px rgba(0, 15, 18, 0.44));
    }

    .hero-cover img {
        box-shadow:
            0 30px 54px rgba(0, 16, 20, 0.5),
            0 0 30px rgba(238, 249, 244, 0.15);
    }

    .hero-cover-1 {
        bottom: 1.2rem;
        left: 0;
        z-index: 2;
        width: clamp(10.2rem, 11.8vw, 12.8rem);
        --hero-rotate: -14deg;
    }

    .hero-cover-2 {
        bottom: 0.7rem;
        left: clamp(6rem, 7.8vw, 8.1rem);
        z-index: 4;
        width: clamp(11.2rem, 13vw, 14rem);
        --hero-rotate: 8deg;
    }

    .hero-cover-3 {
        bottom: 0.25rem;
        left: clamp(12.7rem, 15.6vw, 16.4rem);
        z-index: 7;
        width: clamp(12.4rem, 14.2vw, 15.25rem);
        --hero-rotate: -1deg;
    }

    .hero-cover-4 {
        bottom: 0.9rem;
        left: clamp(20.3rem, 24.4vw, 25.9rem);
        z-index: 5;
        width: clamp(11.1rem, 12.8vw, 13.85rem);
        --hero-rotate: 11deg;
    }

    .hero-cover-5 {
        bottom: 1.25rem;
        left: clamp(27.5rem, 32.6vw, 34rem);
        z-index: 3;
        width: clamp(10.3rem, 11.8vw, 12.9rem);
        --hero-rotate: -8deg;
    }

    .hero-cover-6 {
        bottom: 1.75rem;
        left: clamp(34.1rem, 40vw, 41.5rem);
        z-index: 1;
        width: clamp(9.6rem, 10.8vw, 11.9rem);
        --hero-rotate: 8deg;
    }
}

@media (min-width: 981px) and (max-width: 1520px) {
    .hero {
        min-height: clamp(38.25rem, 82vh, 42rem);
    }

    .hero-copy {
        width: min(30rem, 44vw);
    }

    .hero-title-block h1 {
        font-size: clamp(3.65rem, 5.2vw, 4.9rem);
    }

    .hero-statement {
        max-width: 29rem;
        font-size: clamp(0.9rem, 1.08vw, 1.02rem);
    }

    .hero-portrait {
        width: min(48vw, 42rem);
    }

    .hero-portrait img {
        height: clamp(29rem, 62vh, 34rem);
        transform: translateX(2%) translateY(-1rem);
    }

    .hero-showcase {
        width: min(45rem, 52vw);
        height: clamp(18rem, 39vh, 21rem);
        bottom: clamp(0.9rem, 1.8vh, 1.2rem);
    }

    .hero-cover-1 {
        width: clamp(8.8rem, 10.6vw, 10rem);
    }

    .hero-cover-2 {
        left: clamp(5.1rem, 6.8vw, 6.15rem);
        width: clamp(9.8rem, 11.8vw, 11.2rem);
    }

    .hero-cover-3 {
        left: clamp(10.8rem, 14.1vw, 12.7rem);
        width: clamp(10.8rem, 13vw, 12.5rem);
    }

    .hero-cover-4 {
        left: clamp(17.4rem, 22.3vw, 20.1rem);
        width: clamp(9.8rem, 11.7vw, 11.1rem);
    }

    .hero-cover-5 {
        left: clamp(23.8rem, 30.2vw, 27.2rem);
        width: clamp(8.9rem, 10.6vw, 10rem);
    }

    .hero-cover-6 {
        left: clamp(29.4rem, 37vw, 33rem);
        width: clamp(8.25rem, 9.8vw, 9.2rem);
    }
}

@media (max-width: 980px) {
    .hero-showcase {
        height: clamp(18rem, 50vw, 23rem);
    }
}

@media (max-width: 680px) {
    .hero-showcase {
        height: clamp(16rem, 60vw, 19rem);
    }

    .hero-cover-1 {
        width: clamp(5.45rem, 22vw, 6.4rem);
    }

    .hero-cover-2 {
        width: clamp(6.2rem, 25vw, 7.2rem);
    }

    .hero-cover-3 {
        width: clamp(6.9rem, 28vw, 8.2rem);
    }

    .hero-cover-4 {
        width: clamp(6.2rem, 25vw, 7.2rem);
    }

    .hero-cover-5 {
        width: clamp(5.5rem, 22vw, 6.35rem);
    }

    .hero-cover-6 {
        width: clamp(5rem, 20vw, 5.8rem);
    }
}

.lightbox-media {
    position: relative;
}

.book3d-help {
    position: absolute;
    bottom: clamp(0.75rem, 1.4vw, 1.25rem);
    left: clamp(0.75rem, 1.4vw, 1.25rem);
    z-index: 6;
    display: none;
    grid-template-columns: 1fr;
    gap: 0.22rem;
    max-width: min(20rem, calc(100% - 2rem));
    padding: 0.68rem 0.78rem;
    border: 1px solid rgba(205, 231, 226, 0.28);
    border-radius: 10px 3px 10px 3px;
    background: rgba(2, 32, 37, 0.72);
    color: rgba(243, 250, 248, 0.9);
    font-size: 0.72rem;
    line-height: 1.25;
    box-shadow: 0 16px 36px rgba(0, 14, 17, 0.36);
    pointer-events: none;
    backdrop-filter: blur(10px);
}

.book3d-help strong {
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}

.lightbox.is-book3d .book3d-help {
    display: grid;
}

@media (min-width: 981px) {
    .hero-portrait {
        right: max(0.75rem, calc((100vw - var(--max)) / 2));
        left: clamp(37rem, 51vw, 58rem);
        width: auto;
        justify-content: flex-start;
        align-items: flex-end;
    }

    .hero-portrait::before {
        background:
            radial-gradient(circle at 32% 38%, rgba(232, 245, 239, 0.28), transparent 18rem),
            linear-gradient(90deg, rgba(5, 82, 88, 0.42), rgba(7, 78, 82, 0.18) 45%, rgba(1, 35, 41, 0.5));
        opacity: 0.52;
    }

    .hero-portrait img {
        height: min(103%, 35.8rem);
        object-position: left bottom;
        transform: translateX(-1.5%) translateY(-0.45rem);
        opacity: 0.91;
        filter: saturate(0.94) contrast(0.97) brightness(0.88);
        mask-image:
            linear-gradient(90deg, transparent 0%, #000 5.5%, #000 91%, transparent 100%),
            linear-gradient(180deg, transparent 0%, #000 4%, #000 95%, transparent 100%);
        -webkit-mask-image:
            linear-gradient(90deg, transparent 0%, #000 5.5%, #000 91%, transparent 100%),
            linear-gradient(180deg, transparent 0%, #000 4%, #000 95%, transparent 100%);
    }
}

@media (min-width: 981px) and (max-width: 1320px) {
    .hero-portrait {
        left: clamp(29rem, 49vw, 37rem);
        right: -0.35rem;
    }

    .hero-portrait img {
        height: min(101%, 33rem);
    }
}

@media (max-width: 680px) {
    .book3d-help {
        top: 0.75rem;
        right: 0.75rem;
        bottom: auto;
        left: auto;
        max-width: min(13.5rem, calc(100% - 1.5rem));
        font-size: 0.66rem;
    }
}

/* Gallery search and light genre links */
.toolbar {
    grid-template-columns: minmax(17rem, 0.62fr) minmax(0, 1.38fr);
    align-items: end;
}

.genre-filter-line {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    padding: 0.15rem 0 0.22rem;
}

.genre-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.38rem 0.9rem;
}

.genre-links a {
    color: rgba(236, 247, 244, 0.76);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.35;
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
    text-shadow: 0 0 16px rgba(4, 29, 33, 0.28);
    transition: color 180ms ease, border-color 180ms ease, text-shadow 180ms ease;
}

.genre-links a:hover,
.genre-links a:focus-visible,
.genre-links a.is-active {
    color: #ffe2b5;
    border-bottom-color: rgba(255, 226, 181, 0.72);
    text-shadow: 0 0 18px rgba(255, 226, 181, 0.22);
}

.genre-count {
    color: rgba(236, 247, 244, 0.58);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.cover-tech-icons {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.45rem;
    vertical-align: middle;
}

.cover-tech-icon {
    display: inline-grid;
    place-items: center;
    min-width: 1.35rem;
    height: 1.35rem;
    border: 1px solid rgba(232, 201, 157, 0.36);
    border-radius: 999px;
    background: rgba(2, 34, 39, 0.62);
    color: #ffe2b5;
    font-size: 0.62rem;
    font-weight: 950;
    letter-spacing: 0.03em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cover-tech-hand {
    color: #f2d78f;
}

.cover-tech-photoshop {
    color: #a9e5e6;
}

.cover-tech-ai {
    color: #c7f0bd;
}

@media (max-width: 980px) {
    .toolbar {
        grid-template-columns: 1fr;
    }

    .genre-filter-line,
    .genre-links {
        justify-content: flex-start;
    }
}
