:root {
    --paper: #f5f4f0;
    --ink: #171716;
    --muted-ink: #66655f;
    --rule: rgba(23, 23, 22, 0.18);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--paper);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.hub {
    width: 100%;
    min-height: 100svh;
    padding: clamp(1.75rem, 3.2vw, 3rem) clamp(1.5rem, 5vw, 5.5rem) clamp(2rem, 3.2vw, 3.5rem);
}

.container {
    width: min(100%, 1500px);
    min-height: calc(100svh - clamp(3.75rem, 6.4vw, 6.5rem));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* A assinatura permanece independente de uma navegação convencional. */
.header {
    width: 100%;
    animation: fade-in 0.8s var(--ease-out) both;
}

.brand {
    display: inline-block;
    color: var(--ink);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.27em;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 260ms ease;
}

.brand:hover {
    opacity: 0.58;
}

.brand--logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(6.25rem, 7vw, 8.25rem);
    height: 100%;
    min-height: 0;
    margin: 0;
    padding-block: 0;
    overflow: hidden;
    line-height: 0;
    position: static;
}

.brand--logo .brand-logo {
    display: block;
    width: 145%;
    max-width: none;
    height: auto;
    filter: none;
    mix-blend-mode: multiply;
    margin: 0;
    transform: none;
    position: static;
}

.brand--lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 2.75rem;
    line-height: 0;
}

.brand--lockup .brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    align-self: stretch;
    overflow: hidden;
}

.brand--lockup .brand-logo {
    display: block;
    width: 145%;
    max-width: none;
    height: auto;
    filter: none;
    mix-blend-mode: multiply;
}

.brand--lockup .brand-wordmark {
    line-height: 1;
}

.brand:focus-visible,
.nav-item:focus-visible {
    outline: 1px solid var(--ink);
    outline-offset: 0.45rem;
}

.intro {
    display: grid;
    grid-template-columns: minmax(9rem, 21%) minmax(0, 1fr);
    column-gap: clamp(2rem, 5vw, 6rem);
    align-items: start;
    margin-top: clamp(8rem, 18vh, 14.5rem);
}

.eyebrow {
    margin: 0;
    padding-top: 0.55rem;
    color: var(--muted-ink);
    font-size: 0.5625rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    line-height: 1.4;
    text-transform: uppercase;
    animation: reveal-up 0.85s 100ms var(--ease-out) both;
}

h1 {
    max-width: 11ch;
    margin: 0;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4.5rem, 8.6vw, 9rem);
    font-weight: 400;
    letter-spacing: -0.065em;
    line-height: 0.84;
    animation: reveal-up 1s 180ms var(--ease-out) both;
}

.navigation {
    position: relative;
    width: min(100%, 58rem);
    align-self: flex-end;
    margin-top: clamp(5.5rem, 13vh, 10rem);
    animation: reveal-up 0.9s 360ms var(--ease-out) both;
}

.navigation::before,
.nav-item::before {
    position: absolute;
    right: 0;
    left: 0;
    height: 1px;
    background: var(--rule);
    content: "";
    transform: scaleX(0);
    transform-origin: left center;
    animation: draw-rule 780ms var(--ease-out) both;
}

.navigation::before {
    top: 0;
    animation-delay: 430ms;
}

.nav-item {
    position: relative;
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr) 2.25rem;
    align-items: center;
    width: 100%;
    min-height: clamp(5.4rem, 7.2vw, 6.75rem);
    color: var(--ink);
    text-decoration: none;
    transition: opacity 320ms ease;
}

.nav-item::before {
    bottom: 0;
}

.nav-item:nth-child(1)::before {
    animation-delay: 500ms;
}

.nav-item:nth-child(2)::before {
    animation-delay: 565ms;
}

.nav-item:nth-child(3)::before {
    animation-delay: 630ms;
}

.nav-item:nth-child(4)::before {
    animation-delay: 695ms;
}

.number {
    color: var(--muted-ink);
    font-size: 0.5625rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    line-height: 1;
    transition: color 320ms ease, transform 420ms var(--ease-out);
}

.label {
    position: relative;
    justify-self: start;
    padding-bottom: 0.5rem;
    color: var(--ink);
    font-size: clamp(1rem, 1.25vw, 1.125rem);
    font-weight: 400;
    letter-spacing: -0.015em;
    line-height: 1;
    transition: transform 420ms var(--ease-out);
}

.label::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: currentColor;
    content: "";
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 520ms var(--ease-out);
}

.arrow {
    color: var(--muted-ink);
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1;
    text-align: right;
    transition: color 320ms ease, transform 420ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .nav-item:hover {
        opacity: 0.7;
    }

    .nav-item:hover .number {
        color: var(--ink);
        transform: translateX(0.2rem);
    }

    .nav-item:hover .label {
        transform: translateX(0.45rem);
    }

    .nav-item:hover .label::after {
        transform: scaleX(1);
        transform-origin: left center;
    }

    .nav-item:hover .arrow {
        color: var(--ink);
        transform: translateX(0.35rem);
    }
}

.nav-item:focus-visible {
    opacity: 0.7;
}

.nav-item:focus-visible .number {
    color: var(--ink);
    transform: translateX(0.2rem);
}

.nav-item:focus-visible .label {
    transform: translateX(0.45rem);
}

.nav-item:focus-visible .label::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.nav-item:focus-visible .arrow {
    color: var(--ink);
    transform: translateX(0.35rem);
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: clamp(6rem, 11vh, 10rem);
    color: var(--muted-ink);
    font-size: 0.5625rem;
    font-weight: 500;
    letter-spacing: 0.19em;
    line-height: 1.4;
    text-transform: uppercase;
    animation: fade-in 0.9s 580ms var(--ease-out) both;
}

@keyframes reveal-up {
    from {
        opacity: 0;
        transform: translateY(0.9rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes draw-rule {
    to {
        transform: scaleX(1);
    }
}

@media (max-width: 800px) {
    .hub {
        padding-right: clamp(1.5rem, 5vw, 2.5rem);
        padding-left: clamp(1.5rem, 5vw, 2.5rem);
    }

    .intro {
        grid-template-columns: 1fr;
        row-gap: 1.35rem;
        margin-top: clamp(7rem, 16vh, 10rem);
    }

    .eyebrow {
        padding-top: 0;
    }

    h1 {
        max-width: none;
        font-size: clamp(4.25rem, 12vw, 7rem);
    }

    .navigation {
        width: 100%;
        margin-top: clamp(4.5rem, 11vh, 7rem);
    }
}

@media (max-width: 560px) {
    .hub {
        padding: 1.625rem 1.375rem 2rem;
    }

    .container {
        min-height: calc(100svh - 3.625rem);
    }

    .brand {
        font-size: 0.625rem;
        letter-spacing: 0.23em;
    }

    .intro {
        row-gap: 1.1rem;
        margin-top: clamp(6.5rem, 14vh, 8rem);
    }

    .eyebrow {
        font-size: 0.5rem;
        letter-spacing: 0.18em;
    }

    h1 {
        font-size: clamp(2.875rem, 13.2vw, 4.5rem);
        line-height: 0.88;
    }

    .navigation {
        margin-top: clamp(4rem, 10vh, 5.5rem);
    }

    .nav-item {
        grid-template-columns: 3rem minmax(0, 1fr) 1.75rem;
        min-height: 5rem;
    }

    .number {
        font-size: 0.5rem;
    }

    .label {
        font-size: 1rem;
    }

    .arrow {
        font-size: 1.125rem;
    }

    .footer {
        flex-direction: column;
        gap: 0.5rem;
        padding-top: 5.5rem;
        font-size: 0.5rem;
        letter-spacing: 0.17em;
    }
}

@media (max-width: 360px) {
    .hub {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .brand {
        letter-spacing: 0.18em;
    }

}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
