/* ==========================================================================
   Alcíone Pimentel · A Poeta das Estrelas
   Design tokens → base → layout → componentes → seções → animações
   ========================================================================== */

:root {
  /* Cor — clareza (papel), confiança (azul-noite), lúdico (ouro, lilás, coral, céu) */
  --paper: #fbf8f3;
  --paper-2: #f4efe6;
  --ink: #1b2340;
  --ink-2: #3f4769;
  --ink-3: #6b7290;
  --line: #e6dfd2;
  --gold: #e3a52f;
  --gold-ink: #95600c;      /* ouro para texto sobre papel (contraste AA) */
  --lilac: #e9e2fb;
  --lilac-ink: #5b44a8;
  --sky: #dfeefa;
  --coral: #fde4dc;
  --mint: #e1f3ea;
  --night: #0f1530;
  --night-2: #18204a;
  --star: #fff7e0;
  --focus: #5b44a8;

  /* Tipografia */
  --f-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --t-xs: .8125rem;
  --t-sm: .9375rem;
  --t-md: 1.0625rem;
  --t-lg: clamp(1.15rem, 1rem + .6vw, 1.4rem);
  --t-xl: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem);
  --t-2xl: clamp(2.2rem, 1.4rem + 3.6vw, 4.4rem);
  --t-hero: clamp(3.4rem, 1.2rem + 10vw, 10.5rem);

  /* Espaço e forma */
  --gutter: clamp(1rem, .5rem + 2.5vw, 2.5rem);
  --section: clamp(5rem, 3rem + 9vw, 11rem);
  --radius: 22px;
  --radius-lg: 36px;
  --max: 1240px;
  --shadow: 0 1px 2px rgba(27,35,64,.04), 0 12px 32px -12px rgba(27,35,64,.18);

  /* Movimento */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-md);
  font-weight: 350;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
figure, blockquote { margin: 0; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 300; line-height: 1.08; letter-spacing: -.02em; font-optical-sizing: auto; }
em, i { font-style: italic; }
::selection { background: var(--gold); color: var(--night); }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 999; background: var(--ink); color: var(--paper); padding: .7rem 1.1rem; border-radius: 12px; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 1rem; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.container-narrow { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--t-xs); font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-ink);
}
.eyebrow svg { width: 14px; height: 14px; color: var(--gold); }

/* ---------- Botões ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 52px; padding: .85rem 1.6rem;
  border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 500 var(--t-sm)/1 var(--f-body); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), color .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--gold); border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(27,35,64,.45); color: var(--night); }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .4s var(--ease-out); }
.btn:hover svg { transform: translateX(3px) rotate(-8deg); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--paper); }
.btn--gold { --bg: var(--gold); --fg: var(--night); }
.btn--gold::before { background: var(--star); }
.btn--light { --bg: var(--star); --fg: var(--night); }
.btn--light::before { background: var(--gold); }
.btn--outline-light { --bg: transparent; --fg: var(--star); box-shadow: inset 0 0 0 1.5px rgba(255,247,224,.5); }
.btn--outline-light::before { background: var(--star); }
.btn--outline-light:hover { color: var(--night); }
.btn--sm { min-height: 44px; padding: .6rem 1.15rem; font-size: var(--t-xs); }

/* ---------- Header ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: linear-gradient(90deg, var(--gold), #f2c66d); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: transform .5s var(--ease-out), background-color .4s, box-shadow .4s, color .4s;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 76px; }
.site-header.is-scrolled { background: rgba(251,248,243,.82); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.on-night:not(.is-scrolled) { color: var(--star); }
.brand { display: inline-flex; align-items: baseline; gap: .5rem; text-decoration: none; font-family: var(--f-display); font-size: 1.35rem; font-weight: 400; letter-spacing: -.01em; }
.brand small { font-family: var(--f-body); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.brand .acc { position: relative; display: inline-block; }
.brand .acc svg { position: absolute; left: 50%; top: -.3em; width: .5em; height: .5em; max-width: none; transform: translateX(-35%) rotate(18deg); color: var(--gold); }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a:not(.btn) { position: relative; padding: .6rem .85rem; font-size: var(--t-sm); text-decoration: none; color: inherit; opacity: .85; transition: opacity .2s; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .35rem; height: 1.5px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out); }
.nav a:not(.btn):hover { opacity: 1; }
.nav a:not(.btn):hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { margin-left: .6rem; }
.menu-toggle { display: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 1.5px; margin: 5px auto; background: currentColor; transition: transform .4s var(--ease-out), opacity .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 880px) {
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .brand small { display: none; }
  .nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; gap: .5rem;
    background: var(--paper); color: var(--ink);
    clip-path: circle(0 at calc(100% - 44px) 38px); visibility: hidden;
    transition: clip-path .7s var(--ease-in-out), visibility 0s .7s;
  }
  .nav.is-open { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; transition: clip-path .8s var(--ease-in-out); }
  .nav a:not(.btn) { font-family: var(--f-display); font-size: 2.2rem; font-weight: 300; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin: 1.2rem 0 0; }
  .site-header.menu-open { color: var(--ink); }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(233,226,251,.9), rgba(223,238,250,.5) 55%, transparent 75%);
  border-radius: 50%; z-index: -1; filter: blur(10px);
  animation: drift 18s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: auto auto -25% -15%; width: 55vw; height: 55vw; max-width: 700px; max-height: 700px;
  background: radial-gradient(closest-side, rgba(253,228,220,.85), transparent 72%);
  border-radius: 50%; z-index: -1; filter: blur(10px);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}
@keyframes drift { to { transform: translate3d(-6%, 8%, 0) scale(1.08); } }
.starfield { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 5vw, 6rem); align-items: center; }
.hero-name { font-size: var(--t-hero); font-weight: 300; line-height: .9; letter-spacing: -.045em; }
.hero-name .row { display: block; overflow: hidden; padding: .06em 0 .1em; margin: -.06em 0 -.1em; }
.hero-name .row + .row { padding-left: clamp(1.5rem, 8vw, 7.5rem); }
.hero-name .ch { display: inline-block; transform: translateY(105%); }
.hero-name .ch-i { position: relative; }
.hero-name .star-accent {
  position: absolute; left: 50%; top: -.04em; width: .34em; height: .34em; max-width: none; color: var(--gold);
  transform: translate(-28%, -160%) rotate(-140deg) scale(.2); opacity: 0;
  filter: drop-shadow(0 0 .08em rgba(227,165,47,.6));
}
.hero-sub { margin-top: 1.6rem; display: flex; align-items: center; gap: 1rem; font-family: var(--f-display); font-style: italic; font-size: var(--t-xl); font-weight: 300; color: var(--ink-2); }
.hero-sub::before { content: ""; width: clamp(2rem, 6vw, 5rem); height: 1px; background: var(--ink-3); transform-origin: left; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.6rem; }
.hero-poem {
  position: relative; padding: clamp(1.6rem, 3vw, 2.6rem); border-radius: var(--radius-lg);
  background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.8);
}
.hero-poem .poem { font-size: clamp(1.25rem, 1rem + .9vw, 1.75rem); }
.hero-poem .poem .l { display: block; }
.hero-poem .poem .l--gold { color: var(--gold-ink); font-style: italic; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: grid; place-items: center; gap: .5rem; font-size: var(--t-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); text-decoration: none; }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--ink-3), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: translateY(-100%); animation: cue 2.2s var(--ease-in-out) infinite; }
@keyframes cue { 60%, 100% { transform: translateY(100%); } }

@media (max-width: 960px) {
  .hero { padding-top: 110px; }
  .hero-grid { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
}

/* ---------- Poema (bloco genérico) ---------- */
.poem { margin: 0; font-family: var(--f-display); font-weight: 300; line-height: 1.42; letter-spacing: -.005em; }
.poem p { margin: 0 0 1em; }
.poem p:last-child { margin: 0; }
.credit { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; margin-top: 1.4rem; font-size: var(--t-xs); color: var(--ink-3); line-height: 1.5; }
.credit strong { font-weight: 600; color: var(--ink-2); }
.credit a { color: var(--gold-ink); text-decoration: none; }
.credit a:hover { text-decoration: underline; }
.credit cite { flex-basis: 100%; font-style: normal; opacity: .9; }

/* ---------- Seções ---------- */
.section { position: relative; padding: var(--section) 0; }
.section-head { max-width: 900px; margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.section-title { font-size: var(--t-2xl); margin-top: 1rem; }
.section-title em { color: var(--gold-ink); font-weight: 300; }

/* Split de palavras para reveal */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.split .wi { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms); }
.split.is-in .wi { transform: none; }

/* Reveal genérico */
[data-reveal] { opacity: 0; transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out), clip-path 1.2s var(--ease-in-out); transition-delay: var(--d, 0ms); }
[data-reveal="up"] { transform: translateY(48px); }
[data-reveal="blur"] { filter: blur(14px); transform: scale(1.04); }
[data-reveal="left"] { transform: translateX(-60px); }
[data-reveal="right"] { transform: translateX(60px); }
[data-reveal="pop"] { transform: translateY(40px) rotate(var(--rot, -3deg)) scale(.94); }
[data-reveal="mask"] { opacity: 1; }
[data-reveal="mask"] > :first-child { clip-path: inset(100% 0 0 0 round var(--radius-lg)); transition: clip-path 1.4s var(--ease-in-out); }
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }
[data-reveal="mask"].is-in > :first-child { clip-path: inset(0 0 0 0 round 999px 999px var(--radius-lg) var(--radius-lg)); }

/* Linhas de poema em cascata */
.lines .l, .lines p { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms + var(--d, 0ms)); }
.lines.is-in .l, .lines.is-in p { opacity: 1; transform: none; filter: none; }

/* ---------- Quem sou ---------- */
.about-top { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.portrait { position: sticky; top: 110px; }
.portrait-frame { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); overflow: hidden; background: var(--lilac); box-shadow: var(--shadow); }
.portrait-frame img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 20%; transform: translateY(var(--py, 0)); will-change: transform; }
.portrait-badge {
  position: absolute; right: -14px; bottom: 38px; display: grid; place-items: center; width: 118px; height: 118px; border-radius: 50%;
  background: var(--gold); color: var(--night); text-align: center; font-family: var(--f-display); font-style: italic; font-size: .95rem; line-height: 1.1; box-shadow: var(--shadow);
  animation: spin 24s linear infinite;
}
.portrait-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.portrait-badge b { font-style: normal; font-weight: 400; display: block; font-size: 1.6rem; animation: spin 24s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.stanzas { display: grid; gap: 1rem; }
.stanza { padding: 1.5rem 1.8rem; border-radius: var(--radius); font-family: var(--f-display); font-size: var(--t-lg); font-weight: 300; line-height: 1.45; }
.stanza:nth-child(1) { background: var(--paper-2); }
.stanza:nth-child(2) { background: var(--sky); margin-left: clamp(0rem, 4vw, 3rem); }
.stanza:nth-child(3) { background: var(--lilac); margin-left: clamp(0rem, 8vw, 6rem); }
.stanza:nth-child(4) { background: var(--coral); margin-left: clamp(0rem, 12vw, 9rem); }
.stanza strong { font-weight: 400; color: var(--gold-ink); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: clamp(4rem, 8vw, 7rem) 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--line); box-shadow: inset 0 0 0 1px var(--line); }
.fact dd { margin: 0; }
.fact { padding: clamp(1.4rem, 3vw, 2.4rem); background: var(--paper); }
.fact b { display: block; font-family: var(--f-display); font-size: clamp(2.6rem, 1.6rem + 3vw, 4.2rem); font-weight: 300; line-height: 1; letter-spacing: -.03em; }
.fact b sup { margin-left: .12em; font-size: .45em; color: var(--gold-ink); vertical-align: top; position: relative; top: .3em; }
.fact dd > span { display: block; margin-top: .7rem; font-size: var(--t-sm); color: var(--ink-2); line-height: 1.45; }

.about-text { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); }
.about-text .lead { font-family: var(--f-display); font-size: var(--t-xl); font-weight: 300; line-height: 1.25; letter-spacing: -.015em; }
.about-text .lead em { color: var(--gold-ink); }
.about-text .body { font-size: var(--t-md); color: var(--ink-2); max-width: 62ch; }
.about-text .body strong { font-weight: 500; color: var(--ink); }
.hl { background: linear-gradient(transparent 62%, rgba(227,165,47,.35) 62%); background-size: 0 100%; background-repeat: no-repeat; transition: background-size 1.4s var(--ease-out) .3s; }
.is-in .hl, .hl.is-in { background-size: 100% 100%; }

.quote-xl { margin: clamp(5rem, 10vw, 9rem) auto; text-align: center; }
.quote-xl .poem { font-size: clamp(2.6rem, 1rem + 7vw, 7.5rem); line-height: 1; letter-spacing: -.04em; }
.quote-xl .poem .l { display: block; }
.quote-xl .poem .l:nth-child(2) { font-style: italic; color: var(--lilac-ink); }
.quote-xl .poem .l:nth-child(4) { font-style: italic; color: var(--gold-ink); }
.quote-xl .credit { justify-content: center; }

.about-after .body { font-size: var(--t-lg); color: var(--ink-2); line-height: 1.6; text-align: center; }
.closer { margin-top: clamp(4rem, 8vw, 7rem); text-align: center; font-family: var(--f-display); font-size: clamp(2.2rem, 1rem + 5vw, 5.5rem); font-weight: 300; letter-spacing: -.035em; line-height: 1; }
.closer .r { display: inline-block; color: var(--gold-ink); font-style: italic; transform: translateY(-1.2em) rotate(-25deg); opacity: 0; transition: transform 1.1s var(--ease-spring) .5s, opacity .6s .5s; }
.closer.is-in .r { transform: none; opacity: 1; }

@media (max-width: 880px) {
  .portrait-badge { right: 10px; width: 100px; height: 100px; }
  .about-top, .about-text { grid-template-columns: 1fr; }
  .portrait { position: relative; top: 0; max-width: 420px; }
  .facts { grid-template-columns: 1fr 1fr; }
}

/* ---------- O livro (noite) ---------- */
.night-wrap { padding: 0 clamp(.5rem, 1.5vw, 1.25rem); }
.night {
  --s: .9;
  position: relative; overflow: hidden; color: var(--star);
  background: radial-gradient(120% 80% at 80% 0%, var(--night-2) 0%, var(--night) 60%);
  border-radius: var(--radius-lg);
  transform: scale(var(--s)); transform-origin: 50% 0;
  will-change: transform;
}
.night .starfield { z-index: 0; }
.night > .container { position: relative; z-index: 1; }
.night .eyebrow { color: var(--gold); }
.night .credit, .night .credit strong { color: rgba(255,247,224,.7); }
.night .credit a { color: var(--gold); }
.book-head { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; margin-bottom: clamp(3rem, 6vw, 5rem); }
.book-title { font-size: clamp(3.6rem, 1rem + 12vw, 12rem); line-height: .85; letter-spacing: -.05em; }
.book-title .split .wi { transition-duration: 1.3s; }
.book-subtitle { margin-top: 1.2rem; font-family: var(--f-display); font-style: italic; font-size: var(--t-xl); font-weight: 300; color: rgba(255,247,224,.78); }
.constellation { width: clamp(220px, 28vw, 380px); height: auto; overflow: visible; }
.constellation line { stroke: rgba(255,247,224,.45); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-in-out); transition-delay: calc(var(--i) * 180ms + 400ms); }
.constellation circle { fill: var(--star); transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .9s var(--ease-spring); transition-delay: calc(var(--i) * 120ms); }
.constellation .alc { fill: var(--gold); }
.constellation .halo { fill: none; stroke: var(--gold); stroke-width: 1; opacity: 0; }
.constellation text { fill: rgba(255,247,224,.75); font: italic 300 11px var(--f-display); opacity: 0; transition: opacity 1s 1.6s; }
.constellation text.alc-label { fill: var(--gold); font-size: 13px; }
.constellation.is-in line { stroke-dashoffset: 0; }
.constellation.is-in circle { transform: scale(1); }
.constellation.is-in text { opacity: 1; }
.constellation.is-in .halo { animation: halo 2.8s ease-out 1.6s infinite; }
@keyframes halo { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }

.book-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.book-cover-wrap { position: sticky; top: 110px; perspective: 1400px; }
.book-cover {
  position: relative; aspect-ratio: 800 / 1242; border-radius: 4px 10px 10px 4px; overflow: hidden;
  transform: rotateY(var(--ry, -14deg)) rotateX(var(--rx, 4deg)); transform-style: preserve-3d;
  transition: transform .8s var(--ease-out);
  box-shadow: -18px 30px 60px -20px rgba(0,0,0,.65), 0 0 0 1px rgba(255,247,224,.08);
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.35) 0, rgba(255,255,255,.12) 2.5%, transparent 6%, transparent 70%, rgba(255,255,255,.08)); pointer-events: none; }
.book-glow { position: absolute; inset: 10% -10% -8% 10%; background: radial-gradient(closest-side, rgba(227,165,47,.35), transparent); filter: blur(30px); z-index: -1; }
.book-poem { padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: var(--radius-lg); background: rgba(255,247,224,.05); box-shadow: inset 0 0 0 1px rgba(255,247,224,.12); margin-bottom: 3rem; }
.book-poem .poem { font-size: var(--t-lg); }
.book-poem .poem .l { display: block; }
.book-poem .poem .l--gold { color: var(--gold); font-style: italic; }
.book-text { color: rgba(255,247,224,.82); }
.book-text .lead { font-family: var(--f-display); font-size: var(--t-xl); font-weight: 300; line-height: 1.25; color: var(--star); margin-bottom: 1.5rem; }
.myth { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2.5rem 0; }
.myth-card { padding: 1.5rem; border-radius: var(--radius); background: rgba(255,247,224,.06); box-shadow: inset 0 0 0 1px rgba(255,247,224,.1); transition: background .4s, transform .5s var(--ease-out); }
.myth-card:hover { background: rgba(255,247,224,.1); transform: translateY(-4px); }
.myth-card svg { width: 34px; height: 34px; color: var(--gold); margin-bottom: 1rem; }
.myth-card h3 { font-size: 1.5rem; margin-bottom: .5rem; color: var(--star); }
.myth-card p { margin: 0; font-size: var(--t-sm); line-height: 1.55; }
.specs { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: .4rem 2.2rem; margin: 2.5rem 0; padding: 1.4rem 0; border-block: 1px solid rgba(255,247,224,.14); font-size: var(--t-sm); }
.specs dt { font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.specs dd { margin: 0; color: var(--star); }
.specs div { display: grid; gap: .25rem; }
.buy { display: flex; flex-wrap: wrap; gap: .8rem; }
.buy-note { margin-top: 1rem; font-size: var(--t-xs); color: rgba(255,247,224,.6); }

@media (max-width: 880px) {
  .book-head { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: 1fr; }
  .book-cover-wrap { position: relative; top: 0; max-width: 300px; margin-inline: auto; }
  .myth { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
}

/* ---------- Poemas ---------- */
.poems-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-flow: dense; gap: clamp(.8rem, 1.6vw, 1.25rem); }
.poem-card {
  --tilt-x: 0deg; --tilt-y: 0deg;
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  min-height: 300px; padding: clamp(1.5rem, 2.6vw, 2.3rem); border-radius: var(--radius-lg);
  background: var(--card, var(--paper-2));
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform .6s var(--ease-out), box-shadow .5s var(--ease-out);
}
.poem-card.is-in:hover { box-shadow: var(--shadow); }
.poem-card .tag { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); }
.poem-card .tag svg { width: 18px; height: 18px; color: var(--gold); transition: transform .8s var(--ease-spring); }
.poem-card:hover .tag svg { transform: rotate(144deg) scale(1.25); }
.poem-card .poem { font-size: clamp(1.3rem, 1rem + .8vw, 1.75rem); }
.poem-card .poem p { margin: 0; }
.poem-card footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: var(--t-xs); color: var(--ink-3); }
.share { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .9rem; border: 0; border-radius: 999px; background: rgba(255,255,255,.6); color: var(--ink); font: 500 var(--t-xs) var(--f-body); cursor: pointer; transition: background .3s, transform .3s var(--ease-out); }
.share:hover { background: #fff; transform: translateY(-2px); }
.share svg { width: 15px; height: 15px; }
.pc-1 { grid-column: span 5; --card: var(--sky); --rot: -2deg; }
.pc-2 { grid-column: span 4; --card: var(--coral); --rot: 2deg; }
.pc-3 { grid-column: span 3; grid-row: span 2; --card: var(--ink); color: var(--star); --rot: -3deg; }
.pc-3 .tag, .pc-3 footer { color: rgba(255,247,224,.7); }
.pc-3 .poem { font-size: clamp(2.6rem, 1.4rem + 3vw, 4.4rem); font-style: italic; line-height: .95; letter-spacing: -.03em; }
.pc-3 .share { background: rgba(255,247,224,.12); color: var(--star); }
.pc-3 .share:hover { background: rgba(255,247,224,.22); }
.pc-4 { grid-column: span 5; --card: var(--lilac); --rot: 1.5deg; }
.pc-5 { grid-column: span 4; --card: var(--mint); --rot: -2deg; }
.pc-6 { grid-column: span 7; --card: var(--paper-2); --rot: 2deg; }
.pc-7 { grid-column: span 5; --card: var(--gold); --rot: -2deg; }
.pc-7 .poem { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.8rem); line-height: 1.05; letter-spacing: -.02em; }
.pc-7 .tag svg { color: var(--night); }
.pc-7 footer, .pc-7 .tag { color: rgba(15,21,48,.7); }
.poems-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: clamp(3rem, 6vw, 5rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.poems-cta p { margin: 0; font-family: var(--f-display); font-size: var(--t-xl); font-weight: 300; letter-spacing: -.02em; }
.poems-cta p em { color: var(--gold-ink); }

@media (max-width: 1024px) {
  .pc-1, .pc-2, .pc-4, .pc-5, .pc-6, .pc-7 { grid-column: span 6; }
  .pc-3 { grid-column: span 6; grid-row: span 1; }
}
@media (max-width: 640px) {
  .poems-grid > * { grid-column: 1 / -1 !important; }
  .poem-card { min-height: 0; }
}

/* ---------- Marquee ---------- */
.marquee { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0; overflow: hidden; border-block: 1px solid var(--line); background: var(--paper); }
.marquee-row { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-row + .marquee-row { animation-direction: reverse; animation-duration: 46s; margin-top: .6rem; }
.marquee-row span { display: inline-flex; align-items: center; gap: clamp(1rem, 3vw, 2.6rem); padding-right: clamp(1rem, 3vw, 2.6rem); white-space: nowrap; font-family: var(--f-display); font-size: clamp(2.6rem, 1rem + 6vw, 7rem); font-weight: 300; line-height: 1.05; letter-spacing: -.035em; }
.marquee-row + .marquee-row span { font-style: italic; color: transparent; -webkit-text-stroke: 1px var(--ink-3); }
.marquee-row svg { width: .5em; height: .5em; color: var(--gold); flex: none; }
.marquee:hover .marquee-row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Contato ---------- */
.links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.links li { border-bottom: 1px solid var(--line); }
.link-row {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 56px 1.2fr 1fr auto; gap: 1.2rem; align-items: center;
  padding: 1.4rem .8rem; text-decoration: none; overflow: hidden;
  transition: color .45s var(--ease-out), padding .5s var(--ease-out);
}
.link-row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease-out); }
.link-row:hover, .link-row:focus-visible { color: var(--star); padding-left: 1.6rem; }
.link-row:hover::before, .link-row:focus-visible::before { transform: scaleY(1); }
.link-row .ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--paper-2); color: var(--ink); transition: background .4s, color .4s, transform .6s var(--ease-spring); }
.link-row:hover .ico { background: var(--gold); color: var(--night); transform: rotate(-12deg) scale(1.06); }
.link-row .ico svg { width: 22px; height: 22px; }
.link-row .name { font-family: var(--f-display); font-size: clamp(1.25rem, 1rem + 1vw, 1.9rem); font-weight: 300; letter-spacing: -.015em; line-height: 1.15; overflow-wrap: anywhere; }
.link-row .desc { font-size: var(--t-sm); color: var(--ink-3); transition: color .4s; }
.link-row:hover .desc { color: rgba(255,247,224,.7); }
.link-row .arrow { width: 22px; height: 22px; transition: transform .5s var(--ease-out); }
.link-row:hover .arrow { transform: translate(4px, -4px) rotate(0deg); }
.link-row .platform { display: block; font-family: var(--f-body); font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: .2rem; transition: color .4s; }
.link-row:hover .platform { color: var(--gold); }
@media (max-width: 720px) {
  .link-row { grid-template-columns: 52px 1fr auto; gap: 1rem; padding: 1.1rem .4rem; }
  .link-row .desc { grid-column: 2 / 3; margin-top: -.6rem; }
  .link-row .arrow { grid-row: 1; grid-column: 3; }
}

/* ---------- Footer ---------- */
.site-footer { padding: clamp(4rem, 8vw, 7rem) 0 2.5rem; background: var(--night); color: rgba(255,247,224,.78); font-size: var(--t-sm); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,247,224,.14); }
.footer-name { font-family: var(--f-display); font-size: clamp(2.4rem, 1.2rem + 4vw, 4.6rem); font-weight: 300; line-height: .95; letter-spacing: -.04em; color: var(--star); }
.footer-name em { color: var(--gold); }
.footer-note { max-width: 46ch; margin-top: 1.4rem; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 2rem; align-content: start; }
.footer-nav h2 { grid-column: 1 / -1; font-family: var(--f-body); font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--gold); margin-bottom: .6rem; }
.footer-nav a, .footer-nav button { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: color .2s; }
.footer-nav a:hover, .footer-nav button:hover { color: var(--star); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 2rem; font-size: var(--t-xs); color: rgba(255,247,224,.55); }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- CTA fixo mobile ---------- */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: none; transform: translateY(150%); transition: transform .6s var(--ease-out); }
.sticky-cta .btn { width: 100%; box-shadow: 0 18px 40px -14px rgba(15,21,48,.6); }
.sticky-cta.is-visible { transform: none; }
@media (max-width: 720px) { .sticky-cta { display: block; } }

/* ---------- Banner de cookies (LGPD) ---------- */
.consent {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 80; width: min(100% - 24px, 560px);
  padding: 1.4rem 1.5rem; border-radius: var(--radius); background: var(--paper); color: var(--ink);
  box-shadow: 0 24px 60px -20px rgba(15,21,48,.45), 0 0 0 1px var(--line);
  transform: translate(-50%, 140%); transition: transform .7s var(--ease-out);
}
.consent.is-visible { transform: translate(-50%, 0); }
.consent h2 { font-size: 1.3rem; font-weight: 400; margin-bottom: .5rem; }
.consent p { font-size: var(--t-sm); color: var(--ink-2); margin-bottom: 1rem; line-height: 1.55; }
.consent p a { color: var(--lilac-ink); }
.consent-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.consent-actions .btn { flex: 1 1 auto; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; top: 92px; z-index: 90; padding: .8rem 1.2rem; border-radius: 999px; background: var(--ink); color: var(--star); font-size: var(--t-sm); transform: translate(-50%, -30px); opacity: 0; pointer-events: none; transition: transform .5s var(--ease-out), opacity .4s; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Páginas legais / 404 ---------- */
.page-hero { padding: 150px 0 60px; }
.page-hero h1 { font-size: var(--t-2xl); }
.page-hero p { margin-top: 1.2rem; color: var(--ink-3); font-size: var(--t-sm); }
.prose { padding-bottom: var(--section); color: var(--ink-2); }
.prose h2 { font-size: var(--t-xl); color: var(--ink); margin: 3rem 0 1rem; }
.prose h3 { font-family: var(--f-body); font-size: var(--t-md); font-weight: 600; color: var(--ink); margin: 2rem 0 .6rem; letter-spacing: 0; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose a { color: var(--lilac-ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 2rem; font-size: var(--t-sm); }
.prose th, .prose td { text-align: left; padding: .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; background: var(--paper-2); }
.prose .note { padding: 1.2rem 1.4rem; border-radius: var(--radius); background: var(--lilac); color: var(--ink); }
.table-wrap { overflow-x: auto; }

.notfound { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px 0 80px; overflow: hidden; }
.notfound .big { font-family: var(--f-display); font-size: clamp(7rem, 4rem + 18vw, 18rem); font-weight: 300; line-height: .8; letter-spacing: -.06em; }
.notfound .big .o { display: inline-block; color: var(--gold); animation: float 5s ease-in-out infinite; }
.notfound .big .o svg { width: .72em; height: .72em; display: inline-block; vertical-align: -.02em; }
@keyframes float { 50% { transform: translateY(-.08em) rotate(18deg); } }
.notfound h1 { font-size: var(--t-xl); margin: 1.5rem 0 1rem; }
.notfound p { color: var(--ink-2); max-width: 46ch; margin: 0 auto 2rem; }
.notfound .poem { font-style: italic; color: var(--ink-2); margin-bottom: 2.4rem; font-size: var(--t-lg); }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  [data-reveal], .lines .l, .lines p, .split .wi, .hero-name .ch { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  .hero-name .star-accent { opacity: 1 !important; transform: translate(-28%, 0) rotate(18deg) !important; }
  .closer .r { opacity: 1; transform: none; }
    .night { transform: none; }
  .marquee-row { animation: none; }
}

/* Sem JS: tudo visível */
.no-js [data-reveal], .no-js .lines .l, .no-js .lines p, .no-js .split .wi, .no-js .hero-name .ch { opacity: 1; transform: none; filter: none; clip-path: none; }
.no-js .hero-name .star-accent { opacity: 1; transform: translate(-28%, 0) rotate(18deg); }
.no-js .closer .r { opacity: 1; transform: none; }
.no-js [data-reveal="mask"] > :first-child { clip-path: none; }
.no-js .constellation line { stroke-dashoffset: 0; }
.no-js .constellation circle { transform: scale(1); }
.no-js .constellation text { opacity: 1; }

@media print {
  .site-header, .sticky-cta, .consent, .starfield, .marquee, .progress { display: none !important; }
  .night { clip-path: none; background: #fff; color: #000; }
  [data-reveal], .lines .l, .split .wi, .hero-name .ch { opacity: 1 !important; transform: none !important; filter: none !important; }
}
.hero-actions[data-center] { justify-content: center; }
.prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose code { font-size: .88em; background: var(--paper-2); padding: .1em .4em; border-radius: 6px; }
.prose .btn { vertical-align: middle; }
.page-hero h1 em { color: var(--gold-ink); }
.no-js .night { transform: none; }
.portrait-badge b svg { position: static; width: 28px; height: 28px; color: var(--night); }
