:root {
    --bg: #0f1115;
    --panel: #171a21;
    --panel-2: #1f2430;
    --text: #edf1f7;
    --muted: #b6c0cf;
    --line: #2d3442;
    --accent: #7cc4ff;
    --accent-2: #9dffcf;
    --shadow: 0 10px 35px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #0d0f13 0%, #121622 100%);
    color: var(--text);
}

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

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

.wrap {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    padding: 56px 0 28px;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.8fr);
    gap: 28px;
    align-items: top;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-2);
    font-size: 0.85rem;
    margin: 0 0 10px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.05;
}

.tagline {
    margin: 14px 0 8px;
    font-size: 1.15rem;
    color: var(--accent);
}

.intro {
    margin: 0;
    max-width: 760px;
    color: var(--muted);
    line-height: 1.8;
}

.studio-photo-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 4;
    min-height: 220px;
}

.studio-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-list {
    display: grid;
    gap: 24px;
    padding: 14px 0 52px;
}

/*
    Project card height guide:
    1. .project-card min-height      -> controls the minimum total card height
    2. .project-image min-height     -> controls the image area's height
    3. .project-description min-height -> reserves space for the text block

    If you want cards taller later, try increasing these three values.
    Most common adjustments:
    - total card:  .project-card { min-height: 560px; }
    - image area:  .project-image { min-height: 300px; }
    - text area:   .project-description { min-height: 160px; }
*/
.project-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.35fr);
    min-height: 360px;
    background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.project-image-col {
    min-height: 100%;
    background: #0b0d12;
}

.project-image {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}

.project-content {
    padding: 24px 24px 22px;
    display: flex;
    flex-direction: column;
}

.project-category {
    margin: 0 0 8px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-2);
}

.project-content h2 {
    margin: 0 0 12px;
    font-size: 1.6rem;
}

.project-description {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
    min-height: 120px;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
}

.link-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    color: var(--text);
    font-size: 0.95rem;
}

.link-button:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
    background: rgba(124,196,255,0.08);
}

.link-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    object-fit: contain;
}

/* ===== Footer ===== */

.site-footer {
    margin-top: 60px;
    padding: 40px 20px;
    background: #111;
    color: #eee;
    text-align: center;
}

.footer-content h3 {
    margin-bottom: 20px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-icon {
    width: 20px;
    height: 20px;
}

.contact-item a {
    color: #4ea1ff;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.copyright {
    margin-top: 20px;
    font-size: 14px;
    color: #aaa;
}

@media (max-width: 840px) {
    .hero-layout {
        grid-template-columns: 1fr;
    }

    .studio-photo-card {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .project-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .project-image {
        min-height: 220px;
        max-height: 340px;
    }

    .project-description {
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .wrap {
        width: min(100%, calc(100% - 20px));
    }

    .hero {
        padding-top: 34px;
    }

    .project-content {
        padding: 18px 16px 18px;
    }

    .project-content h2 {
        font-size: 1.35rem;
    }

    .project-links {
        gap: 10px;
    }

    .link-button {
        width: 100%;
        justify-content: center;
    }
}

.legal-shell {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0 64px;
}

.legal-card {
    background: linear-gradient(180deg, rgba(23, 26, 33, 0.96) 0%, rgba(31, 36, 48, 0.96) 100%);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.legal-header {
    padding: 34px 36px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background:
        radial-gradient(circle at top right, rgba(124,196,255,0.18), transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}

.legal-kicker {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-2);
    font-size: 0.82rem;
}

.legal-header h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
}

.legal-updated {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.98rem;
}

.legal-body {
    padding: 28px 36px 36px;
    color: var(--text);
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 1.02rem;
    line-height: 1.72;
}

.legal-body h3 {
    margin: 28px 0 10px;
    font-size: 1.18rem;
    line-height: 1.35;
    color: #ffffff;
}

.legal-body p {
    margin: 0 0 14px;
}

.legal-body ul {
    margin: 6px 0 16px 1.4rem;
    padding: 0;
}

.legal-body li {
    margin: 0 0 8px;
}

.legal-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-shout {
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.legal-copyright {
    margin-top: 22px;
    color: var(--muted);
}

@media (max-width: 640px) {
    .legal-shell {
        width: min(100%, calc(100% - 20px));
        padding: 22px 0 38px;
    }

    .legal-header {
        padding: 24px 18px 18px;
    }

    .legal-body {
        padding: 20px 18px 24px;
        font-size: 0.98rem;
    }
}

.projects-intro {
    position: relative;
    margin: 56px 0 28px;
    padding: 28px 32px 0;
    text-align: center;
}

.projects-intro::before {
    content: "";
    display: block;
    width: min(100%, 840px);
    height: 1px;
    margin: 0 auto 28px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0.16) 18%,
        rgba(255, 255, 255, 0.34) 50%,
        rgba(255, 255, 255, 0.16) 82%,
        rgba(255, 255, 255, 0)
    );
}

.projects-intro-panel {
    width: min(100%, 780px);
    margin: 0 auto;
    padding: 22px 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(6px);
}

.projects-intro .eyebrow {
    margin-bottom: 10px;
}

.projects-intro h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.projects-intro p {
    width: min(100%, 560px);
    margin: 12px auto 0;
    opacity: 0.82;
    line-height: 1.7;
}

@media (max-width: 720px) {
    .projects-intro {
        margin: 40px 0 20px;
        padding: 20px 0 0;
    }

    .projects-intro-panel {
        padding: 18px 18px 20px;
        border-radius: 22px;
    }

    .projects-intro::before {
        margin-bottom: 22px;
    }
}