/* ==========================================================================
   FABIANO KUNST — DESIGN SYSTEM "COBRE NOTURNO" · proposta B
   --------------------------------------------------------------------------
   Camadas (@layer), da mais fraca para a mais forte:
     reset → tokens → base → layout → components → sections → utilities

   Tokens em dois níveis
     1. Primitivos — paleta e escalas brutas
        (--copper-500, --ink-900, --step-3, --space-l, --radius-xl, --ease-out)
     2. Semânticos — o que a interface usa (--bg, --text-1, --accent, --line-1)
        e que muda conforme a superfície:
        data-surface="night" | "paper" | "copper"

   Regra de ouro: componentes usam só tokens semânticos. O mesmo botão, chip
   ou card funciona em qualquer superfície sem CSS extra.

   Documentação visual dos tokens e componentes: design-system.html
   ========================================================================== */

@layer reset, tokens, base, layout, components, sections, utilities;


/* Fontes ------------------------------------------------------------------- */

@font-face {
    font-family: "Jost";
    src: url("../font/jost-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Fraunces";
    src: url("../font/fraunces-600-latin.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Geist Mono";
    src: url("../font/geist-mono-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* versões com os contornos unidos, para texto vazado (-webkit-text-stroke):
   nas originais as partes das letras se sobrepõem e o traço mostra as emendas */
@font-face {
    font-family: "Jost Outline";
    src: url("../font/jost-600-outline-latin.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Jost Outline";
    src: url("../font/jost-700-outline-latin.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Fraunces Outline";
    src: url("../font/fraunces-600-outline-latin.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* fontes do sistema ajustadas às medidas das fontes da marca: sem "pulo" no carregamento */
@font-face {
    font-family: "Jost Fallback";
    src: local("Arial"), local("ArialMT");
    size-adjust: 94.26%;
    ascent-override: 113.52%;
    descent-override: 39.78%;
    line-gap-override: 0%;
}

@font-face {
    font-family: "Fraunces Fallback";
    src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT");
    font-weight: 600;
    size-adjust: 94.52%;
    ascent-override: 103.47%;
    descent-override: 26.98%;
    line-gap-override: 0%;
}

/* número animável do contador ("no design desde 2008") */
@property --count {
    syntax: "<integer>";
    initial-value: 2008;
    inherits: false;
}


/* ==========================================================================
   RESET
   ========================================================================== */

@layer reset {
    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    * {
        margin: 0;
    }

    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
        interpolate-size: allow-keywords;
    }

    img,
    svg,
    video,
    canvas,
    picture {
        display: block;
        max-width: 100%;
    }

    img {
        height: auto;
    }

    input,
    button,
    textarea,
    select {
        font: inherit;
        color: inherit;
    }

    button {
        padding: 0;
        border: 0;
        background: none;
        cursor: pointer;
    }

    ul[class],
    ol[class] {
        padding: 0;
        list-style: none;
    }

    a {
        color: inherit;
    }

    h1,
    h2,
    h3,
    h4,
    p,
    dd {
        overflow-wrap: break-word;
    }

    summary {
        list-style: none;
    }

    summary::-webkit-details-marker {
        display: none;
    }
}


/* ==========================================================================
   TOKENS
   ========================================================================== */

@layer tokens {
    :root {
        /* --- Primitivos: cobre (marca) --- */
        --copper-50: #fbf3ec;
        --copper-100: #f7e3d3;
        --copper-200: #f5bf99;
        --copper-300: #eba878;
        --copper-400: #d98f5a;
        --copper-500: #bd7744;
        --copper-600: #9c5a2c;
        --copper-700: #795034;
        --copper-800: #4f331f;
        --copper-900: #2a1a10;

        /* --- Primitivos: tinta (neutros quentes) --- */
        --ink-0: #ffffff;
        --ink-50: #f7f3ef;
        --ink-100: #ece5de;
        --ink-200: #d6ccc3;
        --ink-300: #b3a69c;
        --ink-400: #8a7d73;
        --ink-500: #665a52;
        --ink-600: #4a403a;
        --ink-700: #2f2925;
        --ink-800: #1d1916;
        --ink-900: #141110;
        --ink-950: #0b0908;

        /* --- Gradientes de marca --- */
        --gradient-copper: linear-gradient(100deg, var(--copper-200) 0%, var(--copper-300) 22%, var(--copper-500) 48%, var(--copper-200) 74%, var(--copper-400) 100%);
        --gradient-copper-flat: linear-gradient(90deg, var(--copper-500), var(--copper-300));

        /* --- Tipografia --- */
        --font-sans: "Jost", "Jost Fallback", system-ui, sans-serif;
        --font-serif: "Fraunces", "Fraunces Fallback", Georgia, serif;
        --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
        --font-sans-outline: "Jost Outline", var(--font-sans);
        --font-serif-outline: "Fraunces Outline", var(--font-serif);

        /* escala fluida: 360px → 1440px, razão 1.2 → 1.333 */
        --step--2: clamp(0.72rem, 0.7rem + 0.08vw, 0.78rem);
        --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
        --step-0: clamp(1rem, 0.96rem + 0.19vw, 1.13rem);
        --step-1: clamp(1.2rem, 1.1rem + 0.44vw, 1.5rem);
        --step-2: clamp(1.44rem, 1.25rem + 0.83vw, 2rem);
        --step-3: clamp(1.73rem, 1.42rem + 1.39vw, 2.66rem);
        --step-4: clamp(2.07rem, 1.58rem + 2.19vw, 3.55rem);
        --step-5: clamp(2.49rem, 1.74rem + 3.33vw, 4.73rem);
        --step-6: clamp(2.99rem, 1.88rem + 4.93vw, 6.31rem);
        --step-7: clamp(3.58rem, 1.97rem + 7.16vw, 8.41rem);
        --step-8: clamp(4.3rem, 1.99rem + 10.24vw, 11.21rem);

        --tracking-tight: -0.04em;
        --tracking-display: -0.055em;
        --tracking-mono: 0.12em;

        /* --- Espaço --- */
        --space-3xs: 4px;
        --space-2xs: 8px;
        --space-xs: 12px;
        --space-s: 16px;
        --space-m: 24px;
        --space-l: 32px;
        --space-xl: 48px;
        --space-2xl: 64px;
        --space-3xl: 96px;
        --space-4xl: 128px;
        --space-section: clamp(96px, 11vw, 176px);

        /* --- Forma --- */
        --radius-xs: 6px;
        --radius-s: 10px;
        --radius-m: 16px;
        --radius-l: 24px;
        --radius-xl: 32px;
        --radius-2xl: clamp(28px, 4vw, 56px);
        --radius-full: 999px;

        /* --- Movimento --- */
        --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
        --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
        --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
        --dur-xs: 120ms;
        --dur-s: 240ms;
        --dur-m: 480ms;
        --dur-l: 800ms;
        --dur-xl: 1200ms;

        /* --- Camadas --- */
        --z-raised: 2;
        --z-grain: 60;
        --z-nav: 100;
        --z-progress: 110;
        --z-menu: 200;
        --z-cursor: 300;
        --z-skip: 400;

        /* --- Layout --- */
        --container: 1440px;
        --gutter: clamp(16px, 3.6vw, 56px);
        --nav-h: 64px;
    }

    /* --- Semânticos por superfície ----------------------------------------- */

    :root,
    [data-surface="night"] {
        --bg: var(--ink-950);
        --surface-1: var(--ink-900);
        --surface-2: var(--ink-800);
        --text-1: var(--ink-50);
        --text-2: var(--ink-300);
        --text-3: var(--ink-400);
        --line-1: rgba(247, 243, 239, 0.09);
        --line-2: rgba(247, 243, 239, 0.2);
        --accent: var(--copper-400);
        --accent-strong: var(--copper-300);
        --accent-ink: var(--ink-950);
        --link: var(--copper-300);
        --glow: rgba(217, 143, 90, 0.2);
        --spot-line: rgba(245, 191, 153, 0.75);
        --grid-line: rgba(247, 243, 239, 0.035);
        --chip-bg: var(--ink-800);
        --shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
        color-scheme: dark;
    }

    [data-surface="paper"] {
        --bg: var(--ink-50);
        --surface-1: var(--ink-0);
        --surface-2: var(--ink-100);
        --text-1: var(--ink-900);
        --text-2: var(--ink-500);
        --text-3: #786c63;
        --line-1: rgba(20, 17, 16, 0.09);
        --line-2: rgba(20, 17, 16, 0.2);
        --accent: var(--copper-600);
        --accent-strong: var(--copper-700);
        --accent-ink: var(--ink-0);
        --link: var(--copper-600);
        --glow: rgba(189, 119, 68, 0.14);
        --spot-line: rgba(189, 119, 68, 0.85);
        --grid-line: rgba(121, 80, 52, 0.07);
        --chip-bg: var(--ink-50);
        --shadow: 0 30px 70px -44px rgba(79, 51, 31, 0.5);
        color-scheme: light;
    }

    [data-surface="copper"] {
        --bg: var(--copper-500);
        --surface-1: rgba(251, 243, 236, 0.16);
        --surface-2: rgba(251, 243, 236, 0.26);
        --text-1: var(--ink-950);
        --text-2: #24170e;
        --text-3: rgba(11, 9, 8, 0.66);
        --line-1: rgba(11, 9, 8, 0.14);
        --line-2: rgba(11, 9, 8, 0.32);
        --accent: var(--ink-950);
        --accent-strong: var(--ink-800);
        --accent-ink: var(--copper-50);
        --link: var(--ink-950);
        --glow: rgba(251, 243, 236, 0.32);
        --spot-line: rgba(11, 9, 8, 0.55);
        --grid-line: rgba(11, 9, 8, 0.06);
        --chip-bg: rgba(11, 9, 8, 0.1);
        --shadow: 0 30px 70px -40px rgba(42, 26, 16, 0.6);
        color-scheme: light;
    }

    [data-surface] {
        background-color: var(--bg);
        color: var(--text-1);
    }
}


/* ==========================================================================
   BASE
   ========================================================================== */

@layer base {
    html {
        background: var(--ink-950);
        scroll-padding-top: calc(var(--nav-h) + 32px);
    }

    @media (prefers-reduced-motion: no-preference) {
        html {
            scroll-behavior: smooth;
        }
    }

    body {
        min-height: 100vh;
        min-height: 100dvh;
        overflow-x: hidden;
        overflow-x: clip;
        font-family: var(--font-sans);
        font-size: var(--step-0);
        font-weight: 400;
        line-height: 1.6;
        background: var(--bg);
        color: var(--text-1);
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }

    h1,
    h2,
    h3,
    h4 {
        font-weight: 600;
        line-height: 1.05;
        letter-spacing: -0.02em;
    }

    /* balanceamento de linhas custa layout: só nos títulos grandes e textos de destaque */
    .section-head__title,
    .contact__title,
    .showcase__title,
    .hero__lead {
        text-wrap: balance;
    }

    .section-head__lead,
    .about__body p,
    .contact__text {
        text-wrap: pretty;
    }

    a {
        text-decoration-thickness: 1px;
        text-underline-offset: 0.2em;
    }

    p a,
    dd a,
    li a:not([class]) {
        color: var(--link);
    }

    p a:hover,
    dd a:hover {
        text-decoration: none;
    }

    strong {
        font-weight: 600;
        color: var(--text-1);
    }

    mark {
        background: none;
        color: inherit;
    }

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

    [data-surface="paper"] :focus-visible,
    [data-surface="copper"] :focus-visible {
        outline-color: var(--ink-950);
    }

    ::selection {
        background: var(--copper-400);
        color: var(--ink-950);
    }
}


/* ==========================================================================
   LAYOUT
   ========================================================================== */

@layer layout {
    .container {
        width: 100%;
        max-width: calc(var(--container) + var(--gutter) * 2);
        margin-inline: auto;
        padding-inline: var(--gutter);
    }

    .section {
        position: relative;
        padding-block: var(--space-section);
    }

    /* seções seguidas na mesma superfície não dobram o respiro; a folha abre superfície nova e mantém o seu */
    .section + .section:not(.sheet) {
        padding-top: 0;
    }

    /* "folha": a superfície sobe por cima da anterior com cantos arredondados */
    .sheet {
        position: relative;
        z-index: var(--z-raised);
        margin-top: calc(var(--radius-2xl) * -1);
        border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
        overflow: clip;
    }

    .sheet--last {
        border-radius: var(--radius-2xl);
    }

    main {
        position: relative;
        z-index: 1;
    }

    .split {
        display: grid;
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        gap: clamp(32px, 6vw, 112px);
        align-items: start;
    }

    @media (max-width: 960px) {
        .split {
            grid-template-columns: minmax(0, 1fr);
        }
    }
}


/* ==========================================================================
   COMPONENTES
   ========================================================================== */

@layer components {

    /* --- Tipografia de apoio ------------------------------------------------- */

    /* espaçamento 0 (o da própria fonte): apertando, as serifas de m, n, u se tocam */
    .t-serif {
        font-family: var(--font-serif);
        font-weight: 600;
        letter-spacing: 0;
    }

    .t-gradient {
        background-image: var(--gradient-copper);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

    [data-surface="paper"] .t-gradient,
    [data-surface="copper"] .t-gradient {
        background-image: linear-gradient(100deg, var(--copper-600), var(--copper-500) 45%, var(--copper-700));
    }

    [data-surface="copper"] .t-gradient {
        background-image: linear-gradient(100deg, var(--ink-950), var(--copper-900) 50%, var(--ink-950));
    }

    .t-mono {
        font-family: var(--font-mono);
        letter-spacing: 0.04em;
    }

    .eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 0.9em;
        font-family: var(--font-mono);
        font-size: var(--step--1);
        font-weight: 500;
        line-height: 1;
        letter-spacing: var(--tracking-mono);
        text-transform: uppercase;
        color: var(--text-2);
    }

    .eyebrow__index {
        color: var(--accent);
    }

    .eyebrow__index::after {
        content: "";
        display: inline-block;
        width: 40px;
        height: 1px;
        margin-left: 0.9em;
        vertical-align: middle;
        background: currentColor;
        opacity: 0.6;
    }

    .section-head {
        display: grid;
        gap: var(--space-m);
        margin-bottom: clamp(40px, 6vw, 96px);
    }

    .section-head__title {
        max-width: 16ch;
        font-size: var(--step-6);
        font-weight: 600;
        line-height: 0.95;
        letter-spacing: var(--tracking-tight);
    }

    .section-head__lead {
        max-width: 52ch;
        font-size: var(--step-1);
        line-height: 1.45;
        color: var(--text-2);
    }

    .section-head--row {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
        align-items: end;
        column-gap: clamp(32px, 6vw, 112px);
    }

    .section-head--row .eyebrow {
        grid-column: 1 / -1;
    }

    @media (max-width: 960px) {
        .section-head--row {
            grid-template-columns: minmax(0, 1fr);
        }
    }

    /* --- Ícone ----------------------------------------------------------------- */

    .icon {
        width: 1.25em;
        height: 1.25em;
        flex: none;
    }

    /* --- Botão -----------------------------------------------------------------
       Variantes: (padrão) primário · --outline   Tamanhos: --s · --l
       O fundo sobe de baixo e o texto "rola" para cima no hover. */

    .button {
        --btn-bg: var(--accent);
        --btn-fg: var(--accent-ink);
        --btn-line: transparent;
        --btn-hover-bg: var(--accent-strong);
        --btn-hover-fg: var(--accent-ink);
        position: relative;
        isolation: isolate;
        overflow: hidden;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.65em;
        height: 52px;
        padding: 0 1.5em;
        border: 1px solid var(--btn-line);
        border-radius: var(--radius-full);
        background: var(--btn-bg);
        color: var(--btn-fg);
        font-family: var(--font-sans);
        font-size: var(--step-0);
        font-weight: 500;
        line-height: 1;
        text-decoration: none;
        white-space: nowrap;
        cursor: pointer;
        transition: color var(--dur-m) var(--ease-out), border-color var(--dur-m) var(--ease-out), translate var(--dur-m) var(--ease-out);
    }

    .button::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        border-radius: inherit;
        background: var(--btn-hover-bg);
        transform: translateY(101%);
        transition: transform var(--dur-m) var(--ease-out);
    }

    .button:hover {
        color: var(--btn-hover-fg);
        border-color: var(--btn-hover-bg);
    }

    .button:hover::before {
        transform: none;
    }

    .button__label {
        display: inline-block;
        overflow: hidden;
    }

    /* O respiro vertical fica no span (não no rótulo) para que o deslocamento
       de -100% seja igual à altura da janela de corte. */
    .button__label > span {
        position: relative;
        display: inline-block;
        padding-block: 0.2em;
        transition: transform var(--dur-m) var(--ease-out);
    }

    .button__label > span::after {
        content: attr(data-text) / "";
        position: absolute;
        left: 0;
        top: 100%;
        padding-block: inherit;
    }

    .button:hover .button__label > span {
        transform: translateY(-100%);
    }

    .button .icon {
        width: 1.2em;
        height: 1.2em;
        transition: transform var(--dur-m) var(--ease-out);
    }

    .button:hover .icon--arrow {
        transform: rotate(45deg);
    }

    .button--outline {
        --btn-bg: transparent;
        --btn-fg: var(--text-1);
        --btn-line: var(--line-2);
        --btn-hover-bg: var(--text-1);
        --btn-hover-fg: var(--bg);
    }

    .button--s {
        height: 40px;
        padding: 0 1.1em;
        font-size: var(--step--1);
    }

    .button--l {
        height: 60px;
        padding: 0 1.75em;
        font-size: var(--step-1);
    }

    .icon-button {
        display: inline-grid;
        place-items: center;
        width: 40px;
        height: 40px;
        flex: none;
        border: 1px solid var(--line-2);
        border-radius: 50%;
        color: var(--text-1);
        transition: background-color var(--dur-s) ease, border-color var(--dur-s) ease, color var(--dur-s) ease;
    }

    .icon-button:hover {
        border-color: var(--text-1);
        background: var(--text-1);
        color: var(--bg);
    }

    .icon-button .icon {
        width: 18px;
        height: 18px;
    }

    /* --- Chip e tag ---------------------------------------------------------------- */

    .chips {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-2xs);
    }

    .chip {
        display: inline-flex;
        align-items: center;
        gap: 0.55em;
        min-height: 40px;
        padding: 6px 15px 6px 11px;
        border: 1px solid var(--line-1);
        border-radius: var(--radius-full);
        background: var(--chip-bg);
        font-size: var(--step--1);
        line-height: 1.2;
        transition: transform var(--dur-s) var(--ease-out), border-color var(--dur-s) ease;
    }

    .chip:hover {
        transform: translateY(-2px);
        border-color: var(--line-2);
    }

    .chip img {
        width: 20px;
        height: 20px;
        object-fit: contain;
    }

    /* ícones escuros (WordPress, MagicaVoxel...) ganham um contorno claro no fundo escuro */
    [data-surface="night"] .chip img {
        filter: drop-shadow(0 0 0.6px rgba(255, 255, 255, 0.75));
    }

    .chips--muted .chip {
        color: var(--text-2);
    }

    .chips--muted .chip img {
        filter: grayscale(1);
        opacity: 0.55;
        transition: filter var(--dur-m) ease, opacity var(--dur-m) ease;
    }

    .chips--muted .chip:hover img {
        filter: none;
        opacity: 1;
    }

    .chips--solid .chip {
        padding-inline: 16px;
        border-color: transparent;
        background: var(--accent);
        color: var(--accent-ink);
        font-weight: 500;
    }

    .tag {
        display: inline-flex;
        align-items: center;
        gap: 0.65em;
        height: 34px;
        padding: 0 14px;
        border: 1px solid var(--line-2);
        border-radius: var(--radius-full);
        background: rgba(11, 9, 8, 0.35);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        font-family: var(--font-mono);
        font-size: var(--step--2);
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--text-1);
    }

    .tag__dot {
        position: relative;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--copper-300);
    }

    .tag__dot::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: inherit;
    }

    /* --- Avatar ---------------------------------------------------------------------- */

    .avatar {
        width: 52px;
        height: 52px;
        flex: none;
        border-radius: 50%;
        object-fit: cover;
        box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--accent);
    }

    /* --- Card e holofote --------------------------------------------------------------
       [data-spotlight] recebe --mx/--my do JS: um brilho e uma borda acesa
       seguem o cursor. Funciona em qualquer superfície. */

    .card {
        position: relative;
        isolation: isolate;
        overflow: hidden;
        border: 1px solid var(--line-1);
        border-radius: var(--radius-xl);
        background: var(--surface-1);
        color: var(--text-1);
    }

    .card[data-surface] {
        background: var(--bg);
    }

    .card[data-surface="night"] {
        background: var(--surface-1);
    }

    .spotlight {
        --mx: -999px;
        --my: -999px;
    }

    .spotlight::before,
    .spotlight::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        pointer-events: none;
        opacity: 0;
        transition: opacity var(--dur-m) ease;
    }

    .spotlight::before {
        z-index: -1;
        background: radial-gradient(560px circle at var(--mx) var(--my), var(--glow), transparent 45%);
    }

    .spotlight::after {
        z-index: 3;
        padding: 1px;
        background: radial-gradient(380px circle at var(--mx) var(--my), var(--spot-line), transparent 42%);
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
    }

    .spotlight.is-lit::before,
    .spotlight.is-lit::after {
        opacity: 1;
    }

    /* --- Painel de dados (lista de definições) ---------------------------------------- */

    .facts {
        display: grid;
    }

    .facts__row {
        display: grid;
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
        gap: var(--space-s);
        padding-block: var(--space-s);
        border-top: 1px solid var(--line-1);
    }

    .facts__row:first-child {
        border-top: 0;
    }

    .facts dt {
        font-family: var(--font-mono);
        font-size: var(--step--2);
        letter-spacing: 0.1em;
        line-height: 1.7;
        text-transform: uppercase;
        color: var(--text-3);
    }

    .facts dd {
        font-size: var(--step-0);
        line-height: 1.45;
    }

    /* --- Faixas (marquee) -------------------------------------------------------------- */

    .tape {
        position: relative;
        padding-block: clamp(56px, 7vw, 112px) clamp(40px, 5vw, 72px);
        pointer-events: none;
    }

    .tape__band {
        display: flex;
        overflow: hidden;
        width: 110%;
        margin-left: -5%;
        padding-block: clamp(12px, 1.4vw, 22px);
        transform: rotate(var(--tilt, -2deg));
    }

    .tape__band--copper {
        position: relative;
        z-index: 1;
        background: var(--gradient-copper-flat);
        color: var(--ink-950);
    }

    .tape__band--line {
        --tilt: 2deg;
        margin-top: clamp(-38px, -3vw, -20px);
        border-block: 1px solid var(--line-1);
        background: var(--ink-950);
        color: transparent;
        font-family: var(--font-sans-outline);
        -webkit-text-stroke: 1px var(--copper-300);
    }

    .tape__track {
        display: flex;
        flex: none;
        align-items: center;
        gap: clamp(20px, 2.4vw, 40px);
        padding-right: clamp(20px, 2.4vw, 40px);
        font-size: var(--step-4);
        font-weight: 600;
        line-height: 1;
        letter-spacing: -0.03em;
        white-space: nowrap;
    }

    .tape__track .icon {
        width: 0.55em;
        height: 0.55em;
        color: var(--ink-950);
    }

    .tape__band--line .tape__track .icon {
        color: var(--copper-300);
    }

    /* --- Cursor ------------------------------------------------------------------------- */

    .cursor {
        position: fixed;
        top: 0;
        left: 0;
        z-index: var(--z-cursor);
        pointer-events: none;
        opacity: 0;
        transition: opacity var(--dur-m) ease;
    }

    .cursor.is-active {
        opacity: 1;
    }

    .cursor__ring {
        position: absolute;
        top: 0;
        left: 0;
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        margin: -20px 0 0 -20px;
        overflow: hidden;
        border: 1px solid rgba(245, 191, 153, 0.7);
        border-radius: var(--radius-full);
        transition:
            width var(--dur-m) var(--ease-out),
            height var(--dur-m) var(--ease-out),
            margin var(--dur-m) var(--ease-out),
            border-radius var(--dur-m) var(--ease-out),
            background-color var(--dur-m) ease,
            border-color var(--dur-m) ease,
            transform var(--dur-s) ease;
    }

    .cursor__label {
        position: relative;
        z-index: 1;
        font-family: var(--font-mono);
        font-size: 11px;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--ink-950);
        opacity: 0;
        transition: opacity var(--dur-s) ease;
    }

    .cursor__media {
        position: absolute;
        inset: 0;
        opacity: 0;
        transition: opacity var(--dur-m) ease;
    }

    .cursor__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
    }

    .cursor.is-label .cursor__ring {
        width: 92px;
        height: 92px;
        margin: -46px 0 0 -46px;
        border-color: transparent;
        background: var(--copper-300);
    }

    .cursor.is-label .cursor__label {
        opacity: 1;
    }

    .cursor.is-media .cursor__ring {
        width: 360px;
        height: 225px;
        margin: -112px 0 0 28px;
        border-color: rgba(245, 191, 153, 0.45);
        border-radius: var(--radius-m);
        background: var(--ink-900);
        box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
    }

    .cursor.is-media .cursor__media {
        opacity: 1;
    }

    .cursor.is-media .cursor__label {
        opacity: 0;
    }

    .cursor.is-down .cursor__ring {
        transform: scale(0.88);
    }

    /* --- Granulação de filme ------------------------------------------------------------ */

    .grain {
        position: fixed;
        inset: 0;
        z-index: var(--z-grain);
        pointer-events: none;
        opacity: 0.06;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    }

    /* --- Barra de progresso de leitura --------------------------------------------------- */

    .progress {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: var(--z-progress);
        display: none;
        height: 2px;
        background: var(--gradient-copper-flat);
        transform: scaleX(0);
        transform-origin: 0 50%;
    }

    /* --- Texto dividido em palavras (revelação) ------------------------------------------- */

    .split-word {
        display: inline-block;
        padding: 0.1em 0.05em 0.18em;
        margin: -0.1em -0.05em -0.18em;
        clip-path: inset(0);
    }

    .split-word > span {
        display: inline-block;
    }
}


/* ==========================================================================
   SEÇÕES
   ========================================================================== */

@layer sections {

    /* --- Navegação --------------------------------------------------------------------- */

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: var(--z-nav);
        padding: 12px var(--gutter);
        pointer-events: none;
        transition: transform var(--dur-l) var(--ease-out);
    }

    .nav.is-hidden {
        transform: translateY(-130%);
    }

    .nav__bar {
        display: flex;
        align-items: center;
        gap: var(--space-s);
        max-width: var(--container);
        height: var(--nav-h);
        margin-inline: auto;
        padding: 0 12px 0 16px;
        border: 1px solid transparent;
        border-radius: var(--radius-full);
        color: var(--ink-50);
        pointer-events: auto;
        transition:
            background-color var(--dur-m) ease,
            border-color var(--dur-m) ease,
            box-shadow var(--dur-m) ease;
    }

    /* fundo quase opaco: o texto da barra continua legível sobre as seções claras */
    .nav.is-scrolled .nav__bar {
        border-color: rgba(247, 243, 239, 0.12);
        background: rgba(14, 12, 11, 0.88);
        -webkit-backdrop-filter: blur(20px) saturate(160%);
        backdrop-filter: blur(20px) saturate(160%);
        box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.85);
    }

    @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
        .nav.is-scrolled .nav__bar {
            background: var(--ink-900);
        }
    }

    .nav__brand {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        margin-right: auto;
        color: inherit;
        text-decoration: none;
    }

    .nav__mark {
        width: 44px;
        height: 33px;
        flex: none;
        transition: transform var(--dur-l) var(--ease-spring);
    }

    .nav__brand:hover .nav__mark {
        transform: rotate(-8deg) scale(1.06);
    }

    .nav__text {
        display: grid;
        line-height: 1.2;
    }

    .nav__name {
        font-size: 1rem;
        font-weight: 600;
    }

    .nav__role {
        font-size: 0.78rem;
        color: var(--ink-300);
    }

    .nav__links {
        display: flex;
        gap: 2px;
    }

    .nav__links a {
        position: relative;
        display: block;
        padding: 9px 13px;
        border-radius: var(--radius-full);
        color: var(--ink-200);
        font-size: 0.94rem;
        font-weight: 500;
        text-decoration: none;
        transition: color var(--dur-s) ease, background-color var(--dur-s) ease;
    }

    .nav__links a:hover,
    .nav__links a[aria-current="true"] {
        color: var(--ink-50);
        background: rgba(247, 243, 239, 0.08);
    }

    .nav__links a[aria-current="true"]::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 3px;
        width: 4px;
        height: 4px;
        margin-left: -2px;
        border-radius: 50%;
        background: var(--copper-300);
    }

    .nav__actions {
        display: flex;
        align-items: center;
        gap: var(--space-2xs);
    }

    .nav__actions .icon-button {
        border-color: rgba(247, 243, 239, 0.18);
        color: var(--ink-50);
    }

    .nav__actions .icon-button:hover {
        background: var(--ink-50);
        color: var(--ink-950);
    }

    .nav__toggle {
        display: none;
        align-items: center;
        gap: 10px;
        height: 44px;
        padding: 0 16px;
        border: 1px solid rgba(247, 243, 239, 0.18);
        border-radius: var(--radius-full);
        color: var(--ink-50);
        font-family: var(--font-mono);
        font-size: 0.8rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .nav__toggle-bars {
        display: grid;
        gap: 5px;
        width: 18px;
    }

    .nav__toggle-bars span {
        height: 1.5px;
        border-radius: 2px;
        background: currentColor;
        transition: transform var(--dur-m) var(--ease-out);
    }

    .nav__toggle[aria-expanded="true"] .nav__toggle-bars span:nth-child(1) {
        transform: translateY(3.25px) rotate(45deg);
    }

    .nav__toggle[aria-expanded="true"] .nav__toggle-bars span:nth-child(2) {
        transform: translateY(-3.25px) rotate(-45deg);
    }

    @media (max-width: 1320px) {
        .nav__role {
            display: none;
        }
    }

    @media (max-width: 1080px) {
        .nav__links,
        .nav__actions .icon-button,
        .nav__actions .button {
            display: none;
        }

        .nav__toggle {
            display: inline-flex;
        }
    }

    /* --- Menu em tela cheia ----------------------------------------------------------------- */

    .menu {
        position: fixed;
        inset: 0;
        z-index: var(--z-menu);
        display: none;
        flex-direction: column;
        justify-content: space-between;
        gap: var(--space-xl);
        overflow-y: auto;
        padding: calc(var(--nav-h) + 48px) var(--gutter) var(--space-xl);
        background: var(--ink-950);
        clip-path: circle(0% at calc(100% - 64px) 44px);
        visibility: hidden;
        transition: clip-path var(--dur-xl) var(--ease-out), visibility 0s linear var(--dur-xl);
    }

    .menu::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        background: radial-gradient(80% 50% at 100% 0%, rgba(189, 119, 68, 0.35), transparent 70%);
    }

    .menu.is-open {
        clip-path: circle(150% at calc(100% - 64px) 44px);
        visibility: visible;
        transition: clip-path var(--dur-xl) var(--ease-out);
    }

    .menu__links a {
        display: flex;
        align-items: baseline;
        gap: var(--space-s);
        padding-block: 4px;
        color: var(--ink-50);
        font-size: clamp(2.2rem, 9.5vw, 4.2rem);
        font-weight: 600;
        line-height: 1.08;
        letter-spacing: var(--tracking-tight);
        text-decoration: none;
        opacity: 0;
        transform: translateY(30px);
        transition: opacity var(--dur-l) var(--ease-out), transform var(--dur-l) var(--ease-out), color var(--dur-s) ease;
    }

    .menu__links a span {
        min-width: 2.4em;
        font-family: var(--font-mono);
        font-size: var(--step--1);
        font-weight: 400;
        letter-spacing: 0.1em;
        color: var(--copper-300);
    }

    .menu__links a:hover,
    .menu__links a[aria-current="true"] {
        color: var(--copper-200);
    }

    .menu.is-open .menu__links a {
        opacity: 1;
        transform: none;
    }

    .menu.is-open .menu__links li:nth-child(1) a { transition-delay: 0.1s; }
    .menu.is-open .menu__links li:nth-child(2) a { transition-delay: 0.15s; }
    .menu.is-open .menu__links li:nth-child(3) a { transition-delay: 0.2s; }
    .menu.is-open .menu__links li:nth-child(4) a { transition-delay: 0.25s; }
    .menu.is-open .menu__links li:nth-child(5) a { transition-delay: 0.3s; }
    .menu.is-open .menu__links li:nth-child(6) a { transition-delay: 0.35s; }
    .menu.is-open .menu__links li:nth-child(7) a { transition-delay: 0.4s; }
    .menu.is-open .menu__links li:nth-child(8) a { transition-delay: 0.45s; }

    .menu__footer {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--space-s);
    }

    @media (max-width: 1080px) {
        .menu {
            display: flex;
        }
    }

    /* --- Hero -------------------------------------------------------------------------------- */

    .hero {
        position: relative;
        isolation: isolate;
        overflow: clip;
        background: var(--ink-950);
        min-height: 100vh;
        min-height: 100svh;
    }

    /* o hero fica parado enquanto o portfólio sobe por cima dele */
    @media (min-height: 620px) {
        .hero {
            position: sticky;
            top: 0;
            height: 100vh;
            height: 100svh;
        }
    }

    .hero__media {
        position: absolute;
        inset: 0;
        z-index: -1;
        background:
            radial-gradient(55% 65% at 74% 34%, rgba(189, 119, 68, 0.5), transparent 70%),
            radial-gradient(35% 40% at 88% 16%, rgba(245, 191, 153, 0.28), transparent 70%),
            radial-gradient(60% 60% at 20% 80%, rgba(79, 51, 31, 0.5), transparent 70%),
            var(--ink-950);
    }

    .hero__canvas {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 1.8s ease;
    }

    .hero__canvas.is-ready {
        opacity: 1;
    }

    .hero__scrim {
        position: absolute;
        inset: 0;
        background:
            linear-gradient(to top, rgba(11, 9, 8, 0.92) 0%, rgba(11, 9, 8, 0.5) 30%, rgba(11, 9, 8, 0) 60%),
            radial-gradient(70% 60% at 0% 75%, rgba(11, 9, 8, 0.72), transparent 70%),
            linear-gradient(to bottom, rgba(11, 9, 8, 0.65), transparent 22%);
    }

    .hero__inner {
        container-type: inline-size;
        display: grid;
        grid-template-rows: auto 1fr auto auto;
        height: 100%;
        min-height: inherit;
        padding-top: calc(var(--nav-h) + 40px);
        padding-bottom: calc(var(--radius-2xl) + clamp(12px, 1.8vw, 28px));
    }

    .hero__top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-s);
    }

    .hero__scroll {
        display: inline-flex;
        align-items: center;
        gap: 0.7em;
        font-family: var(--font-mono);
        font-size: var(--step--2);
        letter-spacing: var(--tracking-mono);
        text-transform: uppercase;
        color: var(--ink-200);
        text-decoration: none;
    }

    .hero__scroll .icon {
        width: 16px;
        height: 16px;
    }

    .hero__middle {
        display: grid;
        justify-items: start;
        gap: clamp(20px, 2.4vw, 36px);
        max-width: 46rem;
        margin-bottom: clamp(28px, 4.4vw, 72px);
    }

    .hero__lead {
        max-width: 30ch;
        font-size: var(--step-2);
        line-height: 1.3;
        letter-spacing: -0.01em;
        color: var(--ink-200);
    }

    .hero__lead mark {
        color: var(--copper-200);
    }

    .hero__cta {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--space-s) var(--space-m);
    }

    .hero__question {
        display: flex;
        align-items: center;
        gap: var(--space-xs);
        font-weight: 500;
        color: var(--ink-100);
    }

    .hero__title {
        position: relative;
        font-weight: 700;
        line-height: 1;
        letter-spacing: normal;
    }

    /* o nome ocupa a largura toda: 100cqi ÷ largura do nome (medida em em) */
    .hero__name {
        display: block;
        font-size: min(calc(100cqi / 6.15), 30svh);
        line-height: 0.8;
        letter-spacing: var(--tracking-display);
        white-space: nowrap;
    }

    .hero__word {
        display: inline-block;
        padding: 0.14em 0.08em 0.1em;
        margin: -0.14em -0.08em -0.1em;
        clip-path: inset(0);
    }

    .hero__word--serif {
        font-family: var(--font-serif);
        font-weight: 600;
        letter-spacing: 0;
    }

    .char {
        display: inline-block;
        transform-origin: 0 100%;
    }

    /* folga em volta de cada letra: as serifas passam da caixa e, sem ela, o
       degradê (recortado na caixa) não chega até a ponta e a letra parece cortada.
       --word-w e --char-x vêm do main.js (medida real); sem JS, a média por letra */
    .hero__word--serif .char {
        padding: 0.1em 0.14em;
        margin: -0.1em -0.14em;
        background-image: var(--gradient-copper);
        background-size: var(--word-w, 520%) 100%;
        background-position: var(--char-x, calc(var(--j) * 25%)) 0;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

    .hero__role {
        position: absolute;
        right: 0.2em;
        bottom: calc(100% + 0.9em);
        max-width: 24ch;
        font-family: var(--font-mono);
        font-size: var(--step--1);
        font-weight: 500;
        line-height: 1.4;
        letter-spacing: 0.08em;
        text-align: right;
        text-transform: uppercase;
        color: var(--ink-100);
    }

    @media (max-width: 760px) {
        .hero__name {
            font-size: calc(100cqi / 3.62);
            white-space: normal;
        }

        .hero__word {
            display: block;
            width: fit-content;
        }

        .hero__word--serif {
            margin-top: -0.06em;
            margin-left: auto;
        }

        .hero__role {
            position: static;
            margin-bottom: var(--space-s);
            text-align: left;
        }

        .hero__middle {
            margin-bottom: var(--space-l);
        }
    }

    /* --- Portfólio ------------------------------------------------------------------------- */

    .portfolio {
        padding-top: 0;
    }

    .showcase {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-m);
    }

    .showcase__card {
        --rx: 0deg;
        --ry: 0deg;
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: clamp(480px, 46vw, 680px);
        border-radius: var(--radius-2xl);
        text-decoration: none;
        transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry));
        transition: transform var(--dur-l) var(--ease-out), border-color var(--dur-m) ease;
    }

    .showcase__card.is-tilting {
        transition: border-color var(--dur-m) ease;
    }

    .showcase__art {
        position: relative;
        flex: 1;
        min-height: 280px;
        background-image: radial-gradient(circle at 1px 1px, rgba(245, 191, 153, 0.16) 1px, transparent 0);
        background-size: 26px 26px;
    }

    .showcase__art > svg,
    .showcase__art > canvas {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .showcase__body {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        gap: var(--space-m);
        padding: clamp(24px, 3vw, 44px);
        border-top: 1px solid var(--line-1);
    }

    .showcase__title {
        font-size: var(--step-6);
        line-height: 0.95;
        letter-spacing: var(--tracking-tight);
    }

    .showcase__note {
        display: flex;
        align-items: center;
        gap: 0.8em;
        margin-top: var(--space-s);
        font-size: var(--step--1);
        color: var(--text-2);
    }

    .showcase__note img {
        width: 30px;
        height: 30px;
        flex: none;
    }

    .showcase__arrow {
        display: grid;
        place-items: center;
        width: clamp(56px, 5vw, 76px);
        height: clamp(56px, 5vw, 76px);
        border-radius: 50%;
        background: var(--accent);
        color: var(--accent-ink);
        transition: transform var(--dur-l) var(--ease-spring), background-color var(--dur-m) ease;
    }

    .showcase__arrow .icon {
        width: 40%;
        height: 40%;
    }

    .showcase__card:hover .showcase__arrow {
        transform: rotate(45deg) scale(1.08);
        background: var(--accent-strong);
    }

    /* ilustração "ferramenta de design" (SVG animado) */
    .pen__path {
        stroke-dasharray: 1;
        stroke-dashoffset: 0;
    }

    .pen__orb,
    .pen__spin {
        transform-box: fill-box;
        transform-origin: center;
    }

    @media (max-width: 860px) {
        .showcase {
            grid-template-columns: minmax(0, 1fr);
        }

        .showcase__card {
            min-height: 480px;
        }
    }

    /* --- Sobre ------------------------------------------------------------------------------ */

    .about__body {
        display: grid;
        gap: var(--space-m);
        font-size: var(--step-1);
        line-height: 1.55;
        color: var(--text-2);
    }

    .about__body p:first-child {
        font-size: var(--step-2);
        line-height: 1.35;
        letter-spacing: -0.01em;
        color: var(--text-1);
    }

    .profile-card {
        position: sticky;
        top: calc(var(--nav-h) + 40px);
        padding: clamp(24px, 2.8vw, 40px);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow);
    }

    .profile-card__head {
        display: flex;
        align-items: center;
        gap: var(--space-s);
        margin-bottom: var(--space-m);
        padding-bottom: var(--space-m);
        border-bottom: 1px solid var(--line-1);
    }

    .profile-card__head .avatar {
        width: 64px;
        height: 64px;
    }

    .profile-card__title {
        font-size: var(--step-2);
    }

    .profile-card__sub {
        font-family: var(--font-mono);
        font-size: var(--step--2);
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--text-3);
    }

    /* --- Serviços --------------------------------------------------------------------------- */

    .services {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--space-s);
    }

    .service {
        display: flex;
        flex-direction: column;
        gap: var(--space-s);
        min-height: 320px;
        padding: clamp(24px, 2.6vw, 40px);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow);
        transition: transform var(--dur-l) var(--ease-out);
    }

    .service:hover {
        transform: translateY(-4px);
    }

    .service__top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: auto;
        padding-bottom: clamp(20px, 4vw, 48px);
    }

    .service__num {
        font-family: var(--font-mono);
        font-size: var(--step--1);
        color: var(--text-3);
    }

    .service__icon {
        display: grid;
        place-items: center;
        width: 56px;
        height: 56px;
        border-radius: var(--radius-m);
        background: var(--surface-2);
        color: var(--accent);
        transition: transform var(--dur-l) var(--ease-spring), background-color var(--dur-m) ease, color var(--dur-m) ease;
    }

    .service__icon .icon {
        width: 26px;
        height: 26px;
    }

    .service:hover .service__icon {
        transform: rotate(-8deg) scale(1.06);
        background: var(--accent);
        color: var(--accent-ink);
    }

    .service__title {
        font-size: var(--step-2);
        line-height: 1.12;
    }

    .service__text {
        font-size: var(--step--1);
        line-height: 1.6;
        color: var(--text-2);
    }

    .services__cta {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--space-s) var(--space-m);
        margin-top: clamp(32px, 4vw, 56px);
        color: var(--text-2);
    }

    @media (max-width: 1100px) {
        .services {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (max-width: 680px) {
        .services {
            grid-template-columns: minmax(0, 1fr);
        }

        .service {
            min-height: 0;
        }
    }

    /* --- Ferramentas (bento) ---------------------------------------------------------------- */

    .bento {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: var(--space-s);
    }

    .tile {
        grid-column: span 12;
        display: flex;
        flex-direction: column;
        gap: var(--space-m);
        padding: clamp(24px, 2.8vw, 44px);
        box-shadow: var(--shadow);
    }

    .tile__head {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: var(--space-s);
    }

    .tile__title {
        font-size: var(--step-2);
        letter-spacing: -0.02em;
    }

    .tile--stat {
        justify-content: space-between;
        min-height: 260px;
        border-color: transparent;
    }

    .stat__label {
        font-family: var(--font-mono);
        font-size: var(--step--1);
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--text-2);
    }

    .stat__value {
        display: block;
        font-family: var(--font-serif);
        font-size: clamp(6rem, 11vw, 11rem);
        font-weight: 600;
        line-height: 0.8;
        letter-spacing: -0.04em;
        counter-reset: year var(--count);
    }

    .js .stat__value > span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .js .stat__value::after {
        content: counter(year) / "";
    }

    .stat__text {
        max-width: 26ch;
        font-size: var(--step-0);
        color: var(--text-2);
    }

    @media (min-width: 760px) {
        .tile--stat,
        .tile--langs,
        .tile--ai,
        .tile--legacy {
            grid-column: span 6;
        }
    }

    @media (min-width: 1100px) {
        .tile--favorites {
            grid-column: 1 / span 7;
            grid-row: 1 / span 2;
        }

        .tile--stat {
            grid-column: 8 / span 5;
        }

        .tile--langs {
            grid-column: 8 / span 5;
        }

        .tile--ai {
            grid-column: 1 / span 4;
        }

        .tile--legacy {
            grid-column: 5 / span 3;
        }

        .tile--skills {
            grid-column: 8 / span 5;
        }
    }

    /* --- Projetos --------------------------------------------------------------------------- */

    .project-list {
        border-bottom: 1px solid var(--line-1);
    }

    .project__link {
        position: relative;
        isolation: isolate;
        display: grid;
        grid-template-columns: 3.5rem 4rem minmax(0, 1.05fr) minmax(0, 1fr) auto;
        align-items: center;
        gap: var(--space-m) clamp(16px, 2.4vw, 40px);
        padding: clamp(22px, 2.4vw, 34px) clamp(8px, 1.4vw, 24px);
        border-top: 1px solid var(--line-1);
        color: var(--text-1);
        text-decoration: none;
        transition: color var(--dur-m) ease;
    }

    .project__link::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        border-radius: var(--radius-m);
        background: var(--gradient-copper-flat);
        transform: scaleY(0);
        transform-origin: 50% 100%;
        transition: transform var(--dur-l) var(--ease-out);
    }

    .project__index {
        font-family: var(--font-mono);
        font-size: var(--step--1);
        color: var(--text-3);
        transition: color var(--dur-m) ease;
    }

    .project__icon {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        background: #fff;
        transition: transform var(--dur-l) var(--ease-spring);
    }

    .project__title {
        font-size: var(--step-2);
        line-height: 1.12;
        letter-spacing: -0.02em;
        transition: transform var(--dur-l) var(--ease-out);
    }

    .project__text {
        font-size: var(--step--1);
        line-height: 1.6;
        color: var(--text-2);
        transition: color var(--dur-m) ease;
    }

    .project__meta {
        display: flex;
        align-items: center;
        gap: var(--space-s);
    }

    .project__url {
        font-family: var(--font-mono);
        font-size: var(--step--2);
        letter-spacing: 0.04em;
        color: var(--text-3);
        transition: color var(--dur-m) ease;
    }

    .project__arrow {
        display: grid;
        place-items: center;
        width: 48px;
        height: 48px;
        flex: none;
        border: 1px solid var(--line-2);
        border-radius: 50%;
        transition: transform var(--dur-l) var(--ease-spring), background-color var(--dur-m) ease, border-color var(--dur-m) ease, color var(--dur-m) ease;
    }

    .project__arrow .icon {
        width: 20px;
        height: 20px;
    }

    .project__thumb {
        display: none;
    }

    .project__link:hover,
    .project__link:focus-visible {
        color: var(--ink-950);
    }

    .project__link:hover::before,
    .project__link:focus-visible::before {
        transform: none;
    }

    .project__link:hover .project__title {
        transform: translateX(10px);
    }

    .project__link:hover .project__icon {
        transform: rotate(-8deg) scale(1.08);
    }

    .project__link:hover .project__index,
    .project__link:hover .project__url,
    .project__link:hover .project__text,
    .project__link:focus-visible .project__index,
    .project__link:focus-visible .project__url,
    .project__link:focus-visible .project__text {
        color: var(--ink-900);
    }

    .project__link:hover .project__arrow,
    .project__link:focus-visible .project__arrow {
        transform: rotate(45deg);
        border-color: transparent;
        background: var(--ink-950);
        color: var(--copper-200);
    }

    @media (max-width: 1100px) {
        .project__link {
            grid-template-columns: 3rem 3.5rem minmax(0, 1fr) auto;
        }

        .project__text {
            grid-column: 3 / 4;
        }

        .project__meta {
            grid-column: 4;
            grid-row: 1 / span 2;
        }

        .project__url {
            display: none;
        }
    }

    /* celular e telas de toque: cartão com a prévia do site */
    @media (max-width: 700px), (hover: none) {
        .project-list {
            display: grid;
            gap: var(--space-s);
            border: 0;
        }

        .project__link {
            grid-template-columns: auto minmax(0, 1fr) auto;
            gap: var(--space-s);
            padding: var(--space-s);
            border: 1px solid var(--line-1);
            border-radius: var(--radius-l);
            background: var(--surface-1);
        }

        .project__index {
            display: none;
        }

        .project__icon {
            grid-column: 1;
            grid-row: 1;
            width: 48px;
            height: 48px;
        }

        .project__title {
            grid-column: 2 / -1;
            grid-row: 1;
            font-size: var(--step-1);
        }

        .project__text {
            grid-column: 1 / -1;
            grid-row: 2;
        }

        .project__thumb {
            display: block;
            grid-column: 1 / -1;
            grid-row: 3;
            width: 100%;
            aspect-ratio: 16 / 10;
            border: 1px solid var(--line-1);
            border-radius: var(--radius-m);
            object-fit: cover;
            object-position: top center;
        }

        .project__meta {
            grid-column: 1 / -1;
            grid-row: 4;
            justify-content: space-between;
        }

        .project__url {
            display: block;
        }

        .project__link:hover .project__title {
            transform: none;
        }
    }

    /* --- Trajetória ------------------------------------------------------------------------- */

    .timeline {
        position: relative;
        display: grid;
        padding-left: clamp(28px, 3vw, 44px);
    }

    /* linha que se preenche de cobre conforme a rolagem */
    .timeline::before,
    .timeline::after {
        content: "";
        position: absolute;
        top: 10px;
        bottom: 10px;
        left: 6px;
        width: 2px;
        border-radius: 2px;
    }

    .timeline::before {
        background: var(--line-2);
    }

    .timeline::after {
        background: linear-gradient(to bottom, var(--copper-500), var(--copper-300));
        transform-origin: 50% 0;
    }

    .timeline__item {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
        gap: var(--space-2xs) var(--space-l);
        padding-block: clamp(20px, 2.4vw, 36px);
        border-top: 1px solid var(--line-1);
    }

    .timeline__item:first-child {
        border-top: 0;
        padding-top: 0;
    }

    .timeline__item::before {
        content: "";
        position: absolute;
        top: calc(clamp(20px, 2.4vw, 36px) + 0.45em);
        left: calc(clamp(28px, 3vw, 44px) * -1 + 1px);
        width: 12px;
        height: 12px;
        border: 2px solid var(--copper-500);
        border-radius: 50%;
        background: var(--bg);
    }

    .timeline__item:first-child::before {
        top: 0.45em;
        background: var(--copper-500);
    }

    .timeline__date {
        grid-row: 1 / span 3;
        font-family: var(--font-mono);
        font-size: var(--step--1);
        letter-spacing: 0.06em;
        color: var(--accent);
    }

    .timeline__role {
        font-size: var(--step-2);
        line-height: 1.12;
    }

    .timeline__org {
        font-weight: 500;
        color: var(--text-1);
    }

    .timeline__text {
        max-width: 56ch;
        font-size: var(--step--1);
        color: var(--text-2);
    }

    .career__side {
        position: sticky;
        top: calc(var(--nav-h) + 40px);
        display: grid;
        gap: var(--space-s);
    }

    .panel {
        display: grid;
        gap: var(--space-s);
        padding: clamp(24px, 2.6vw, 40px);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow);
    }

    .panel__title {
        font-size: var(--step-2);
    }

    .panel__eyebrow {
        font-family: var(--font-mono);
        font-size: var(--step--2);
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--accent);
    }

    .panel__text {
        color: var(--text-2);
    }

    .panel .button {
        justify-self: start;
    }

    @media (max-width: 700px) {
        .timeline__item {
            grid-template-columns: minmax(0, 1fr);
        }

        .timeline__date {
            grid-row: auto;
        }
    }

    /* --- Perguntas frequentes ----------------------------------------------------------------- */

    .faq {
        border-bottom: 1px solid var(--line-1);
    }

    .faq__item {
        border-top: 1px solid var(--line-1);
    }

    .faq__item summary {
        display: grid;
        grid-template-columns: 3rem minmax(0, 1fr) auto;
        align-items: center;
        gap: var(--space-m);
        padding-block: clamp(20px, 2.2vw, 32px);
        cursor: pointer;
    }

    .faq__index {
        font-family: var(--font-mono);
        font-size: var(--step--1);
        color: var(--text-3);
    }

    .faq__question {
        font-size: var(--step-2);
        line-height: 1.15;
        transition: color var(--dur-s) ease, transform var(--dur-m) var(--ease-out);
    }

    .faq__item summary:hover .faq__question {
        transform: translateX(6px);
    }

    .faq__toggle {
        position: relative;
        display: grid;
        place-items: center;
        width: 48px;
        height: 48px;
        border: 1px solid var(--line-2);
        border-radius: 50%;
        transition: transform var(--dur-m) var(--ease-out), background-color var(--dur-m) ease, border-color var(--dur-m) ease, color var(--dur-m) ease;
    }

    .faq__toggle::before,
    .faq__toggle::after {
        content: "";
        position: absolute;
        width: 16px;
        height: 1.5px;
        border-radius: 2px;
        background: currentColor;
    }

    .faq__toggle::after {
        transform: rotate(90deg);
        transition: transform var(--dur-m) var(--ease-out);
    }

    .faq__item[open] .faq__toggle {
        border-color: transparent;
        background: var(--accent);
        color: var(--accent-ink);
        transform: rotate(180deg);
    }

    .faq__item[open] .faq__toggle::after {
        transform: rotate(0deg);
    }

    .faq__answer {
        max-width: 68ch;
        padding: 0 0 clamp(24px, 2.6vw, 40px) calc(3rem + var(--space-m));
        font-size: var(--step-0);
        line-height: 1.65;
        color: var(--text-2);
    }

    .faq__item::details-content {
        block-size: 0;
        overflow-y: clip;
        transition: block-size var(--dur-l) var(--ease-out), content-visibility var(--dur-l) allow-discrete;
    }

    .faq__item[open]::details-content {
        block-size: auto;
    }

    @media (max-width: 700px) {
        .faq__item summary {
            grid-template-columns: minmax(0, 1fr) auto;
        }

        .faq__index {
            display: none;
        }

        .faq__answer {
            padding-left: 0;
        }
    }

    /* --- Contato ---------------------------------------------------------------------------- */

    .contact {
        overflow: clip;
    }

    .contact__waves {
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        opacity: 0.45;
    }

    .contact__waves svg {
        width: 100%;
        height: 100%;
    }

    /* o deslocamento de -50% é medido na largura do próprio grupo (2 períodos) */
    .contact__waves g {
        transform-box: fill-box;
    }

    .contact__inner {
        position: relative;
        z-index: 1;
    }

    .contact__title {
        max-width: 12ch;
        margin-top: var(--space-l);
        font-size: var(--step-8);
        font-weight: 700;
        line-height: 0.92;
        letter-spacing: var(--tracking-display);
    }

    .contact__grid {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: clamp(32px, 6vw, 112px);
        margin-top: clamp(40px, 6vw, 96px);
    }

    .contact__badge {
        position: relative;
        display: grid;
        place-items: center;
        width: clamp(170px, 18vw, 240px);
        aspect-ratio: 1;
    }

    .contact__badge svg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .contact__badge text {
        font-family: var(--font-mono);
        font-size: 11.5px;
        letter-spacing: 0.24em;
        text-transform: uppercase;
        fill: var(--ink-950);
    }

    .contact__photo {
        width: 58%;
        aspect-ratio: 1;
        border-radius: 50%;
        object-fit: cover;
        box-shadow: 0 0 0 4px var(--copper-500), 0 0 0 5.5px var(--ink-950);
    }

    .contact__subtitle {
        font-size: var(--step-3);
        letter-spacing: var(--tracking-tight);
    }

    .contact__text {
        max-width: 40ch;
        margin-top: var(--space-s);
        font-size: var(--step-1);
        line-height: 1.45;
        color: var(--text-2);
    }

    .contact__actions {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-xs);
        margin-top: var(--space-l);
    }

    .contact__details {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-s);
        margin-top: clamp(48px, 7vw, 112px);
    }

    .contact__details .panel {
        border-color: var(--line-1);
        background: var(--surface-1);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        box-shadow: none;
    }

    .steps {
        display: grid;
        gap: var(--space-xs);
        counter-reset: step;
    }

    .steps li {
        display: grid;
        grid-template-columns: 2.2rem minmax(0, 1fr);
        align-items: baseline;
        counter-increment: step;
    }

    .steps li::before {
        content: counter(step, decimal-leading-zero);
        font-family: var(--font-mono);
        font-size: var(--step--1);
        color: var(--text-3);
    }

    @media (max-width: 860px) {
        .contact__grid,
        .contact__details {
            grid-template-columns: minmax(0, 1fr);
        }
    }

    /* --- Rodapé (revelado por baixo da última seção) ---------------------------------------- */

    .footer {
        position: relative;
        z-index: 0;
        margin-top: calc(var(--radius-2xl) * -1);
        padding-top: calc(var(--radius-2xl) + clamp(56px, 7vw, 112px));
        padding-bottom: var(--space-l);
    }

    @media (min-width: 900px) and (min-height: 760px) {
        .footer {
            position: sticky;
            bottom: 0;
        }
    }

    .footer__inner {
        container-type: inline-size;
    }

    .footer__grid {
        display: grid;
        grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
        gap: var(--space-xl) var(--space-l);
    }

    .footer__brand {
        display: inline-flex;
        color: var(--text-1);
    }

    .footer__brand svg {
        width: 64px;
        height: 48px;
    }

    .footer__about p {
        max-width: 34ch;
        margin-top: var(--space-m);
        color: var(--text-2);
    }

    .footer__title {
        margin-bottom: var(--space-s);
        font-family: var(--font-mono);
        font-size: var(--step--2);
        letter-spacing: var(--tracking-mono);
        text-transform: uppercase;
        color: var(--text-3);
    }

    .footer__links {
        display: grid;
        gap: var(--space-2xs);
        font-style: normal;
    }

    .footer__links a,
    .footer__links span {
        justify-self: start;
        color: var(--text-2);
        text-decoration: none;
        transition: color var(--dur-s) ease;
    }

    .footer__links a {
        background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
        transition: color var(--dur-s) ease, background-size var(--dur-m) var(--ease-out);
    }

    .footer__links a:hover {
        color: var(--text-1);
        background-size: 100% 1px;
    }

    .footer__wordmark {
        margin-block: clamp(48px, 7vw, 112px) var(--space-l);
        font-family: var(--font-sans-outline);
        font-size: calc(100cqi / 6.15);
        font-weight: 700;
        line-height: 0.82;
        letter-spacing: var(--tracking-display);
        white-space: nowrap;
        color: transparent;
        -webkit-text-stroke: 1px rgba(235, 168, 120, 0.5);
        background: var(--gradient-copper) 0 0 / 100% 100% no-repeat;
        -webkit-background-clip: text;
        background-clip: text;
        user-select: none;
    }

    .footer__wordmark .t-serif {
        font-family: var(--font-serif-outline);
        letter-spacing: 0;
    }

    .footer__bottom {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-s) var(--space-l);
        padding-top: var(--space-m);
        border-top: 1px solid var(--line-1);
        font-size: var(--step--1);
        color: var(--text-3);
    }

    .footer__up {
        display: inline-flex;
        align-items: center;
        gap: 0.5em;
        color: var(--text-2);
        text-decoration: none;
    }

    .footer__up:hover {
        color: var(--text-1);
    }

    .footer__up .icon {
        transform: rotate(-45deg);
    }

    @media (max-width: 1000px) {
        .footer__grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (max-width: 560px) {
        .footer__grid {
            grid-template-columns: minmax(0, 1fr);
        }
    }

    /* --- Página 404 -------------------------------------------------------------------------- */

    .notfound {
        display: grid;
        place-items: center;
        min-height: 100vh;
        min-height: 100svh;
        padding: calc(var(--nav-h) + 48px) var(--gutter) var(--space-3xl);
        text-align: center;
    }

    .notfound__code {
        font-family: var(--font-serif);
        font-size: clamp(9rem, 30vw, 22rem);
        font-weight: 600;
        line-height: 0.8;
        letter-spacing: -0.05em;
    }

    .notfound__title {
        margin-top: var(--space-l);
        font-size: var(--step-4);
        letter-spacing: var(--tracking-tight);
    }

    .notfound__text {
        max-width: 40ch;
        margin: var(--space-s) auto 0;
        color: var(--text-2);
    }

    .notfound__actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-xs);
        margin-top: var(--space-xl);
    }
}


/* ==========================================================================
   UTILITÁRIOS
   ========================================================================== */

@layer utilities {
    .sr-only {
        position: absolute !important;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }

    .skip-link {
        position: fixed;
        top: -80px;
        left: 16px;
        z-index: var(--z-skip);
        padding: 12px 20px;
        border-radius: var(--radius-full);
        background: var(--copper-300);
        color: var(--ink-950);
        font-weight: 600;
        text-decoration: none;
        transition: top var(--dur-s) ease;
    }

    .skip-link:focus {
        top: 16px;
    }

    .sprite {
        position: absolute;
        width: 0;
        height: 0;
        overflow: hidden;
    }
}


/* ==========================================================================
   MOVIMENTO
   Tudo que se mexe fica aqui. Quem pede "reduzir movimento" no sistema recebe
   a página estática, completa e legível.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {

    /* entrada do nome: cada letra sobe por trás de uma máscara */
    .hero .char {
        animation: char-rise 1.25s var(--ease-out) both;
        animation-delay: calc(0.25s + var(--i) * 0.055s);
    }

    .hero__top,
    .hero__lead,
    .hero__cta,
    .hero__role {
        animation: fade-up 1.1s var(--ease-out) both;
    }

    .hero__top { animation-delay: 0.2s; }
    .hero__lead { animation-delay: 0.7s; }
    .hero__cta { animation-delay: 0.85s; }
    .hero__role { animation-delay: 0.95s; }

    .hero__scroll .icon {
        animation: nudge 2.2s var(--ease-in-out) infinite;
    }

    .tag__dot::after {
        animation: ping 2.4s var(--ease-out) infinite;
    }

    .tape__track {
        animation: marquee 38s linear infinite;
    }

    .tape__band--line .tape__track {
        animation-duration: 46s;
        animation-direction: reverse;
    }

    .contact__badge svg {
        animation: spin 22s linear infinite;
    }

    .contact__waves g {
        animation: wave 14s linear infinite;
    }

    .contact__waves g:nth-child(2) {
        animation-duration: 21s;
        animation-direction: reverse;
    }

    /* ilustração de design */
    .pen__path {
        stroke-dashoffset: 1;
    }

    .pen__handle,
    .pen__anchor,
    .pen__select,
    .pen__label,
    .pen__swatch {
        opacity: 0;
    }

    .is-in .pen__path {
        animation: draw 2.4s var(--ease-in-out) 0.2s forwards;
    }

    .is-in .pen__anchor,
    .is-in .pen__handle {
        animation: pop-in 0.7s var(--ease-spring) forwards;
        animation-delay: calc(0.6s + var(--d, 0) * 0.18s);
    }

    .is-in .pen__select,
    .is-in .pen__label {
        animation: pop-in 0.8s var(--ease-out) 1.8s forwards;
    }

    .is-in .pen__swatch {
        animation: pop-in 0.6s var(--ease-spring) forwards;
        animation-delay: calc(2s + var(--d, 0) * 0.08s);
    }

    .pen__orb {
        animation: float 7s var(--ease-in-out) infinite;
    }

    .pen__cursor {
        animation: cursor-path 9s var(--ease-in-out) infinite;
    }

    .pen__spin {
        animation: spin 18s linear infinite;
    }

    /* revelação ao rolar (só com JavaScript) */
    .js [data-reveal] {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
        transition-delay: var(--delay, 0ms);
    }

    .js [data-reveal="scale"] {
        transform: translateY(40px) scale(0.96);
    }

    .js [data-reveal].is-in {
        opacity: 1;
        transform: none;
    }

    .js .is-split .split-word > span {
        transform: translateY(110%) rotate(4deg);
        transform-origin: 0 100%;
        transition: transform 1.1s var(--ease-out);
        transition-delay: calc(var(--w) * 45ms);
    }

    .js .is-split.is-in .split-word > span {
        transform: none;
    }

    /* loops ficam parados enquanto a seção está fora da tela (economiza processador e bateria) */
    .js [data-anim-scope]:not(.is-playing) :is(.tape__track, .pen__orb, .pen__cursor, .pen__spin, .contact__waves g, .contact__badge svg, .hero__scroll .icon),
    .js [data-anim-scope]:not(.is-playing) .tag__dot::after {
        animation-play-state: paused;
    }

    /* contador 1990 → 2008 */
    .js .tile--stat.is-in .stat__value {
        animation: count-up 2.4s var(--ease-out) 0.3s both;
    }

    /* efeitos ligados à rolagem (navegadores que suportam scroll-driven animations) */
    @supports (animation-timeline: scroll()) {
        .progress {
            display: block;
            animation: progress linear both;
            animation-timeline: scroll(root);
        }

        .hero__inner {
            animation: hero-sink linear both;
            animation-timeline: scroll(root);
            animation-range: 0 100vh;
        }

        .hero__media {
            animation: hero-dim linear both;
            animation-timeline: scroll(root);
            animation-range: 0 100vh;
        }

        .timeline::after {
            animation: grow-line linear both;
            animation-timeline: view();
            animation-range: entry 40% cover 70%;
        }

        .footer__wordmark {
            background-size: 0% 100%;
            animation: fill-text linear both;
            animation-timeline: view();
            animation-range: entry 10% cover 55%;
        }

        /* sem o rodapé fixo, a página acaba antes de "cover 55%": o preenchimento
           termina pouco depois do nome entrar inteiro (abaixo dele sempre sobram
           as duas margens de --space-l + o .footer__bottom) */
        @media (width < 900px), (height < 760px) {
            .footer__wordmark {
                animation-range: entry 10% contain calc(var(--space-l) * 2);
            }
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}

@keyframes char-rise {
    from {
        transform: translateY(102%) rotate(10deg);
    }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
}

@keyframes marquee {
    to {
        transform: translateX(-100%);
    }
}

@keyframes ping {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    80%,
    100% {
        transform: scale(2.8);
        opacity: 0;
    }
}

@keyframes nudge {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(4px);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-10px, 14px);
    }
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes pop-in {
    from {
        opacity: 0;
        transform: scale(0.4);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes cursor-path {
    0%,
    100% {
        transform: translate(0, 0);
    }

    30% {
        transform: translate(-150px, 70px);
    }

    55% {
        transform: translate(-60px, -40px);
    }

    80% {
        transform: translate(40px, 30px);
    }
}

@keyframes wave {
    to {
        transform: translateX(-50%);
    }
}

@keyframes count-up {
    from {
        --count: 1990;
    }

    to {
        --count: 2008;
    }
}

@keyframes progress {
    to {
        transform: scaleX(1);
    }
}

@keyframes hero-sink {
    to {
        transform: translateY(-6%) scale(0.94);
        opacity: 0.2;
    }
}

@keyframes hero-dim {
    to {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

@keyframes grow-line {
    from {
        transform: scaleY(0);
    }
}

@keyframes fill-text {
    to {
        background-size: 100% 100%;
    }
}
