/* ==========================================================================
   Lorenzo Bei — Tempos Sombrios
   Estrutura, molduras e animações no padrão do design system Hanzo
   (pílulas flutuantes, cartões inclinados, moldura escura com carrosséis,
   revelações ao rolar), vestidas de pergaminho, ouro e brasa.
   ========================================================================== */

/* Fontes servidas pelo próprio site (SIL Open Font License: assets/fonts/ofl-*.txt).
   Cada estilo tem dois arquivos: "latin" e "latin-ext"; o navegador só baixa o segundo
   quando o texto precisa dele (polonês). */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500 600; font-display: swap; src: url(../fonts/cormorant-garamond-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500 600; font-display: swap; src: url(../fonts/cormorant-garamond-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-garamond-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-garamond-italic-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(../fonts/eb-garamond-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(../fonts/eb-garamond-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/eb-garamond-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/eb-garamond-italic-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 500 700; font-display: swap; src: url(../fonts/cinzel-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 500 700; font-display: swap; src: url(../fonts/cinzel-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --night: #0b0a10;
  --night-2: #15121b;
  --ink: #1b1611;
  --parch: #efe3c8;
  --parch-2: #e2d2ae;
  --gold: #d9a441;
  --gold-2: #f3d17c;
  --ember: #ff5a1f;
  --blood: #c2261a;
  --mist: rgba(239, 227, 200, .62);
  --faint: rgba(239, 227, 200, .34);
  --hair: rgba(239, 227, 200, .16);
  --ring: rgba(217, 164, 65, .2);
  --pad: 120px;
  --display: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --serif: "EB Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --caps: "Cinzel", "Perpetua Titling MT", "Trajan Pro", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.44, 0, .56, 1);
}
@media (max-width: 1439.98px) { :root { --pad: 48px; } }
@media (max-width: 809.98px) { :root { --pad: 20px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--night); }
/* fora do português, o texto só aparece depois de traduzido (o script do <head> liga e o site.js desliga) */
html.i18n-wait body { visibility: hidden; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
body {
  margin: 0; background: var(--night); color: var(--parch);
  font: 400 19px/1.55 var(--serif); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--ink); }
[id] { scroll-margin-top: 96px; }

.wrap { width: min(1200px, 100% - var(--pad) * 2); margin-inline: auto; position: relative; }
.dim { color: var(--faint); }
.mist { color: var(--mist); }

/* -------------------------------------------------------------------------- campo da página */
.field { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(90% 60% at 85% -5%, rgba(120, 44, 28, .34) 0%, transparent 60%),
    radial-gradient(70% 50% at 0% 100%, rgba(60, 44, 110, .22) 0%, transparent 60%),
    linear-gradient(225deg, #1a1520 0%, #0b0a10 55%, #08070b 100%); }
.field i { position: absolute; top: -30%; height: 160%; transform: skewX(-32deg); opacity: .9;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 150, .05) 45%, rgba(255, 214, 150, .02) 60%, transparent);
  animation: ray 16s var(--ease-io) infinite alternate; }
.field i:nth-child(1) { left: 6%; width: 9vw; }
.field i:nth-child(2) { left: 24%; width: 15vw; animation-delay: -4s; }
.field i:nth-child(3) { left: 48%; width: 6vw; animation-delay: -8s; }
.field i:nth-child(4) { left: 62%; width: 18vw; animation-delay: -2s; }
.field i:nth-child(5) { left: 88%; width: 10vw; animation-delay: -11s; }
@keyframes ray { from { opacity: .35; translate: -2vw 0; } to { opacity: 1; translate: 2vw 0; } }
.field::after, .footer-field::after { content: ""; position: absolute; inset: 0; opacity: .09; mix-blend-mode: overlay;
  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='2' 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"); }

/* -------------------------------------------------------------------------- superfícies */
/* pílula de pergaminho: totalmente arredondada, anel translúcido e sombra longa */
.pill { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; color: var(--ink);
  background: linear-gradient(180deg, #f6ecd6, #e9dcbd); border: 1px solid #fbf4e3;
  box-shadow: 0 0 0 6px var(--ring), 8px 12px 16px rgba(0, 0, 0, .35); }
/* cartão de pergaminho: raio 16, anel de 8px, sombra 12/16/16 */
.card { position: relative; border-radius: 16px; color: var(--ink);
  background: linear-gradient(170deg, #f6ecd6 0%, #eadcbc 70%, #e2d2ae 100%);
  box-shadow: 0 0 0 8px var(--ring), 12px 16px 16px rgba(0, 0, 0, .4);
  rotate: var(--tilt, 0deg); transition: rotate .6s var(--ease), scale .6s var(--ease); }
.card:hover { rotate: 0deg; scale: 1.015; }
/* cartão de vidro fosco */
.glass { border-radius: 24px; background: rgba(239, 227, 200, .07);
  -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: 0 0 0 8px rgba(239, 227, 200, .07), inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 60px rgba(0, 0, 0, .35); }
/* moldura escura para imagens */
.frame { position: relative; border-radius: 24px; background: #121017; overflow: hidden;
  box-shadow: 0 0 0 8px rgba(239, 227, 200, .13), 0 40px 80px rgba(0, 0, 0, .5); }
.frame::before { content: ""; position: absolute; inset: 0 0 auto; height: 90px; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 16, 23, .9), transparent); }
.frame::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; z-index: 2; pointer-events: none;
  background: linear-gradient(0deg, rgba(18, 16, 23, .9), transparent); }

/* -------------------------------------------------------------------------- tipografia */
.display { font: 500 clamp(46px, 7.4vw, 112px)/.96 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.title { font: 500 clamp(36px, 4.6vw, 66px)/1.02 var(--display); letter-spacing: -.03em; text-align: center; text-wrap: balance; margin-top: 14px; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 18px;
  font: italic 500 22px/1.2 var(--display); color: var(--mist); }
.eyebrow::before, .eyebrow::after { content: ""; width: 56px; height: 1px; }
.eyebrow::before { background: linear-gradient(90deg, transparent, var(--gold)); }
.eyebrow::after { background: linear-gradient(270deg, transparent, var(--gold)); }
.section-lede { max-width: 34em; margin: 22px auto 0; text-align: center; color: var(--mist); text-wrap: balance; }
.section { position: relative; padding: clamp(88px, 12vw, 168px) 0 0; }

/* -------------------------------------------------------------------------- botões */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 56px; padding: 0 28px;
  border-radius: 999px; color: #1c1206; font: 600 14px/1 var(--caps); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  background: linear-gradient(180deg, #f6d98a 0%, #dba848 48%, #b97f22 100%);
  box-shadow: 0 0 0 8px var(--ring), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -10px 16px rgba(120, 70, 10, .35), 0 14px 26px rgba(0, 0, 0, .45);
  transition: box-shadow .35s var(--ease), translate .35s var(--ease), filter .35s; cursor: pointer; }
.btn svg { width: 20px; height: 20px; opacity: .55; stroke-width: 2; transition: translate .35s var(--ease), opacity .35s; }
.btn:hover { translate: 0 -2px; filter: brightness(1.06);
  box-shadow: 0 0 0 10px rgba(217, 164, 65, .28), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -10px 16px rgba(120, 70, 10, .35), 0 20px 34px rgba(0, 0, 0, .5); }
.btn:hover svg { translate: 4px 0; opacity: 1; }
.btn-wide { width: 100%; }
.btn-ghost { color: var(--parch); background: rgba(239, 227, 200, .06);
  box-shadow: 0 0 0 1px var(--faint) inset, 0 0 0 8px rgba(239, 227, 200, .05); }
.btn-ghost:hover { box-shadow: 0 0 0 1px var(--gold) inset, 0 0 0 10px rgba(217, 164, 65, .14); }
.btn-ink { box-shadow: 0 0 0 8px rgba(255, 255, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -10px 16px rgba(120, 70, 10, .35), 0 14px 26px rgba(0, 0, 0, .45); }
.btn[aria-disabled="true"] { cursor: default; filter: saturate(.35) brightness(.8); }
.btn[aria-disabled="true"]:hover { translate: none; }
.btn[aria-disabled="true"] svg { display: none; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--ember); border-bottom: 1px solid transparent; transition: border-color .3s; }
.link:hover { border-color: currentColor; }
.link svg { width: 16px; height: 16px; stroke-width: 2; }

/* -------------------------------------------------------------------------- navegação */
.nav { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: 84px; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.nav > * { pointer-events: auto; }
.js .nav { animation: nav-in 1s var(--ease-io) .6s both; }
@keyframes nav-in { from { opacity: 0; transform: translateY(-48px); } }
.wordmark { height: 46px; padding: 0 20px 0 16px; font: 700 14px/1 var(--caps); letter-spacing: .16em; text-transform: uppercase;
  transition: translate .35s var(--ease); }
.wordmark:hover { translate: 0 -2px; }
.wordmark .star { width: 14px; height: 14px; fill: #b3771c; stroke: none; transition: rotate .8s var(--ease); }
.wordmark:hover .star { rotate: 180deg; }
.menu-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; color: var(--ink);
  background: linear-gradient(180deg, #f6ecd6, #e9dcbd); border: 1px solid #fbf4e3;
  box-shadow: 0 0 0 6px var(--ring), 8px 12px 16px rgba(0, 0, 0, .35); transition: scale .3s var(--ease); }
.menu-btn:hover { scale: 1.06; }
.menu-btn span { position: absolute; left: 14px; right: 14px; top: 50%; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .45s var(--ease); }
.menu-btn span:nth-child(1) { transform: translateY(-4px); }
.menu-btn span:nth-child(2) { transform: translateY(3px); }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: rotate(-45deg); }
.menu-panel { position: absolute; top: 74px; right: var(--pad); width: min(320px, 100vw - var(--pad) * 2); padding: 14px;
  border-radius: 20px; color: var(--ink); background: linear-gradient(170deg, #f6ecd6, #e6d7b5);
  box-shadow: 0 0 0 8px var(--ring), 16px 24px 40px rgba(0, 0, 0, .5);
  transform-origin: calc(100% - 23px) -10px; opacity: 0; visibility: hidden; transform: scale(.9) translateY(-10px);
  transition: opacity .3s var(--ease), transform .45s var(--ease), visibility 0s .45s; }
.menu-panel.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu-panel a { display: flex; align-items: baseline; justify-content: space-between; padding: 9px 12px; border-radius: 12px;
  font: 500 27px/1.15 var(--display); letter-spacing: -.02em; transition: background-color .25s, padding .35s var(--ease); }
.menu-panel a em { font: 600 11px/1 var(--caps); letter-spacing: .1em; opacity: .4; }
.menu-panel a:hover { background: rgba(27, 22, 17, .07); padding-left: 18px; }
.menu-panel a.accent { margin-top: 8px; padding-top: 16px; border-top: 1px solid rgba(27, 22, 17, .14); border-radius: 0 0 12px 12px;
  color: var(--blood); font: 600 13px/1 var(--caps); letter-spacing: .1em; text-transform: uppercase; align-items: center; }
.menu-panel a.accent svg { width: 18px; height: 18px; stroke-width: 2; }

/* seletor de idioma: botão redondo com a bandeira atual; abre uma lista curta com as quatro */
.nav-tools { display: flex; align-items: center; gap: 18px; }
.lang-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, #f6ecd6, #e9dcbd); border: 1px solid #fbf4e3;
  box-shadow: 0 0 0 6px var(--ring), 8px 12px 16px rgba(0, 0, 0, .35); transition: scale .3s var(--ease); }
.lang-btn:hover { scale: 1.06; }
.flag { display: block; flex: none; width: 22px; height: 22px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px rgba(27, 22, 17, .3); }
.flag svg { display: block; width: 100%; height: 100%; stroke: none; }
.lang-panel { position: absolute; top: 74px; right: calc(var(--pad) + 64px); min-width: 184px; padding: 8px; display: grid; gap: 2px;
  border-radius: 18px; color: var(--ink); background: linear-gradient(170deg, #f6ecd6, #e6d7b5);
  box-shadow: 0 0 0 8px var(--ring), 16px 24px 40px rgba(0, 0, 0, .5);
  transform-origin: calc(100% - 23px) -10px; opacity: 0; visibility: hidden; transform: scale(.9) translateY(-10px);
  transition: opacity .3s var(--ease), transform .45s var(--ease), visibility 0s .45s; }
.lang-panel.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.lang-panel button { display: flex; align-items: center; gap: 12px; padding: 9px 14px 9px 10px; border-radius: 12px; text-align: left;
  font: 500 20px/1.15 var(--display); letter-spacing: -.01em; transition: background-color .25s; }
.lang-panel button:hover { background: rgba(27, 22, 17, .07); }
.lang-panel button[aria-pressed="true"] { background: rgba(27, 22, 17, .09); }
.lang-panel button[aria-pressed="true"]::after { content: ""; margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--blood); }
/* troca de idioma: o conteúdo some um instante, troca e volta */
main, .footer-inner, .footer-bar { transition: opacity .32s ease; }
.lang-swap main, .lang-swap .footer-inner, .lang-swap .footer-bar { opacity: 0; transition-duration: .22s; }

/* -------------------------------------------------------------------------- hero */
.hero { position: relative; padding: 132px 0 0; text-align: center; }
.hero-bg { position: absolute; inset: 0 0 auto; height: min(1180px, 128vh); overflow: hidden; z-index: -1;
  -webkit-mask-image: linear-gradient(#000 52%, transparent 100%); mask-image: linear-gradient(#000 52%, transparent 100%); }
.hero-art { position: absolute; inset: -8% 0 -8%; background: url(../img/verso.webp) center 42% / cover no-repeat;
  animation: art-in 2.4s var(--ease) both; }
@keyframes art-in { from { opacity: 0; scale: 1.12; } }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 46% at 50% 70%, transparent 0%, rgba(11, 10, 16, .35) 100%),
    linear-gradient(180deg, rgba(11, 10, 16, .88) 0%, rgba(11, 10, 16, .66) 30%, rgba(11, 10, 16, .28) 62%, rgba(11, 10, 16, .1) 100%); }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.tab { height: 38px; padding: 0 18px 0 14px; font: 500 16px/1 var(--serif); }
.tab .sep { opacity: .4; }
.tab .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 0 rgba(255, 90, 31, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(255, 90, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0); } }

.hero .display { margin-top: 30px; text-shadow: 0 2px 30px rgba(11, 10, 16, .7); }
.display .line { display: block; }
.display .dim { color: rgba(239, 227, 200, .56); }
.w { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; }
.js [data-split] .ch { opacity: 0; transform: translateY(.38em); filter: blur(10px);
  animation: ch-in .9s var(--ease) forwards; animation-delay: calc(.35s + var(--i) * .035s); }
@keyframes ch-in { to { opacity: 1; transform: none; filter: none; } }

/* duas molduras de imagem ao lado da chamada (só em telas largas) */
.hero-mid { position: relative; width: 100%; }
.holder { position: absolute; z-index: 2; top: 50%; width: clamp(190px, 17vw, 250px); pointer-events: none; }
.holder-a { left: 1.5%; rotate: -6deg; }
.holder-b { right: 1.5%; margin-top: -5%; rotate: 5deg; }
.holder-in { position: relative; aspect-ratio: 3 / 2; border-radius: 18px; overflow: hidden; background: #121017;
  box-shadow: 0 0 0 6px rgba(239, 227, 200, .24), 14px 22px 34px rgba(0, 0, 0, .6); animation: float 8s ease-in-out infinite alternate; }
.holder-b .holder-in { animation-delay: -4s; }
.holder-in img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.holder-a img { opacity: 0; scale: 1.14; transition: opacity 1.2s ease, scale 5s linear; }
.holder-a img.on { opacity: 1; scale: 1; }
.holder-track { position: absolute; inset: 0 auto 0 0; display: flex; width: max-content; height: 100%; animation: marquee-x 26s linear infinite; }
.holder-track img { position: static; width: clamp(190px, 17vw, 250px); flex: none; }
@keyframes marquee-x { to { transform: translateX(-50%); } }
@keyframes float { from { translate: 0 -7px; } to { translate: 0 7px; } }
@media (max-width: 1099.98px) { .holder { display: none; } }

.lede { margin-top: 26px; font-size: clamp(18px, 1.6vw, 22px); color: var(--mist); text-shadow: 0 1px 16px rgba(11, 10, 16, .9); text-wrap: balance; }
.cta-row { margin-top: 34px; display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap; position: relative; z-index: 4; }
.stack { display: flex; align-items: center; gap: 12px; text-align: left; font-size: 15px; line-height: 1.25; color: var(--parch); text-shadow: 0 1px 10px rgba(11, 10, 16, .95), 0 0 2px rgba(11, 10, 16, .9); }
.stack-avatars { display: flex; }
.stack-avatars img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; margin-left: -10px; box-shadow: 0 0 0 2px #1a1520;
  transition: translate .35s var(--ease); }
.stack-avatars img:first-child { margin-left: 0; }
.stack:hover .stack-avatars img { translate: 0 -3px; }
.stack:hover .stack-avatars img:nth-child(2n) { translate: 0 3px; }

/* Bryan de pé sobre a moldura da galeria */
.hero-figure { position: relative; z-index: 3; width: min(440px, 62vw); margin: 6px auto -34px; pointer-events: none; }
.hero-figure::before { content: ""; position: absolute; inset: 18% -30% 2%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 110, 40, .5), rgba(255, 90, 31, .12) 60%, transparent); filter: blur(10px);
  animation: glow 5s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: .55; scale: .94; } to { opacity: 1; scale: 1.05; } }
.hero-figure img { width: 100%; filter: drop-shadow(0 26px 22px rgba(0, 0, 0, .6)); }

/* galeria: dois carrosséis verticais na moldura escura */
.gallery { width: 100%; height: clamp(440px, 80vh, 780px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 16px; cursor: none; }
.ticker { position: relative; overflow: hidden; }
.ticker-track { display: flex; flex-direction: column; gap: 16px; padding-bottom: 16px; animation: marquee-y 80s linear infinite; will-change: transform; }
.ticker[data-dir="down"] .ticker-track { animation-direction: reverse; }
@keyframes marquee-y { to { transform: translateY(-50%); } }
.ticker button { display: block; width: 100%; border-radius: 14px; overflow: hidden; background: #1d1a24; cursor: none; }
.ticker img { width: 100%; aspect-ratio: 1600 / 1128; object-fit: cover; opacity: .84; transition: opacity .5s, scale 1.2s var(--ease); }
.ticker button:hover img, .ticker button:focus-visible img { opacity: 1; scale: 1.04; }
.cursor-badge { position: absolute; z-index: 5; left: 0; top: 0; pointer-events: none; opacity: 0; scale: .4; transition: opacity .3s, scale .45s var(--ease); }
.hovering > .cursor-badge { opacity: 1; scale: 1; }
.cursor-badge i { position: absolute; left: -32px; top: -32px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: var(--ink);
  background: linear-gradient(180deg, #f6ecd6, #e2d2ae); box-shadow: 0 0 0 6px rgba(239, 227, 200, .25), 0 12px 24px rgba(0, 0, 0, .5); }
.cursor-badge svg { width: 22px; height: 22px; stroke-width: 2; }
.cursor-badge b { position: absolute; left: 4px; bottom: 30px; padding: 7px 13px; border-radius: 999px; white-space: nowrap; rotate: -12deg; transform-origin: 0 100%;
  background: #121017; color: var(--parch); font: 600 11px/1 var(--caps); letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 0 0 1px var(--hair); }
.caption { margin-top: 26px; font: italic 400 17px/1.3 var(--serif); color: var(--faint); }
.caption em { color: var(--mist); }

/* brasas */
.embers { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.embers i { position: absolute; bottom: -10px; width: var(--s); height: var(--s); border-radius: 50%; background: #ffb56b;
  box-shadow: 0 0 8px 2px rgba(255, 110, 40, .8); opacity: 0; animation: ember var(--t) linear var(--dl) infinite; }
@keyframes ember { 0% { opacity: 0; transform: translate(0, 0); } 12% { opacity: .9; } 80% { opacity: .5; }
  100% { opacity: 0; transform: translate(var(--dx), -80vh); } }
.hero .embers { height: 100vh; }

/* -------------------------------------------------------------------------- a história */
.intro { position: relative; padding: clamp(110px, 15vw, 220px) 0 clamp(40px, 6vw, 90px); }
.sweep { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
  background: linear-gradient(45deg, transparent 30%, rgba(217, 164, 65, .07) 48%, rgba(255, 255, 255, .03) 52%, transparent 70%); }
.lead { max-width: 16em; margin: 26px auto 0; text-align: center; font: 500 clamp(28px, 3.5vw, 50px)/1.14 var(--display); letter-spacing: -.025em; text-wrap: balance; }
.js [data-words] .wd { opacity: .2; transition: opacity .5s ease, filter .5s ease; }
.js [data-words] .wd.lit { opacity: 1; }
.js blockquote[data-words] .wd { filter: blur(4px); }
.js blockquote[data-words] .wd.lit { filter: none; }

/* -------------------------------------------------------------------------- o livro */
.book-card { margin-top: clamp(40px, 5vw, 72px); padding: clamp(22px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.seg { position: relative; display: inline-grid; grid-template-columns: repeat(4, 1fr); padding: 4px; border-radius: 999px; background: rgba(11, 10, 16, .5); box-shadow: inset 0 0 0 1px var(--hair); }
.seg button { position: relative; z-index: 1; height: 36px; padding: 0 16px; border-radius: 999px; font: 500 15px/1 var(--serif); color: var(--mist); transition: color .35s; }
.seg button[aria-selected="true"] { color: var(--ink); }
.seg-thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 4); border-radius: 999px;
  background: linear-gradient(180deg, #f6d98a, #cf9a3a); box-shadow: 0 4px 10px rgba(0, 0, 0, .4); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .5s var(--ease); }
.book-series { margin-top: 30px; font: 600 12px/1 var(--caps); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.book-series span { opacity: .5; margin: 0 4px; }
.book-title { margin-top: 12px; font: 500 clamp(40px, 5vw, 72px)/.98 var(--display); letter-spacing: -.035em; }
.book-title small { display: block; margin-top: 8px; font: italic 500 clamp(21px, 2.2vw, 30px)/1.15 var(--display); letter-spacing: -.01em; color: var(--mist); }
.book-text { margin-top: 24px; display: grid; gap: 14px; color: var(--mist); max-width: 31em; }
.buy { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 8px; }
.buy.stack { grid-template-columns: minmax(0, 1fr); max-width: 400px; } /* rótulos longos: um botão embaixo do outro */
.buy-note { margin-top: 16px; font: italic 400 15px/1.4 var(--serif); color: var(--faint); min-height: 1.4em; }

.book-side { position: relative; display: grid; justify-items: center; padding: 10px 0 30px; }
.book3d { --w: clamp(190px, 23vw, 290px); --d: calc(var(--w) * .12); position: relative; width: var(--w); perspective: 1700px; }
.book3d-inner { position: relative; width: 100%; aspect-ratio: 760 / 1078; transform-style: preserve-3d;
  transform: rotateY(calc(26deg + var(--ry, 0deg))) rotateX(calc(3deg + var(--rx, 0deg))); transition: transform .9s var(--ease); }
.book3d:hover .book3d-inner { transform: rotateY(calc(8deg + var(--ry, 0deg))) rotateX(calc(1deg + var(--rx, 0deg))); }
.book3d-inner > * { position: absolute; }
.b-front { inset: 0; transform: translateZ(calc(var(--d) / 2)); border-radius: 2px 5px 5px 2px; overflow: hidden; background: #0f0d14; }
.b-front img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.b-front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .35) 0, rgba(255, 255, 255, .14) 2.4%, transparent 6%, transparent 86%, rgba(255, 255, 255, .06)); }
.b-back { inset: 0; transform: translateZ(calc(var(--d) / -2)); background: #0c0a10; border-radius: 2px; }
.b-spine { top: 0; bottom: 0; left: 0; width: var(--d); transform: translateX(-50%) rotateY(-90deg); display: grid; place-items: center;
  background: linear-gradient(90deg, #08070b, #1d141a 50%, #0b090e); }
.b-spine span { writing-mode: vertical-rl; rotate: 180deg; font: 700 calc(var(--d) * .34)/1 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.b-pages { top: 1.2%; bottom: 1.2%; right: 0; width: calc(var(--d) - 4px); transform: translateX(50%) rotateY(90deg);
  background: repeating-linear-gradient(90deg, #e9dfc8 0 1px, #cfc2a3 1px 2px); }
.book3d-shadow { position: absolute; left: 4%; right: -14%; bottom: -7%; height: 12%; border-radius: 50%; background: rgba(0, 0, 0, .65); filter: blur(18px); z-index: -1; }
.feat { width: min(300px, 86%); margin: -34px 0 0 34%; padding: 22px 24px 24px; z-index: 2; }
.feat h4 { font: 600 12px/1 var(--caps); letter-spacing: .16em; text-transform: uppercase; color: #8a5a12; }
.feat-list { margin-top: 14px; display: grid; gap: 9px; font-size: 17px; line-height: 1.25; }
.feat-list li { display: flex; align-items: center; gap: 10px; min-height: 22px; }
.feat-list svg { width: 20px; height: 20px; flex: none; color: var(--blood); }
.js [data-type] .ch { opacity: 0; }
.js .typed [data-type] .ch { animation: type .01s linear forwards; animation-delay: calc(var(--li) * .32s + var(--i) * .028s); }
@keyframes type { to { opacity: 1; } }

/* -------------------------------------------------------------------------- a jornada */
.steps { position: relative; margin-top: clamp(52px, 6vw, 88px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.6vw, 36px); align-items: start; }
.step { padding: 20px 22px 26px; }
.step:nth-of-type(2) { margin-top: 38px; }
.step .num { display: block; font: 500 54px/1 var(--caps); letter-spacing: .02em; color: var(--ink); }
.step img { margin-top: 16px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.step h3 { margin-top: 20px; font: 600 27px/1.1 var(--display); letter-spacing: -.02em; }
.step p { margin-top: 8px; font-size: 17px; line-height: 1.42; color: rgba(27, 22, 17, .68); }
.scribble { position: absolute; z-index: 3; overflow: visible; pointer-events: none; color: var(--ember); }
.scribble path { stroke-width: 2; stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); transition: stroke-dashoffset 1.6s var(--ease-io) .5s; }
.scribble circle { fill: #f3e7cd; stroke-width: 2; opacity: 0; transition: opacity .4s .4s; }
.scribble circle:last-child { transition-delay: 2s; }
.scribble.in path { stroke-dashoffset: 0; }
.scribble.in circle { opacity: 1; }
.s1 { width: 22%; left: 20%; top: -34px; }
.s2 { width: 20%; left: 56%; top: 30%; }

.quotes { margin-top: clamp(64px, 9vw, 120px); display: grid; grid-template-columns: 1fr 1fr; }
.quote { position: relative; padding: 8px clamp(20px, 4vw, 64px) 8px 0; }
.quote + .quote { padding: 8px 0 8px clamp(20px, 4vw, 64px); border-left: 1px solid var(--hair); margin-top: 70px; }
.qmark { position: absolute; right: clamp(20px, 4vw, 64px); top: 4px; width: 22px; height: 22px; fill: var(--faint); stroke: none; }
.quote + .quote .qmark { right: 0; }
.quote blockquote { max-width: 18em; font: 500 clamp(22px, 2.3vw, 31px)/1.25 var(--display); letter-spacing: -.015em; }
.quote figcaption { margin-top: 26px; display: flex; align-items: center; gap: 14px; font-size: 15px; line-height: 1.3; color: var(--faint); }
.quote figcaption img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--hair); }
.quote figcaption b { display: block; font-weight: 500; color: var(--parch); }

/* -------------------------------------------------------------------------- o mundo */
.map { margin-top: clamp(40px, 5vw, 72px); }
@property --a { syntax: "<percentage>"; inherits: true; initial-value: -5%; }
@property --b { syntax: "<percentage>"; inherits: true; initial-value: 105%; }
.map { --a: -5%; --b: 105%; transition: --a .55s var(--ease), --b .55s var(--ease); }
.map::before, .map::after { display: none; }
.map > img { width: 100%; }
/* escurece o mapa fora do reino apontado */
.map-shade { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .45s;
  background: linear-gradient(90deg, rgba(8, 7, 11, .68) calc(var(--a) - 3.5%), rgba(8, 7, 11, 0) calc(var(--a) + 3.5%), rgba(8, 7, 11, 0) calc(var(--b) - 3.5%), rgba(8, 7, 11, .68) calc(var(--b) + 3.5%)); }
.map.lit .map-shade { opacity: 1; }
.zone { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--za); width: calc(var(--zb) - var(--za)); cursor: none; }
.zone:focus-visible { outline-offset: -8px; border-radius: 18px; }
.zone i { position: absolute; left: var(--mx); top: 45%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  background: linear-gradient(180deg, #f6ecd6, #e2d2ae); animation: beacon 2.6s ease-out infinite; transition: scale .4s var(--ease); }
.zone i::before, .zone i::after { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--ink); }
.zone i::after { rotate: 90deg; }
.zone:nth-of-type(2) i { animation-delay: .5s; }
.zone:nth-of-type(3) i { animation-delay: 1s; }
.zone:nth-of-type(4) i { animation-delay: 1.5s; }
.zone:hover i, .zone:focus-visible i { scale: 1.25; }
@keyframes beacon { 0% { box-shadow: 0 0 0 0 rgba(243, 209, 124, .8), 0 6px 14px rgba(0, 0, 0, .55); } 70%, 100% { box-shadow: 0 0 0 16px rgba(243, 209, 124, 0), 0 6px 14px rgba(0, 0, 0, .55); } }

/* criaturas: moldura com o troll saindo dela */
.beasts-wrap { position: relative; margin-top: clamp(230px, 27vw, 360px); }
.beasts { min-height: clamp(340px, 34vw, 460px); display: flex; align-items: center; padding: clamp(28px, 5vw, 72px);
  background: #121017 url(../img/bg-patio.webp) center 60% / cover no-repeat; }
.beasts::before { height: 100%; background: linear-gradient(90deg, rgba(14, 12, 22, .9) 0%, rgba(14, 12, 22, .6) 45%, rgba(14, 12, 22, 0) 80%); }
.beasts::after { display: none; }
.beasts-text { position: relative; z-index: 3; max-width: min(560px, 58%); text-align: left; }
.beasts-text .eyebrow { justify-content: flex-start; }
.beasts-text .eyebrow::before { display: none; }
.beasts-text h3 { margin-top: 14px; font: 500 clamp(30px, 3.6vw, 52px)/1.04 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.beasts-text p.mist { margin-top: 16px; max-width: 26em; }
.beasts-text .stack { margin-top: 26px; }
.scribe { position: absolute; z-index: 4; left: clamp(16px, 7%, 96px); bottom: calc(100% - clamp(170px, 22vw, 290px) * .145); width: clamp(170px, 22vw, 290px); pointer-events: none; }
.scribe img { width: 100%; scale: -1 1; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .55)); }
.troll { position: absolute; z-index: 4; right: clamp(-10px, 3vw, 60px); bottom: -8px; width: clamp(210px, 33vw, 440px); pointer-events: none; }
.troll img { width: 100%; filter: drop-shadow(-18px 20px 24px rgba(0, 0, 0, .6)); transform-origin: 50% 100%; animation: breathe 5.5s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(1, 1); } to { transform: scale(1.012, 1.022); } }

/* -------------------------------------------------------------------------- a série */
.works { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 64px) clamp(20px, 3vw, 40px); }
.well { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(70% 70% at 50% 40%, #3a2f5c 0%, #1d1830 55%, #121017 100%);
  box-shadow: 0 0 0 8px rgba(239, 227, 200, .08), 0 30px 60px rgba(0, 0, 0, .4); }
.well::before { content: ""; position: absolute; inset: 0; background: url(../img/bg-patio.webp) center / cover; opacity: .55; transition: scale 1.4s var(--ease), opacity .6s; }
.work:nth-child(2) .well { background: radial-gradient(70% 70% at 50% 40%, #5c3a2f 0%, #30181d 55%, #121017 100%); }
.work:nth-child(3) .well { background: radial-gradient(70% 70% at 50% 40%, #2f4a5c 0%, #18263a 55%, #121017 100%); }
.work:nth-child(4) .well { background: radial-gradient(70% 70% at 50% 40%, #5c4b2f 0%, #30261a 55%, #121017 100%); }
.work:nth-child(n+2) .well::before { mix-blend-mode: luminosity; opacity: .4; }
.well img { position: absolute; inset: 8% 0; margin: auto; height: 84%; width: auto; max-width: none; rotate: -4deg; filter: drop-shadow(18px 24px 22px rgba(0, 0, 0, .6)); transition: rotate .8s var(--ease), scale .8s var(--ease), translate .8s var(--ease); }
.work:nth-child(even) .well img { rotate: 4deg; }
.work:hover .well img { rotate: 0deg; scale: 1.06; translate: 0 -6px; }
.work:hover .well::before { scale: 1.08; }
.work header { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.work h3 { font: 500 27px/1.1 var(--display); letter-spacing: -.02em; }
.tags { display: flex; gap: 6px; }
.tags span { padding: 6px 11px; border-radius: 999px; background: linear-gradient(180deg, #f6ecd6, #e9dcbd); color: var(--ink); font: 600 10.5px/1 var(--caps); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.tags span:last-child { background: none; color: var(--gold); box-shadow: inset 0 0 0 1px rgba(217, 164, 65, .5); }
.work > p { margin-top: 10px; max-width: 32em; font-size: 17.5px; line-height: 1.45; color: var(--mist); }

/* -------------------------------------------------------------------------- o autor */
.about { margin-top: clamp(48px, 6vw, 84px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.portrait { rotate: -3deg; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 8px rgba(239, 227, 200, .2), 16px 24px 40px rgba(0, 0, 0, .5); transition: rotate .7s var(--ease); background: #1d1a24; }
.portrait:hover { rotate: 0deg; }
.portrait img { width: 100%; aspect-ratio: 5 / 4.6; object-fit: cover; object-position: 50% 12%; }
.profile-meta { margin-top: 30px; text-align: right; font-size: 15px; color: var(--faint); }
.profile-meta b { display: block; font: 600 21px/1.2 var(--display); color: var(--parch); }
.bio-text { display: grid; gap: 16px; font-size: clamp(19px, 1.5vw, 21px); line-height: 1.5; }
.bio-text p + p { color: var(--mist); }
.rows { margin-top: 44px; border-left: 1px solid var(--hair); padding-left: clamp(18px, 3vw, 40px); }
.rows li { display: grid; grid-template-columns: 1.6fr 1fr auto; gap: 14px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--hair); font-size: 16px; }
.rows li:first-child { border-top: 1px solid var(--hair); }
.rows span:nth-child(2) { color: var(--faint); }
.rows span:nth-child(3) { color: var(--mist); text-align: right; white-space: nowrap; }
.rows li:first-child span:nth-child(3) { color: var(--gold); }

/* -------------------------------------------------------------------------- perguntas */
.faq-grid { margin-top: clamp(44px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-aside { display: flex; align-items: center; gap: 22px; padding: 26px; rotate: var(--tilt); transition: rotate .6s var(--ease); font: 500 25px/1.15 var(--display); letter-spacing: -.02em; }
.faq-aside:hover { rotate: 0deg; }
.faq-aside img { width: 96px; border-radius: 4px; box-shadow: 0 10px 20px rgba(0, 0, 0, .5); flex: none; }
.faq-aside .mist { font: 400 17px/1.35 var(--serif); letter-spacing: 0; margin: 6px 0 12px; }
.faq-aside .link { font: 500 17px/1.2 var(--serif); letter-spacing: 0; }
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-item:first-child { border-top: 1px solid var(--hair); }
.faq-item button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; text-align: left;
  font: 500 clamp(21px, 1.9vw, 25px)/1.2 var(--display); letter-spacing: -.015em; transition: color .3s; }
.faq-item button:hover { color: var(--gold-2); }
.faq-item i { position: relative; width: 18px; height: 18px; flex: none; color: var(--ember); transition: rotate .5s var(--ease); }
.faq-item i::before, .faq-item i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; }
.faq-item i::after { rotate: 90deg; transition: rotate .5s var(--ease); }
.faq-item button[aria-expanded="true"] i { rotate: 180deg; }
.faq-item button[aria-expanded="true"] i::after { rotate: 0deg; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 44px 26px 0; color: var(--mist); max-width: 34em; opacity: 0; translate: 0 -8px; transition: opacity .4s, translate .5s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a p { opacity: 1; translate: 0 0; transition-delay: .1s; }

/* -------------------------------------------------------------------------- rodapé */
.footer { position: relative; margin: clamp(96px, 13vw, 180px) 8px 8px; border-radius: 28px; overflow: hidden; background: #050407;
  box-shadow: 0 0 0 8px rgba(239, 227, 200, .1); min-height: min(820px, 96vh); display: flex; flex-direction: column; text-align: center; }
.footer-field { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 4, 7, .93) 0%, rgba(5, 4, 7, .7) 45%, rgba(5, 4, 7, .86) 100%),
    url(../img/verso.webp) center 62% / cover no-repeat; }
.footer-field i { position: absolute; top: -40%; height: 180%; transform: skewX(-38deg); background: linear-gradient(90deg, transparent, rgba(255, 190, 120, .06), transparent); }
.footer-field i:nth-child(1) { left: 2%; width: 12vw; }
.footer-field i:nth-child(2) { left: 30%; width: 22vw; }
.footer-field i:nth-child(3) { left: 70%; width: 9vw; }
.footer-inner { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 110px var(--pad) 60px; }
.footer-title { margin-top: 22px; max-width: 11.5em; font-size: clamp(42px, 6.4vw, 96px); }
.footer-lede { margin-top: 26px; color: var(--mist); text-wrap: balance; }
.footer .btn { margin-top: 38px; }
.footer-bar { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(20px, 4vw, 56px) 36px; }
.footer-bar p { padding: 14px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); font-size: 15px; color: var(--mist); }
.footer-bar p span { opacity: .4; margin: 0 6px; }
.top { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--mist); box-shadow: inset 0 0 0 1px var(--faint); transition: color .3s, box-shadow .3s, translate .35s var(--ease); }
.top:hover { color: var(--gold-2); box-shadow: inset 0 0 0 1px var(--gold); translate: 0 -3px; }
.top svg { width: 18px; height: 18px; stroke-width: 2; }

/* -------------------------------------------------------------------------- visualizador */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: clamp(16px, 4vw, 56px); background: rgba(5, 4, 7, .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; cursor: zoom-out; }
.lightbox.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lightbox img { max-width: 100%; max-height: calc(100vh - clamp(32px, 8vw, 112px)); border-radius: 16px; box-shadow: 0 0 0 8px rgba(239, 227, 200, .12), 0 40px 90px rgba(0, 0, 0, .7);
  scale: .94; transition: scale .5s var(--ease); }
.lightbox.open img { scale: 1; }
.lb-close { position: absolute; top: 20px; right: 20px; width: 46px; height: 46px; border-radius: 50%; background: var(--parch); color: var(--ink); }
.lb-close span { position: absolute; left: 14px; right: 14px; top: 50%; height: 1.5px; background: currentColor; }
.lb-close span:first-child { rotate: 45deg; }
.lb-close span:last-child { rotate: -45deg; }

/* -------------------------------------------------------------------------- janela do reino */
html { scrollbar-gutter: stable; }
html.locked { overflow: hidden; }
.realm-modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(18px, 4vw, 48px); background: rgba(5, 4, 7, .84); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.realm-modal.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.realm-card { --c: #b3261a; position: relative; width: min(960px, 100%); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: clamp(22px, 3.4vw, 46px); padding: clamp(12px, 1.6vw, 20px); padding-right: clamp(22px, 3.6vw, 50px); border-radius: 24px; color: var(--ink);
  background: linear-gradient(170deg, #f6ecd6 0%, #eadcbc 70%, #e2d2ae 100%); box-shadow: 0 0 0 8px var(--ring), 0 40px 90px rgba(0, 0, 0, .7);
  transform: translateY(26px) scale(.96); transition: transform .6s var(--ease); }
.realm-modal.open .realm-card { transform: none; }
.realm-img { position: relative; align-self: stretch; border-radius: 16px; overflow: hidden; background: #121017; box-shadow: 0 0 0 1px rgba(27, 22, 17, .25); }
.realm-img::before { content: ""; display: block; padding-top: 125%; }
.realm-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); scale: 1.08; transition: opacity .3s, scale 7s var(--ease); }
.realm-modal.open .realm-img img { scale: 1; }
.realm-body { align-self: center; padding: 22px 0; transition: opacity .3s, filter .3s; }
.realm-card.swap .realm-body, .realm-card.swap .realm-img img { opacity: 0; }
.realm-card.swap .realm-body { filter: blur(6px); }
.realm-kicker { display: flex; align-items: center; gap: 12px; font: 600 12px/1 var(--caps); letter-spacing: .18em; text-transform: uppercase; color: rgba(27, 22, 17, .55); }
.realm-kicker b { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: var(--c); color: #f6ecd6; font-weight: 600; letter-spacing: .06em; }
.realm-body h3 { margin-top: 16px; font: 500 clamp(38px, 4.6vw, 62px)/.98 var(--display); letter-spacing: -.035em; }
.realm-motto { margin-top: 10px; font: italic 500 clamp(20px, 2vw, 25px)/1.2 var(--display); color: var(--c); }
.realm-text { margin-top: 20px; display: grid; gap: 12px; font-size: 18px; line-height: 1.5; color: rgba(27, 22, 17, .84); }
.realm-text p:first-child::first-letter { float: left; margin: .07em .1em 0 0; font: 600 3.25em/.8 var(--caps); color: var(--c); }
.realm-src { margin-top: 18px; font: italic 400 15px/1.3 var(--serif); color: rgba(27, 22, 17, .5); }
.realm-nav { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(27, 22, 17, .16); display: flex; justify-content: space-between; gap: 14px; }
.realm-nav button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; font: 600 11.5px/1.2 var(--caps); letter-spacing: .1em; text-transform: uppercase;
  color: rgba(27, 22, 17, .66); transition: color .3s, gap .35s var(--ease); }
.realm-nav button:hover { color: var(--blood); gap: 13px; }
.realm-nav svg { width: 17px; height: 17px; stroke-width: 2; flex: none; }
.realm-close { position: absolute; z-index: 2; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--parch);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .35); transition: rotate .5s var(--ease), scale .3s var(--ease); }
.realm-close:hover { rotate: 90deg; scale: 1.06; }
.realm-close span { position: absolute; left: 13px; right: 13px; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; }
.realm-close span:first-child { rotate: 45deg; }
.realm-close span:last-child { rotate: -45deg; }
@media (max-width: 809.98px) {
  .realm-modal { place-items: start center; }
  .realm-card { grid-template-columns: 1fr; gap: 0; padding: 10px; }
  .realm-img::before { padding-top: 68.75%; }
  .realm-body { padding: 20px 10px 8px; }
  .realm-text { font-size: 17px; }
  .realm-close { top: 18px; right: 18px; }
  .realm-nav button { font-size: 10.5px; }
}

/* -------------------------------------------------------------------------- aparições */
.js .appear { animation: appear 1.1s var(--ease) var(--d, 0s) both; }
@keyframes appear { from { opacity: 0; transform: translateY(26px); filter: blur(10px); } }
.js [data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(8px);
  transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s), filter 1s var(--ease) var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

/* -------------------------------------------------------------------------- responsivo */
.br-d { display: inline; }
@media (max-width: 1099.98px) {
  .book-card { grid-template-columns: minmax(0, 1fr); }
  .book-side { order: -1; }
  .feat { margin-left: 30%; }
  .about, .faq-grid { grid-template-columns: 1fr; }
  .profile { max-width: 520px; margin-inline: auto; }
}
@media (max-width: 809.98px) {
  body { font-size: 18px; }
  .br-d { display: none; }
  .nav { height: 72px; }
  .menu-panel, .lang-panel { top: 66px; }
  .nav-tools { gap: 16px; }
  .lang-panel { right: calc(var(--pad) + 62px); }
  .hero { padding-top: 108px; }
  .tab { font-size: 14px; height: 36px; }
  .tab .sep { display: none; }
  .cta-row { gap: 22px; }
  .gallery { height: 62vh; gap: 10px; padding: 0 10px; cursor: default; }
  .ticker-track { gap: 10px; padding-bottom: 10px; }
  .cursor-badge { display: none; }
  .ticker button { cursor: pointer; }
  .seg { display: grid; width: 100%; }
  .seg button { padding: 0 6px; font-size: 14px; }
  .buy, .buy.stack { grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: none; }
  .buy .btn { height: auto; min-height: 56px; padding: 10px 18px; font-size: 12.5px; letter-spacing: .08em; line-height: 1.35; white-space: normal; text-align: center; }
  .feat { margin: -20px 0 0 18%; }
  .steps { grid-template-columns: 1fr; gap: 30px; max-width: 420px; margin-inline: auto; }
  .step:nth-of-type(2) { margin-top: 0; }
  .scribble { display: none; }
  .quotes { grid-template-columns: 1fr; gap: 44px; }
  .quote, .quote + .quote { padding: 0; border: 0; margin: 0; }
  .qmark, .quote + .quote .qmark { right: 0; }
  .zone i { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
  .zone i::before, .zone i::after { left: 8px; right: 8px; }
  .beasts { align-items: flex-start; padding-bottom: 310px; }
  .beasts-text { max-width: 100%; }
  .beasts::before { background: linear-gradient(180deg, rgba(14, 12, 22, .9) 0%, rgba(14, 12, 22, .55) 60%, rgba(14, 12, 22, .1) 100%); }
  .troll { width: 205px; right: 4px; }
  .scribe { left: 12px; }
  .works { grid-template-columns: 1fr; }
  .rows li { grid-template-columns: 1fr auto; }
  .rows span:nth-child(2) { display: none; }
  .faq-a p { padding-right: 0; }
  .footer-bar { flex-direction: column-reverse; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01s !important; }
  .ticker-track, .holder-track { animation: none !important; }
  .embers { display: none; }
}
