:root {
    --font-display: "Josefin Sans", sans-serif;
    --font-body: "PT Sans Narrow", sans-serif;
    --accent: #ff007f;
    --accent-2: #d7a64c;
    --bg: #090708;
    --bg-soft: #141012;
    --panel: rgba(255, 255, 255, 0.055);
    --panel-strong: rgba(255, 255, 255, 0.095);
    --text: #f7f1ec;
    --muted: #cbbfc0;
    --line: rgba(255, 255, 255, 0.16);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

[data-theme="light"] {
    --bg: #fbf6f2;
    --bg-soft: #efe5dd;
    --panel: rgba(16, 11, 12, 0.055);
    --panel-strong: rgba(16, 11, 12, 0.095);
    --text: #1d1517;
    --muted: #695d5f;
    --line: rgba(30, 20, 22, 0.16);
    --shadow: 0 24px 70px rgba(96, 63, 74, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; overflow-x: hidden; }
body {
    margin: 0;
    overflow-x: clip;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    cursor: none;
    transition: background 500ms ease, color 500ms ease;
}

body.nav-open, body.modal-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    gap: 18px;
    align-content: center;
    background: #090708;
    color: #fff;
    transition: opacity 700ms ease, visibility 700ms ease;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.preloader__logo { width: min(180px, 42vw); filter: drop-shadow(0 18px 40px rgba(255, 0, 127, 0.18)); }
.preloader span { font-family: var(--font-display); font-size: clamp(28px, 5vw, 58px); font-weight: 100; letter-spacing: 0; text-transform: uppercase; }

.scroll-progress {
    position: fixed;
    inset: 0 auto auto 0;
    height: 3px;
    width: 0;
    z-index: 9000;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 16px rgba(255, 0, 127, 0.45);
}

.back-home {
    position: fixed;
    right: clamp(18px, 3vw, 44px);
    bottom: clamp(18px, 3vw, 42px);
    z-index: 7600;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #090708;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    cursor: none;
    transition: opacity 260ms ease, visibility 260ms ease, transform 260ms ease, background 260ms ease;
    filter: drop-shadow(0 16px 24px rgba(255, 0, 127, 0.28));
}
.back-home img { width: 100%; height: 100%; object-fit: contain; transform: rotate(180deg); }
.back-home.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-home:hover { filter: drop-shadow(0 18px 28px rgba(255, 0, 127, 0.42)) brightness(1.12); }

.art-cursor {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9998;
    width: 18px;
    height: 18px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 180ms ease, height 180ms ease, border-color 180ms ease, background 180ms ease;
    mix-blend-mode: difference;
}
.art-cursor.is-active { width: 44px; height: 44px; background: rgba(255, 0, 127, 0.14); border-color: #fff; }
.art-cursor.is-image { width: 58px; height: 58px; border-color: var(--accent-2); }

.site-header {
    position: fixed;
    inset: 16px clamp(12px, 2vw, 28px) auto clamp(12px, 2vw, 28px);
    z-index: 8000;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 22px;
    padding: 10px 12px 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(7, 5, 6, 0.72);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-120%);
    transition: opacity 280ms ease, visibility 280ms ease, transform 280ms ease, background 280ms ease;
}
.site-header.is-visible,
body.nav-open .site-header {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
[data-theme="light"] .site-header { background: rgba(251, 246, 242, 0.82); }
.site-logo img { width: 112px; height: auto; }
.site-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
}
.site-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--muted);
}
.site-nav a span { color: var(--accent-2); font-size: 11px; }
.site-nav a::after {
    display: none;
}
.site-nav a:hover { color: #fff; background: rgba(255, 0, 127, 0.24); }
.theme-toggle, .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    border-radius: 50%;
    cursor: none;
}
.nav-toggle { display: none; gap: 4px; }
.nav-toggle span { width: 18px; height: 1px; background: currentColor; }

.hero {
    position: relative;
    min-height: 94svh;
    display: grid;
    align-items: end;
    overflow: hidden;
}
.hero picture, .hero picture img, .hero__veil { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero picture img { object-fit: cover; }
.hero__veil { background: linear-gradient(90deg, rgba(8, 5, 6, 0.88), rgba(8, 5, 6, 0.44) 48%, rgba(8, 5, 6, 0.18)), linear-gradient(0deg, var(--bg), transparent 38%); }
[data-theme="light"] .hero__veil { background: linear-gradient(90deg, rgba(251, 246, 242, 0.82), rgba(251, 246, 242, 0.32) 54%, rgba(251, 246, 242, 0.05)), linear-gradient(0deg, var(--bg), transparent 36%); }
.hero__content {
    position: relative;
    width: min(760px, calc(100% - 36px));
    margin: 0 0 clamp(72px, 10vw, 130px) clamp(18px, 8vw, 120px);
}
.kicker {
    margin: 0 0 12px;
    color: var(--accent-2);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 100;
    letter-spacing: 0;
    line-height: 0.95;
    text-transform: uppercase;
}
h1 { margin: 0 0 22px; font-size: clamp(56px, 10vw, 132px); max-width: 980px; }
h2 { margin: 0 0 20px; font-size: clamp(42px, 7vw, 92px); }
h3 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 38px); }
.story-copy h2 { font-size: clamp(40px, 5.6vw, 76px); overflow-wrap: normal; }
.hero__content p:not(.kicker), .section-heading > p:last-child, .story-copy > p, .editorial-grid p, .contact-panel p {
    max-width: 680px;
    color: var(--muted);
    font-size: clamp(20px, 2vw, 27px);
    line-height: 1.5;
}
.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    margin-top: 22px;
    padding: 12px 24px;
    border: 1px solid color-mix(in srgb, var(--accent) 70%, white);
    background: var(--accent);
    color: #fff;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    cursor: none;
    box-shadow: 0 16px 34px rgba(255, 0, 127, 0.24);
    transition: transform 260ms ease, background 260ms ease, box-shadow 260ms ease;
}
.button:hover { transform: translateY(-3px); background: #d90070; box-shadow: 0 24px 48px rgba(255, 0, 127, 0.32); }
.button--ghost { background: transparent; color: var(--text); box-shadow: none; }
.button--ghost:hover { background: var(--accent); color: #fff; }
.scroll-cue {
    position: absolute;
    right: clamp(24px, 5vw, 70px);
    bottom: 36px;
    width: 28px;
    height: 54px;
    border: 1px solid var(--line);
    border-radius: 20px;
}
.scroll-cue::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 10px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    animation: cue 1.6s ease infinite;
}
@keyframes cue { 0% { transform: translate(-50%, 0); opacity: 1; } 80% { transform: translate(-50%, 24px); opacity: 0; } 100% { opacity: 0; } }

.gallery-band, .story-section, .editorial-section, .process-section, .timeline-section, .comments-section, .contact-section {
    position: relative;
    padding: clamp(84px, 10vw, 150px) clamp(18px, 5vw, 72px);
}
.catalog-section {
    padding: clamp(84px, 10vw, 150px) clamp(18px, 5vw, 72px);
    background: linear-gradient(180deg, var(--bg-soft), var(--bg));
}
.catalog-panel {
    width: min(980px, 100%);
    margin: 0 auto;
    padding: clamp(28px, 6vw, 72px);
    text-align: center;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
}
.catalog-panel p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--muted);
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.55;
}
.gallery-band, .timeline-section { background: linear-gradient(180deg, var(--bg), var(--bg-soft)); }
.story-section { background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.comments-section {
    background: var(--bg-soft);
    overflow: hidden;
}
.section-heading {
    width: min(960px, 100%);
    margin: 0 auto 54px;
    text-align: center;
}
.section-number {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
}
.section-heading::after, .story-copy::after {
    content: "";
    display: block;
    width: min(180px, 36vw);
    height: 1px;
    margin: 28px auto 0;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
}

.art-grid {
    display: block;
    column-count: 4;
    column-gap: 14px;
    width: min(860px, 100%);
    margin: 0 auto;
    padding-inline: 0;
}
.art-card {
    position: relative;
    display: inline-block;
    width: 100%;
    height: auto;
    margin: 0 0 14px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 5px;
    background: var(--panel);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
    vertical-align: top;
}
.art-card::before { display: none; }
.art-card__button {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: none;
}
.art-card:nth-child(n) { height: auto; margin-top: 0; }
.art-card picture { display: block; height: auto; }
.art-card img { width: 100%; height: auto; object-fit: contain; transform: scale(1); transition: transform 700ms ease, filter 700ms ease; }
.art-card:hover img { transform: scale(1.025); filter: saturate(1.08) contrast(1.04); }
.art-card figcaption {
    position: absolute;
    inset: auto 0 0;
    padding: 70px 20px 20px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.84), transparent);
    color: #fff;
    transform: translateY(18px);
    opacity: 0;
    transition: transform 360ms ease, opacity 360ms ease;
}
.art-card:hover figcaption, .art-card:focus-within figcaption { transform: translateY(0); opacity: 1; }
.art-card h3 { margin-bottom: 4px; font-size: 21px; line-height: 1.15; font-weight: 300; }
.art-card p { margin: 0; color: rgba(255, 255, 255, 0.74); font-size: 15px; text-transform: uppercase; }
.art-card figcaption .fa { margin-bottom: 14px; color: var(--accent-2); font-size: 20px; }

.story-section--split, .process-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
    gap: clamp(34px, 6vw, 86px);
    align-items: center;
}
.story-media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.image-open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: none;
}
.image-open img {
    transition: transform 420ms ease, filter 420ms ease;
}
.image-open:hover img {
    transform: scale(1.025);
    filter: saturate(1.07) contrast(1.04);
}
.story-copy { max-width: 690px; }
.story-copy::after { margin-left: 0; }
blockquote {
    margin: 30px 0 0;
    padding: 26px 0 0 28px;
    border-left: 2px solid var(--accent);
    color: var(--text);
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 100;
    line-height: 1.12;
}

.editorial-section {
    background: linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--bg) 78%, var(--accent) 22%));
}
.editorial-grid {
    width: min(1000px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 6vw, 80px);
}
.process-mosaic {
    display: grid;
    grid-template-columns: 1fr 0.78fr;
    gap: 16px;
    align-items: end;
}
.process-mosaic .image-open {
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.process-mosaic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.process-mosaic .image-open:first-child { grid-row: span 2; aspect-ratio: 4 / 5; }
.process-mosaic .image-open:not(:first-child) { aspect-ratio: 1 / 1; }

.timeline {
    width: min(1180px, 100%);
    margin: 0 auto;
}
.resume-grid {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}
.resume-card {
    padding: clamp(22px, 4vw, 42px);
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
}
.resume-card--wide { grid-column: 1 / -1; }
.resume-card h3 {
    margin-bottom: 24px;
    font-size: clamp(34px, 5vw, 64px);
}
.resume-card h4 {
    margin: 28px 0 12px;
    color: var(--accent);
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}
.resume-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.resume-list--columns {
    column-count: 2;
    column-gap: clamp(22px, 4vw, 54px);
}
.resume-list li {
    break-inside: avoid;
    position: relative;
    padding: 0 0 11px 18px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.45;
}
.resume-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 1px;
    background: var(--accent-2);
}
.resume-list strong {
    color: var(--accent);
    font-weight: 700;
}
.timeline {
    display: none;
}
.timeline article {
    position: relative;
    padding: 34px 20px 0 0;
    border-right: 1px solid var(--line);
}
.timeline article::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
}
.timeline time { color: var(--accent-2); font-weight: 700; text-transform: uppercase; }
.timeline p { color: var(--muted); margin: 0; font-size: 17px; }

.comments-editorial {
    width: min(1180px, 100%);
    margin: 0 auto 42px;
    display: grid;
    grid-template-columns: minmax(0, 650px) auto;
    gap: 28px;
    align-items: end;
}
.comments-editorial h2 {
    margin-bottom: 16px;
    font-size: clamp(40px, 6vw, 78px);
    line-height: 0.95;
    text-transform: none;
}
.comments-editorial p:last-child {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(19px, 2vw, 24px);
    line-height: 1.45;
}
.comments-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.comment-carousel {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 14px;
    align-items: center;
}
.comment-viewport {
    overflow: hidden;
}
.comment-track {
    display: flex;
    gap: 22px;
    transform: translateX(0);
    transition: transform 620ms ease;
}
.comment-nav {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--panel);
    color: var(--text);
    font-size: 28px;
    cursor: none;
    transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}
.comment-nav:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}
.comment-slide {
    flex: 0 0 calc((100% - 44px) / 3);
    min-height: 238px;
}
.comment-form, .comment-card, .contact-panel {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
}
.comment-card {
    height: 100%;
    display: grid;
    align-content: space-between;
    gap: 24px;
    padding: 30px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--bg) 88%, white 12%);
    box-shadow: none;
}
.comment-card::before {
    content: "\201C";
    color: color-mix(in srgb, var(--accent) 55%, white 45%);
    font-family: Georgia, serif;
    font-size: 34px;
    line-height: 1;
}
.comment-card__quote {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
}
.comment-card__meta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: end;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.comment-card__name {
    margin: 0;
    color: var(--text);
    font-family: Georgia, serif;
    font-size: 15px;
    font-weight: 700;
}
.comment-card__date {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1px;
    line-height: 1.2;
    text-align: right;
    text-transform: uppercase;
}
.comment-dots {
    width: min(1180px, 100%);
    margin: 24px auto 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.comment-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--line);
    cursor: none;
    transition: background 240ms ease, transform 240ms ease;
}
.comment-dots button.is-active {
    background: var(--accent);
    transform: scale(1.4);
}
.comment-form { padding: clamp(22px, 4vw, 40px); }
.comment-form label { display: grid; gap: 8px; margin-bottom: 16px; color: var(--muted); text-transform: uppercase; font-size: 14px; font-weight: 700; }
.comment-form input, .comment-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--panel-strong);
    color: var(--text);
    padding: 13px 14px;
    border-radius: 2px;
    outline: none;
    transition: border-color 240ms ease, box-shadow 240ms ease;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 0, 127, 0.16); }
.hp-field { display: none !important; }
.form-status { min-height: 28px; margin: 16px 0 0; color: var(--accent-2); }
.comment-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-content: start;
}
.comments-drawer {
    position: fixed;
    inset: 0;
    z-index: 9400;
    display: grid;
    place-items: end center;
    padding: clamp(14px, 3vw, 34px);
    background: rgba(5, 4, 5, 0.72);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 260ms ease, visibility 260ms ease;
}
.comments-drawer.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.comments-drawer__panel {
    width: min(1100px, 100%);
    max-height: min(84svh, 820px);
    overflow: auto;
    padding: clamp(22px, 4vw, 44px);
    border: 1px solid var(--line);
    background: var(--bg);
    box-shadow: var(--shadow);
}
.comments-drawer__close {
    position: sticky;
    top: 0;
    z-index: 2;
    float: right;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--panel);
    color: var(--text);
    cursor: none;
}
.comments-drawer__header h2 {
    font-size: clamp(36px, 5vw, 64px);
    text-transform: none;
}
.comments-drawer__content {
    display: grid;
    gap: 28px;
}
.comments-drawer.show-form .comment-list { display: none; }
.comments-drawer:not(.show-form) .comment-form { display: none; }

.contact-section {
    min-height: 70svh;
    display: grid;
    place-items: center;
    background: linear-gradient(0deg, var(--bg), transparent), url("../../assets/optimized/galeria-5-1400w.webp") center/cover fixed;
}
.contact-panel {
    width: min(780px, 100%);
    padding: clamp(28px, 6vw, 70px);
    backdrop-filter: blur(18px);
}
.contact-panel a {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    color: var(--accent);
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 700;
}

.art-modal {
    position: fixed;
    inset: 0;
    z-index: 9500;
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) 60px;
    align-items: center;
    gap: 12px;
    padding: clamp(16px, 3vw, 42px);
    background: rgba(4, 3, 4, 0.92);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 260ms ease, visibility 260ms ease;
}
.art-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.art-modal__figure {
    min-width: 0;
    max-height: calc(100svh - 84px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: clamp(18px, 3vw, 38px);
    align-items: center;
    margin: 0;
}
.art-modal__image-wrap {
    position: relative;
    display: grid;
    place-items: center;
    min-height: min(74svh, 780px);
}
.art-modal__image-wrap::after {
    content: "";
    position: absolute;
    width: 42px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.22);
    border-top-color: var(--accent);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.86);
    transition: opacity 180ms ease, transform 180ms ease;
    animation: modal-spin 720ms linear infinite;
}
.art-modal.is-loading .art-modal__image-wrap::after {
    opacity: 1;
    transform: scale(1);
}
.art-modal__image-wrap img {
    max-height: calc(100svh - 120px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 160ms ease;
}
.art-modal__image-wrap img.is-loaded { opacity: 1; }
@keyframes modal-spin { to { transform: rotate(360deg); } }
.art-modal__info {
    min-width: 0;
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(12, 8, 10, 0.88);
    color: #fff;
}
.art-modal__info h2 {
    max-width: 100%;
    font-size: clamp(34px, 3.4vw, 48px);
    line-height: 1.05;
    font-weight: 300;
    text-transform: none;
    overflow-wrap: normal;
}
.art-modal__info dl {
    display: grid;
    gap: 12px;
    margin: 24px 0;
}
.art-modal__info dl div {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.art-modal__info dt {
    color: var(--accent-2);
    font-size: 13px;
    text-transform: uppercase;
}
.art-modal__info dd {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}
.art-modal__info p:last-child {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.5;
}
.art-modal__close,
.art-modal__nav {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: none;
}
.art-modal__close {
    position: absolute;
    right: clamp(16px, 3vw, 42px);
    top: clamp(16px, 3vw, 34px);
}
.art-modal__nav {
    justify-self: center;
    font-size: 30px;
}
.art-modal__nav:hover,
.art-modal__close:hover {
    background: var(--accent);
}

.premium-footer {
    padding: clamp(46px, 7vw, 84px) clamp(18px, 5vw, 72px) 32px;
    display: grid;
    grid-template-columns: 1fr auto 260px;
    gap: 34px;
    align-items: start;
    background: #070506;
    color: #f7f1ec;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
}
.premium-footer > div:first-child img { width: 130px; }
.premium-footer p { max-width: 430px; color: rgba(255, 255, 255, 0.72); }
.premium-footer nav { display: grid; gap: 8px; min-width: 160px; }
.premium-footer nav a:hover { color: var(--accent); }
.footer-mini-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.footer-mini-gallery .image-open { aspect-ratio: 1; overflow: hidden; }
.footer-mini-gallery img { width: 100%; height: 100%; object-fit: cover; }
.copyright { grid-column: 1 / -1; margin: 10px 0 0; font-size: 14px; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1080px) {
    .art-grid { column-count: 4; column-gap: 12px; width: min(760px, 100%); }
    .art-card:nth-child(n) { margin-top: 0; height: auto; transform: none; }
    .resume-grid { grid-template-columns: 1fr; }
    .resume-list--columns { column-count: 1; }
    .premium-footer { grid-template-columns: 1fr 1fr; }
    .footer-mini-gallery { grid-column: 1 / -1; max-width: 360px; }
    .art-modal__figure { grid-template-columns: 1fr; overflow: auto; }
    .art-modal { grid-template-columns: 44px minmax(0, 1fr) 44px; }
    .art-modal__info { max-width: 720px; justify-self: center; }
}

@media (max-width: 860px) {
    body { cursor: auto; }
    .art-cursor { display: none; }
    .site-header { grid-template-columns: auto 1fr auto; }
    .nav-toggle { display: inline-grid; justify-self: end; }
    .theme-toggle { justify-self: end; }
    .site-nav {
        position: fixed;
        inset: 78px 14px auto 14px;
        display: none;
        padding: 20px;
        background: var(--bg-soft);
        border: 1px solid var(--line);
        border-radius: 18px;
        box-shadow: var(--shadow);
    }
    .site-nav.is-open { display: grid; gap: 14px; }
    .hero__content { margin-left: 18px; }
    h1 { font-size: clamp(54px, 18vw, 92px); }
    .story-section--split, .process-section, .comments-editorial, .editorial-grid { grid-template-columns: 1fr; }
    .comments-actions { justify-content: flex-start; }
    .comment-slide { flex-basis: calc((100% - 22px) / 2); }
    .comment-carousel { grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 10px; }
    .comment-nav { width: 40px; height: 40px; }
    .process-section .story-copy { order: -1; }
    .contact-section { background-attachment: scroll; }
    .art-modal {
        grid-template-columns: 1fr;
        align-items: start;
        overflow: auto;
        gap: 10px;
    }
    .art-modal__figure {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        max-height: none;
        grid-template-columns: 1fr;
        gap: 14px;
        padding-bottom: 72px;
    }
    .art-modal__image-wrap {
        min-height: 0;
        max-height: 46svh;
        width: 100%;
        padding: 0;
    }
    .art-modal__image-wrap img {
        width: auto;
        max-width: 100%;
        max-height: 46svh;
        object-fit: contain;
    }
    .art-modal__info {
        width: min(100%, 680px);
        justify-self: center;
    }
    .art-modal__nav {
        position: fixed;
        bottom: max(16px, env(safe-area-inset-bottom));
        z-index: 2;
        margin: 0;
        background: rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(10px);
    }
    .art-modal__nav--prev { left: 22%; }
    .art-modal__nav--next { right: 22%; }
}

@media (max-width: 620px) {
    .site-logo img { width: 92px; }
    .art-grid { column-count: 2; column-gap: 10px; width: min(420px, 100%); }
    .art-card, .art-card:nth-child(n), .art-card:nth-child(4n) { height: auto; margin-top: 0; transform: none; }
    .premium-footer { grid-template-columns: 1fr; }
    .site-header { inset: 10px 10px auto 10px; border-radius: 22px; }
    .site-nav a { width: 100%; justify-content: space-between; }
    .art-modal {
        padding: max(10px, env(safe-area-inset-top)) 12px 78px;
        background: rgba(4, 3, 4, 0.96);
    }
    .art-modal__close {
        width: 42px;
        height: 42px;
        right: 12px;
        top: max(12px, env(safe-area-inset-top));
        z-index: 3;
        background: rgba(255, 255, 255, 0.14);
        backdrop-filter: blur(10px);
    }
    .art-modal__figure {
        gap: 10px;
        padding-bottom: 64px;
    }
    .art-modal__image-wrap {
        max-height: 40svh;
        min-height: 180px;
        align-items: start;
    }
    .art-modal__image-wrap img {
        max-height: 40svh;
        border-radius: 6px;
        box-shadow: 0 18px 48px rgba(0, 0, 0, 0.46);
    }
    .art-modal__info {
        padding: 16px;
        border-color: rgba(255, 255, 255, 0.18);
    }
    .art-modal__info h2 {
        font-size: clamp(30px, 10vw, 42px);
        line-height: 1.02;
    }
    .art-modal__info dl {
        gap: 8px;
        margin: 14px 0;
    }
    .art-modal__info dl div {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 10px;
        padding-bottom: 8px;
    }
    .art-modal__info dt { font-size: 12px; }
    .art-modal__info dd,
    .art-modal__info p:last-child {
        font-size: 18px;
        line-height: 1.35;
    }
    .art-modal__nav {
        width: 44px;
        height: 44px;
        font-size: 28px;
    }
    .art-modal__nav--prev { left: 24%; }
    .art-modal__nav--next { right: 24%; }
    .back-home { width: 38px; height: 38px; right: 16px; bottom: 16px; }
    .comment-slide { flex-basis: 86%; }
    .comment-carousel { grid-template-columns: 1fr 1fr; }
    .comment-viewport { grid-column: 1 / -1; grid-row: 1; }
    .comment-nav { grid-row: 2; justify-self: center; margin-top: 12px; }
    .comment-nav--prev { grid-column: 1; }
    .comment-nav--next { grid-column: 2; }
    .comment-list { grid-template-columns: 1fr; }
    .comments-actions .button { width: 100%; justify-content: center; }
}

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