*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --white: #ffffff;
    --ink: #111010;
    --ink-faint: #c0bbb0;
    --ink-mid: #7a756a;
    --dot-off: #e8e4dc;
    --dot-on: #8a7f6f;
    --dot-size: 18px;
    --dot-gap: 10px;
    --col-gap: 22px;
    --group-gap: 40px;
    --bar-height: 44px;
}

html,
body {
    height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    color: var(--ink);
    font-family: "EB Garamond", Georgia, serif;
    -webkit-font-smoothing: antialiased;
}

/* Grain overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px 180px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* ── NAV ── */
.nav-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: var(--bar-height);
    background-color: var(--white);
}

.nav-logo,
.nav-link {
    font-family: "DM Mono", monospace;
    font-size: 0.6rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--ink-mid);
    text-decoration: none;
    transition: color 0.2s ease;
}
.nav-logo:hover,
.nav-link:hover {
    color: var(--ink);
}

/* ── STAGE ── */
.stage {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3.5rem;
    padding: 2rem;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

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

/* ── CLOCK LABELS ── */
.clock-labels {
    display: flex;
    align-items: center;
}

.clock-label-group {
    display: flex;
    justify-content: center;
}

.col-label-roman {
    width: calc(var(--dot-size) * 2 + var(--col-gap));
    text-align: center;
    font-family: "EB Garamond", Georgia, serif;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--ink-mid);
}

.sep-spacer {
    width: calc(var(--group-gap) * 2 + 4px);
}

/* ── CLOCK ── */
.clock {
    display: flex;
    align-items: center;
}

.clock-group {
    display: flex;
    gap: var(--col-gap);
}

.clock-group + .sep-group {
    margin-left: var(--group-gap);
}
.sep-group + .clock-group {
    margin-left: var(--group-gap);
}

.col {
    display: flex;
    flex-direction: column;
    gap: var(--dot-gap);
}

.dot {
    width: var(--dot-size);
    height: var(--dot-size);
    border-radius: 50%;
    background-color: var(--dot-off);
    transition:
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

.dot.on {
    background-color: var(--dot-on);
    box-shadow: 0 0 0 3px rgba(138, 127, 111, 0.15);
}

.sep-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    align-self: center;
}

.sep-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--ink-faint);
}

/* ── QUOTE ── */
.quote-block {
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    animation: fadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}

.quote-rule {
    width: 32px;
    height: 1px;
    background: var(--ink-faint);
    margin: 0 auto 1.5rem;
}

.quote-text {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.65;
    color: var(--ink-mid);
    letter-spacing: 0.01em;
}

/* ── FOOTER ── */
.footer {
    position: sticky; /* Fica colado ao fundo da janela ao fazer scroll */
    bottom: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Ícone e-mail à esq · redes sociais à dir */
    padding: 0 2rem;
    height: var(--bar-height);
    background-color: var(--white);
}

/* Copyright ancorado ao centro geométrico do footer (e da página),
   independentemente do peso visual dos elementos à esquerda e à direita.
   translate(-50%, -50%) compensa a âncora left:50% para centrar o próprio elemento. */
.footer-center {
    position: absolute; /* Sai do fluxo flex — não empurra os outros elementos */
    left: 50%; /* Borda esquerda começa a meio da página */
    transform: translateX(
        -50%
    ); /* Recua metade da sua própria largura → centro perfeito */
    font-family: "DM Mono", monospace;
    font-size: 0.55rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--ink-mid);
    white-space: nowrap; /* Nunca quebra linha */
    pointer-events: none; /* Texto informativo — não precisa de ser clicável */
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.footer-sep {
    font-family: "DM Mono", monospace;
    font-size: 0.6rem;
    color: var(--ink-faint);
    user-select: none;
}

.footer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-mid);
    font-size: 0.8rem;
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}
.footer-icon:hover {
    opacity: 1;
}

.footer-icon svg {
    width: 13px;
    height: 13px;
    fill: var(--ink-mid);
}

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
    :root {
        --dot-size: 14px;
        --dot-gap: 8px;
        --col-gap: 16px;
        --group-gap: 28px;
    }
    .quote-text {
        font-size: 1rem;
        white-space: normal;
        text-align: center;
    }
    .footer-center {
        display: none;
    }
}
