/* ==========================================================================
   Instituto Sete Espadas do Despertar
   Conceito: "da noite ao despertar" — o fundo muda de céu conforme a seção
   ========================================================================== */

:root {
  --noite: #27463b;
  --noite-2: #2f5246;
  --mata: #2c5236;
  --vela: #4a3826;
  --ouro: #c6a15b;
  --ouro-claro: #e4cc93;
  --pergaminho: #e9dfc9;
  --pergaminho-2: #ddd0b3;
  --tinta: #221c17;
  --raios: #1f6f6b;

  /* as sete espadas */
  --fe: #efe8da;
  --amor: #d98ca0;
  --conhecimento: #6aa979;
  --justica: #b07d55;
  --lei: #e3b341;
  --evolucao: #9a7bc6;
  --geracao: #74bcd0;

  --serif: "IM Fell English", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.375rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  --step-4: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);
  --step-5: clamp(3rem, 1.6rem + 6vw, 7rem);

  --gutter: clamp(1.5rem, 5vw, 3.5rem);
  --max: 1240px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 72px;
}

/* céus ------------------------------------------------------------------ */
/* Com JS, só o <body> troca de céu (fundo e texto mudam juntos).
   Sem JS, cada seção pinta o próprio céu. */
body,
body[data-sky="noite"], .no-js [data-sky="noite"], .menu, .site-footer { --bg: var(--noite); --fg: #ece2cc; --muted: rgba(236, 226, 204, .74); --line: rgba(198, 161, 91, .26); --accent: var(--ouro); --accent-ink: var(--noite); }
body[data-sky="vela"], .no-js [data-sky="vela"] { --bg: var(--vela); --fg: #f2e8d5; --muted: rgba(242, 232, 213, .76); --line: rgba(228, 204, 147, .26); --accent: var(--ouro-claro); --accent-ink: var(--vela); }
body[data-sky="mata"], .no-js [data-sky="mata"] { --bg: var(--mata); --fg: #eef0dc; --muted: rgba(238, 240, 220, .78); --line: rgba(228, 204, 147, .3); --accent: var(--ouro-claro); --accent-ink: var(--mata); }
body[data-sky="dia"], .no-js [data-sky="dia"] { --bg: var(--pergaminho); --fg: var(--tinta); --muted: rgba(34, 28, 23, .7); --line: rgba(34, 28, 23, .18); --accent: #7a5a22; --accent-ink: var(--pergaminho); }

/* a clínica Sete Raios usa o teal da própria marca como acento */
body[data-page="raios"][data-sky="dia"] { --accent: var(--raios); --accent-ink: #eef4f1; }

/* reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  transition: background-color 1.1s var(--ease), color .9s var(--ease);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
/* seções herdam o céu do body (que é trocado via JS); sem JS, cada seção pinta o seu */
.no-js [data-sky] { background: var(--bg); color: var(--fg); }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -.005em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--ouro); color: var(--noite); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 200; background: var(--ouro); color: var(--noite); padding: .6rem 1rem; border-radius: 4px; text-decoration: none; }
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 11vw, 10rem); position: relative; }

/* tipografia utilitária -------------------------------------------------- */
.display { font-size: var(--step-5); line-height: .98; }
.h2 { font-size: var(--step-4); }
.h3 { font-size: var(--step-3); }
.lede { font-size: clamp(1.0625rem, .95rem + .55vw, 1.375rem); line-height: 1.5; color: var(--fg); max-width: 34em; }
.muted { color: var(--muted); }
.serif { font-family: var(--serif); }
/* a IM Fell só tem algarismos antigos (o "1" vira "ı"): números em títulos usam a sans */
.num { font-family: var(--sans); font-size: .8em; font-weight: 500; letter-spacing: .01em; }
.italic { font-style: italic; }
.prose { max-width: 36em; }
.prose p { color: var(--muted); }
.prose p strong { color: var(--fg); font-weight: 500; }

/* botões ----------------------------------------------------------------- */
.btn {
  --b: var(--accent);
  display: inline-flex; align-items: center; gap: .6em;
  min-height: 48px; padding: .8em 1.4em;
  border-radius: 999px; border: 1px solid var(--b);
  background: var(--b); color: var(--accent-ink);
  font-weight: 600; font-size: 1rem; letter-spacing: .01em; text-decoration: none;
  cursor: pointer;
  transition: transform .4s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); }
.link {
  color: var(--fg); text-decoration: none; font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px; transition: background-size .4s var(--ease), color .3s;
}
.link:hover { color: var(--accent); background-size: 0 1px; background-position: 100% 100%; }

/* ==========================================================================
   Cabeçalho
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: transform .5s var(--ease), background-color .5s, box-shadow .5s;
}
.site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; max-width: none; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; margin-right: auto; }
.brand img { height: 46px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.3)); transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.04); }
/* no pergaminho o dourado precisa de mais corpo para não sumir */
body[data-sky="dia"]:not(.menu-open) .brand img,
body[data-sky="dia"] .footer-brand img { filter: brightness(.78) saturate(1.3) contrast(1.15) drop-shadow(0 1px 1px rgba(34, 28, 23, .3)); }
.brand span { font-family: var(--serif); font-size: 1.15rem; line-height: 1.05; padding-left: .8rem; border-left: 1px solid var(--line); }
.brand small { display: block; font-size: .78rem; color: var(--muted); font-family: var(--sans); letter-spacing: .02em; }
.nav { display: flex; gap: 1.6rem; }
.nav a { text-decoration: none; font-size: .95rem; color: var(--muted); transition: color .3s; position: relative; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); transform: translateX(-50%); }
.header-cta { min-height: 42px; padding: .55em 1.1em; font-size: .92rem; }
.menu-btn {
  display: none; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; cursor: pointer; position: relative;
}
.menu-btn span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--fg); transition: transform .45s var(--ease), top .45s var(--ease); }
.menu-btn span:nth-child(1) { top: 20px; }
.menu-btn span:nth-child(2) { top: 27px; }
.menu-open .menu-btn span:nth-child(1) { top: 23.5px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 23.5px; transform: rotate(-45deg); }

/* menu em tela cheia (mobile) */
.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--noite); color: #ece2cc;
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0% at calc(100% - var(--gutter) - 24px) 36px);
  transition: clip-path .8s var(--ease);
  visibility: hidden;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - var(--gutter) - 24px) 36px); visibility: visible; }
.menu-open .site-header { --fg: #ece2cc; --muted: rgba(236, 226, 204, .74); --line: rgba(198, 161, 91, .3); color: var(--fg); background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu ol { list-style: none; margin: 0; padding: 0; }
.menu li { overflow: hidden; }
.menu ol a {
  display: flex; align-items: baseline; gap: .8rem;
  font-family: var(--serif); font-size: clamp(2rem, 9vw, 3rem); line-height: 1.25; text-decoration: none;
  transform: translateY(110%); transition: transform .7s var(--ease);
}
.menu ol a i { font-family: var(--sans); font-style: normal; font-size: .85rem; color: var(--ouro); min-width: 1.6rem; }
.menu-open .menu ol a { transform: none; }
.menu-open .menu li:nth-child(2) a { transition-delay: .05s; }
.menu-open .menu li:nth-child(3) a { transition-delay: .1s; }
.menu-open .menu li:nth-child(4) a { transition-delay: .15s; }
.menu-open .menu li:nth-child(5) a { transition-delay: .2s; }
.menu-open .menu li:nth-child(6) a { transition-delay: .25s; }
.menu ol a small { display: block; font-family: var(--sans); font-size: .95rem; color: var(--ouro-claro); letter-spacing: .02em; line-height: 1.2; margin-bottom: .2rem; }
.menu-foot { display: grid; gap: .25rem; color: rgba(236,226,204,.7); font-size: .95rem; }
.menu-foot a { text-decoration: none; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: block; }
}
@media (max-width: 520px) {
  .brand span { font-size: 1rem; }
  .brand img { height: 40px; }
  .brand small { display: none; }
  .header-cta { display: none; }
}

/* ==========================================================================
   Emblema das sete espadas (SVG gerado em JS a partir de <svg data-emblem>)
   ========================================================================== */
.emblem { overflow: visible; }
.emblem .sword { color: var(--ouro); transition: color .6s var(--ease), opacity .6s var(--ease); }
.emblem .sword path, .emblem .sword circle, .emblem .sword line { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.emblem .sword .blade-fill { fill: currentColor; stroke: none; opacity: .14; }
.emblem .sword .gem, .carta__sword .gem { fill: currentColor; fill-opacity: .35; }
.emblem .core { fill: url(#coreGlow); }
.emblem .star path { fill: var(--ouro-claro); }
.emblem .ring { fill: none; stroke: var(--ouro); stroke-width: .8; opacity: .35; vector-effect: non-scaling-stroke; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  min-height: 100svh; position: relative; overflow: hidden;
  display: grid; place-items: center; text-align: center;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 5rem;
}
.hero__fire {
  position: absolute; inset: auto 0 0 0; height: 70%;
  background: url("../assets/img/fogueira-noite.jpg") center 75% / cover no-repeat;
  /* some nas duas pontas: sem linha dura no encontro com o manifesto */
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 24%, #000 42%, transparent 100%);
          mask-image: linear-gradient(to top, transparent 0%, #000 24%, #000 42%, transparent 100%);
  opacity: .5;
}
.hero__fire::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(39,70,59,.55), rgba(39,70,59,.2)); }
.hero__inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 1.6rem; }
.hero__crest { position: relative; height: min(42svh, 400px); aspect-ratio: 432 / 577; margin-bottom: .5rem; }
.hero__crest img { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(14, 26, 21, .45)); }
/* luz dourada atrás do brasão: acende na abertura e respira devagar */
.hero__halo { position: absolute; inset: -18% -40%; pointer-events: none; }
.hero__halo::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 226, 160, .42), rgba(228, 204, 147, .14) 55%, transparent 75%);
  animation: halo 6s ease-in-out infinite;
}
@keyframes halo { 50% { opacity: .65; transform: scale(.94); } }
.hero h1 { font-size: var(--step-5); line-height: .95; max-width: 11ch; }
.hero h1 span { display: block; }
.hero h1 .inst { font-style: italic; font-size: .34em; color: var(--muted); margin-bottom: .35em; }
.intro .hero__inner, .intro .hero__fire { opacity: 0; }
.hero h1 .do { font-style: italic; font-size: .62em; color: var(--ouro-claro); line-height: 1.1; }
.hero__sub { font-size: clamp(1.0625rem, .95rem + .55vw, 1.375rem); color: var(--muted); max-width: 30em; margin: 0; line-height: 1.45; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 1;
  width: 1px; height: 56px; background: linear-gradient(var(--ouro), transparent);
}

/* ==========================================================================
   MANIFESTO
   ========================================================================== */
.manifesto { padding-block: clamp(6rem, 16vw, 12rem); }
.manifesto p {
  font-family: var(--serif); font-size: clamp(2rem, 1.2rem + 3.8vw, 4.6rem); line-height: 1.12;
  max-width: 17ch; margin: 0;
}
.manifesto .w { opacity: .18; transition: opacity .2s linear; }
.manifesto .gold { color: var(--ouro-claro); }
.manifesto__sign { margin-top: 2.5rem; display: flex; align-items: center; gap: 1rem; color: var(--muted); font-size: .98rem; }
.manifesto__sign img { width: 40px; }
.manifesto__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 330px); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }

/* reel do instituto: vertical, em arco, com som opcional */
.reel { margin: 0; }
.reel__frame {
  position: relative; aspect-ratio: 478 / 850; overflow: hidden;
  border-radius: 999px 999px 18px 18px; background: var(--noite-2) url("../assets/img/poster-reel.jpg") center / cover;
  box-shadow: 0 40px 80px -40px rgba(10, 20, 16, .7);
}
.reel__frame::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(228, 204, 147, .45); border-radius: 999px 999px 12px 12px; pointer-events: none; }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel__sound {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%); z-index: 1;
  display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
  min-height: 44px; padding: .5rem 1rem .5rem .8rem; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(228, 204, 147, .6); background: rgba(20, 36, 30, .55); color: #f4ead6;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: .9rem; font-weight: 500;
  transition: background-color .3s, border-color .3s;
}
.reel__sound:hover { background: rgba(20, 36, 30, .75); border-color: var(--ouro-claro); }
.reel__sound svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.reel__sound .spk { fill: currentColor; stroke: none; }
.reel__sound .on, .reel__sound[aria-pressed="true"] .off { display: none; }
.reel__sound[aria-pressed="true"] .on { display: inline; }
.reel__bar { position: absolute; left: 22%; right: 22%; bottom: .7rem; height: 2px; border-radius: 2px; background: rgba(244, 234, 214, .25); overflow: hidden; }
.reel__bar i { position: absolute; inset: 0; background: var(--ouro-claro); transform-origin: left; transform: scaleX(var(--p, 0)); }
.reel figcaption { margin-top: 1rem; text-align: center; font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 1.05rem; line-height: 1.35; }
@media (max-width: 860px) {
  .manifesto__grid { grid-template-columns: 1fr; }
  .reel { width: min(78%, 320px); margin-inline: auto; }
}

/* ==========================================================================
   A CASA (história)
   ========================================================================== */
.casa__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem var(--gutter); align-items: start; }
.casa__text { grid-column: 1 / span 6; }
.casa__text h2 { margin-bottom: 1.8rem; }
.casa__photos { grid-column: 8 / -1; position: relative; display: grid; gap: 1.2rem; }
.casa__photos figure { margin: 0; overflow: hidden; border-radius: 2px; }
.casa__photos img { width: 100%; height: 100%; object-fit: cover; }
.casa__photos .p1 { aspect-ratio: 3/4; }
.casa__photos .p2 { width: 62%; aspect-ratio: 1; margin-left: -28%; margin-top: -30%; border: 6px solid var(--bg); transition: border-color 1.1s var(--ease); }
.casa__photos figcaption { font-size: .85rem; color: var(--muted); padding-top: .5rem; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.pillars dt { font-family: var(--serif); font-size: var(--step-1); margin-bottom: .3rem; }
.pillars dd { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }

@media (max-width: 900px) {
  .casa__text, .casa__photos { grid-column: 1 / -1; }
  .casa__photos { grid-template-columns: 1.3fr 1fr; align-items: end; }
  .casa__photos .p2 { width: auto; margin: 0 0 -2rem; }
  .pillars { grid-template-columns: 1fr; }
}

/* ==========================================================================
   AS SETE ESPADAS — baralho
   ========================================================================== */
.espadas { position: relative; padding-block: clamp(5rem, 10vw, 8rem) 4rem; }
.espadas__pin { position: relative; }
/* o baralho sangra até a borda direita da tela */
.espadas .wrap { max-width: none; padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); padding-right: 0; }
.espadas__layout { display: grid; grid-template-columns: minmax(260px, 30%) 1fr; gap: 2rem; align-items: center; min-height: calc(100svh - var(--header-h)); padding-top: var(--header-h); }
.espadas__head h2 { margin-bottom: 1rem; }
.espadas__head p { color: var(--muted); max-width: 26em; }
.dial { width: min(100%, 300px); aspect-ratio: 1; margin: 2rem 0 1.2rem; position: relative; }
.dial svg { width: 100%; height: 100%; }
.dial .emblem-rot { transition: transform 1s var(--ease); transform-origin: 0 0; }
.dial__label { font-family: var(--serif); font-size: var(--step-2); min-height: 1.2em; }
.dial__label small { display: block; font-family: var(--sans); font-size: .85rem; color: var(--muted); }

.deck-viewport { overflow: hidden; padding-block: 1.5rem 2.5rem; }
.deck { display: flex; gap: clamp(1rem, 2vw, 1.75rem); width: max-content; padding-right: var(--gutter); }

.carta {
  --c: var(--ouro);
  position: relative; flex: none;
  width: clamp(240px, 22vw, 300px); aspect-ratio: 7 / 12;
  perspective: 1400px;
}
.carta__inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s var(--ease); }
.carta.is-flipped .carta__inner { transform: rotateY(180deg); }
.carta__face {
  position: absolute; inset: 0; border-radius: 14px; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background:
    radial-gradient(120% 60% at 50% 38%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%),
    linear-gradient(180deg, #33584b, #1f3a31);
  border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.7);
  color: #ece2cc;
}
.carta__face::before { content: ""; position: absolute; inset: 9px; border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); border-radius: 8px; pointer-events: none; }
.carta__front { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; padding: 1.4rem 1.2rem 1.5rem; text-align: center; }
.carta__num { font-family: var(--serif); font-size: 1.35rem; color: var(--c); letter-spacing: .08em; }
.carta__sword { width: 58%; align-self: center; color: var(--c); }
.carta__sword path, .carta__sword circle, .carta__sword line { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.carta__sword .blade-fill { fill: currentColor; stroke: none; opacity: .18; }
/* na carta em destaque, um brilho percorre o sulco da lâmina */
.carta__sword .fuller { stroke-dasharray: .22 1.2; stroke-dashoffset: 1.3; stroke-width: 2.2; opacity: 0; }
.carta.is-active .carta__sword .fuller { animation: glint 3.2s var(--ease) .4s infinite; }
@keyframes glint { 0% { stroke-dashoffset: -.1; opacity: 0; } 15% { opacity: 1; } 70% { opacity: 1; } 100% { stroke-dashoffset: 1.3; opacity: 0; } }
.carta__name { font-family: var(--serif); font-size: 1.55rem; line-height: 1.1; }
.carta__name small { display: block; font-family: var(--sans); font-size: .8rem; color: rgba(236,226,204,.6); margin-bottom: .35rem; letter-spacing: .02em; }
.carta__back { transform: rotateY(180deg); padding: 1.6rem 1.4rem; display: flex; flex-direction: column; gap: .8rem; }
.carta__back h3 { font-size: 1.45rem; color: var(--c); }
.carta__back p { font-size: .95rem; line-height: 1.5; color: rgba(236,226,204,.82); margin: 0; }
.carta__back .link { margin-top: auto; align-self: flex-start; font-size: .95rem; }
.carta__toggle { position: absolute; inset: 0; z-index: 2; background: transparent; border: 0; cursor: pointer; border-radius: 14px; }
.carta__toggle:focus-visible { outline-offset: 4px; }
.carta.is-flipped .carta__toggle { inset: 0 0 auto; height: 55%; } /* libera o link do verso */
.carta__hint { position: absolute; bottom: -2rem; left: 0; right: 0; text-align: center; font-size: .8rem; color: var(--muted); opacity: 0; transition: opacity .4s; }
.carta.is-active .carta__hint { opacity: 1; }
.deck-progress { display: none; }
/* modo livre (sem pin): rolagem horizontal nativa também no desktop */
.espadas.is-free .deck-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: thin; padding-bottom: 3rem; }
.espadas.is-free .carta { scroll-snap-align: start; }

@media (max-width: 899px) {
  .espadas .wrap { padding-right: var(--gutter); }
  .espadas__layout { grid-template-columns: 1fr; min-height: 0; padding-top: 0; }
  .espadas__aside { display: grid; grid-template-columns: 112px 1fr; gap: 0 1.2rem; align-items: center; }
  .espadas__head { grid-column: 1 / -1; margin-bottom: 1.5rem; }
  .dial { width: 112px; margin: 0; }
  .deck-viewport {
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none;
    padding-bottom: 3rem;
  }
  .deck-viewport::-webkit-scrollbar { display: none; }
  .deck { padding-right: var(--gutter); }
  .carta { width: min(62vw, 270px); }
  .espadas.is-free .carta { scroll-snap-align: center; }
  .deck-progress { display: flex; gap: 6px; justify-content: center; margin-top: -1.5rem; }
  .deck-progress i { width: 18px; height: 3px; border-radius: 2px; background: var(--line); transition: background-color .4s, width .4s var(--ease); }
  .deck-progress i.on { background: var(--accent); width: 32px; }
}

/* ==========================================================================
   TERREIRO — TEU Ogum Beira Mar
   ========================================================================== */
.terreiro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.terreiro__img { position: relative; }
/* a imagem traz o nome escrito no canto: quadrado inteiro, sem arco cortando o "TEU" */
.terreiro__img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.terreiro__img figcaption { font-size: .85rem; color: var(--muted); margin-top: .6rem; }
.corrente { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.corrente div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.corrente dt { color: var(--muted); font-size: .92rem; }
.corrente dd { margin: 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; }
@media (max-width: 800px) {
  .terreiro__grid { grid-template-columns: 1fr; }
  .terreiro__img { max-width: 420px; }
  .corrente div { grid-template-columns: 1fr; gap: .1rem; }
}

/* ==========================================================================
   TARÔ (céu vela)
   ========================================================================== */
.taro__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.taro__media { position: relative; }
.taro__media video, .taro__media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 2px; }
.taro__media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 120px rgba(74,56,38,.45); pointer-events: none; }
.taro__list { margin: 2rem 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.taro__list li { border: 1px solid var(--line); border-radius: 999px; padding: .35em 1em; font-size: .95rem; }
.taro__quote { font-family: var(--serif); font-style: italic; font-size: var(--step-2); line-height: 1.3; margin: 0 0 1.6rem; max-width: 22ch; }
@media (max-width: 860px) { .taro__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   GALERIA (faixa horizontal)
   ========================================================================== */
.galeria { padding-block: 2rem clamp(5rem, 10vw, 8rem); overflow: hidden; }
.galeria__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 2rem; }
.galeria__head p { margin: 0; font-size: .95rem; }
.strip {
  --inset: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  overflow-x: auto; scrollbar-width: none; cursor: grab;
  scroll-snap-type: x proximity; scroll-padding-inline: var(--inset); overscroll-behavior-x: contain;
}
.strip::-webkit-scrollbar { display: none; }
.strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.strip.is-dragging img { pointer-events: none; }
.strip__track { display: flex; gap: clamp(.8rem, 1.6vw, 1.4rem); width: max-content; padding-inline: var(--inset); }
.strip li { scroll-snap-align: start; }
.strip figure { margin: 0; }
.strip img { height: clamp(300px, 52vh, 520px); width: auto; object-fit: cover; border-radius: 2px; user-select: none; -webkit-user-drag: none; }
.strip figcaption { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--muted); padding-top: .6rem; }
@media (max-width: 600px) { .strip img { height: 340px; max-width: 78vw; } }

/* ==========================================================================
   IMERSÃO 2027 (céu mata, portal em arco)
   ========================================================================== */
.imersao { overflow: hidden; }
.imersao__grid { display: grid; grid-template-columns: 1fr minmax(300px, 40%); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.imersao__year {
  font-family: var(--serif); font-size: clamp(5rem, 2rem + 14vw, 13rem); line-height: .8; color: transparent;
  -webkit-text-stroke: 1px var(--ouro-claro); margin-bottom: 1.2rem; letter-spacing: -.02em;
}
.imersao h2 { margin-bottom: .6rem; }
.imersao__tag { font-family: var(--serif); font-style: italic; font-size: var(--step-2); color: var(--ouro-claro); margin-bottom: 1.6rem; }
.portal { position: relative; aspect-ratio: 9/15; border-radius: 999px 999px 4px 4px; overflow: hidden; background: #0d1a12 url("../assets/img/poster-floresta.jpg") center / cover; }
.portal video { width: 100%; height: 100%; object-fit: cover; }
.portal::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 40% at 50% 30%, rgba(255,214,140,.18), transparent 70%), linear-gradient(to top, rgba(44,82,54,.5), transparent 45%); pointer-events: none; }
.portal__rays { position: absolute; inset: -20% -40% auto; height: 70%; pointer-events: none; background: conic-gradient(from 180deg at 50% 0%, transparent 0 40%, rgba(255,226,160,.12) 45%, transparent 50%, rgba(255,226,160,.09) 55%, transparent 60%); mix-blend-mode: screen; }
.trio { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1rem 2.4rem; margin: 2rem 0 2.4rem; }
.trio li { display: flex; flex-direction: column; gap: .5rem; font-size: .95rem; }
.trio svg { width: 34px; height: 34px; stroke: var(--ouro-claro); fill: none; stroke-width: 1.2; }
@media (max-width: 860px) {
  .imersao__grid { grid-template-columns: 1fr; }
  .portal { max-width: 380px; width: 82%; margin-inline: auto; order: -1; }
  .trio { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

/* ==========================================================================
   SETE RAIOS (céu dia)
   ========================================================================== */
.raios__top { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem 2.5rem; align-items: center; margin-bottom: 3.5rem; }
/* símbolo Sete Raios (SVG gerado em JS) */
.raios__logo { width: clamp(96px, 10vw, 136px); height: auto; overflow: visible; color: var(--raios); }
.raios__logo .raios-moldura { fill: none; stroke: currentColor; stroke-width: 1; opacity: .35; }
body:not([data-sky="dia"]) .raios__logo { color: var(--ouro-claro); }
.raios__logo .raio, .raios__logo .raio-ponta { fill: currentColor; }
.raios__logo .raio { transform-box: fill-box; transform-origin: 50% 100%; }
.raios__logo .raios-anel { fill: none; stroke: currentColor; stroke-width: 1.4; }
.raios__logo .raios-centro { fill: currentColor; transform-box: fill-box; transform-origin: center; }
/* acender: raios crescem do centro para fora, um de cada vez; o raio central surge ao final */
.raios__logo.will-light .raio { transform: scaleY(0); opacity: 0; }
.raios__logo.will-light .raio-ponta { opacity: 0; }
.raios__logo.will-light .raios-centro { transform: scale(.3); opacity: 0; }
.raios__logo.is-lit .raio { transform: none; opacity: 1; transition: transform .8s var(--ease) calc(var(--i) * 90ms + 150ms), opacity .3s calc(var(--i) * 90ms + 150ms); }
.raios__logo.is-lit .raio-ponta { opacity: .75; transition: opacity .5s calc(var(--i) * 90ms + 600ms); }
.raios__logo.is-lit .raios-centro { transform: none; opacity: 1; transition: transform .9s cubic-bezier(.34, 1.56, .64, 1) .9s, opacity .4s .9s; }
.raios__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.raios__photo { position: relative; }
.raios__photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 2px; }
.raios__photo .badge { position: absolute; right: -1rem; bottom: 2rem; background: var(--raios); color: #eaf3ef; padding: 1rem 1.2rem; border-radius: 4px; max-width: 15rem; font-size: .92rem; line-height: 1.4; }
.areas { border-top: 1px solid var(--line); }
.areas details { border-bottom: 1px solid var(--line); }
.areas summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.05rem 0; font-family: var(--serif); font-size: var(--step-1);
}
.areas summary::-webkit-details-marker { display: none; }
.areas summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-3px, -3px); transition: transform .4s var(--ease); }
.areas details[open] summary::after { transform: rotate(225deg); }
.areas .area-body { padding: 0 0 1.3rem; color: var(--muted); max-width: 34em; }
.areas .area-body p { margin: 0; }
@media (max-width: 860px) {
  .raios__grid { grid-template-columns: 1fr; }
  .raios__top { grid-template-columns: 1fr; }
  .raios__photo .badge { right: .8rem; }
}

/* ==========================================================================
   EQUIPE
   ========================================================================== */
.equipe__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3rem clamp(1.2rem, 3vw, 2.5rem); margin-top: 3.5rem; }
.pessoa { grid-column: auto; }
.pessoa:nth-child(even) { margin-top: 5rem; }
.pessoa figure { margin: 0 0 1.2rem; overflow: hidden; border-radius: 2px; aspect-ratio: 4/5; background: var(--pergaminho-2); }
.pessoa img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pessoa:hover img { transform: scale(1.04); }
.pessoa h3 { font-size: var(--step-2); margin-bottom: .2rem; }
.pessoa .role { color: var(--accent); font-size: .95rem; margin-bottom: .8rem; }
.pessoa ul { color: var(--muted); font-size: .95rem; line-height: 1.5; display: grid; gap: .25rem; }
.pessoa--text figure { display: grid; place-items: center; background: var(--tinta); }
.pessoa--text figure svg { width: 40%; color: var(--ouro); }
.diretoria { margin-top: 5rem; padding-top: 2rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: 14rem 1fr; gap: 1rem 2rem; }
.diretoria h3 { font-size: var(--step-1); }
.diretoria p { font-family: var(--serif); font-size: var(--step-1); line-height: 1.5; margin: 0; }
@media (max-width: 900px) {
  .equipe__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pessoa:nth-child(even) { margin-top: 3rem; }
  .diretoria { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pessoa { grid-column: 1 / -1; }
  .pessoa:nth-child(even) { margin-top: 0; }
}

/* ==========================================================================
   LISTA DE CURSOS/ATIVIDADES (linhas, não cartões)
   ========================================================================== */
.rows { border-top: 1px solid var(--line); }
.row {
  --c: var(--accent);
  display: grid; grid-template-columns: 2.2rem 1fr auto; gap: 1rem 1.5rem; align-items: baseline;
  padding: 1.4rem 0; border-bottom: 1px solid var(--line); text-decoration: none; position: relative;
}
.row::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; background: color-mix(in srgb, var(--c) 10%, transparent); transition: width .6s var(--ease); z-index: -1; }
a.row:hover::before { width: 100%; }
.row--destaque { padding-inline: 1rem; margin-top: -1px; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); border-radius: 6px; background: color-mix(in srgb, var(--c) 12%, transparent); }
.row--destaque h3 { color: color-mix(in srgb, var(--c) 55%, var(--fg)); }
.row__tag { display: inline-block; margin-left: .5rem; vertical-align: middle; font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: .25em .7em; border-radius: 999px; background: color-mix(in srgb, var(--c, var(--accent)) 18%, transparent); color: var(--fg); }
.row__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); align-self: start; margin-top: .85rem; }
.row__meta.link { justify-self: start; }
.row h3 { font-size: var(--step-2); }
.row p { margin: .4rem 0 0; color: var(--muted); max-width: 40em; font-size: .98rem; }
.row__meta { font-size: .9rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) {
  .row { grid-template-columns: 1.4rem 1fr; }
  .row__meta { grid-column: 2; white-space: normal; }
}

/* ==========================================================================
   CONTATO
   ========================================================================== */
.contato__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: stretch; }
.contato h2 { margin-bottom: 1.5rem; }
.contato dl { margin: 2rem 0; display: grid; gap: 1.2rem; }
.contato dt { color: var(--muted); font-size: .9rem; }
.contato dd { margin: .15rem 0 0; font-family: var(--serif); font-size: var(--step-1); }
.contato dd a { text-decoration: none; font-family: var(--sans); font-size: .9em; }
.contato dd a:hover { color: var(--accent); }
.contato .social { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .45rem; }
.contato .social a {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .4rem 1rem .4rem .8rem;
  border: 1px solid var(--line); border-radius: 999px; font-size: .95rem; font-weight: 500;
  transition: border-color .3s, background-color .3s, color .3s;
}
.contato .social a:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.contato .social svg { width: 20px; height: 20px; color: var(--accent); }
.map { min-height: 380px; border-radius: 2px; overflow: hidden; border: 1px solid var(--line); background: var(--pergaminho-2); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: sepia(.35) saturate(.8); }
@media (max-width: 860px) { .contato__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   RODAPÉ
   ========================================================================== */
.site-footer { background: var(--noite); color: #ece2cc; padding: 5rem 0 2rem; position: relative; z-index: 1; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer h4 { font-family: var(--sans); font-size: .9rem; color: var(--ouro); font-weight: 500; margin-bottom: 1rem; }
.site-footer ul { display: grid; gap: .45rem; }
.site-footer a { text-decoration: none; color: rgba(236,226,204,.78); transition: color .3s; }
.site-footer a:hover { color: #fff; }
.footer-brand img { width: 64px; margin-bottom: 1.2rem; }
.footer-brand p { color: rgba(236,226,204,.65); max-width: 28em; font-size: .95rem; }
.footer-legal { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 2rem; margin-top: 1rem; border-top: 1px solid rgba(198,161,91,.2); font-size: .85rem; color: rgba(236,226,204,.5); }
.footer-legal .footer-credit a { color: var(--ouro); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.footer-legal .footer-credit a:hover { color: var(--ouro-claro); }
@media (max-width: 800px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #1f8f55; color: #fff;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.5);
  transform: scale(0); transition: transform .5s var(--ease);
}
.wa-float.is-on { transform: scale(1); }
.wa-float svg { width: 28px; height: 28px; }

/* ==========================================================================
   CUIDADO PET INTEGRATIVO (Sete Espadas da Evolução)
   ========================================================================== */
.crumb { display: inline-flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .95rem; margin-bottom: 1.5rem; text-decoration: none; }
.crumb i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--accent)); }
.pet { --pet-verde: #2f5a32; --pet-lilas: #7a5aa6; overflow-x: clip; }
.pet__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.pet h2 { margin-bottom: 1.2rem; }
.pet__animals { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0 2rem; }
.pet__animals li { padding: .3em 1em; border-radius: 999px; font-size: .92rem; border: 1px solid color-mix(in srgb, var(--pet-verde) 40%, transparent); color: var(--pet-verde); }
.pet__offer { list-style: none; margin: 0; padding: 0; counter-reset: of; border-top: 1px solid var(--line); }
.pet__offer li { counter-increment: of; display: grid; grid-template-columns: 2.6rem 1fr; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.pet__offer li::before { content: counter(of, upper-roman); grid-row: 1 / 3; font-family: var(--serif); font-size: 1.15rem; color: var(--pet-lilas); }
.pet__offer h3 { font-size: var(--step-1); }
.pet__offer p { margin: .25rem 0 0; color: var(--muted); font-size: .98rem; }
.pet__binomio {
  margin: 2rem 0 .6rem; padding: 1.1rem 1.3rem; border-radius: 4px 18px 4px 18px;
  background: var(--pet-lilas); color: #f6f0fb; font-size: 1.02rem; line-height: 1.5; max-width: 30em;
}
.pet__binomio strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.15; color: #f3dca0; margin-bottom: .2rem; }
.pet__note { color: var(--muted); font-size: .92rem; margin: 0 0 1.6rem; }
.pet__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.pet .btn:not(.btn--ghost) { --b: var(--pet-verde); color: #f2efe2; }

/* pilha de cartazes: o de cima vai para o fundo ao tocar, arrastar ou usar as setas */
.pile { position: relative; }
.pile__stage { position: relative; height: clamp(420px, 62vh, 620px); touch-action: pan-y; cursor: grab; outline-offset: 8px; }
.pile__stage.is-dragging { cursor: grabbing; }
.pile__card {
  --k: 0; --dx: 0px;
  position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; pointer-events: none;
  z-index: calc(10 - var(--k));
  transform: translate(calc(var(--k) * 14px + var(--dx)), calc(var(--k) * -10px)) rotate(calc(var(--r) * (1 + var(--k) * .6)));
  opacity: calc(1 - var(--k) * .12);
  transition: transform .7s var(--ease), opacity .5s;
}
.pile__card[data-k="4"] { opacity: 0; }
.pile__card img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; pointer-events: auto;
  border-radius: 6px; border: 8px solid #fbf7ee; background: #fbf7ee;
  box-shadow: 0 30px 50px -28px rgba(34, 28, 23, .55), 0 2px 6px rgba(34, 28, 23, .12);
  user-select: none; -webkit-user-drag: none;
}
.pile__card.is-leaving { transition: transform .45s cubic-bezier(.5, 0, .75, 0), opacity .45s; transform: translate(70%, 6%) rotate(16deg); opacity: 0; }
.pile__stage.is-dragging .pile__card { transition: none; }
.pile__controls { display: flex; align-items: center; justify-content: center; gap: .9rem; margin-top: 1.6rem; }
.pile__btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; transition: border-color .3s, background-color .3s; }
.pile__btn:hover { border-color: var(--pet-lilas); background: color-mix(in srgb, var(--pet-lilas) 10%, transparent); }
.pile__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pile__count { font-size: .95rem; color: var(--muted); min-width: 3.2rem; text-align: center; font-variant-numeric: tabular-nums; }
.pile__count b { color: var(--fg); font-weight: 600; }
.pile__zoom { border: 0; cursor: pointer; font-size: .95rem; margin-left: .6rem; white-space: nowrap; }
@media (max-width: 420px) { .pile__controls { gap: .6rem; } .pile__zoom { margin-left: .2rem; font-size: .9rem; } }
@media (max-width: 900px) {
  .pet__grid { grid-template-columns: 1fr; }
  .pile { order: -1; }
  .pile__stage { height: min(112vw, 520px); }
}

/* ==========================================================================
   NOVAS TURMAS 2027 (cartões com imagens que se alternam)
   ========================================================================== */
.novos { margin-top: clamp(4rem, 9vw, 7rem); }
.novos__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; margin-bottom: 2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.novos__kicker { margin: 0; font-size: .85rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.novos__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 2.5rem); }
.curso-novo {
  --c: var(--accent);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden;
  border-radius: 6px; background: #1b1714; color: #f2e8d5; position: relative;
  box-shadow: 0 40px 70px -40px rgba(34, 28, 23, .65);
}
.curso-novo::before { content: ""; position: absolute; inset: 0; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); pointer-events: none; z-index: 2; }
.curso-novo__media { position: relative; min-height: 360px; overflow: hidden; background: #000; }
.curso-novo__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.1s var(--ease), transform 6s linear; }
.curso-novo__media img.is-on { opacity: 1; transform: scale(1); }
.curso-novo:not([data-cycle]) .curso-novo__media img { transform: scale(1.02); transition: transform 8s var(--ease); }
.curso-novo:not([data-cycle]):hover .curso-novo__media img { transform: scale(1.1); }
.curso-novo__dots { position: absolute; left: 1rem; bottom: 1rem; display: flex; gap: 6px; z-index: 1; }
.curso-novo__dots i { width: 16px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .4); transition: width .4s var(--ease), background-color .4s; }
.curso-novo__dots i.on { width: 30px; background: #fff; }
.curso-novo__body {
  padding: clamp(1.4rem, 3vw, 2.2rem); display: flex; flex-direction: column; gap: .8rem;
  background: radial-gradient(120% 70% at 100% 0%, color-mix(in srgb, var(--c) 28%, transparent), transparent 70%);
}
.curso-novo__when { margin: 0; font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 60%, #fff); }
.curso-novo__when .num { font-size: 1em; font-weight: 600; }
.curso-novo h3, .curso-novo h4 { font-family: var(--serif); font-weight: 400; font-size: var(--step-3); line-height: 1.05; }
.curso-novo p:not(.curso-novo__when) { color: rgba(242, 232, 213, .78); font-size: .98rem; margin: 0; }
.curso-novo .btn { --b: var(--c); color: #fff; margin-top: auto; align-self: flex-start; }
@media (max-width: 1080px) {
  .novos__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .curso-novo { grid-template-columns: 1fr; }
  .curso-novo__media { min-height: 0; aspect-ratio: 4 / 4.2; }
}

/* imagem ampliada */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100dvh; margin: 0; overflow: auto; overscroll-behavior: contain; }
.lightbox::backdrop { background: rgba(14, 22, 18, .9); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(94vw, 900px); width: auto; height: auto; margin: 4.5rem auto 2rem; border-radius: 4px; }
.lightbox__close { position: fixed; top: 1rem; right: 1rem; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(0,0,0,.35); cursor: pointer; z-index: 1; }
.lightbox__close span { position: absolute; left: 13px; right: 13px; top: 23px; height: 1.5px; background: #fff; transform: rotate(45deg); }
.lightbox__close span + span { transform: rotate(-45deg); }

/* ==========================================================================
   PÁGINAS INTERNAS
   ========================================================================== */
.page-hero { padding: calc(var(--header-h) + clamp(3rem, 9vw, 7rem)) 0 clamp(3rem, 8vw, 6rem); position: relative; overflow: hidden; }
.page-hero__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: end; }
.page-hero h1 { font-size: var(--step-5); line-height: .98; margin-bottom: 1.5rem; }
.page-hero .crumb { display: inline-flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .95rem; margin-bottom: 1.5rem; text-decoration: none; }
.page-hero .crumb i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--accent)); }
.page-hero__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 2px; }
@media (max-width: 860px) { .page-hero__grid { grid-template-columns: 1fr; } .page-hero__media { max-width: 460px; } }

.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split > :first-child { position: sticky; top: calc(var(--header-h) + 2rem); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split > :first-child { position: static; } }

.checklist { display: grid; gap: .8rem; margin: 1.5rem 0; }
.checklist li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .6rem; color: var(--muted); }
.checklist li::before { content: ""; width: 7px; height: 7px; margin-top: .6em; border-radius: 50%; background: var(--accent); }

.practices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--gutter); border-top: 1px solid var(--line); }
.practices li { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.practices h3 { font-size: var(--step-2); margin-bottom: .4rem; }
.practices p { color: var(--muted); margin: 0; font-size: .98rem; }
@media (max-width: 700px) { .practices { grid-template-columns: 1fr; } }

/* ritual: a anciã surge da noite, dentro de um arco */
.ritual { overflow-x: clip; }
.ritual__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.ritual__art { margin: 0; position: relative; }
.ritual__art img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 38%;
  border-radius: 999px 999px 4px 4px;
  /* as bordas se dissolvem no fundo noturno */
  -webkit-mask-image: radial-gradient(120% 85% at 50% 40%, #000 52%, transparent 78%);
          mask-image: radial-gradient(120% 85% at 50% 40%, #000 52%, transparent 78%);
  filter: saturate(.82) contrast(1.04);
}
.ritual__art::before {
  content: ""; position: absolute; inset: -6% -8% 8%; z-index: -1; pointer-events: none;
  border-radius: 999px 999px 0 0;
  background: radial-gradient(closest-side, rgba(217, 140, 160, .22), transparent);
  filter: blur(20px);
}
.ritual__art figcaption { margin-top: .4rem; text-align: center; font-family: var(--serif); font-style: italic; color: var(--muted); font-size: .95rem; }
.ritual__sub { font-family: var(--serif); font-style: italic; font-size: var(--step-2); color: var(--amor); margin: .4rem 0 1.6rem; }
@media (max-width: 860px) {
  .ritual__grid { grid-template-columns: 1fr; }
  .ritual__art { width: min(100%, 420px); margin-inline: auto; }
}

.quote-block { font-family: var(--serif); font-size: var(--step-3); line-height: 1.2; max-width: 24ch; margin: 0; }
.quote-block + p { margin-top: 1.2rem; color: var(--muted); }

/* filtros (cursos) */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2.5rem 0 2rem; }
.filters button {
  --c: var(--accent);
  display: inline-flex; align-items: center; gap: .5rem; min-height: 42px;
  padding: .45em 1em; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: .95rem;
  transition: background-color .3s, border-color .3s, color .3s;
}
.filters button i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.filters button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.row.is-hidden { display: none; }

/* formulário lista de espera */
.waitlist { display: grid; gap: 1rem; max-width: 34rem; margin-top: 2rem; }
.waitlist label { display: grid; gap: .35rem; font-size: .92rem; color: var(--muted); }
.waitlist input, .waitlist select {
  min-height: 50px; padding: .7rem 1rem; border-radius: 6px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--fg) 6%, transparent); color: var(--fg); font: inherit;
}
.waitlist select option { color: #111; }
.waitlist input:focus, .waitlist select:focus { outline: none; border-color: var(--accent); }
.waitlist .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.waitlist .note { font-size: .85rem; color: var(--muted); margin: 0; }
.waitlist .error { color: #f2b8a6; font-size: .9rem; margin: 0; min-height: 1.2em; }
@media (max-width: 520px) { .waitlist .row2 { grid-template-columns: 1fr; } }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.1rem 0; font-family: var(--serif); font-size: var(--step-1); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--accent); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1.2rem; margin: 0; max-width: 40em; }

.cta-band { text-align: center; display: grid; justify-items: center; gap: 1.4rem; }
.cta-band h2 { max-width: 16ch; }
.cta-band p { color: var(--muted); max-width: 32em; margin: 0; }

/* ==========================================================================
   MOBILE — ajustes finos de ritmo e escala (fica por último de propósito)
   ========================================================================== */
@media (max-width: 700px) {
  :root { --header-h: 64px; }
  .h2 { font-size: clamp(2.1rem, 1.4rem + 3.4vw, 2.6rem); }
  .h3 { font-size: 1.75rem; }

  /* hero: tudo, inclusive o CTA principal, cabe na primeira tela */
  .hero { padding: calc(var(--header-h) + 1rem) var(--gutter) 3rem; }
  .hero__inner { gap: 1.1rem; }
  .hero__crest { height: min(32svh, 250px); margin-bottom: 0; }
  .hero h1 { font-size: clamp(2.6rem, 1.6rem + 5vw, 3.2rem); }
  /* botões empilhados ocupam a largura do texto; só o hero centralizado tem limite */
  .hero__actions { flex-direction: column; align-items: stretch; width: 100%; gap: .6rem; }
  .hero .hero__actions { width: min(100%, 320px); }
  .hero__actions .btn { justify-content: center; }
  .hero__scroll { display: none; }
  .hero__fire::after { background: linear-gradient(to top, rgba(39,70,59,.5), rgba(39,70,59,.62) 60%, rgba(39,70,59,.3)); }

  .manifesto { padding-block: 4.5rem 3rem; }
  .manifesto__sign { margin-top: 1.8rem; }

  /* casa: foto grande + foto menor sobreposta no canto */
  .casa__photos { display: block; position: relative; padding-bottom: 22%; margin-top: 1rem; }
  .casa__photos .p1 { width: 78%; aspect-ratio: 4 / 5; }
  .casa__photos .p2 { position: absolute; right: 0; bottom: 0; width: 50%; margin: 0; }
  .pillars { margin-top: 2.2rem; gap: 1.2rem; }

  /* espadas */
  .espadas { padding-block: 4rem 3rem; }
  .espadas__head { margin-bottom: 1rem; }
  .espadas__head h2 { margin-bottom: .6rem; }
  .espadas.is-free .deck-viewport { scrollbar-width: none; padding-bottom: 2.6rem; }
  .espadas.is-free .deck-viewport::-webkit-scrollbar { display: none; }
  .deck-viewport { padding-top: 1rem; }
  .carta__hint { bottom: -1.8rem; }
  .deck-progress { margin-top: -.6rem; }

  /* terreiro */
  .terreiro__img { max-width: 300px; margin: 0 auto; }
  .corrente { margin-top: 1.8rem; }
  .corrente div { padding: .75rem 0; }
  .corrente dd { font-size: 1.15rem; }

  /* tarô */
  .taro__grid { gap: 2rem; }
  .taro__list { margin: 1.5rem 0; }
  .taro__quote { font-size: 1.35rem; margin-bottom: 1.2rem; }

  /* galeria */
  .galeria { padding-block: 1rem 4rem; }
  .galeria__head { flex-direction: column; align-items: flex-start; gap: .3rem; margin-bottom: 1.2rem; }

  /* imersão */
  .imersao__year { font-size: clamp(4.5rem, 2rem + 14vw, 6rem); margin-bottom: .6rem; }
  .imersao__tag { font-size: 1.35rem; margin-bottom: 1.1rem; }
  .imersao__grid { gap: 2.5rem; }
  .portal { width: 72%; }
  .trio { margin: 1.6rem 0 2rem; }
  .trio li { font-size: .85rem; }
  /* na página da Imersão o título vem antes do portal */
  .page-hero .portal { order: 0; width: 64%; }

  /* sete raios */
  .raios__top { gap: 1rem; margin-bottom: 2.2rem; }
  .raios__logo { width: 88px; }
  .raios__grid { gap: 2.5rem; }
  .raios__photo img { aspect-ratio: 4 / 4.4; }
  .raios__photo .badge { position: static; max-width: none; margin-top: -.5rem; border-radius: 0 0 4px 4px; }

  /* equipe: retrato pequeno ao lado do nome, currículo embaixo */
  .equipe__list { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; margin-top: 2rem; }
  .pessoa { grid-column: 1 / -1; min-width: 0; display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 1rem; align-items: end; }
  .pessoa:nth-child(even) { margin-top: 0; }
  .pessoa figure { grid-row: 1 / 3; margin: 0; aspect-ratio: 4 / 5; }
  .pessoa h3 { font-size: 1.45rem; align-self: end; }
  .pessoa .role { margin: .2rem 0 0; align-self: start; font-size: .9rem; }
  .pessoa ul { grid-column: 1 / -1; margin-top: 1rem; }
  .pessoa--text figure svg { width: 34%; }
  .diretoria { margin-top: 3rem; }
  .diretoria p { font-size: 1.15rem; }

  /* listas e páginas internas */
  .row { padding: 1.1rem 0; gap: .5rem 1rem; }
  .row h3 { font-size: 1.45rem; }
  .split { gap: 1.6rem; }
  .practices li { padding: 1.1rem 0; }
  .practices h3 { font-size: 1.45rem; }
  .page-hero { padding: calc(var(--header-h) + 2.2rem) 0 2.5rem; }
  .page-hero h1 { font-size: clamp(2.6rem, 1.6rem + 5vw, 3.2rem); margin-bottom: 1rem; }
  .page-hero .crumb { margin-bottom: 1rem; }
  .page-hero__grid { gap: 2rem; }
  .page-hero__media { max-width: none; }
  .page-hero__media img { aspect-ratio: 4 / 3.6; }
  .quote-block { font-size: 1.6rem; }
  .cta-band { gap: 1rem; }
  .filters { margin: 1.5rem 0 1.2rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) .3rem; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; }

  /* contato e rodapé */
  .contato dl { margin: 1.5rem 0; gap: 1rem; }
  .map, .map iframe { min-height: 300px; }
  .site-footer { padding: 3.5rem 0 6rem; }
  .site-footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.2rem; }
  .site-footer a { overflow-wrap: anywhere; }
  .footer-brand img { width: 52px; }
  .site-footer ul a { font-size: .95rem; }
  .footer-legal { flex-direction: column; gap: .3rem; }
  .wa-float { width: 52px; height: 52px; right: .8rem; bottom: .8rem; }
}

/* ==========================================================================
   Movimento reduzido
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .manifesto .w { opacity: 1; }
}
