:root {
    --paper: #f2f2f0;
    --ink: #111113;
    --muted: #5c5c62;
    --line: #d5d5d2;
    --red: #e10600;
    --dark: #0e0e10;
    --card: #ffffff;
    --header: 4.6rem;
    --sans: "Barlow", "Segoe UI", sans-serif;
    --display: "Barlow Condensed", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.05rem;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

::selection {
    background: var(--red);
    color: #fff;
}

.shell {
    width: min(1120px, calc(100% - 2.5rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header);
    padding: 0.7rem 1.25rem;
    background: var(--dark);
    color: #fff;
    border-bottom: 3px solid var(--red);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: inherit;
}

.brand-arrow {
    width: 36px;
    height: 36px;
    flex: none;
}

.brand-lockup {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.7rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.brand-sub {
    margin-top: 0.12rem;
    color: var(--red);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.site-nav a {
    text-decoration: none;
    color: #d6d6d8;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: #fff; }

.nav-toggle {
    display: none;
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4rem 0.7rem;
    border-radius: 0;
    cursor: pointer;
}

.hero {
    background: var(--dark);
    color: #f4f4f2;
    padding: 4.2rem 0 3.6rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.7fr);
    gap: 3rem;
    align-items: end;
}

.eyebrow {
    margin: 0 0 0.85rem;
    color: var(--red);
    font-family: var(--display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1,
.section-head h2,
.contact-copy h2,
.panel h2,
.login h1,
.admin-top h1,
.step h3,
.practice h3 {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    line-height: 0.9;
}

.hero h1 {
    margin: 0;
    max-width: 11ch;
    font-size: clamp(3.6rem, 8vw, 6.6rem);
}

.lede {
    max-width: 38rem;
    margin: 1.15rem 0 0;
    color: #c8c8cc;
    font-size: 1.15rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.6rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: var(--red);
    color: #fff;
    cursor: pointer;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.85rem 1.15rem;
    white-space: nowrap;
}

.button:hover,
.button:focus-visible { background: #ff1a12; }

.button-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--ink);
}

.button-ghost:hover,
.button-ghost:focus-visible {
    background: var(--ink);
    color: #fff;
}

.hero-index {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #2a2a2e;
}

.hero-index a {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #2a2a2e;
    color: #f4f4f2;
    text-decoration: none;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-index span { color: var(--red); }

.hero-index a:hover,
.hero-index a:focus-visible { color: #fff; }

.section { padding: 4.4rem 0 0; }

.section-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: end;
    margin-bottom: 1.4rem;
}

.section-head h2,
.contact-copy h2,
.admin-top h1,
.login h1 {
    margin: 0;
    font-size: clamp(2.8rem, 6vw, 4.4rem);
}

.section-head p,
.contact-copy p {
    margin: 0;
    color: var(--muted);
}

#servicos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

#servicos > .section-head { grid-column: 1 / -1; }

.practice {
    margin: 0;
    padding: 1.35rem 1.3rem 1.15rem;
    background: var(--dark);
    color: #f4f4f2;
}

.kicker {
    margin: 0;
    color: var(--red);
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: 0.14em;
}

.practice h3 {
    margin: 0.35rem 0 0.7rem;
    font-size: 2.8rem;
}

.practice p {
    margin: 0;
    color: #c4c4c8;
}

.offerings {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.offerings li {
    padding: 0.45rem 0;
    border-top: 1px solid #2c2c30;
    font-size: 0.98rem;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem 1rem;
}

.work-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.work-shot {
    overflow: hidden;
    background: var(--dark);
    border: 2px solid var(--dark);
    aspect-ratio: 1200 / 750;
}

.work-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.work-card:hover .work-shot,
.work-card:focus-visible .work-shot { border-color: var(--red); }

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

.shot-fallback {
    display: grid;
    place-items: center;
    height: 100%;
    padding: 1rem;
    color: #f4f4f2;
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
}

.work-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    align-items: baseline;
    padding-top: 0.65rem;
}

.work-meta strong {
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.work-meta span {
    color: var(--muted);
    font-size: 0.82rem;
    text-align: right;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.step {
    margin: 0;
    padding-top: 0.9rem;
    border-top: 3px solid var(--red);
}

.step em {
    color: var(--red);
    font-family: var(--display);
    font-style: normal;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.08em;
}

.step h3 {
    margin: 0.25rem 0 0.45rem;
    font-size: 2.2rem;
}

.step p { margin: 0; color: var(--muted); }

.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 2rem;
    align-items: start;
}

.contact-copy h2 { margin-bottom: 0.8rem; }

.notice {
    margin: 0;
    padding: 0.8rem 0.9rem;
    background: #111113;
    color: #fff;
}

.notice-error { background: var(--red); }

.form-grid { display: grid; gap: 0.9rem; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

label {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--muted);
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

input,
textarea {
    width: 100%;
    border: 1px solid #111113;
    border-radius: 0;
    background: #fff;
    color: var(--ink);
    font: inherit;
    padding: 0.8rem 0.85rem;
}

textarea { resize: vertical; min-height: 9rem; }

input:focus,
textarea:focus {
    outline: 2px solid var(--red);
    border-color: var(--red);
}

.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.site-footer {
    margin-top: 4rem;
    background: var(--dark);
    color: #fff;
}

.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 0;
}

.site-footer p {
    margin: 0;
    color: #9a9aa0;
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: 0.08em;
}

.admin-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 3px solid var(--red);
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.admin-actions a {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
}

.admin-actions form { margin: 0; }

.admin-top { padding: 1.4rem 0 0.4rem; }

.panel {
    margin: 1.4rem 0;
    padding: 1.3rem;
    border: 1px solid #111113;
    border-radius: 0;
    background: var(--card);
}

.panel h2 { margin: 0 0 1rem; font-size: 2.2rem; }

.login {
    width: min(28rem, calc(100% - 2.5rem));
    margin: 8vh auto;
}

.message {
    padding: 1rem 0;
    border-top: 1px solid var(--line);
}

.message header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
}

.message h3 { margin: 0; font-size: 1.05rem; font-weight: 600; }

.message p { margin: 0.35rem 0 0; }

.message .body {
    white-space: pre-wrap;
    color: var(--ink);
}

.badge {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.12rem 0.4rem;
    border-radius: 0;
    background: #111113;
    color: #fff;
    font-family: var(--display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.badge-wait { background: var(--red); }

.empty { color: var(--muted); }

.project-create { margin-top: 1rem; }

.project-admin {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding: 1.15rem 0;
    border-top: 1px solid var(--line);
}

.project-admin .work-shot {
    width: 180px;
    border-width: 1px;
}

.project-admin .shot-fallback {
    font-size: 1rem;
    padding: 0.7rem;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.project-actions form { margin: 0; }

.project-actions .button {
    font-size: 0.95rem;
    padding: 0.55rem 0.75rem;
}

:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

@media (max-width: 860px) {
    .hero-grid,
    .section-head,
    .contact-grid,
    .steps,
    .work-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    #servicos { grid-template-columns: 1fr; }

    .hero { padding: 2.8rem 0 2.4rem; }

    .hero h1 {
        max-width: 12ch;
        font-size: clamp(3.1rem, 14vw, 4.6rem);
    }

    .work-meta span { text-align: left; }
}

@media (max-width: 720px) {
    .nav-toggle { display: inline-flex; }

    .site-header { position: sticky; }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
        padding: 0.35rem 1.25rem 0.9rem;
        background: var(--dark);
        border-bottom: 3px solid var(--red);
    }

    .site-nav.is-open { display: flex; }

    .site-nav a { padding: 0.45rem 0; }

    .site-footer-inner,
    .message header,
    .work-meta,
    .admin-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-admin { grid-template-columns: 1fr; }
    .project-admin .work-shot { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .work-shot img { transition: none; }
}
