:root {
    --ink: #151310;
    --paper: #f7f3ea;
    --muted: #c8c1b4;
    --line: rgba(255, 255, 255, 0.16);
    --panel: #211f1b;
    --panel-soft: #2b2924;
    --ember: #f47b2a;
    --sky: #69b7d8;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--paper);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
}

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

.site-shell {
    min-height: 100vh;
    background: var(--ink);
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(21, 19, 16, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.nav-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 700;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    color: var(--ember);
    background: #0d0c0b;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-size: 0.95rem;
}

.nav-links a {
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--paper);
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(244, 123, 42, 0.72);
    background: var(--ember);
    color: #180f08;
    text-decoration: none;
    font-weight: 700;
}

.button-link.secondary {
    background: transparent;
    border-color: var(--line);
    color: var(--paper);
}

.portfolio-hero {
    position: relative;
    min-height: 78vh;
    display: grid;
    align-items: end;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    isolation: isolate;
}

.portfolio-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(7, 7, 6, 0.48);
    z-index: -1;
}

.hero-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 96px 0 56px;
}

.kicker {
    color: var(--sky);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.78rem;
    margin: 0 0 14px;
}

.portfolio-hero h1 {
    max-width: 880px;
    font-size: 5.6rem;
    line-height: 0.98;
    margin: 0;
    font-weight: 800;
}

.hero-copy {
    max-width: 650px;
    color: #efe8db;
    font-size: 1.28rem;
    line-height: 1.55;
    margin: 24px 0 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.section {
    padding: 72px 0;
}

.section.alt {
    background: #2f3033;
    color: var(--paper);
}

.section-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
}

.section-heading h2 {
    font-size: 3.2rem;
    line-height: 1.05;
    margin: 0;
}

.section-heading p {
    max-width: 460px;
    margin: 0;
    color: #6a6257;
    line-height: 1.6;
}

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

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

.collection-card {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    background: #11100e;
    border: 1px solid rgba(21, 19, 16, 0.16);
    color: var(--paper);
    text-decoration: none;
}

.collection-card img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 260ms ease, opacity 260ms ease;
}

.collection-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 62%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.86));
}

.collection-card:hover img,
.collection-card:focus img {
    transform: scale(1.055);
    opacity: 0.92;
}

.collection-card-content {
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    padding: 24px;
}

.collection-card h3 {
    margin: 0 0 8px;
    font-size: 1.55rem;
}

.collection-card p {
    color: #d9d0c3;
    margin: 0;
    line-height: 1.5;
}

.feature-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.feature-band img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.feature-copy h2 {
    font-size: 3.3rem;
    line-height: 1.05;
    margin: 0 0 18px;
}

.feature-copy p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 24px;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.stat {
    background: var(--panel);
    padding: 24px;
}

.stat strong {
    display: block;
    font-size: 2rem;
    color: var(--ember);
}

.stat span {
    color: var(--muted);
}

.pricing-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: start;
}

.pricing-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 28px;
}

.pricing-panel.light {
    background: #f7f3ea;
    color: #1d1a16;
    border-color: rgba(21, 19, 16, 0.18);
}

.pricing-panel h2,
.pricing-panel h3 {
    margin-top: 0;
}

.service-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-list li {
    padding: 18px;
    border: 1px solid rgba(21, 19, 16, 0.14);
    background: #fffaf0;
}

.service-list strong {
    display: block;
    margin-bottom: 6px;
}

.gallery-page {
    width: min(1320px, calc(100% - 28px));
    margin: 0 auto;
    padding: 40px 0 72px;
}

.gallery-title {
    margin: 0 0 22px;
    font-size: 3.8rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
}

.gallery-grid a {
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
    overflow: hidden;
    text-decoration: none;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 220ms ease, opacity 220ms ease;
}

.gallery-grid a:hover img,
.gallery-grid a:focus img {
    transform: scale(1.045);
    opacity: 0.9;
}

.gallery-file-name {
    min-height: 48px;
    padding: 10px 12px;
    color: var(--paper);
    font-size: 0.86rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
    background: var(--panel-soft);
    border-top: 1px solid var(--line);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #11100e;
    color: var(--muted);
    padding: 36px 0;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links a {
    color: var(--paper);
    text-decoration: none;
}

@media (max-width: 900px) {
    .nav-inner,
    .section-heading,
    .feature-band,
    .pricing-layout,
    .footer-inner {
        display: grid;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 12px;
    }

    .collection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-row {
        grid-template-columns: 1fr;
    }

    .portfolio-hero h1 {
        font-size: 4rem;
    }

    .hero-copy {
        font-size: 1.14rem;
    }

    .section-heading h2,
    .feature-copy h2,
    .gallery-title {
        font-size: 2.6rem;
    }
}

@media (max-width: 620px) {
    .portfolio-hero {
        min-height: 74vh;
    }

    .hero-inner {
        padding: 72px 0 42px;
    }

    .collection-grid {
        grid-template-columns: 1fr;
    }

    .collection-card,
    .collection-card img {
        min-height: 300px;
    }

    .section {
        padding: 52px 0;
    }

    .portfolio-hero h1 {
        font-size: 2.8rem;
    }

    .section-heading h2,
    .feature-copy h2,
    .gallery-title {
        font-size: 2.2rem;
    }
}
