/* ==========================================================================
   Samuel Mendes — home
   Folha de estilo exclusiva da página inicial.
   (style.css continua servindo obrigado.html — não mexer lá.)
   ========================================================================== */

:root {
    --bg: #111110;
    --surface: #212120;
    --ink: #e8e4dc;
    --ink-hi: #fbfaf6;
    --ink-60: #e8e4dc99;
    --ink-40: #e8e4dc66;
    --ink-20: #e8e4dc33;
    --divider: #e8e3da4d;

    --frame-w: clamp(160px, 19vw, 360px);
    --gutter: 12px;

    --fz-display: calc(var(--frame-w) * .1333);
    --fz-wordmark: calc(var(--frame-w) * .8889);
    --fz-headline: clamp(15.6px, 1.26vw, 24px);
    --fz-body: clamp(13px, 1.05vw, 20px);
    --fz-label: clamp(9px, .58vw, 11px);

    color-scheme: dark;
}

[data-theme="light"] {
    --bg: #fafafa;
    --surface: #eaeaea;
    --ink: #1a1a1a;
    --ink-hi: #000;
    --ink-60: #1a1a1a99;
    --ink-40: #1a1a1a66;
    --ink-20: #1a1a1a33;
    --divider: #1a1a1a47;
    color-scheme: light;
}

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

html {
    scrollbar-gutter: stable;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

html,
body {
    background: var(--bg);
    color: var(--ink);
    font-family: "DM Sans", Helvetica, Arial, sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video,
svg {
    display: block;
}

/* --- escalas tipográficas ------------------------------------------------ */

.text-headline {
    font-weight: 400;
    font-size: var(--fz-headline);
    letter-spacing: -.3px;
    line-height: 1.1667;
}

.text-body {
    font-weight: 400;
    font-size: var(--fz-body);
    letter-spacing: -.3px;
    line-height: 1.35;
}

.text-label {
    font-weight: 400;
    font-size: var(--fz-label);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1.4545;
}

/* sublinhado que cresce da esquerda no hover */
.hover-line {
    display: inline-block;
    position: relative;
}

.hover-line::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: 0;
    transition: transform .3s;
}

a:hover > .hover-line::after,
a.hover-line:hover::after {
    transform: scaleX(1);
}

/* --- nav ----------------------------------------------------------------- */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gutter);
    align-items: center;
    padding: 12px var(--gutter) 18px;
    /* difference mantém a nav legível sobre qualquer imagem do frame */
    mix-blend-mode: difference;
    color: #fff;
    transition: opacity .8s .1s;
}

nav.loaded {
    opacity: 1;
}

.brand {
    grid-column: 1 / 3;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
    color: inherit;
}

.brand-mark {
    width: auto;
    height: 26px;
    color: inherit;
}

.brand-name {
    font-size: var(--fz-body);
    letter-spacing: -.3px;
    white-space: nowrap;
}

.links {
    grid-column: 9 / 12;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: var(--fz-body);
    line-height: 1;
    color: inherit;
}

.contact-nav {
    grid-column: 12 / 13;
    justify-self: end;
    font-size: var(--fz-body);
    line-height: 1;
    color: inherit;
}

.links a.active .lbl::after,
.contact-nav.active .lbl::after {
    transform: scaleX(1);
}

.links a.active:hover .lbl::after,
.contact-nav.active:hover .lbl::after {
    animation: nav-underline-redraw .6s;
}

@keyframes nav-underline-redraw {
    0% {
        transform-origin: 100%;
        transform: scaleX(1);
    }

    50% {
        transform-origin: 100%;
        transform: scaleX(0);
    }

    50.01% {
        transform-origin: 0;
        transform: scaleX(0);
    }

    100% {
        transform-origin: 0;
        transform: scaleX(1);
    }
}

/* seletor de idioma */
.lang {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}

.lang button {
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    opacity: .45;
    transition: opacity .3s;
}

.lang button.on,
.lang button:hover {
    opacity: 1;
}

.lang button:focus-visible {
    outline: 1px solid;
    outline-offset: 3px;
}

.lang__sep {
    opacity: .35;
}

.theme-toggle {
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: opacity .3s;
}

.theme-toggle:hover {
    opacity: .6;
}

.theme-toggle:focus-visible {
    outline: 1px solid;
    outline-offset: 3px;
}

/* --- cabeçalho / intro --------------------------------------------------- */

.head {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gutter);
    align-items: end;
    min-height: 50vh;
    padding: 96px var(--gutter) 240px;
}

/* mesmo tratamento do retrato da bio: moldura de 1px com respiro interno.
   altura presa ao viewport para o cabeçalho nunca invadir o frame central. */
.head-portrait {
    grid-column: 1 / 4;
    justify-self: start;
    align-self: end;
    height: min(180px, 22vh);
    aspect-ratio: 1;
    border: 1px solid var(--ink);
    padding: var(--gutter);
    opacity: 0;
    transition: opacity .9s .2s;
}

.head-portrait.loaded {
    opacity: 1;
}

.head-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.head-text {
    grid-column: 7 / 12;
    align-self: end;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* linha da Reignon: destacada do parágrafo */
.intro-note {
    margin-top: 16px;
    color: var(--ink-60);
    opacity: 0;
    transition: opacity .8s .4s;
}

.head-text.loaded .intro-note {
    opacity: 1;
}

.intro-link {
    color: inherit;
    transition: color .3s;
}

.intro-link:hover {
    color: var(--ink-hi);
}

.intro {
    max-width: 100%;
    color: var(--ink);
    font-size: calc(var(--fz-body) * 1.1);
    text-wrap: pretty;
    transition: opacity .8s .1s;
}

.intro.loaded {
    opacity: 1;
}

.intro .reveal-line {
    display: block;
    overflow: hidden;
    margin-bottom: -.12em;
    padding-bottom: .12em;
}

.intro .reveal-inner {
    display: inline-block;
    transform: translateY(110%);
    transition: transform .9s cubic-bezier(.16, 1, .3, 1);
    will-change: transform;
}

.intro.in .reveal-inner {
    transform: translateY(0);
}

/* --- palco: frame fixo + linhas de projeto ------------------------------- */

.stage {
    position: relative;
}

.frame {
    position: fixed;
    top: 50vh;
    top: 50svh;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(var(--frame-w) + 2 * var(--gutter));
    height: calc(var(--frame-w) + 2 * var(--gutter));
    z-index: 20;
    border: 1px solid var(--ink);
    background: none;
    pointer-events: none;
    transition: opacity .9s .15s, transform .9s cubic-bezier(.16, 1, .3, 1) .15s;
}

.frame.loaded {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.fixed-media {
    position: fixed;
    top: 50vh;
    top: 50svh;
    left: 50%;
    transform: translate(-50%, -50%);
    width: var(--frame-w);
    height: var(--frame-w);
    z-index: 10;
    clip-path: inset(50% 0);
    pointer-events: none;
    transition: opacity 1.4s;
    will-change: clip-path, opacity;
    background: var(--surface);
}

.fixed-media.seen {
    opacity: 1;
}

.fixed-media img,
.fixed-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.projects {
    display: flex;
    flex-direction: column;
    gap: var(--gutter);
}

.project {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gutter);
    align-items: stretch;
    height: var(--frame-w);
    padding: 0 var(--gutter);
    background: var(--surface);
}

.project-link {
    display: block;
    color: inherit;
}

.anchor {
    scroll-margin-top: calc(50vh - var(--frame-w) / 2);
    scroll-margin-top: calc(50svh - var(--frame-w) / 2);
}

.pcol {
    display: flex;
    height: 100%;
    transition: opacity .4s;
}

.project.dim .pcol {
    opacity: .6;
}

.left {
    grid-column: 1 / 5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--gutter);
    align-content: end;
    align-items: end;
    padding: 12px 0;
}

.right {
    grid-column: 9 / 13;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 12px 0;
}

.ptitle,
.psub {
    min-width: 0;
    color: var(--ink);
}

.ptitle-wrap {
    grid-column: 1 / -1;
    white-space: pre-wrap;
}

.pmeta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    width: 100%;
    color: var(--ink);
}

.pnum {
    text-align: right;
}

/* revelação linha a linha */
.wipe {
    overflow: hidden;
}

.prole.wipe,
.pnum.wipe,
.contact-label.wipe,
.contact-link.wipe {
    display: inline-block;
    vertical-align: bottom;
}

.wipe-inner {
    display: inline-block;
    opacity: 0;
    transform: translateY(120%);
    transition: transform .8s cubic-bezier(.16, 1, .3, 1), opacity .8s;
    will-change: transform;
}

.project.in .wipe-inner {
    opacity: 1;
    transform: translateY(0);
}

/* --- bloco de contato ---------------------------------------------------- */

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin: 0;
    list-style: none;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.contact-label,
.contact-link {
    color: var(--ink-hi);
}

.contact-link {
    text-align: right;
}

.contact-link .wipe-inner {
    position: relative;
}

.contact-link .wipe-inner::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: 0;
    transition: transform .3s;
    will-change: transform;
}

.contact-link:hover .wipe-inner::after {
    transform: scaleX(1);
}

/* --- página bio ---------------------------------------------------------- */

.bio {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gutter);
    padding: 0 var(--gutter);
}

.bio-head {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gutter);
    align-items: end;
    padding: 128px 0 96px;
}

.bio-portrait {
    grid-column: 1 / 4;
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid var(--ink);
    padding: var(--gutter);
}

.bio-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio-id {
    grid-column: 5 / 12;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bio-role {
    color: var(--ink-60);
}

.bio-note {
    color: var(--ink-40);
}

.bio-section {
    grid-column: 1 / -1;
    scroll-margin-top: 96px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gutter);
    padding-bottom: 72px;
}

.bio-section__label {
    grid-column: 1 / 4;
    color: var(--ink-40);
    padding-top: 14px;
}

.bio-list {
    grid-column: 5 / 13;
    margin: 0;
    list-style: none;
}

.bio-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--ink-20);
    color: var(--ink);
}

.bio-list li:last-child .bio-row {
    border-bottom: 1px solid var(--ink-20);
}

.bio-row__value {
    color: var(--ink-60);
    text-align: right;
    transition: color .3s;
}

a.bio-row:hover .bio-row__value {
    color: var(--ink-hi);
}

.bio-row__value::after {
    content: " →";
    white-space: nowrap;
}

/* entrada suave, escalonada */
.js .bio-reveal {
    opacity: 0;
    transform: translateY(14px);
}

.bio-reveal {
    transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
}

.js .bio-reveal.in {
    opacity: 1;
    transform: none;
}

@media (max-width: 720px) {
    .bio-head {
        padding: 96px 0 56px;
        row-gap: 20px;
    }

    .bio-portrait {
        grid-column: 1 / 6;
    }

    .bio-id,
    .bio-section__label,
    .bio-list {
        grid-column: 1 / -1;
    }

    .bio-section {
        row-gap: 10px;
        padding-bottom: 48px;
    }

    .bio-section__label {
        padding-top: 0;
    }
}

/* --- página recursos ----------------------------------------------------- */

.res {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gutter);
    padding: 0 var(--gutter);
}

.res-head {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gutter);
    align-items: end;
    padding: 128px 0 72px;
}

.res-title {
    grid-column: 1 / 5;
}

.res-intro {
    grid-column: 7 / 12;
    color: var(--ink-60);
    text-wrap: pretty;
}

/* produto pago em destaque — o único bloco comercial da página */
.product-feature {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    min-height: 540px;
    margin-bottom: 88px;
    border: 1px solid var(--ink-20);
    background: #080808;
    color: #f6f4ef;
    overflow: hidden;
}

.product-feature__visual {
    position: relative;
    min-height: 100%;
    background: #000;
    overflow: hidden;
}

.product-feature__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent 78%, rgba(8, 8, 8, .34) 100%);
}

.product-feature__visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-feature__buy {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gutter);
    align-items: start;
    padding: clamp(26px, 2.35vw, 44px);
    border-left: 1px solid #ffffff24;
}

.product-feature__eyebrow {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #ffffff80;
}

.product-feature__status {
    color: #ff4a1c;
}

.product-feature__platforms {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 50%;
    max-width: 340px;
    margin-top: 26px;
}

.product-feature__platforms img {
    width: 100%;
    height: auto;
}

.product-feature__heading {
    grid-column: 1 / 6;
    grid-row: 3;
    margin-top: clamp(28px, 2.5vw, 46px);
}

.product-feature__title {
    color: #fff;
    font-size: clamp(34px, 3.4vw, 62px);
    font-weight: 500;
    letter-spacing: -.06em;
    line-height: .92;
}

.product-feature__kicker {
    margin-top: 10px;
    color: #ffffffa6;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.product-feature__lead {
    grid-column: 1 / 6;
    grid-row: 4;
    max-width: 48ch;
    margin-top: 20px;
    color: #ffffffa6;
}

.product-feature__tools {
    grid-column: 6 / 13;
    grid-row: 3 / span 3;
    margin-top: 22px;
    border-top: 1px solid #ffffff24;
    list-style: none;
}

.product-feature__tools li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px solid #ffffff24;
}

.product-feature__tools small {
    color: #ffffff70;
    font: inherit;
    font-size: .76em;
    text-align: right;
}

.product-feature__tools .product-feature__surprise {
    color: #ff6b45;
}

.product-feature__benefits {
    grid-column: 1 / 6;
    grid-row: 5;
    display: grid;
    gap: 9px;
    margin-top: 20px;
    color: #ffffffc7;
    list-style: none;
}

.product-feature__benefits li {
    position: relative;
    padding-left: 20px;
}

.product-feature__benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ff4a1c;
}

.product-feature__checkout {
    grid-column: 6 / 13;
    grid-row: 6;
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr);
    align-items: stretch;
    gap: 12px;
    margin-top: 22px;
}

.product-feature__price {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 132px;
}

.product-feature__was {
    color: #ffffff66;
    text-decoration: line-through;
}

.product-feature__price strong {
    color: #fff;
    font-size: clamp(28px, 2.3vw, 42px);
    font-weight: 500;
    letter-spacing: -.05em;
    line-height: 1;
}

.product-feature__cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 62px;
    padding: 0 20px;
    background: #ff3b10;
    color: #fff;
    font-size: var(--fz-body);
    transition: background .25s, color .25s;
}

.product-feature__cta:hover {
    background: #fff;
    color: #080808;
}

.product-feature__cta:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.product-feature__deadline {
    grid-column: 6 / 13;
    grid-row: 7;
    margin-top: 14px;
    color: #ffffff70;
    text-transform: none;
    letter-spacing: .6px;
}

.res-library-head {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gutter);
    align-items: baseline;
    padding-bottom: 24px;
}

.res-library-head h2 {
    grid-column: 1 / 5;
}

.res-library-head p {
    grid-column: 7 / 12;
    color: var(--ink-40);
}

/* tabs */
.res-tabs {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ink-20);
}

.res-tab {
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-size: var(--fz-body);
    letter-spacing: -.3px;
    color: var(--ink-40);
    cursor: pointer;
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    transition: color .3s;
}

.res-tab:hover {
    color: var(--ink);
}

.res-tab.on {
    color: var(--ink-hi);
}

.res-tab.on .res-tab__lbl {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.res-tab__n {
    font-size: var(--fz-label);
    letter-spacing: .5px;
    color: var(--ink-40);
}

.res-tab.empty {
    opacity: .45;
}

.res-tab:focus-visible {
    outline: 1px solid;
    outline-offset: 4px;
}

/* itens */
.res-list {
    grid-column: 1 / -1;
    padding-bottom: 96px;
}

.res-item {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gutter);
    padding: 32px 0;
    border-bottom: 1px solid var(--ink-20);
}

.res-item[hidden] {
    display: none;
}

.res-item__id {
    grid-column: 1 / 5;
}

.res-item__sub {
    color: var(--ink-40);
    margin-top: 4px;
}

/* miniatura da ferramenta — 4:3, discreta, logo abaixo do nome */
.res-thumb {
    margin-top: 14px;
    width: min(100%, 180px);
    aspect-ratio: 4 / 3;
    border: 1px solid var(--ink-20);
    overflow: hidden;
    background: var(--surface);
}

.res-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.res-item__body {
    grid-column: 5 / 13;
}

.res-item__desc {
    color: var(--ink-60);
    text-wrap: pretty;
    max-width: 62ch;
}

.res-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin: 18px 0 0;
    list-style: none;
    color: var(--ink-40);
}

.res-meta li {
    border: 1px solid var(--ink-20);
    padding: 4px 9px;
}

.res-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 22px;
    font-size: var(--fz-body);
    letter-spacing: -.3px;
}

.res-action {
    color: var(--ink-hi);
    transition: color .3s;
}

.res-action::after {
    content: " →";
}

.res-action--muted {
    color: var(--ink-40);
}

.res-action--muted:hover {
    color: var(--ink-hi);
}

.res-empty {
    color: var(--ink-40);
    padding: 40px 0 0;
}

@media (max-width: 720px) {

    .res-head {
        padding: 96px 0 40px;
        row-gap: 14px;
    }

    .res-title,
    .res-intro,
    .res-library-head h2,
    .res-library-head p,
    .res-item__id,
    .res-item__body {
        grid-column: 1 / -1;
    }

    .product-feature {
        grid-template-columns: 1fr;
        min-height: 0;
        margin-bottom: 72px;
    }

    .product-feature__visual {
        aspect-ratio: 1355 / 915;
        min-height: 0;
    }

    .product-feature__visual::after {
        background: linear-gradient(180deg, transparent 65%, rgba(8, 8, 8, .65) 100%);
    }

    .product-feature__buy {
        display: flex;
        flex-direction: column;
        padding: 26px 20px 30px;
        border-left: 0;
    }

    .product-feature__heading {
        margin-top: 38px;
    }

    .product-feature__tools li {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .product-feature__tools small {
        text-align: left;
    }

    .product-feature__checkout {
        grid-template-columns: 1fr;
    }

    .product-feature__cta {
        min-height: 58px;
    }

    .res-library-head {
        row-gap: 5px;
    }

    .res-tabs {
        gap: 14px;
    }

    .res-item {
        row-gap: 14px;
        padding: 26px 0;
    }

    .res-actions {
        gap: 14px;
        flex-direction: column;
    }

    .res-list {
        padding-bottom: 56px;
    }
}

/* --- modal de cadastro (gate dos downloads) ------------------------------ */

.gate {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--gutter);
}

.gate[open],
.gate.on {
    display: flex;
}

.gate__backdrop {
    position: absolute;
    inset: 0;
    background: var(--bg);
    opacity: .92;
}

.gate__panel {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 100%;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--ink-20);
    padding: 32px;
}

.gate__close {
    position: absolute;
    top: 14px;
    right: 14px;
    appearance: none;
    background: none;
    border: 0;
    padding: 4px;
    color: var(--ink-40);
    cursor: pointer;
    line-height: 0;
    transition: color .3s;
}

.gate__close:hover {
    color: var(--ink-hi);
}

.gate__title {
    color: var(--ink-hi);
}

.gate__sub {
    color: var(--ink-60);
    margin-top: 8px;
    text-wrap: pretty;
}

.gate__form {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.gate-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gate-field label {
    color: var(--ink-40);
}

.gate-field input {
    appearance: none;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--ink-20);
    border-radius: 0;
    padding: 7px 0;
    font-family: inherit;
    font-size: var(--fz-body);
    letter-spacing: -.3px;
    color: var(--ink);
    transition: border-color .3s;
}

.gate-field input:focus {
    outline: 0;
    border-bottom-color: var(--ink-hi);
}

.gate-field input::placeholder {
    color: var(--ink-20);
}

.gate-field.invalid input {
    border-bottom-color: #e0644f;
}

.gate-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--ink-60);
    cursor: pointer;
}

.gate-consent input {
    appearance: none;
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    margin-top: 2px;
    border: 1px solid var(--ink-40);
    background: none;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.gate-consent input:checked {
    background: var(--ink);
    border-color: var(--ink);
}

.gate-consent.invalid input {
    border-color: #e0644f;
}

.gate-consent a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gate__submit {
    appearance: none;
    background: none;
    border: 1px solid var(--ink);
    color: var(--ink-hi);
    padding: 13px 18px;
    font-family: inherit;
    font-size: var(--fz-body);
    letter-spacing: -.3px;
    cursor: pointer;
    transition: background .3s, color .3s;
}

.gate__submit:hover {
    background: var(--ink);
    color: var(--bg);
}

.gate__submit[disabled] {
    opacity: .5;
    cursor: default;
}

.gate__note {
    color: var(--ink-40);
    text-align: center;
}

/* contribuição voluntária */
.gate-contrib__wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.gate-contrib__prefix {
    font-family: inherit;
    font-size: var(--fz-body);
    letter-spacing: -.3px;
    color: var(--ink-60);
    flex: 0 0 auto;
    padding-bottom: 7px;
}

.gate-contrib__wrap input[type="number"] {
    appearance: none;
    -moz-appearance: textfield;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--ink-20);
    border-radius: 0;
    padding: 7px 0;
    font-family: inherit;
    font-size: var(--fz-body);
    letter-spacing: -.3px;
    color: var(--ink);
    transition: border-color .3s;
    width: 80px;
    flex: 0 0 auto;
}

.gate-contrib__wrap input[type="number"]::-webkit-inner-spin-button,
.gate-contrib__wrap input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.gate-contrib__wrap input[type="number"]:focus {
    outline: 0;
    border-bottom-color: var(--ink-hi);
}

.gate-contrib__range {
    color: var(--ink-40);
    white-space: nowrap;
    padding-bottom: 7px;
}

/* modal de confirmação */
.gate__panel--confirm {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.confirm-icon {
    width: 56px;
    height: 56px;
    border: 1.5px solid var(--ink-20);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-hi);
    margin-bottom: 6px;
    animation: confirmPop .5s cubic-bezier(.16, 1, .3, 1);
}

.confirm-icon svg {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: confirmDraw .5s .25s cubic-bezier(.16, 1, .3, 1) forwards;
}

@keyframes confirmPop {
    0% { transform: scale(.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

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

.gate__panel--confirm .gate__submit {
    margin-top: 10px;
    width: 100%;
}

/* --- rodapé -------------------------------------------------------------- */

footer {
    padding: 120px var(--gutter) 0;
}

.ft-bottom {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 10px;
    color: var(--ink-60);
}

.wordmark {
    width: 100%;
    height: auto;
    color: var(--ink);
}

/* --- responsivo ---------------------------------------------------------- */

@media (max-width: 720px) {
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }

    .brand-name {
        display: none;
    }

    .links {
        gap: 12px;
    }

    .head-portrait {
        grid-column: 1 / -1;
        height: 150px;
        margin-bottom: 24px;
    }

    .head-text {
        grid-column: 1 / -1;
    }

    .frame,
    .fixed-media {
        left: calc(100% - var(--frame-w) / 2);
    }

    .project {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        align-content: center;
        row-gap: 16px;
    }

    .pcol {
        height: auto;
    }

    .left {
        grid-area: 1 / 1;
        grid-template-columns: 1fr;
        align-content: start;
        row-gap: 3px;
        padding: 0;
    }

    .psub {
        color: var(--ink-40);
    }

    .right {
        grid-area: 2 / 1;
        justify-content: flex-start;
        padding: 0;
    }

    .pnum.wipe {
        display: none;
    }

    .anchor {
        height: auto;
        padding: 40px var(--gutter);
        grid-template-columns: 1fr;
        row-gap: 16px;
    }

    .anchor .left,
    .anchor .right {
        grid-column: 1 / -1;
    }

    .anchor .left {
        row-gap: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {

    nav,
    .frame,
    .intro,
    .hover-line::after,
    .wipe-inner,
    .fixed-media,
    .contact-link .wipe-inner::after {
        transition: none;
    }

    .frame {
        transform: translate(-50%, -50%) scale(1);
    }

    .links a.active:hover .lbl::after {
        animation: none;
    }
}

.ft-sep {
    opacity: .4;
    padding: 0 2px;
}

/* --- política do plugin -------------------------------------------------- */
.legal-page .res-head {
    padding-bottom: 96px;
}

.legal-page__date {
    margin-top: 12px;
    color: var(--ink-40);
}

.legal-copy {
    display: grid;
    gap: 18px;
    color: var(--ink-60);
}

.legal-copy ul {
    display: grid;
    gap: 8px;
    padding-left: 1.2em;
}

.legal-copy a {
    color: var(--ink-hi);
}

.legal-copy code {
    padding: 2px 5px;
    border: 1px solid var(--ink-20);
    color: var(--ink-hi);
    font: inherit;
    font-size: .9em;
}
