:root {
    --ink: #080807;
    --charcoal: #12110f;
    --panel: #191713;
    --paper: #f3efe6;
    --paper-deep: #e3d9c9;
    --gold: #d8a83f;
    --gold-bright: #f3c65e;
    --bone: #fff8ea;
    --muted: rgba(255, 248, 234, 0.68);
    --dark-muted: rgba(8, 8, 7, 0.62);
    --line: rgba(255, 248, 234, 0.16);
    --shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--bone);
    font-family: Inter, Segoe UI, Helvetica Neue, Arial, sans-serif;
    font-style: normal;
    line-height: 1.5;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(120deg, rgba(216, 168, 63, 0.12), transparent 24%),
        radial-gradient(circle at 82% 12%, rgba(208, 55, 45, 0.16), transparent 30%),
        linear-gradient(180deg, #080807 0%, #12110f 46%, #080807 100%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.12;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, black, transparent 72%);
}

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

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

button {
    font: inherit;
    font-style: normal;
}

.skip-link {
    position: fixed;
    left: 1rem;
    top: -4rem;
    z-index: 1000;
    background: var(--gold);
    color: #090806;
    padding: 0.75rem 1rem;
    font-weight: 800;
}

.skip-link:focus {
    top: 1rem;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem clamp(1rem, 4vw, 3rem);
    background: rgba(8, 8, 7, 0.76);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.88rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: clamp(0.85rem, 2.2vw, 1.8rem);
    color: rgba(255, 248, 234, 0.76);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.primary-nav a {
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
    color: var(--gold-bright);
}

.nav-button {
    border: 1px solid rgba(243, 198, 94, 0.46);
    border-radius: 999px;
    padding: 0.72rem 1rem;
    color: var(--gold-bright);
}

.nav-button:hover,
.nav-button:focus-visible {
    background: var(--gold-bright);
    color: #090806;
}

.section {
    width: min(var(--max), calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(5rem, 9vw, 8rem) 0;
}

.hero-section {
    min-height: 100svh;
    position: relative;
    display: grid;
    align-items: end;
    padding: 7rem clamp(1rem, 5vw, 4rem) 2rem;
    isolation: isolate;
    overflow: hidden;
}

.hero-art {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(8,8,7,0.88) 0%, rgba(8,8,7,0.44) 42%, rgba(8,8,7,0.18) 100%),
        linear-gradient(0deg, rgba(8,8,7,0.94) 0%, transparent 42%),
        url("assets/hero.webp") center / cover no-repeat;
    transform: scale(1.01);
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, rgba(216, 168, 63, 0.22), transparent 28%, rgba(255,255,255,0.05) 67%, transparent);
    mix-blend-mode: screen;
    opacity: 0.75;
}

.hero-content {
    width: min(820px, 100%);
    padding-bottom: clamp(2rem, 8vh, 5rem);
}

.kicker {
    margin: 0 0 1rem;
    color: var(--gold-bright);
    font-size: clamp(0.68rem, 1.4vw, 0.82rem);
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.kicker.dark {
    color: #806018;
}

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

h1 {
    margin-bottom: 1.2rem;
    font-size: clamp(4.5rem, 16vw, 13.5rem);
    line-height: 0.78;
    letter-spacing: 0;
    text-transform: uppercase;
    font-weight: 950;
    text-wrap: balance;
}

h2 {
    margin-bottom: 1.25rem;
    font-size: clamp(2.4rem, 7vw, 6.4rem);
    line-height: 0.92;
    letter-spacing: 0;
    font-weight: 930;
    text-wrap: balance;
}

h3 {
    font-size: clamp(1.3rem, 2.6vw, 2rem);
    line-height: 1;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 650px;
    color: rgba(255, 248, 234, 0.82);
    font-size: clamp(1.05rem, 2vw, 1.42rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 999px;
    padding: 0.9rem 1.2rem;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button.primary {
    background: var(--gold-bright);
    color: #090806;
}

.button.secondary {
    border: 1px solid rgba(255, 248, 234, 0.32);
    color: var(--bone);
}

.hero-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    width: min(var(--max), 100%);
    border: 1px solid rgba(255, 248, 234, 0.18);
    background: rgba(255, 248, 234, 0.1);
}

.hero-footer span {
    padding: 1rem;
    background: rgba(8, 8, 7, 0.48);
    color: rgba(255, 248, 234, 0.78);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    text-align: center;
}

.intro-section {
    display: grid;
    grid-template-columns: 0.55fr minmax(0, 1.65fr) minmax(260px, 0.8fr);
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: start;
}

.section-label {
    color: var(--gold-bright);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.intro-copy p,
.studio-note p,
.archive-hero p {
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.intro-copy p {
    max-width: 830px;
}

.bio-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.75rem;
}

.bio-points span {
    border: 1px solid rgba(243, 198, 94, 0.32);
    border-radius: 999px;
    padding: 0.64rem 0.85rem;
    color: var(--gold-bright);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.studio-note {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.25rem;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.055), transparent),
        rgba(25, 23, 19, 0.68);
}

.studio-note img {
    width: 82px;
    height: 82px;
    margin-bottom: 1.2rem;
}

.studio-note h3 {
    margin-bottom: 0.8rem;
    color: var(--bone);
    font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.studio-note .text-link {
    display: inline-block;
    margin-top: 1rem;
}

.credits-section {
    padding-top: clamp(3rem, 7vw, 6rem);
}

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

.credit-card {
    position: relative;
    min-height: 290px;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background:
        linear-gradient(135deg, rgba(243, 198, 94, 0.11), transparent 38%),
        rgba(25, 23, 19, 0.78);
}

.credit-card.dc {
    background:
        linear-gradient(135deg, rgba(58, 112, 165, 0.22), transparent 42%),
        rgba(25, 23, 19, 0.78);
}

.credit-card.marvel {
    background:
        linear-gradient(135deg, rgba(192, 42, 35, 0.22), transparent 46%),
        rgba(25, 23, 19, 0.82);
}

.credit-card.image {
    background:
        linear-gradient(135deg, rgba(243, 198, 94, 0.16), transparent 44%),
        rgba(25, 23, 19, 0.78);
}

.credit-card.magma {
    background:
        linear-gradient(135deg, rgba(203, 71, 54, 0.18), transparent 44%),
        rgba(25, 23, 19, 0.78);
}

.credit-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-top: 3px solid rgba(243, 198, 94, 0.78);
    pointer-events: none;
}

.credit-card-top {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    padding: clamp(1.15rem, 2.4vw, 1.7rem);
}

.credit-card h3 {
    margin-bottom: 1rem;
    color: var(--gold-bright);
    font-size: clamp(1.9rem, 3.4vw, 3.5rem);
    line-height: 0.92;
}

.credit-card p {
    margin-bottom: 0;
    max-width: 460px;
    color: rgba(255, 248, 234, 0.72);
    font-size: clamp(0.98rem, 1.5vw, 1.12rem);
}

.credits-note {
    margin: 1rem 0 0;
    color: rgba(255, 248, 234, 0.54);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.light-section {
    width: 100%;
    max-width: none;
    padding: clamp(5rem, 9vw, 8rem) clamp(1rem, 5vw, 4rem);
    background: var(--paper);
    color: var(--ink);
}

.light-section > * {
    width: min(var(--max), 100%);
    margin-left: auto;
    margin-right: auto;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: clamp(2rem, 5vw, 4rem);
}

.text-link {
    color: #6e4f09;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border-bottom: 1px solid currentColor;
    padding-bottom: 0.24rem;
}

.text-link.warm {
    color: var(--gold-bright);
}

.portfolio-grid,
.gallery-grid {
    display: grid;
    grid-auto-flow: dense;
    gap: clamp(0.75rem, 1.8vw, 1.25rem);
}

.portfolio-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, 20vw);
}

.gallery-grid {
    width: min(var(--max), calc(100% - 2rem));
    margin: 0 auto;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(210px, 24vw);
    padding-bottom: clamp(5rem, 9vw, 8rem);
}

.art-tile {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    border: 0;
    border-radius: 6px;
    padding: 0;
    background: #12110f;
    color: var(--bone);
    cursor: pointer;
    box-shadow: var(--shadow);
}

.art-tile.big {
    grid-column: span 2;
    grid-row: span 2;
}

.art-tile.tall {
    grid-row: span 2;
}

.art-tile.wide {
    grid-column: span 2;
}

.art-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 420ms ease, filter 420ms ease;
    -webkit-user-drag: none;
    user-select: none;
}

.art-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 44%, rgba(8,8,7,0.88));
    opacity: 0;
    transition: opacity 250ms ease;
}

.tile-caption {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.95rem;
    z-index: 1;
    color: var(--bone);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 250ms ease, transform 250ms ease;
}

.tile-caption strong {
    display: block;
    font-size: clamp(1rem, 2vw, 1.45rem);
    line-height: 1;
}

.tile-caption span {
    display: block;
    margin-top: 0.45rem;
    color: rgba(255, 248, 234, 0.72);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.art-tile:hover img,
.art-tile:focus-visible img {
    transform: scale(1.055);
    filter: saturate(1.08) contrast(1.03);
}

.art-tile:hover::after,
.art-tile:focus-visible::after,
.art-tile:hover .tile-caption,
.art-tile:focus-visible .tile-caption {
    opacity: 1;
    transform: translateY(0);
}

.commissions-section {
    padding-bottom: clamp(4rem, 8vw, 7rem);
}

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

.commission-card {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.05), transparent),
        var(--panel);
}

.commission-card span {
    color: var(--gold-bright);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.commission-card h3 {
    margin: 1rem 0;
}

.commission-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.faq-section {
    padding-top: clamp(2rem, 6vw, 5rem);
}

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

.faq-grid details {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(25, 23, 19, 0.72);
    overflow: hidden;
}

.faq-grid summary {
    cursor: pointer;
    padding: 1.15rem 1.25rem;
    color: var(--bone);
    font-weight: 900;
    line-height: 1.2;
    list-style: none;
}

.faq-grid summary::-webkit-details-marker {
    display: none;
}

.faq-grid summary::after {
    content: "+";
    float: right;
    color: var(--gold-bright);
    margin-left: 1rem;
}

.faq-grid details[open] summary::after {
    content: "-";
}

.faq-grid p {
    margin: 0;
    padding: 0 1.25rem 1.25rem;
    color: var(--muted);
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
    padding-top: clamp(4rem, 8vw, 7rem);
}

.contact-heading {
    min-width: 0;
}

.contact-section h2 {
    max-width: 760px;
    font-size: clamp(2.5rem, 4.2vw, 4.9rem);
    line-height: 0.96;
    overflow-wrap: normal;
}

.contact-email {
    display: inline-block;
    margin-top: 1rem;
    color: var(--gold-bright);
    font-size: clamp(1.2rem, 3.4vw, 2.5rem);
    font-weight: 850;
    word-break: break-word;
}

.contact-form {
    display: grid;
    gap: 1rem;
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid var(--line);
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent),
        rgba(25, 23, 19, 0.86);
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    gap: 0.45rem;
    text-align: left;
}

.form-row label {
    color: rgba(255, 248, 234, 0.72);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    border: 1px solid rgba(255, 248, 234, 0.18);
    border-radius: 4px;
    background: rgba(8, 8, 7, 0.66);
    color: var(--bone);
    font: inherit;
    font-size: 1rem;
    padding: 0.95rem 1rem;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.form-row textarea {
    resize: vertical;
    min-height: 170px;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: rgba(243, 198, 94, 0.72);
    background: rgba(8, 8, 7, 0.86);
    box-shadow: 0 0 0 3px rgba(243, 198, 94, 0.14);
}

.form-submit {
    width: fit-content;
    border: 0;
    cursor: pointer;
}

.honeypot {
    position: absolute;
    left: -100vw;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    display: none;
    grid-column: 1 / -1;
    border-radius: 6px;
    padding: 1rem;
    text-align: left;
    font-weight: 800;
}

.form-status.success {
    border: 1px solid rgba(128, 211, 156, 0.32);
    background: rgba(51, 142, 82, 0.16);
    color: #c8f2d5;
}

.form-status.error {
    border: 1px solid rgba(242, 115, 92, 0.38);
    background: rgba(178, 48, 35, 0.16);
    color: #ffd1ca;
}

body.form-sent #form-success,
body.form-error #form-error {
    display: block;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    grid-column: 1 / -1;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 0;
}

.social-links a {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.72rem 1rem;
    color: rgba(255, 248, 234, 0.78);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.social-links a:hover,
.social-links a:focus-visible {
    color: var(--gold-bright);
    border-color: rgba(243, 198, 94, 0.5);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem clamp(1rem, 5vw, 4rem);
    border-top: 1px solid var(--line);
    color: rgba(255, 248, 234, 0.5);
    font-size: 0.74rem;
}

.site-footer nav {
    display: flex;
    gap: 1rem;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--gold-bright);
}

.archive-hero {
    padding-top: clamp(9rem, 16vw, 13rem);
    padding-bottom: clamp(3rem, 7vw, 5rem);
}

.archive-hero h1 {
    font-size: clamp(4rem, 14vw, 12rem);
}

.gallery-wrap {
    background: linear-gradient(180deg, transparent, rgba(255, 248, 234, 0.04));
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 3rem);
    background: rgba(8, 8, 7, 0.94);
    user-select: none;
}

.lightbox.is-open {
    display: flex;
}

.lightbox img {
    max-width: min(92vw, 1400px);
    max-height: 68vh;
    object-fit: contain;
    box-shadow: var(--shadow);
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(8, 8, 7, 0.62);
    color: var(--bone);
    padding: 0.72rem 1rem;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
}

.lightbox-caption {
    position: static;
    width: min(720px, calc(100% - 2rem));
    margin-top: 1.1rem;
    text-align: center;
    pointer-events: none;
}

.lightbox-caption h3 {
    margin-bottom: 0.35rem;
    color: var(--gold-bright);
    text-transform: uppercase;
}

.lightbox-caption p {
    margin-bottom: 0;
    color: rgba(255, 248, 234, 0.72);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

#lb-detail {
    max-width: 640px;
    margin: 0.65rem auto 0;
    color: rgba(255, 248, 234, 0.68);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

@media (max-width: 900px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.8rem;
    }

    .primary-nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.2rem;
    }

    .intro-section,
    .section-heading,
    .contact-section,
    .commission-grid {
        grid-template-columns: 1fr;
    }

    .credits-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .credit-card {
        grid-column: span 1;
    }

    .credit-card-top {
        min-height: 120px;
    }

    .intro-section,
    .section-heading {
        display: grid;
    }

    .portfolio-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(190px, 42vw);
    }

    .art-tile.big,
    .art-tile.wide {
        grid-column: span 2;
    }

    .art-tile.tall {
        grid-row: span 1;
    }
}

@media (max-width: 620px) {
    .brand span {
        font-size: 0.76rem;
    }

    .primary-nav a:not(.nav-button) {
        display: none;
    }

    .primary-nav.compact a {
        display: inline-flex;
    }

    .hero-section {
        min-height: 92svh;
        padding-top: 8rem;
    }

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

    .button {
        width: 100%;
    }

    .form-submit {
        width: 100%;
    }

    .portfolio-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(260px, 78vw);
    }

    .art-tile.big,
    .art-tile.wide {
        grid-column: span 1;
    }

    .site-footer {
        flex-direction: column;
    }
}

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