:root {
    --background: #0e1116;
    --surface: #171b22;
    --surface-light: #202630;

    --text: #f4f5f7;
    --text-muted: #a8b0bb;

    --accent: #ffffff;
    --border: rgba(255, 255, 255, 0.12);

    --content-width: 1400px;
}

/* Reset */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    margin: 0;

    font-family:
        "Segoe UI",
        Inter,
        Arial,
        sans-serif;

    color: var(--text);
    background: var(--background);

    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header */

.site-header {
    max-width: var(--content-width);
    margin: 0 auto;

    min-height: 80px;

    padding: 0 32px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--border);
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.site-nav {
    display: flex;
    gap: 32px;
}

.site-nav a {
    color: var(--text-muted);

    transition: color 150ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--text);
}

/* Main landing hero */

.hero {
    max-width: var(--content-width);
    margin: 0 auto;

    min-height: 12vh;

    padding: 10px 32px;

    display: flex;
}

.hero-content {
    max-width: var(--content-width);
    text-align: center;
    width: 100%;
}

.eyebrow {
    margin: 0 0 18px;

    color: var(--text-muted);

    font-size: 0.8rem;
    font-weight: 600;

    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;

    font-size: clamp(3rem, 6vw, 6.0rem);
    line-height: 1.25;

    letter-spacing: -0.045em;
}

.hero-intro {
    max-width: var(--content-width);

    margin-top: 30px;

    color: var(--text-muted);

    font-size: 1.2rem;

    text-align: center;

}

/* Discipline cards */

.disciplines {
    max-width: var(--content-width);
    margin: 0 auto;

    padding: 0 32px 96px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.discipline-card {
    min-height: 180px;

    padding: 48px;

    display: flex;
    flex-direction: column;
    overflow: hidden;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 4px;

    transition:
        transform 180ms ease,
        background 180ms ease;
}

.discipline-card:hover {
    transform: translateY(-4px);
    background: var(--surface-light);
}

.discipline-content {
    max-width: 440px;
}

.card-label {
    margin-bottom: 8px;

    color: var(--text-muted);

    font-size: 0.75rem;
    font-weight: 600;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.discipline-card h2 {
    margin: 0;

    font-size: 2.5rem;
}

.discipline-card p {
    color: var(--text-muted);
}

.card-link {
    display: inline-block;
    margin-top: 8px;

    font-weight: 600;
}

.card-image {
    width: 100%;
    height: 340px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    display: block;

    object-fit: cover;
    object-position: center center;
}

/* Interior pages */

.page-hero {
    max-width: var(--content-width);
    margin: 0 auto;

    padding: 40px 32px 40px;
}

.page-hero-content {
    max-width: var(--content-width);
}

.page-hero h1 {
    margin: 0;

    font-size: clamp(3rem, 7vw, 5rem);
    line-height: 1;
}

.page-hero-content > p:last-child {
    margin-top: 24px;

    color: var(--text-muted);

    font-size: 1.2rem;
}

/* IT services */

.services {
    max-width: var(--content-width);
    margin: 0 auto;

    padding: 30px 32px 30px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);

    border-top: 1px solid var(--border);
}

.service {
    padding: 48px 48px 48px 0;

    border-bottom: 1px solid var(--border);
}

.service h2 {
    margin-top: 0;
}

.service p {
    max-width: 500px;

    color: var(--text-muted);
}

.service:last-of-type {
    border-bottom: none;
}

.service-section {
    display: flex;
    align-items: center;
    gap: 64px;
}

.service-graphic {
    width: 180px;
    height: auto;
    flex-shrink: 0;
}

.service-content {
    flex: 1;
}

.service-content p {
    max-width: 500px;

    color: var(--text-muted);
}

/* Photography */

.portfolio-intro {
    max-width: var(--content-width);
    margin: 0 auto;

    padding: 0 32px 25px;
}

.portfolio-intro > p {
    color: var(--text-muted);
}

.photography-page {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 32px;
}

.photography-intro {
    padding: 80px 0 70px;
    text-align: center;
}

.photography-intro h1 {
    margin: 0 0 16px;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.photography-intro p {
    margin: 0;
    color: var(--text-muted);
}

.portfolio-list {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    gap: 110px;
}

.portfolio-group {
    width: 100%;
}

.portfolio-group-heading {
    margin-bottom: 24px;
    text-align: center;
}

.portfolio-group-heading h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portfolio-images-double {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.portfolio-images-double img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.portfolio-item {
    display: block;
    color: var(--text);
    text-decoration: none;
}

.portfolio-images {
    width: 100%;
    overflow: hidden;
}

.portfolio-images img {
    display: block;
    width: 100%;
    height: auto;

    transition: transform 0.6s ease;
}

.portfolio-item:hover .portfolio-images img {
    transform: scale(1.015);
}

.portfolio-subitem {
    min-width: 0;
    color: var(--text);
    text-decoration: none;
}

.portfolio-subitem:hover .portfolio-images img {
    transform: scale(1.025);
}

.portfolio-caption {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    padding-top: 20px;
}

.portfolio-caption h2 {
    margin: 0;

    font-size: 1.35rem;
    font-weight: 600;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portfolio-caption h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portfolio-caption p {
    margin: 6px 0 0;

    color: var(--text-muted);
    font-size: 0.9rem;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portfolio-caption span {
    color: var(--text-muted);
    font-size: 0.9rem;

    transition: color 0.2s ease;
}

.portfolio-item:hover .portfolio-caption span {
    color: var(--text);
}

/* Photography galleries */

.photo-gallery {
    width: 100%;
    max-width: 1275px;
    margin: 0 auto;
    padding: 20px 32px 100px;

    display: flex;
    flex-direction: column;
    gap: 80px;
}

.gallery-photo {
    margin: 0;
}

.gallery-photo img {
    display: block;

    max-width: 100%;
    max-height: 800px;
    width: auto;
    height: auto;

    margin: 0 auto;
}

.gallery-photo figcaption {
    max-width: 100%;
    margin: 14px 0px 0px;

    color: var(--text-muted);

    font-size: 1.15rem;
    line-height: 1.5;
    font-weight: 600;
    text-align: center;
}

.gallery-mafia-photo img {
    display: block;

    max-width: 100%;
    max-height: 800px;
    width: auto;
    height: auto;

    margin: 10px auto;
}

.gallery-mafia-photo figcaption {
    max-width: 100%;
    margin: 0px 0px 0px;

    font-size: 1.15rem;
    line-height: 1.5;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
}

.gallery-mafia-photo .instagram-link {
    display: table;
    margin: 12px auto 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-decoration: none;
    text-align: center;
    transition: color 0.2s ease;
}

.gallery-mafia-photo .instagram-link:hover {
    color: var(--text);
}

/* Contact */

.contact-section {
    max-width: var(--content-width);
    margin: 0 auto;

    padding: 0 32px 0px;
}

.contact-form {
    max-width: 760px;

    padding-top: 24px;

    border-top: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.form-field {
    margin-bottom: 24px;
}

.form-field label {
    display: block;

    margin-bottom: 8px;

    font-weight: 600;
}

.optional {
    color: var(--text-muted);

    font-size: 0.85rem;
    font-weight: 400;
}

.form-field input,
.form-field textarea {
    width: 100%;

    padding: 10px 16px;

    color: var(--text);

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 4px;

    font: inherit;

    outline: none;

    transition:
        border-color 150ms ease,
        background 150ms ease;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: var(--surface-light);
}

.form-field textarea {
    resize: vertical;
    min-height: 180px;
}

.form-actions {
    margin-top: 32px;
}

.button {
    padding: 8px 20px;

    color: var(--background);
    background: var(--text);

    border: 0;
    border-radius: 4px;

    font: inherit;
    font-weight: 600;

    cursor: pointer;
}

.button:hover {
    opacity: 0.9;
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-status {
    min-height: 1.5em;

    margin-top: 18px;

    color: var(--text-muted);
}

/* Footer */

.site-footer {
    max-width: var(--content-width);
    margin: 48px auto;

    padding: 32px;

    color: var(--text-muted);

    border-top: 1px solid var(--border);

    font-size: 0.85rem;
}

/* Mobile */

@media (max-width: 700px) {

    .site-header {
        min-height: auto;

        padding-top: 24px;
        padding-bottom: 24px;

        flex-direction: column;
        align-items: flex-start;

        gap: 18px;
    }

    .site-nav {
        gap: 20px;
    }

    .hero {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .disciplines {
        grid-template-columns: 1fr;
    }

    .discipline-card {
        min-height: 300px;

        padding: 32px;
    }

    .services {
        grid-template-columns: 1fr;
    }

    .service {
        padding-right: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .photography-page {
        padding: 0 20px;
    }

    .portfolio-list {
        gap: 72px;
    }

    .portfolio-image img {
        height: auto;
    }

    .portfolio-images-double {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .portfolio-images-double img {
        height: auto;
    }

    .portfolio-caption {
        gap: 16px;
    }

    .photo-gallery {
        padding: 10px 20px 72px;
        gap: 56px;
    }
}