/* =========================================================
   A MONTANHA ESQUECIDA — EXPERIÊNCIA PROFISSIONAL V6 · RESPIRA
   Ghost 6.52 + Casper
   ========================================================= */

:root {
    color-scheme: dark;

    --ame-void: #030405;
    --ame-bg: #050607;
    --ame-bg-soft: #080a0b;
    --ame-panel: #0b0e0f;
    --ame-panel-high: #111514;
    --ame-panel-warm: #151611;

    --ame-ink: #eeeade;
    --ame-text: #d9d5cb;
    --ame-text-soft: #aaa9a1;
    --ame-text-faint: #747a74;

    --ame-olive: #879878;
    --ame-olive-bright: #a8b596;
    --ame-gold: #b7a574;
    --ame-violet: #5f566c;

    --ame-border: rgba(221, 214, 192, 0.12);
    --ame-border-soft: rgba(221, 214, 192, 0.075);
    --ame-border-strong: rgba(151, 169, 132, 0.38);

    --ame-shadow-sm: 0 14px 40px rgba(0, 0, 0, 0.30);
    --ame-shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
    --ame-shadow-deep: 0 45px 130px rgba(0, 0, 0, 0.68);

    --ame-serif: "Iowan Old Style", "Palatino Linotype",
        "Book Antiqua", Palatino, Georgia, serif;
    --ame-sans: Inter, ui-sans-serif, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;

    --ame-reader-size: 2rem;
    --ame-reader-leading: 1.74;
    --ame-hero-shift: 0px;
}

html {
    overflow-x: clip;
    background: var(--ame-bg);
    scroll-behavior: smooth;
}

body {
    overflow-x: clip;
    color: var(--ame-text-soft);
    background:
        radial-gradient(
            circle at 50% -8%,
            rgba(99, 116, 85, 0.14),
            transparent 36rem
        ),
        radial-gradient(
            circle at 7% 38%,
            rgba(87, 76, 101, 0.055),
            transparent 28rem
        ),
        linear-gradient(
            180deg,
            var(--ame-bg) 0%,
            var(--ame-bg-soft) 47%,
            var(--ame-void) 100%
        ) !important;
}

body::before {
    content: "";
    position: fixed;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    opacity: 0.20;
    background-image:
        repeating-linear-gradient(
            112deg,
            transparent 0,
            transparent 7px,
            rgba(255, 255, 255, 0.008) 8px
        );
}

::selection {
    color: #fff;
    background: rgba(135, 152, 120, 0.46);
}

:where(a, button, input, textarea, select):focus-visible {
    outline: 2px solid var(--ame-olive-bright);
    outline-offset: 4px;
}

/*
 * Oculta somente o gatilho flutuante do Portal.
 * A raiz permanece disponível para login, cadastro e conta de membro.
 */
iframe.gh-portal-triggerbtn-iframe,
iframe[title="portal-trigger"] {
    display: none !important;
}

/* =========================================================
   PORTAL DA HOME
   O Casper atual usa .site-header-content, não .site-header.
   ========================================================= */

body.home-template .site-header-content {
    position: relative;
    isolation: isolate;
    min-height: clamp(680px, 86svh, 920px);
    overflow: hidden;
    padding-inline: 0;
    background: #020304;
}

body.home-template .site-header-cover {
    position: absolute;
    z-index: 0;
    inset: -2.2% 0 auto;
    width: 100%;
    height: 106%;
    object-fit: cover;
    object-position: center 43%;
    filter:
        brightness(0.63)
        saturate(0.80)
        contrast(1.12);
    transform:
        translate3d(0, var(--ame-hero-shift), 0)
        scale(1.035);
    transform-origin: center top;
}

body.home-template .site-header-content::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(1, 2, 3, 0.20) 0%,
            rgba(1, 2, 3, 0.02) 24%,
            rgba(1, 2, 3, 0.18) 57%,
            rgba(5, 6, 7, 0.96) 100%
        ),
        radial-gradient(
            ellipse at 50% 42%,
            transparent 0%,
            transparent 29%,
            rgba(0, 0, 0, 0.22) 69%,
            rgba(0, 0, 0, 0.66) 100%
        );
}

body.home-template .site-header-content::after {
    content: "";
    position: absolute;
    z-index: 1;
    right: -12%;
    bottom: -11%;
    left: -12%;
    height: 34%;
    pointer-events: none;
    opacity: 0.62;
    filter: blur(26px);
    background:
        radial-gradient(
            ellipse at center,
            rgba(184, 194, 177, 0.13),
            transparent 66%
        );
    animation: ame-mist 15s ease-in-out infinite alternate;
}

@keyframes ame-mist {
    from {
        opacity: 0.44;
        transform: translateX(-1.2%) scale(1);
    }

    to {
        opacity: 0.72;
        transform: translateX(1.2%) scale(1.035);
    }
}

.ame-hero-caption {
    position: absolute;
    z-index: 4;
    right: max(7vw, 28px);
    bottom: clamp(42px, 7vh, 78px);
    left: max(7vw, 28px);
    width: min(620px, calc(100% - 56px));
    color: var(--ame-ink);
}

.ame-hero-caption::before {
    content: "";
    display: block;
    width: 72px;
    height: 1px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--ame-gold), transparent);
}

.ame-eyebrow {
    margin: 0 0 12px;
    color: rgba(205, 205, 184, 0.72);
    font-family: var(--ame-sans);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.ame-hero-caption h2 {
    margin: 0;
    color: #f0ece1;
    font-family: var(--ame-serif);
    font-size: clamp(3.2rem, 4.9vw, 6rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.035em;
    text-wrap: balance;
    text-shadow: 0 10px 42px rgba(0, 0, 0, 0.74);
}

.ame-hero-caption p:not(.ame-eyebrow) {
    max-width: 530px;
    margin: 18px 0 0;
    color: rgba(229, 226, 216, 0.78);
    font-family: var(--ame-serif);
    font-size: clamp(1.6rem, 1.55vw, 1.95rem);
    line-height: 1.55;
}

.ame-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
    margin-top: 24px;
}

.ame-hero-action {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    margin-top: 0;
    padding: 0 20px;
    color: #f3efe4 !important;
    font-family: var(--ame-sans);
    font-size: 1.32rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-decoration: none !important;
    border: 1px solid rgba(210, 204, 181, 0.24);
    border-radius: 999px;
    background: rgba(5, 7, 7, 0.62);
    box-shadow:
        0 16px 44px rgba(0, 0, 0, 0.34),
        inset 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.ame-hero-secondary {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 4px;
    color: rgba(229, 226, 216, 0.72) !important;
    font-family: var(--ame-sans);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(183, 165, 116, 0.32);
    transition:
        color 180ms ease,
        border-color 180ms ease;
}

.ame-hero-secondary:hover {
    color: #fff !important;
    border-color: var(--ame-gold);
}

.ame-hero-action::after {
    content: "→";
    color: var(--ame-gold);
    font-size: 1.7rem;
    transition: transform 180ms ease;
}

.ame-hero-action:hover {
    transform: translateY(-2px);
    border-color: var(--ame-border-strong);
    background: rgba(13, 16, 15, 0.82);
}

.ame-hero-action:hover::after {
    transform: translateX(3px);
}

/* =========================================================
   NAVEGAÇÃO
   ========================================================= */

html:not(.gh-head-open)
body.home-template.has-cover .gh-head {
    top: clamp(112px, 12.4vw, 158px) !important;
    right: 0 !important;
    left: 0 !important;
    width: calc(100% - 32px) !important;
    max-width: 1180px;
    height: 66px;
    margin-inline: auto;
    color: rgba(245, 242, 233, 0.94) !important;
    border: 1px solid rgba(222, 216, 195, 0.16);
    border-radius: 18px;
    background: rgba(4, 5, 6, 0.76) !important;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.40),
        inset 0 1px rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(18px) saturate(112%);
    -webkit-backdrop-filter: blur(18px) saturate(112%);
}

html:not(.gh-head-open)
body.home-template.has-cover .gh-head-inner {
    padding-inline: 22px;
}

body:not(.home-template) .gh-head {
    color: var(--ame-text) !important;
    border-bottom: 1px solid var(--ame-border);
    background: rgba(4, 5, 6, 0.94) !important;
    box-shadow: 0 12px 42px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.gh-head-menu .nav a {
    position: relative;
    color: inherit;
    opacity: 0.78;
    transition: color 180ms ease, opacity 180ms ease;
}

.gh-head-menu .nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -6px;
    left: 0;
    height: 1px;
    opacity: 0;
    transform: scaleX(0.35);
    background: linear-gradient(
        90deg,
        transparent,
        var(--ame-gold),
        transparent
    );
    transition: opacity 180ms ease, transform 180ms ease;
}

.gh-head-menu .nav a:hover,
.gh-head-menu .nav a.ame-current {
    color: #fff;
    opacity: 1;
}

.gh-head-menu .nav a:hover::after,
.gh-head-menu .nav a.ame-current::after {
    opacity: 0.82;
    transform: scaleX(1);
}

.gh-head-logo {
    color: #f2eee5 !important;
    letter-spacing: 0.08em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.66);
}

.gh-head-button {
    color: #090b09 !important;
    border: 1px solid rgba(255, 255, 255, 0.17);
    background: linear-gradient(
        135deg,
        #beb697,
        #8b9d7c
    ) !important;
    box-shadow:
        0 9px 30px rgba(0, 0, 0, 0.30),
        inset 0 1px rgba(255, 255, 255, 0.25);
    transition: transform 180ms ease, filter 180ms ease;
}

.gh-head-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

/* =========================================================
   ABERTURA E FEED DE CAPÍTULOS
   ========================================================= */

.site-main {
    position: relative;
    background:
        linear-gradient(
            180deg,
            rgba(4, 6, 7, 0.98),
            rgba(7, 9, 10, 0.98) 45%,
            rgba(4, 5, 6, 0.98)
        );
}

.ame-feed-heading {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 24px;
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
    padding-top: clamp(64px, 7vw, 100px);
}

.ame-feed-heading h2 {
    margin: 0;
    color: var(--ame-ink);
    font-family: var(--ame-serif);
    font-size: clamp(3.4rem, 4.4vw, 5.6rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.035em;
}

.ame-feed-count {
    margin-bottom: 7px;
    color: var(--ame-text-faint);
    font-family: var(--ame-sans);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.post-feed {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    gap: 30px !important;
    padding-top: 34px !important;
    padding-bottom: max(9vmin, 88px);
}

.post-feed > .post-card {
    grid-column: span 6 !important;
}

.post-feed > .post-card:first-child {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.56fr) minmax(320px, 0.74fr);
    min-height: 470px;
}

.post-feed > .post-card:last-child:nth-child(even) {
    grid-column: 4 / span 6 !important;
}

.post-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--ame-border);
    border-radius: 22px;
    background:
        linear-gradient(
            145deg,
            rgba(18, 22, 21, 0.98),
            rgba(8, 10, 11, 0.99)
        );
    box-shadow:
        var(--ame-shadow-sm),
        inset 0 1px rgba(255, 255, 255, 0.026);
    transition:
        transform 260ms cubic-bezier(.2, .7, .2, 1),
        border-color 260ms ease,
        box-shadow 260ms ease;
}

.post-card::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: -35%;
    right: -26%;
    width: 58%;
    aspect-ratio: 1;
    opacity: 0;
    pointer-events: none;
    border-radius: 50%;
    background: rgba(124, 145, 106, 0.09);
    filter: blur(42px);
    transition: opacity 300ms ease;
}

.post-card:hover {
    transform: translateY(-7px);
    border-color: var(--ame-border-strong);
    box-shadow:
        0 34px 92px rgba(0, 0, 0, 0.53),
        0 0 48px rgba(105, 124, 91, 0.055),
        inset 0 1px rgba(255, 255, 255, 0.035);
}

.post-card:hover::before {
    opacity: 1;
}

.post-card[data-ame-chapter]::after {
    content: attr(data-ame-chapter);
    position: absolute;
    z-index: 0;
    right: 15px;
    bottom: -12px;
    color: rgba(222, 217, 198, 0.04);
    font-family: var(--ame-serif);
    font-size: clamp(7rem, 10vw, 12rem);
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.post-card-image-link {
    position: relative;
    z-index: 1;
    display: block;
    overflow: hidden;
    min-height: 0;
    margin: 0;
    aspect-ratio: 16 / 9;
    border-radius: 15px;
    background: #030405;
}

.post-feed > .post-card:first-child .post-card-image-link {
    height: 100%;
    min-height: 446px;
    aspect-ratio: auto;
}

.post-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1 !important;
    filter:
        brightness(0.80)
        saturate(0.84)
        contrast(1.08);
    transition:
        transform 750ms cubic-bezier(.2, .7, .2, 1),
        filter 350ms ease;
}

.post-card:hover .post-card-image {
    transform: scale(1.045);
    filter:
        brightness(0.94)
        saturate(0.96)
        contrast(1.09);
}

.post-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 25px 10px 11px;
}

.post-feed > .post-card:first-child .post-card-content {
    justify-content: center;
    padding: clamp(30px, 4vw, 54px);
}

.post-card-content-link {
    color: var(--ame-text);
}

.post-card-title {
    color: #ece8dd !important;
    font-family: var(--ame-serif);
    font-size: clamp(2.45rem, 2.5vw, 3.25rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.028em;
    text-wrap: balance;
}

.post-feed > .post-card:first-child .post-card-title {
    font-size: clamp(3.4rem, 4.1vw, 5.2rem);
    line-height: 1.02;
}

.post-card-excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 14px;
    color: var(--ame-text-soft) !important;
    font-family: var(--ame-serif);
    font-size: 1.65rem;
    line-height: 1.62;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.post-feed > .post-card:first-child .post-card-excerpt {
    font-size: 1.75rem;
    -webkit-line-clamp: 5;
}

.post-card-meta,
.post-card-tags {
    margin-top: auto;
    padding-top: 18px;
    color: #858a83 !important;
    font-family: var(--ame-sans);
    letter-spacing: 0.025em;
}

.post-card-meta-date,
.byline-meta-date,
.byline-reading-time .bull,
.post-card-meta > * + *::before {
    display: none !important;
}

/* =========================================================
   CAPÍTULOS
   ========================================================= */

.post-template .article,
.page-template .article {
    padding-top: clamp(64px, 7.5vw, 104px);
}

.article-header {
    padding-bottom: clamp(44px, 5.6vw, 76px);
}

.ame-chapter-kicker {
    grid-column: main-start / main-end;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--ame-gold);
    font-family: var(--ame-sans);
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.ame-chapter-kicker::before {
    content: "";
    width: 34px;
    height: 1px;
    background: currentColor;
    opacity: 0.64;
}

.article-title {
    color: #efeade !important;
    font-family: var(--ame-serif);
    font-size: clamp(4rem, 5.4vw, 6.8rem);
    font-weight: 600;
    line-height: 1.01;
    letter-spacing: -0.04em;
    text-shadow: 0 14px 44px rgba(0, 0, 0, 0.38);
    text-wrap: balance;
}

.article-excerpt {
    color: #aaa9a2 !important;
    font-family: var(--ame-serif);
}

.article-byline {
    padding-top: 9px;
    color: #959991;
}

.article-byline-meta .author-name a {
    color: #dedbd3 !important;
}

.gh-button-share {
    color: #cac7bd !important;
    border-color: var(--ame-border) !important;
    border-radius: 999px;
    background: rgba(10, 12, 13, 0.82) !important;
}

.gh-button-share:hover {
    color: #fff !important;
    border-color: var(--ame-border-strong) !important;
}

.post-template .article-image {
    width: min(1120px, calc(100% - 48px));
    min-height: 260px;
    margin-top: clamp(42px, 5vw, 70px);
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid rgba(222, 216, 194, 0.13);
    border-radius: 24px;
    background: #050607;
    box-shadow:
        var(--ame-shadow-deep),
        0 0 0 1px rgba(255, 255, 255, 0.018);
}

.post-template .article-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 0;
    border-radius: 0;
    opacity: 1 !important;
    filter:
        brightness(0.86)
        saturate(0.90)
        contrast(1.07);
}

.gh-content {
    color: var(--ame-text);
    font-size: var(--ame-reader-size);
    line-height: var(--ame-reader-leading);
}

.gh-content p {
    margin-top: 0;
    margin-bottom: 1.12em;
}

.gh-content p.ame-empty {
    display: none;
}

.gh-content p.ame-short {
    margin-bottom: 0.70em;
}

.gh-content p.ame-beat {
    margin-bottom: 0.36em;
}

.gh-content p.ame-dialogue {
    margin-bottom: 0.62em;
}

.gh-content p.ame-short + p:not(.ame-short):not(.ame-beat),
.gh-content p.ame-beat + p:not(.ame-short):not(.ame-beat) {
    margin-top: 1.08em;
}

.gh-content strong {
    color: #f0ece3;
}

.gh-content em {
    color: #dfd9cd;
}

.gh-content a {
    color: #bdc5a7;
    text-decoration-color: rgba(189, 197, 167, 0.38);
    text-underline-offset: 0.18em;
}

.gh-content h2,
.gh-content h3,
.gh-content h4 {
    color: var(--ame-ink);
    font-family: var(--ame-serif);
    font-weight: 600;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.gh-content h2 {
    margin-top: 2.1em;
    font-size: clamp(3rem, 4vw, 4.5rem);
}

.gh-content blockquote {
    margin-block: 2.2em;
    padding: 0.25em 0 0.25em 1.5em;
    color: #cbc7bc;
    font-family: var(--ame-serif);
    border-left: 2px solid var(--ame-olive);
}

.gh-content hr {
    width: min(240px, 58%);
    height: 1px;
    margin-block: 3.6em;
    border: 0;
    background: linear-gradient(
        90deg,
        transparent,
        var(--ame-gold),
        transparent
    );
    opacity: 0.48;
}

.gh-content :where(.kg-image-card, .kg-gallery-card) img {
    border-radius: 18px;
    filter: brightness(0.90) saturate(0.92) contrast(1.05);
    box-shadow: var(--ame-shadow);
}

.gh-content figcaption {
    color: var(--ame-text-faint);
    font-family: var(--ame-sans);
    font-size: 1.25rem;
}

/* =========================================================
   PÁGINAS DE LORE
   ========================================================= */

.page-template .article-header {
    padding-bottom: clamp(32px, 4vw, 56px);
}

.page-template .article-title {
    max-width: 940px;
}

.page-template .article-image {
    display: grid;
    place-items: center;
    width: min(960px, calc(100% - 64px));
    min-height: 260px;
    max-height: min(72svh, 760px);
    margin-top: clamp(34px, 4.6vw, 62px);
    margin-inline: auto;
    padding: 12px;
    overflow: hidden;
    border: 1px solid var(--ame-border);
    border-radius: 24px;
    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(112, 126, 98, 0.08),
            transparent 58%
        ),
        #070809;
    box-shadow: var(--ame-shadow-deep);
}

/*
 * O JavaScript classifica a proporção da imagem de capa das páginas.
 * Retratos e brasões de clãs deixam de dominar a tela no desktop,
 * enquanto mapas e panoramas preservam espaço para leitura visual.
 */
.page-template .article-image.ame-image-portrait {
    width: min(660px, calc(100% - 64px));
    max-height: min(68svh, 720px);
}

.page-template .article-image.ame-image-square {
    width: min(760px, calc(100% - 64px));
    max-height: min(70svh, 740px);
}

.page-template .article-image.ame-image-wide {
    width: min(1040px, calc(100% - 64px));
    max-height: min(72svh, 720px);
}

.page-template .article-image img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(calc(72svh - 24px), 736px);
    object-fit: contain;
    border: 0;
    border-radius: 14px;
    opacity: 1 !important;
    filter: brightness(0.91) saturate(0.91) contrast(1.05);
}

.page-template .article-image.ame-image-portrait img {
    max-height: min(calc(68svh - 24px), 696px);
}

.page-template .article-image.ame-image-square img {
    max-height: min(calc(70svh - 24px), 716px);
}

.page-template .article-image.ame-image-wide img {
    max-height: min(calc(72svh - 24px), 696px);
}

.page-template .gh-content {
    font-size: 1.92rem;
    line-height: 1.76;
}

.page-template .gh-content p {
    margin-bottom: 1em;
}

.page-template .gh-content p.ame-lore-label {
    margin-top: 2.2em;
    margin-bottom: 0.8em;
    color: var(--ame-gold);
    font-family: var(--ame-sans);
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.page-template .gh-content p.ame-lore-entry {
    margin-bottom: 0.7em;
    padding: 14px 18px;
    color: #d5d1c8;
    border-left: 2px solid rgba(135, 152, 120, 0.62);
    border-radius: 0 10px 10px 0;
    background: linear-gradient(
        90deg,
        rgba(126, 144, 108, 0.08),
        transparent 82%
    );
}

/* =========================================================
   CONTINUAÇÃO, COMENTÁRIOS E RODAPÉ
   ========================================================= */

.read-more-wrap {
    border-top: 1px solid var(--ame-border);
    background: linear-gradient(
        180deg,
        rgba(5, 6, 7, 0),
        rgba(3, 4, 5, 0.97)
    );
}

.read-more-wrap::before {
    content: "CONTINUAR A HISTÓRIA";
    display: block;
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
    padding-top: 52px;
    color: var(--ame-gold);
    font-family: var(--ame-sans);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.article-comments {
    margin-top: clamp(68px, 8vw, 110px);
    padding-top: 42px;
    border-top: 1px solid var(--ame-border);
}

#ghost-comments-root,
#ghost-comments-root iframe,
iframe[title="comments-frame"] {
    color-scheme: dark !important;
    background: transparent !important;
}

#ghost-comments-root iframe,
iframe[title="comments-frame"] {
    overflow: hidden;
    border-radius: 16px;
}

.site-footer {
    color: #777c76 !important;
    border-top: 1px solid var(--ame-border);
    background: #020304 !important;
}

.site-footer a {
    color: #aaa9a2 !important;
}

.site-footer a[href*="ghost.org"],
.site-footer a[href="https://x.com/ghost"] {
    display: none !important;
}

.ame-footer-mark {
    color: rgba(170, 171, 161, 0.72);
    font-family: var(--ame-serif);
    font-size: 1.35rem;
    letter-spacing: 0.035em;
}

/* =========================================================
   LEITURA: PROGRESSO, REVELAÇÃO E RETORNO
   ========================================================= */

.ame-reading-progress {
    position: fixed;
    z-index: 4000001;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(
        90deg,
        var(--ame-olive),
        var(--ame-gold)
    );
    box-shadow: 0 0 18px rgba(146, 158, 115, 0.44);
}

.ame-js .ame-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 620ms ease var(--ame-delay, 0ms),
        transform 620ms cubic-bezier(.2, .7, .2, 1)
        var(--ame-delay, 0ms);
}

.ame-js .ame-reveal.ame-visible {
    opacity: 1;
    transform: translateY(0);
}

.ame-to-top {
    position: fixed;
    z-index: 1000;
    bottom: 24px;
    left: 24px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #d8d4c9;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(9px);
    border: 1px solid var(--ame-border);
    border-radius: 50%;
    background: rgba(7, 9, 9, 0.84);
    box-shadow: var(--ame-shadow-sm);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition:
        opacity 180ms ease,
        transform 180ms ease,
        border-color 180ms ease;
}

.ame-to-top.ame-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.ame-to-top:hover {
    border-color: var(--ame-border-strong);
}

/* =========================================================
   RESPONSIVIDADE
   ========================================================= */

@media (max-width: 960px) {
    .post-feed > .post-card:first-child {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .post-feed > .post-card:first-child .post-card-image-link {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .post-feed > .post-card:first-child .post-card-content {
        padding: 28px 14px 16px;
    }
}

@media (max-width: 767px) {
    :root {
        --ame-reader-size: 1.78rem;
        --ame-reader-leading: 1.73;
    }

    body.home-template .site-header-content {
        min-height: 620px;
    }

    body.home-template .site-header-cover {
        inset: 0;
        height: 102%;
        object-position: center top;
        transform: scale(1.02);
    }

    html:not(.gh-head-open)
    body.home-template.has-cover .gh-head {
        top: 16px !important;
        width: calc(100% - 20px) !important;
        height: 58px;
        border-radius: 14px;
    }

    html:not(.gh-head-open)
    body.home-template.has-cover .gh-head-inner {
        padding-inline: 14px;
    }

    .ame-hero-caption {
        right: 22px;
        bottom: 38px;
        left: 22px;
        width: auto;
    }

    .ame-hero-caption::before {
        margin-bottom: 14px;
    }

    .ame-hero-caption h2 {
        max-width: 12ch;
        font-size: clamp(3.5rem, 11vw, 5.1rem);
    }

    .ame-hero-caption p:not(.ame-eyebrow) {
        max-width: 35ch;
        font-size: 1.58rem;
    }

    .ame-hero-actions {
        align-items: flex-start;
        gap: 10px 16px;
        margin-top: 21px;
    }

    .ame-hero-secondary {
        min-height: 40px;
        font-size: 1.15rem;
    }

    .ame-feed-heading {
        grid-template-columns: 1fr;
        gap: 12px;
        width: calc(100% - 28px);
        padding-top: 56px;
    }

    .ame-feed-count {
        margin: 0;
    }

    .post-feed {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        padding-top: 28px !important;
    }

    .post-feed > .post-card,
    .post-feed > .post-card:first-child,
    .post-feed > .post-card:last-child:nth-child(even) {
        grid-column: 1 / -1 !important;
    }

    .post-card {
        padding: 9px;
        border-radius: 18px;
    }

    .post-card-content,
    .post-feed > .post-card:first-child .post-card-content {
        padding: 20px 8px 10px;
    }

    .post-card-title,
    .post-feed > .post-card:first-child .post-card-title {
        font-size: clamp(2.7rem, 8.2vw, 3.7rem);
    }

    .post-card:hover {
        transform: none;
    }

    .post-template .article,
    .page-template .article {
        padding-top: 52px;
    }

    .article-title {
        font-size: clamp(3.5rem, 11.5vw, 5rem);
    }

    .post-template .article-image,
    .page-template .article-image,
    .page-template .article-image.ame-image-portrait,
    .page-template .article-image.ame-image-square,
    .page-template .article-image.ame-image-wide {
        width: calc(100% - 24px);
        min-height: 0;
        border-radius: 16px;
    }

    .page-template .article-image {
        padding: 7px;
        max-height: 68svh;
    }

    .page-template .article-image img,
    .page-template .article-image.ame-image-portrait img,
    .page-template .article-image.ame-image-square img,
    .page-template .article-image.ame-image-wide img {
        max-height: calc(68svh - 14px);
    }

    .gh-content p {
        margin-bottom: 1em;
    }

    .page-template .gh-content {
        font-size: 1.76rem;
    }

    .read-more-wrap::before {
        width: calc(100% - 28px);
    }

    .ame-to-top {
        bottom: 16px;
        left: 16px;
        width: 40px;
        height: 40px;
    }
}

@media (hover: none) {
    .post-card:hover,
    .ame-hero-action:hover,
    .gh-head-button:hover {
        transform: none;
    }
}

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

    body.home-template .site-header-content::after {
        animation: none;
    }

    .post-card,
    .post-card-image,
    .ame-reveal,
    .ame-hero-action,
    .ame-to-top {
        transition: none !important;
    }

    .ame-js .ame-reveal {
        opacity: 1;
        transform: none;
    }
}
  /* =========================================================
   BOTÃO DE IDIOMA EN
   Link público para a página da tag English
   ========================================================= */

.gh-head-menu .nav a[href*="/tag/english/"],
.gh-head-menu .nav-en a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 46px;
    min-height: 34px;
    padding: 0 14px;

    color: #eeeade !important;
    opacity: 1 !important;

    font-family: var(--ame-sans);
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.13em;

    border: 1px solid rgba(183, 165, 116, 0.38);
    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            rgba(22, 25, 22, 0.94),
            rgba(8, 10, 10, 0.96)
        );

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.32),
        inset 0 1px rgba(255, 255, 255, 0.045);

    transition:
        transform 180ms ease,
        color 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.gh-head-menu .nav a[href*="/tag/english/"]::after,
.gh-head-menu .nav-en a::after {
    display: none !important;
}

.gh-head-menu .nav a[href*="/tag/english/"]:hover,
.gh-head-menu .nav-en a:hover {
    color: #fff !important;

    border-color: rgba(183, 165, 116, 0.72);

    background:
        linear-gradient(
            135deg,
            rgba(44, 44, 34, 0.98),
            rgba(13, 16, 14, 0.98)
        );

    box-shadow:
        0 14px 38px rgba(0, 0, 0, 0.42),
        0 0 24px rgba(183, 165, 116, 0.08);

    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .gh-head-menu .nav a[href*="/tag/english/"],
    .gh-head-menu .nav-en a {
        min-width: 52px;
        min-height: 38px;
        margin-top: 8px;
    }
}

/* ===== BLOCO SEGUINTE ===== */

/* =========================================================
   A MONTANHA RESPIRA — INTEGRAÇÃO GHOST V1
   O Ghost permanece como leitor visível; o pacote publicado
   em /respira/ executa o motor sonoro em segundo plano.
   ========================================================= */

.ame-respira-entry {
    position: relative;
    isolation: isolate;
    grid-column: main-start / main-end;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    width: 100%;
    max-width: 860px;
    margin: 0 auto clamp(38px, 5vw, 66px);
    padding: 20px 22px;
    overflow: hidden;
    color: var(--ame-text);
    border: 1px solid rgba(183, 165, 116, 0.23);
    border-radius: 18px;
    background:
        radial-gradient(
            circle at 92% 18%,
            rgba(135, 152, 120, 0.12),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            rgba(16, 19, 18, 0.98),
            rgba(7, 9, 10, 0.99)
        );
    box-shadow:
        0 22px 62px rgba(0, 0, 0, 0.36),
        inset 0 1px rgba(255, 255, 255, 0.035);
}

.ame-respira-entry::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -48px;
    right: -32px;
    width: 180px;
    height: 180px;
    opacity: 0.26;
    border-radius: 50%;
    background: rgba(183, 165, 116, 0.16);
    filter: blur(54px);
    transition: opacity 320ms ease, transform 500ms ease;
}

.ame-respira-entry[data-state="active"] {
    border-color: rgba(168, 181, 150, 0.48);
    box-shadow:
        0 24px 72px rgba(0, 0, 0, 0.42),
        0 0 34px rgba(135, 152, 120, 0.07),
        inset 0 1px rgba(255, 255, 255, 0.045);
}

.ame-respira-entry[data-state="active"]::before {
    opacity: 0.58;
    transform: scale(1.12);
}

.ame-respira-copy {
    min-width: 0;
}

.ame-respira-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 7px;
    color: var(--ame-gold);
    font-family: var(--ame-sans);
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0.19em;
    text-transform: uppercase;
}

.ame-respira-eyebrow::before {
    content: "";
    flex: 0 0 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.62;
}

.ame-respira-title {
    display: block;
    margin: 0;
    color: #ece8dd;
    font-family: var(--ame-serif);
    font-size: clamp(2rem, 2.4vw, 2.7rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.ame-respira-status {
    display: block;
    margin-top: 7px;
    color: var(--ame-text-soft);
    font-family: var(--ame-sans);
    font-size: 1.2rem;
    line-height: 1.45;
}

.ame-respira-entry[data-state="error"] .ame-respira-status {
    color: #c6a796;
}

.ame-respira-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.ame-respira-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 176px;
    min-height: 44px;
    padding: 0 18px;
    color: #0a0c0a;
    font-family: var(--ame-sans);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.025em;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    background: linear-gradient(135deg, #beb697, #8b9d7c);
    box-shadow:
        0 12px 34px rgba(0, 0, 0, 0.34),
        inset 0 1px rgba(255, 255, 255, 0.25);
    transition: transform 180ms ease, filter 180ms ease, opacity 180ms ease;
}

.ame-respira-toggle::before {
    content: "♪";
    font-size: 1.55rem;
    line-height: 1;
}

.ame-respira-entry[data-state="active"] .ame-respira-toggle::before {
    content: "Ⅱ";
    font-size: 1.2rem;
    letter-spacing: -0.14em;
}

.ame-respira-toggle:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.ame-respira-toggle:disabled {
    cursor: wait;
    opacity: 0.56;
}

.ame-respira-volume {
    display: grid;
    grid-template-columns: auto 86px;
    align-items: center;
    gap: 9px;
    color: var(--ame-text-faint);
    font-family: var(--ame-sans);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ame-respira-volume input {
    width: 86px;
    accent-color: var(--ame-gold);
}

.ame-respira-engine {
    position: fixed !important;
    z-index: -2147483647 !important;
    top: 0 !important;
    left: -220vw !important;
    width: 100vw !important;
    height: 100vh !important;
    opacity: 0.001 !important;
    pointer-events: none !important;
    border: 0 !important;
    background: transparent !important;
}

@media (max-width: 767px) {
    .ame-respira-entry {
        grid-template-columns: 1fr;
        gap: 17px;
        width: calc(100% - 24px);
        margin-bottom: 38px;
        padding: 18px;
        border-radius: 16px;
    }

    .ame-respira-controls {
        justify-content: flex-start;
    }

    .ame-respira-toggle {
        flex: 1 1 210px;
        min-width: 0;
    }
}

@media (hover: none) {
    .ame-respira-toggle:hover:not(:disabled) {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ame-respira-entry::before,
    .ame-respira-toggle {
        transition: none !important;
    }
}

/* ===== BLOCO SEGUINTE ===== */

body.me-intro-open {
    overflow: hidden;
}

#me-intro {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;

    background:
        radial-gradient(
            circle at 50% 38%,
            rgba(112, 90, 55, 0.14),
            transparent 42%
        ),
        linear-gradient(
            to bottom,
            rgba(3, 4, 6, 0.82),
            rgba(0, 0, 0, 0.97)
        );

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    opacity: 1;
    visibility: visible;

    transition:
        opacity 1.4s ease,
        visibility 1.4s ease;
}

#me-intro.me-intro-closing {
    opacity: 0;
    visibility: hidden;
}

.me-intro-content {
    width: min(760px, 100%);
    text-align: center;
    color: #eee7db;
    transform: translateY(-3vh);
    animation: meAwaken 2.4s ease both;
}

.me-intro-symbol {
    margin-bottom: 22px;
    color: rgba(208, 183, 134, 0.8);
    font-size: 34px;
    text-shadow:
        0 0 24px
        rgba(185, 145, 75, 0.34);
}

.me-intro-title {
    margin: 0;
    color: #eee7db;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size:
        clamp(38px, 8vw, 82px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    text-shadow:
        0 2px 20px
        rgba(0, 0, 0, 0.95),
        0 0 45px
        rgba(151, 118, 68, 0.18);
}

.me-intro-line {
    width: 88px;
    height: 1px;
    margin: 28px auto;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(216, 192, 146, 0.8),
            transparent
        );
}

.me-intro-subtitle {
    margin: 0 0 42px;
    color:
        rgba(238, 231, 219, 0.76);
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size:
        clamp(15px, 3.7vw, 20px);
    font-style: italic;
    letter-spacing: 0.07em;
}

.me-intro-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.me-enter-button,
.me-silent-button {
    cursor: pointer;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.me-enter-button {
    min-width: 260px;
    padding: 15px 30px;

    color: #f1e9db;
    font-size: 14px;

    border:
        1px solid
        rgba(215, 190, 140, 0.7);
    border-radius: 2px;

    background:
        rgba(18, 17, 15, 0.55);

    box-shadow:
        inset 0 0 20px
        rgba(180, 143, 79, 0.05),
        0 0 30px
        rgba(0, 0, 0, 0.45);

    transition:
        background 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        transform 0.35s ease;
}

.me-enter-button:hover,
.me-enter-button:focus {
    background:
        rgba(135, 102, 55, 0.2);

    border-color:
        rgba(235, 211, 163, 0.95);

    box-shadow:
        0 0 24px
        rgba(174, 135, 73, 0.2);

    transform: translateY(-2px);
}

.me-silent-button {
    padding: 8px 14px;
    color:
        rgba(238, 231, 219, 0.48);
    font-size: 11px;
    border: 0;
    background: transparent;
}

.me-silent-button:hover,
.me-silent-button:focus {
    color:
        rgba(238, 231, 219, 0.85);
}

#me-audio-controls {
    position: fixed;
    z-index: 99990;
    right:
        max(
            18px,
            env(safe-area-inset-right)
        );
    bottom:
        max(
            18px,
            env(safe-area-inset-bottom)
        );

    display: none;
    align-items: center;
    justify-content: flex-end;
    gap: 0;

    min-height: 46px;

    border: 1px solid rgba(216, 192, 146, 0.32);
    border-radius: 999px;
    background: rgba(5, 6, 8, 0.86);
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#me-audio-controls.me-visible {
    display: flex;
}

#me-sound-toggle {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;
    padding: 0;

    color: #e8dcc7;
    font-size: 18px;
    cursor: pointer;

    border: 0;
    border-radius: 50%;

    background: transparent;
}

.me-volume-wrap {
    display: flex;
    align-items: center;
    width: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
        width 220ms ease,
        opacity 180ms ease;
}

#me-audio-controls:hover .me-volume-wrap,
#me-audio-controls:focus-within .me-volume-wrap {
    width: 102px;
    opacity: 1;
    pointer-events: auto;
}

#me-volume-control {
    width: 82px;
    height: 28px;
    margin-left: 14px;
    cursor: pointer;
    accent-color: #b7a574;
}

.me-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@keyframes meAwaken {
    from {
        opacity: 0;
        transform:
            translateY(12px);
        filter: blur(5px);
    }

    to {
        opacity: 1;
        transform:
            translateY(-3vh);
        filter: blur(0);
    }
}

@media (max-width: 600px) {
    .me-intro-title {
        letter-spacing: 0.045em;
    }

    .me-enter-button {
        min-width: 230px;
    }

    #me-audio-controls:hover .me-volume-wrap,
    #me-audio-controls:focus-within .me-volume-wrap {
        width: 94px;
    }

    #me-volume-control {
        width: 74px;
        margin-left: 12px;
    }
}

@media (hover: none) {
    #me-audio-controls.me-playing .me-volume-wrap {
        width: 94px;
        opacity: 1;
        pointer-events: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    #me-intro,
    .me-intro-content,
    .me-enter-button,
    .me-volume-wrap {
        animation: none !important;
        transition: none !important;
    }
}

/* ===== BLOCO SEGUINTE ===== */

/* =========================================================
   A MONTANHA ESQUECIDA - AUDIO PROFISSIONAL V5
   Estados visuais complementares do botao musical.
   ========================================================= */

#me-sound-toggle.me-paused {
    color: rgba(232, 220, 199, 0.58);
    opacity: 0.82;
}

#me-audio-controls.me-paused {
    border-color: rgba(216, 192, 146, 0.24);
}

#me-sound-toggle.me-playing {
    color: #f1e9db;
    opacity: 1;
}

#me-audio-controls.me-playing {
    border-color: rgba(216, 192, 146, 0.72);
    box-shadow:
        0 4px 22px rgba(0, 0, 0, 0.55),
        0 0 24px rgba(174, 135, 73, 0.12);
}

#me-sound-toggle.me-loading {
    cursor: wait;
    opacity: 0.52;
}

#me-audio-controls.me-loading {
    cursor: wait;
    opacity: 0.72;
}

#me-sound-toggle:disabled {
    pointer-events: none;
}

/* =========================================================
   WORDMARK — A MONTANHA ESQUECIDA
   ========================================================= */

.gh-head-logo.no-image {
    font-family:
        "Cormorant Garamond",
        var(--ame-serif) !important;

    font-size: clamp(2.7rem, 3.4vw, 3.6rem);
    font-weight: 600;
    line-height: 0.95;

    letter-spacing: -0.018em !important;

    color: #eee8d7 !important;

    text-shadow:
        0 2px 18px rgba(0, 0, 0, 0.72),
        0 0 28px rgba(183, 165, 116, 0.06);

    font-kerning: normal;
    font-variant-ligatures: common-ligatures;
}

@media (max-width: 767px) {
    .gh-head-logo.no-image {
        font-size: clamp(2.45rem, 7vw, 3rem);
        letter-spacing: -0.025em !important;
        white-space: nowrap;
    }
}

/* =========================================================
   MENU MOBILE MINIMALISTA — EN + CRIAR CONTA
   ========================================================= */

@media (max-width: 767px) {

    /* EN */
    .gh-head-open #gh-head .gh-head-menu {
        position: absolute !important;
        top: 46%;
        left: 50%;
        right: auto;
        bottom: auto;

        width: auto;
        margin: 0 !important;

        transform: translate(-50%, -50%) !important;

        visibility: visible;
        opacity: 1;
    }

    /* bloco de conta logo abaixo */
    .gh-head-open #gh-head .gh-head-actions {
        position: absolute !important;

        top: 59%;
        left: 50%;
        right: auto !important;
        bottom: auto !important;

        width: auto !important;
        margin: 0;
        padding: 0 !important;

        transform: translateX(-50%);

        display: flex !important;
        align-items: center;
        justify-content: center;

        background: transparent !important;
    }

    /* remove Login */
    .gh-head-open #gh-head .gh-head-link {
        display: none !important;
    }

    /* Criar conta */
    .gh-head-open #gh-head .gh-head-button {
        width: auto !important;
        min-width: 170px;

        padding: 12px 24px;

        opacity: 1 !important;
        transform: none !important;

        font-size: 1.7rem;
        white-space: nowrap;
    }
}

/* =========================================================
   HERO MOBILE — RESPIRACAO VISUAL
   menos volume, mesma hierarquia
   ========================================================= */

@media (max-width: 767px) {

    /* FANTASIA SOMBRIA BRASILEIRA */
    .ame-hero-caption .ame-eyebrow {
        font-size: .98rem;
        letter-spacing: .20em;
        color: rgba(190, 184, 163, .56);
    }

    /* A Montanha não é um refúgio. */
    .ame-hero-caption h2 {
        max-width: 12ch;
        font-size: clamp(3.15rem, 9.7vw, 4.55rem);
        line-height: 1.01;
        color: rgba(240, 236, 225, .91);
    }

    /* É um organismo vivo... */
    .ame-hero-caption p:not(.ame-eyebrow) {
        max-width: 35ch;
        margin-top: 15px;
        font-size: 1.43rem;
        line-height: 1.52;
        color: rgba(211, 207, 195, .60);
    }

    .ame-hero-actions {
        margin-top: 19px;
    }
}

/* =========================================================
   PORTAL — PRESENCA DA MONTANHA
   ========================================================= */

#me-intro {
    overflow: hidden;
    isolation: isolate;
    background: #020303 !important;
}

/*
 * A própria Montanha existe atrás da escuridão.
 * Presença, não fotografia explícita.
 */
#me-intro::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: -3%;

    pointer-events: none;

    background-image:
        url("/content/images/size/w1200/2026/08/4aacc2e8-77d8-4254-81db-731d28b9aa0d-1.png");

    background-repeat: no-repeat;
    background-position: center 14%;
    background-size: cover;

    opacity: .40;

    filter:
        brightness(.68)
        saturate(.60)
        contrast(1.10);

    transform: scale(1.025);

    animation:
        meIntroMountainBreath
        10s
        ease-in-out
        infinite
        alternate;
}

/* escuridão volta a engolir as bordas e a parte inferior */
#me-intro::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            ellipse at 50% 34%,
            rgba(2,3,3,.02) 0%,
            rgba(2,3,3,.22) 42%,
            rgba(2,3,3,.72) 78%,
            rgba(2,3,3,.96) 100%
        ),
        linear-gradient(
            180deg,
            rgba(2,3,3,.20) 0%,
            rgba(2,3,3,.28) 38%,
            rgba(2,3,3,.76) 75%,
            #020303 100%
        );
}

.me-intro-content {
    position: relative;
    z-index: 2;
}

/* um pouco menos cartaz, um pouco mais inscrição */
.me-intro-title {
    font-size: clamp(36px, 7.4vw, 76px);
    letter-spacing: .055em;
}

/* aproxima título, linha e frase */
.me-intro-line {
    margin-top: 24px;
    margin-bottom: 25px;
}

.me-intro-subtitle {
    margin-bottom: 35px;
    color: rgba(238, 231, 219, .68);
}

/* botão mais silencioso em repouso */
.me-enter-button {
    border-color: rgba(216, 192, 146, .42);
    background: rgba(135, 102, 55, .035);
    box-shadow:
        inset 0 0 28px rgba(174, 135, 73, .025);
}

.me-enter-button:hover,
.me-enter-button:focus {
    border-color: rgba(235, 211, 163, .82);
    background: rgba(135, 102, 55, .14);
    box-shadow:
        0 0 26px rgba(174, 135, 73, .10),
        inset 0 0 30px rgba(174, 135, 73, .045);
}

@keyframes meIntroMountainBreath {
    0% {
        opacity: .36;
        transform: scale(1.02);
    }

    100% {
        opacity: .44;
        transform: scale(1.035);
    }
}

@media (max-width: 600px) {

    .me-intro-symbol {
        margin-bottom: 18px;
    }

    .me-intro-title {
        font-size: clamp(34px, 9.7vw, 42px);
        letter-spacing: .05em;
    }

    .me-intro-line {
        margin-top: 21px;
        margin-bottom: 22px;
    }

    .me-intro-subtitle {
        margin-bottom: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #me-intro::before {
        animation: none !important;
    }
}
