/*
 * Folio Reel - Free HTML/CSS portfolio template
 * Source: https://templates.inuno.app
 * Copyright (c) 2026 templates.inuno.app
 *
 * Free license note:
 * This free template may be used privately and commercially,
 * but the attribution/backlink to https://templates.inuno.app must remain.
 */

:root {
    --ink: #14100e;
    --paper: #efe7dc;
    --panel: #fff9ef;
    --line: rgba(20, 16, 14, 0.18);
    --muted: #695f56;
    --accent: #c5361f;
    --green: #234c39;
    --gold: #e4b33d;
    --shadow: 0 22px 70px rgba(20, 16, 14, 0.14);
    --radius: 8px;
    --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
    min-width: 320px;
    background: var(--paper);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        linear-gradient(90deg, rgba(35, 76, 57, 0.2), transparent 26%),
        linear-gradient(290deg, rgba(197, 54, 31, 0.18), transparent 28%),
        var(--paper);
    font-family: var(--font);
    letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

.site-header,
main,
.site-footer {
    width: min(100% - 48px, 1280px);
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 0 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    font-weight: 950;
}

.brand span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: var(--radius);
    color: var(--paper);
    background: var(--green);
}

.brand strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.nav a {
    min-width: 88px;
    padding: 12px 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 249, 239, 0.74);
    color: var(--muted);
    font-size: 14px;
    font-weight: 850;
    text-align: center;
}

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

.masthead {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) minmax(280px, 0.55fr);
    gap: clamp(20px, 4vw, 56px);
    align-items: end;
    padding: clamp(22px, 4vw, 42px) 0 18px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.eyebrow {
    margin: 0;
    color: var(--accent);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

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

h1 {
    margin-bottom: 0;
    font-size: clamp(42px, 6vw, 84px);
    line-height: 0.92;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 8px;
    font-size: clamp(24px, 4vw, 44px);
    line-height: 1;
    letter-spacing: 0;
}

p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.58;
}

.masthead p:not(.eyebrow) {
    margin-bottom: 0;
}

.reel {
    display: grid;
    grid-template-columns: repeat(4, minmax(240px, 1fr));
    gap: 12px;
    align-items: stretch;
    padding-top: 12px;
    overflow: hidden;
}

.reel-card {
    position: relative;
    display: grid;
    min-height: 620px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
    scroll-snap-align: start;
}

.reel-card-tall {
    min-height: 720px;
}

.reel-card-wide {
    min-width: 0;
}

.reel-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 240ms ease;
}

.reel-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 28%, rgba(0, 0, 0, 0.78));
}

.reel-card div {
    position: relative;
    z-index: 1;
    align-self: end;
    padding: 18px;
    color: #fff;
}

.reel-card span {
    display: inline-block;
    margin-bottom: 10px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 249, 239, 0.94);
    color: var(--ink);
    font-size: 12px;
    font-weight: 950;
}

.reel-card strong {
    display: block;
    font-size: clamp(30px, 4vw, 54px);
    line-height: 0.96;
    letter-spacing: 0;
}

.reel-card p {
    max-width: 320px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.78);
}

.reel-card:hover img,
.reel-card:focus-visible img {
    transform: scale(1.04);
}

.studio-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 14px 0 0;
}

.studio-strip strong,
.studio-strip span {
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 249, 239, 0.78);
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.studio-strip strong {
    color: var(--paper);
    background: var(--green);
}

.page-shell,
.case-shell {
    min-height: calc(100vh - 220px);
    margin-top: 12px;
    padding: clamp(24px, 5vw, 70px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 249, 239, 0.86);
    box-shadow: var(--shadow);
}

.page-shell h1,
.case-shell h1 {
    max-width: 880px;
    margin: 12px 0 24px;
}

.split-text,
.contact-shell,
.studio-page,
.media-page,
.contact-lab,
.case-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    gap: 28px;
    align-items: start;
}

.contact-lab {
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
}

.contact-intro {
    align-self: start;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 26px;
}

.contact-methods a {
    display: grid;
    gap: 6px;
    min-height: 96px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 249, 239, 0.76);
}

.contact-methods span,
.contact-card span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.contact-methods strong {
    font-size: 16px;
    line-height: 1.2;
}

.contact-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--green);
    color: var(--paper);
    box-shadow: var(--shadow);
}

.contact-card img {
    height: 320px;
    object-fit: cover;
}

.contact-card div {
    padding: 16px;
}

.contact-card strong {
    display: block;
    margin-top: 8px;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 0.98;
}

.contact-card p {
    margin: 12px 0 0;
    color: rgba(239, 231, 220, 0.78);
}

.contact-form-wide {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
}

.full-field {
    grid-column: span 2;
}

.studio-image {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.studio-image img {
    height: min(52vh, 520px);
    object-fit: cover;
}

.studio-image figcaption {
    padding: 12px 14px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.case-shell img {
    height: min(70vh, 680px);
    object-fit: cover;
    border-radius: var(--radius);
}

.page-shell article {
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.contact-form {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

input,
textarea,
select,
button {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 13px 14px;
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-weight: 750;
}

button {
    border-color: var(--accent);
    color: var(--paper);
    background: var(--accent);
    cursor: pointer;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 24px 0 30px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
}

.site-footer strong {
    color: var(--ink);
}

.footer-links,
.footer-social {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-links a {
    font-weight: 850;
}

.footer-social a {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 249, 239, 0.9);
}

.footer-social svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

@media (max-width: 900px) {
    .masthead,
    .split-text,
    .contact-shell,
    .studio-page,
    .media-page,
    .contact-lab,
    .case-shell {
        grid-template-columns: 1fr;
    }

    .contact-methods,
    .contact-form-wide {
        grid-template-columns: 1fr;
    }

    .full-field {
        grid-column: auto;
    }

    .reel {
        grid-template-columns: repeat(4, minmax(280px, 78vw));
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .reel::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 620px) {
    .site-header,
    main,
    .site-footer {
        width: min(100% - 20px, 1280px);
    }

    .site-header {
        align-items: stretch;
        flex-direction: column;
        padding: 10px 0 16px;
    }

    .nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .nav a {
        min-width: 0;
        padding: 10px 8px;
    }

    h1 {
        font-size: 40px;
    }

    .masthead {
        gap: 16px;
        padding: 18px 0;
    }

    .reel-card,
    .reel-card-tall {
        min-height: 520px;
    }

    .page-shell,
    .case-shell {
        min-height: 0;
        padding: 20px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
        padding: 16px 0 22px;
    }
}
