:root {
    --bg: #0a0908;
    --bg-2: #0d0c0b;
    --bg-3: #131110;
    --panel: rgba(246, 240, 228, 0.035);
    --line: rgba(246, 240, 228, 0.095);
    --text: #f3eee3;
    --muted: rgba(243, 238, 227, 0.68);
    --accent: #ece6d8;
    --max: 1240px;
    --font-main: "Generic", "Nimbus Sans", "Helvetica Neue", Arial, sans-serif;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: radial-gradient(circle at 15% 20%, rgba(255, 244, 220, 0.03), transparent 26%), radial-gradient(circle at 82% 14%, rgba(255, 244, 220, 0.022), transparent 20%), radial-gradient(circle at 68% 72%, rgba(255, 244, 220, 0.02), transparent 24%), linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 28%, var(--bg) 100%);
    color: var(--text);
    font-family: var(--font-main);
    font-stretch: 105%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

@font-face {
    font-family: "Generic Slim";
    src: url("./fonts/generic-g40-cc-slender.otf") format("woff2"), url("./fonts/generic-g40-cc-slender.otf") format("woff");
    font-weight: normal;
    font-style: normal;
}

.site-texture {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: url("./img/textura.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.20;
    mix-blend-mode: screen;
}

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

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

button,
input,
textarea,
select {
    font: inherit;
}

.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.18;
    mix-blend-mode: screen;
    background-image: radial-gradient(rgba(255, 255, 255, 0.16) 0.7px, transparent 0.7px), radial-gradient(rgba(255, 255, 255, 0.08) 0.5px, transparent 0.5px);
    background-size: 4px 4px, 7px 7px;
    background-position: 0 0, 1px 2px;
}

.bg-stains {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.34;
    background: radial-gradient(ellipse at 20% 18%, rgba(120, 105, 85, 0.07), transparent 34%), radial-gradient(ellipse at 76% 10%, rgba(135, 115, 92, 0.05), transparent 28%), radial-gradient(ellipse at 54% 64%, rgba(110, 95, 78, 0.055), transparent 30%), radial-gradient(ellipse at 90% 82%, rgba(92, 80, 64, 0.04), transparent 22%);
    filter: blur(16px);
}

.cursor-glow {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, rgba(255, 245, 224, 0.05), transparent 65%);
    transform: translate(-50%, -50%);
    filter: blur(10px);
    opacity: 0.75;
}

.page-shell,
.site-footer {
    position: relative;
    z-index: 1;
}

.page-shell {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.page-top {
    padding: 2.2rem 0 2.5rem;
    display: grid;
    gap: 1.75rem;
}

.page-top-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.4rem;
    align-items: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1;
    transition: opacity 180ms ease, transform 180ms ease, color 180ms ease;
}

.back-link:hover {
    color: var(--text);
    transform: translateX(-2px);
}

.page-heading {
    display: grid;
    gap: 1rem;
}

.page-heading .eyebrow,
.page-heading h1 {
    margin: 0;
}

.top-actions {
    padding-top: 1.4rem;
}

.back-home,
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--muted);
    font-size: 0.94rem;
    transition: opacity 180ms ease, transform 180ms ease, color 180ms ease;
}

.back-home:hover,
.back-link:hover {
    color: var(--text);
    transform: translateX(-2px);
}

.hero {
    min-height: auto;
    display: block;
    padding: 2.5rem 0 1.5rem;
}

.hero-full-image {
    width: 100%;
    position: relative;
}

.hero-full-image-file {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.hero-nav {
    position: absolute;
    top: 7rem;
    right: 0.2rem;
    display: flex;
    gap: 0.6rem;
    z-index: 5;
}

.hero-btn {
    font-family: inherit;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    padding: 0.6rem 1.2rem;
    border-radius: 2px;
    border: 1px solid rgba(243, 238, 227, 0.4);
    backdrop-filter: blur(6px);
    transition: all 0.2s ease;
    filter: blur(0.2px);
}

.hero-btn:hover {
    background: var(--text);
    color: #111;
    border-color: var(--text);
}

.hero-copy,
.page-heading,
.visual-copy {
    display: grid;
    gap: 1.1rem;
    font-family: "Generic Slim", var(--font-main);
}

.hero-copy {
    max-width: 420px;
    justify-self: start;
}

.eyebrow,
.section-label {
    margin: 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.76rem;
    line-height: 1.2;
    color: var(--muted);
}

.ink {
    text-shadow: 0 0 0.4px rgba(243, 238, 227, 0.9), 0.4px 0 rgba(243, 238, 227, 0.15), -0.4px 0 rgba(243, 238, 227, 0.1);
    filter: blur(0.15px);
}

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

h1 {
    margin-bottom: 0;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 0.94;
    letter-spacing: -0.05em;
    font-weight: 600;
    max-width: 9ch;
    text-transform: uppercase;
    transform: scaleY(1.16);
}

h2 {
    margin-bottom: 0;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 0.96;
    letter-spacing: -0.045em;
    font-weight: 600;
    max-width: 20ch;
    text-transform: uppercase;
    transform: scaleY(1.16);
    transform-origin: center;
}

h3 {
    margin-bottom: 0.3rem;
    font-size: 1.15rem;
    line-height: 1.02;
    letter-spacing: -0.03em;
    font-weight: 600;
}

.hero-text,
.visual-bio,
.contact-text,
.service-line span:last-child,
.project-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--muted);
}

.project-artist {
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.project-type {
    font-size: 0.75rem;
    color: var(--muted);
    opacity: 0.7;
    font-weight: 400;
    white-space: nowrap;
    padding-left: 3%;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero-text {
    max-width: 24ch;
    margin-bottom: 1.6rem;
}

.visual-bio,
.contact-text {
    margin: 0;
}

select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    padding: 0.95rem 1rem;
    border-radius: 4px;
    outline: none;
    transition: border-color 180ms ease, background 180ms ease;
}

select:focus {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.82rem 1.15rem;
    border-radius: 2px;
    border: 1px solid rgba(243, 238, 227, 0.4);
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.button:hover {
    transform: translateY(-1px);
    background: var(--text);
    color: #111;
    border-color: var(--text);
}

.button-primary {
    background: var(--accent);
    color: #111;
    border-color: rgba(243, 238, 227, 0.4);
}

.button-secondary {
    background: transparent;
    color: var(--text);
}

.section {
    padding: 3.3rem 0;
}

.section-projects-list {
    padding-top: 0;
}

.section-compact {
    padding: 4rem 0;
}

.section-intro {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-intro-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.section-button {
    white-space: nowrap;
}

.section-visual {
    padding-top: 1.5rem;
}

.visual-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2rem;
    align-items: end;
}

.visual-photo {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: var(--shadow);
}

.visual-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 520px;
    max-height: 760px;
    filter: saturate(0.88) contrast(1.02) brightness(0.92);
}

.visual-copy {
    padding-bottom: 1rem;
}

.projects-intro {
    align-items: flex-start;
}

.projects-intro>div:first-child {
    display: grid;
    gap: 1.1rem;
    max-width: 760px;
}

.projects-intro .section-label {
    margin: 0;
}

.projects-intro h2 {
    margin: 0;
    max-width: 26ch;
}

.projects-grid {
    display: grid;
    gap: 1.4rem;
    align-items: start;
}

.projects-grid-featured,
.projects-grid-all {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-card {
    background: rgba(255, 255, 255, 0.022);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
}

.project-image-link {
    display: block;
}

.project-image-wrap {
    display: block;
    overflow: hidden;
    background: #111;
}

.project-image-wrap.square {
    aspect-ratio: 1 / 1;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.88) contrast(1.04) brightness(0.9);
    transition: transform 500ms ease;
}

.project-card:hover .project-image,
.project-image-link:hover .project-image {
    transform: scale(1.035);
}

.project-meta {
    padding: 0.9rem 0.95rem 1rem;
}

.project-desc {
    margin-bottom: 0;
    font-size: 0.92rem;
}

.services-minimal {
    border-top: 1px solid var(--line);
}

.service-line {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.service-line span:first-child {
    font-size: 1.1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.contact-section {
    padding-bottom: 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 2.25rem;
    align-items: start;
}

.contact-copy {
    display: grid;
    gap: 1.5rem;
    align-self: start;
    padding-top: 1.25rem;
}

.contact-intro {
    margin-bottom: 0;
}

.contact-copy h2 {
    max-width: 14ch;
}

.contact-text {
    max-width: 26ch;
}

.contact-links {
    display: grid;
    gap: 0.75rem;
}

.contact-links a {
    color: var(--text);
    opacity: 0.88;
    transition: opacity 180ms ease;
}

.contact-links a:hover {
    opacity: 1;
}

.contact-form {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.028);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.form-row {
    display: grid;
    gap: 0.42rem;
}

label {
    font-size: 0.85rem;
    color: var(--muted);
}

input,
textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    padding: 0.95rem 1rem;
    border-radius: 4px;
    outline: none;
    transition: border-color 180ms ease, background 180ms ease;
}

input:focus,
textarea:focus {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
    align-items: start;
}

.video-card {
    background: rgba(255, 255, 255, 0.022);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
}

.video-embed {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #111;
}

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

.video {
    padding-top: 1.25rem;
}

.site-footer {
    padding: 0 0 2rem;
}

.site-footer p {
    margin: 0;
    color: rgba(243, 238, 227, 0.4);
    font-size: 0.82rem;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .projects-grid-featured,
    .projects-grid-all {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .hero,
    .visual-grid,
    .contact-grid,
    .service-line,
    .videos-grid {
        grid-template-columns: 1fr;
    }
    .hero {
        min-height: auto;
        gap: 2rem;
        padding-top: 2rem;
    }
    .hero-copy {
        max-width: none;
        order: 2;
    }
    .visual-photo img {
        min-height: 360px;
        max-height: 520px;
    }
    .contact-copy {
        padding-top: 0;
        gap: 1.25rem;
    }
    h1,
    h2 {
        max-width: none;
    }
    .section-intro-row {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .page-shell {
        padding: 0 1rem;
    }
    .cursor-glow,
    .grain {
        display: none;
    }
    .site-texture {
        opacity: 0.12;
    }
    .bg-stains {
        opacity: 0.16;
        filter: blur(10px);
    }
    .top-actions {
        padding-top: 1rem;
    }
    .back-home,
    .back-link {
        font-size: 0.9rem;
    }
    .hero {
        padding: 1rem 0 0.5rem;
    }
    .hero-full-image {
        display: grid;
        gap: 0.9rem;
    }
    .hero-nav {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
        order: 2;
    }
    .hero-full-image-file {
        order: 1;
        width: 100%;
        height: auto;
    }
    .hero-btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 0.9rem;
        font-size: 0.8rem;
        backdrop-filter: none;
    }
    h1 {
        font-size: clamp(2.2rem, 13vw, 4rem);
        transform: scaleY(1.1);
    }
    h2 {
        font-size: clamp(1.9rem, 9vw, 2.5rem);
        line-height: 0.95;
        max-width: none;
        transform: scaleY(1.08);
    }
    .projects-intro h2,
    .contact-copy h2 {
        max-width: none;
    }
    .projects-grid-featured,
    .projects-grid-all {
        grid-template-columns: 1fr;
    }
    .projects-grid {
        gap: 1rem;
    }
    .project-meta {
        padding: 0.8rem 0.85rem 0.9rem;
    }
    .project-artist {
        font-size: 0.82rem;
    }
    .project-desc {
        font-size: 0.88rem;
        line-height: 1.45;
    }
    .service-line {
        grid-template-columns: 1fr;
        gap: 0.35rem;
        padding: 0.95rem 0;
    }
    .service-line span:first-child {
        font-size: 1rem;
    }
    .service-line span:last-child {
        font-size: 0.95rem;
        line-height: 1.45;
    }
    .visual-grid,
    .contact-grid,
    .videos-grid {
        grid-template-columns: 1fr;
    }
    .visual-photo img {
        min-height: 300px;
        max-height: 460px;
    }
    .contact-section {
        padding-bottom: 0.5rem;
    }
    .contact-form {
        padding: 1rem;
    }
    .section {
        padding: 3.2rem 0;
    }
    .section-compact {
        padding: 2.8rem 0;
    }
    .button {
        width: 100%;
    }
    .page-top {
        padding: 1.4rem 0 1.6rem;
        gap: 1.1rem;
    }
}