@font-face {
  font-family: "EB Garamond";
  src: url("/sao-bento/fonts/EBGaramond-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("/sao-bento/fonts/EBGaramond-Italic-Variable.ttf") format("truetype");
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/sao-bento/fonts/CormorantGaramond-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/sao-bento/fonts/CormorantGaramond-Italic-Variable.ttf") format("truetype");
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --noite: #070907;
  --noite-2: #0b100c;
  --pedra: #101812;
  --pedra-2: #172019;
  --marfim: #e9e1d0;
  --nevoa: #aaa99d;
  --ouro: #c79b54;
  --ouro-vivo: #e7c983;
  --vinho: #6f2529;
  --vinho-vivo: #ba625e;
  --verde: #687867;
  --linha: rgba(231, 201, 131, 0.2);
  --linha-fria: rgba(233, 225, 208, 0.1);
  --sombra: 0 36px 110px rgba(0, 0, 0, 0.56);
  --serif: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Segoe UI", Inter, system-ui, sans-serif;
}

html {
  background: var(--noite);
  scrollbar-color: var(--ouro) #090d0a;
}

body {
  color: var(--marfim);
  background:
    radial-gradient(1000px 900px at 8% 8%, rgba(111, 37, 41, 0.1), transparent 70%),
    radial-gradient(1100px 760px at 93% 24%, rgba(104, 120, 103, 0.1), transparent 64%),
    linear-gradient(180deg, #070907, #090d0a 45%, #060806);
  font-size: clamp(17px, 1.24vw, 20px);
  line-height: 1.72;
}

body::before {
  opacity: 0.18;
  background-image:
    linear-gradient(90deg, transparent 0 49.94%, rgba(231, 201, 131, 0.07) 50%, transparent 50.06%),
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.14) 0 0.7px, transparent 1px);
  background-size: 100% 100%, 240px 240px;
}

body::after { opacity: 0.035; }

.topbar {
  height: 72px;
  padding-inline: clamp(20px, 4vw, 68px);
  border-bottom-color: transparent;
  background: linear-gradient(180deg, rgba(4, 6, 4, 0.88), rgba(4, 6, 4, 0.2));
  backdrop-filter: blur(12px) saturate(0.8);
}

.topbar.scrolled {
  border-bottom-color: var(--linha);
  background: rgba(5, 8, 6, 0.92);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
}

.brand {
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.17em;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(231, 201, 131, 0.48);
  border-radius: 50%;
  color: var(--ouro-vivo);
  font-size: 15px;
}

.topnav { gap: clamp(18px, 2.5vw, 36px); }
.topnav a { font-size: 10px; letter-spacing: 0.14em; }

.hero {
  isolation: isolate;
  min-height: max(760px, 100svh);
  padding: 120px clamp(24px, 6vw, 94px) 88px;
  display: grid;
  place-items: center start;
  overflow: hidden;
  background: #070907;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -4;
  margin: 0;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.8) contrast(1.06) brightness(0.77);
  transform: scale(1.012);
}

.hero-art figcaption {
  position: absolute;
  right: clamp(22px, 4vw, 66px);
  top: 94px;
  bottom: auto;
  max-width: 260px;
  color: rgba(233, 225, 208, 0.58);
  font-family: var(--sans);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-align: right;
  text-transform: uppercase;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(4, 7, 5, 0.97) 0%, rgba(4, 7, 5, 0.89) 31%, rgba(4, 7, 5, 0.36) 58%, rgba(4, 7, 5, 0.1) 77%),
    linear-gradient(0deg, rgba(4, 7, 5, 0.94) 0%, transparent 42%, rgba(4, 7, 5, 0.34) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 72px clamp(18px, 3.5vw, 54px) 30px;
  z-index: -2;
  border: 1px solid rgba(231, 201, 131, 0.16);
  border-bottom-color: rgba(231, 201, 131, 0.06);
  pointer-events: none;
}

.hero-inner {
  width: min(100%, 650px);
  margin: 0;
  text-align: left;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  color: var(--ouro-vivo);
  letter-spacing: 0.22em;
}

.hero .eyebrow::before {
  content: "";
  width: 54px;
  height: 1px;
  background: currentColor;
}

.hero-sigil {
  display: grid;
  width: 74px;
  height: 74px;
  margin-bottom: 28px;
  place-items: center;
  border: 1px solid rgba(231, 201, 131, 0.5);
  border-radius: 50%;
  box-shadow: inset 0 0 0 8px rgba(231, 201, 131, 0.035);
}

.hero-sigil svg { width: 36px; color: var(--ouro-vivo); }

.hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(70px, 9vw, 132px);
  line-height: 0.77;
  letter-spacing: -0.058em;
  text-align: left;
  text-wrap: balance;
}

.hero h1 .small {
  margin: 0 0 15px 5px;
  font-family: var(--sans);
  font-size: clamp(10px, 1vw, 13px);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero h1 em {
  color: var(--ouro-vivo);
  font-weight: 480;
}

.hero-latin {
  margin: 38px 0 0;
  color: var(--ouro-vivo);
  font-size: clamp(18px, 2.2vw, 28px);
  letter-spacing: 0.06em;
  text-align: left;
}

.hero-lead {
  max-width: 590px;
  margin: 14px 0 0;
  color: rgba(233, 225, 208, 0.78);
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.53;
  text-align: left;
}

.hero-actions { justify-content: flex-start; margin-top: 32px; }

.hero-link {
  min-width: 0;
  padding: 13px 20px;
  border-color: rgba(231, 201, 131, 0.5);
  background: rgba(7, 9, 7, 0.34);
  backdrop-filter: blur(8px);
}

.hero-scroll {
  display: none;
}

.hero-halo,
.hero-monogram { display: none; }

.section {
  width: min(1240px, calc(100% - clamp(38px, 8vw, 118px)));
  padding-block: clamp(100px, 12vw, 168px);
}

.section.narrow { width: min(910px, calc(100% - clamp(38px, 8vw, 118px))); }

.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(190px, 18vw);
  height: 1px;
  background: linear-gradient(90deg, var(--ouro), transparent);
}

.section-head { max-width: 870px; }
.section-head.center { max-width: 930px; }

.section-head h2,
.threshold h2,
.heart h2 {
  font-size: clamp(50px, 6vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-head h2 em,
.threshold h2 em,
.heart h2 em { color: var(--ouro-vivo); }

.kicker {
  color: var(--ouro-vivo);
  letter-spacing: 0.22em;
}

.section-intro { color: #c4c0b4; font-size: clamp(19px, 1.8vw, 24px); }

.threshold {
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.94fr);
  gap: clamp(56px, 9vw, 118px);
  align-items: center;
}

.threshold-copy p {
  max-width: 700px;
  color: #c8c4b8;
  font-size: clamp(18px, 1.55vw, 22px);
}

.threshold-copy p:first-of-type::first-letter {
  margin-right: 8px;
  color: var(--ouro-vivo);
  font-family: var(--display);
  font-size: 4.4em;
  line-height: 0.76;
}

.threshold-seal {
  position: relative;
  min-height: 0;
  margin: 0;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--linha);
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 36%, rgba(231, 201, 131, 0.1), transparent 46%),
    #080c09;
  box-shadow: var(--sombra);
}

.threshold-seal::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(231, 201, 131, 0.11);
  border-radius: 0;
}

.cave-plate { display: block; width: 100%; height: auto; }

.threshold-seal figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 2px 0;
  border-top: 1px solid var(--linha);
  color: var(--ouro-vivo);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.threshold-seal figcaption small { color: var(--nevoa); font-size: inherit; }

.story-path { margin-top: clamp(64px, 8vw, 112px); }

.story-chapter {
  grid-template-columns: 100px minmax(0, 1fr);
  gap: clamp(30px, 5vw, 76px);
  padding-block: clamp(42px, 5vw, 72px);
  border-top-color: rgba(231, 201, 131, 0.18);
}

.story-node {
  width: 68px;
  height: 68px;
  border-color: rgba(231, 201, 131, 0.48);
  background: #080c09;
  color: var(--ouro-vivo);
  font-family: var(--display);
  font-size: 22px;
}

.story-copy h3 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1; }
.story-copy p { max-width: 780px; color: #c6c2b6; }

.story-lesson {
  max-width: 780px;
  padding: 20px 24px 20px 28px;
  border: 0;
  border-left: 2px solid var(--ouro);
  background: linear-gradient(90deg, rgba(168, 123, 60, 0.12), transparent);
  color: #ddd4c2;
}

.source-note {
  border: 1px solid var(--linha-fria);
  border-left: 2px solid var(--ouro);
  background: linear-gradient(90deg, rgba(168, 123, 60, 0.08), rgba(16, 24, 18, 0.2));
}

.history-ribbon { border-color: var(--linha); }

.history-event {
  grid-template-columns: 126px 1fr;
  padding: 31px 20px 31px 0;
  border-bottom-color: var(--linha-fria);
}

.history-year { color: var(--ouro-vivo); font-size: 13px; letter-spacing: 0.13em; }
.history-event h3 { font-size: 28px; }

.truth-callout {
  padding: clamp(34px, 5vw, 58px);
  border: 1px solid var(--linha);
  background: radial-gradient(circle at 12% 10%, rgba(111, 37, 41, 0.18), transparent 44%), #0c120e;
}

#medalha { width: min(1380px, calc(100% - clamp(26px, 5vw, 74px))); }

.medal-lab {
  grid-template-columns: minmax(420px, 0.92fr) minmax(440px, 1.08fr);
  gap: clamp(54px, 7vw, 100px);
  margin-top: clamp(56px, 7vw, 96px);
}

.medal-sticky { top: 90px; }

.side-switch {
  width: min(100%, 560px);
  margin-inline: auto;
  padding: 4px;
  border: 1px solid var(--linha);
  background: #080c09;
}

.side-switch button {
  min-height: 46px;
  color: #99988e;
  letter-spacing: 0.11em;
}

.side-switch button[aria-pressed="true"] {
  color: #090b09;
  background: var(--ouro-vivo);
  box-shadow: 0 6px 28px rgba(199, 155, 84, 0.18);
}

.medal-stage {
  position: relative;
  display: grid;
  width: min(100%, 620px);
  margin: 20px auto 0;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid rgba(231, 201, 131, 0.16);
  border-radius: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(231, 201, 131, 0.14), transparent 34%),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 64px, rgba(231, 201, 131, 0.035) 65px 66px),
    linear-gradient(145deg, #0d140f, #060806);
  box-shadow: 0 42px 110px rgba(0, 0, 0, 0.5);
  perspective: 1500px;
}

.medal-stage::before,
.medal-stage::after {
  content: "";
  position: absolute;
  z-index: 0;
  background: linear-gradient(90deg, transparent, rgba(231, 201, 131, 0.17), transparent);
}

.medal-stage::before { inset: 50% 6% auto; height: 1px; }
.medal-stage::after { inset: 6% auto 6% 50%; width: 1px; }

.medal-coin {
  z-index: 1;
  width: 88%;
  height: 88%;
}

.medal-face {
  display: grid;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  backface-visibility: hidden;
  filter: none;
}

.medal-face img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 34px 32px rgba(0, 0, 0, 0.6))
    drop-shadow(0 4px 5px rgba(0, 0, 0, 0.5))
    saturate(0.86)
    contrast(1.03);
}

.medal-caption {
  width: min(100%, 620px);
  margin: 22px auto 0;
  color: #8e8e85;
  font-size: 11px;
  line-height: 1.65;
  letter-spacing: 0.06em;
}

.medal-caption a { color: var(--ouro); text-underline-offset: 3px; }

.anatomy-group {
  margin-bottom: 42px;
  border-top: 1px solid var(--linha);
}

.anatomy-title { padding: 18px 0; color: var(--ouro-vivo); }

.symbol { border-bottom-color: var(--linha-fria); }
.symbol summary { min-height: 64px; }
.symbol-num { color: var(--ouro); }
.symbol-name { font-size: clamp(18px, 1.5vw, 21px); }
.symbol-body { color: #bdb9ae; }

.cipher-grid {
  border-top: 1px solid var(--linha);
  border-bottom: 1px solid var(--linha);
}

.cipher-row {
  grid-template-columns: minmax(118px, 0.28fr) 1fr;
  padding-block: 28px;
  border-bottom-color: var(--linha-fria);
}

.cipher-code {
  color: var(--ouro-vivo);
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 42px);
  letter-spacing: 0.08em;
}

.prayer-stage {
  position: relative;
  padding: clamp(32px, 6vw, 74px);
  border: 1px solid rgba(231, 201, 131, 0.28);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(231, 201, 131, 0.06), transparent 32%),
    #0b110d;
  box-shadow: var(--sombra);
}

.prayer-stage::before {
  content: "C S P B";
  position: absolute;
  top: 18px;
  right: 22px;
  color: rgba(231, 201, 131, 0.26);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.34em;
}

.prayer-line {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 28px;
  padding: 18px 0;
  border-bottom-color: var(--linha-fria);
}

.prayer-line .la { color: var(--ouro-vivo); font-size: clamp(24px, 3.2vw, 40px); }
.prayer-line .pt { color: #bfbbae; }

.word-row { border-bottom-color: var(--linha-fria); }
.word-latin { color: var(--ouro-vivo); }

.power-orbit {
  grid-template-columns: minmax(380px, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(60px, 8vw, 112px);
}

.orbit-figure {
  background:
    radial-gradient(circle, rgba(231, 201, 131, 0.08), transparent 58%),
    #080c09;
  box-shadow: inset 0 0 0 1px rgba(231, 201, 131, 0.1), 0 35px 90px rgba(0, 0, 0, 0.36);
}

.orbit { border-color: rgba(231, 201, 131, 0.34); }
.orbit span { background: #080c09; color: #c3bba9; }
.orbit-cross::before,
.orbit-cross::after { background: var(--ouro-vivo); }

.power-level { padding: 26px 0; }
.power-level b { color: var(--ouro-vivo); }

.not-magic {
  border: 1px solid var(--linha);
  border-radius: 0;
  background: #0b110d;
}

.not-magic article { padding: clamp(28px, 4vw, 52px); }
.not-magic .no { background: rgba(111, 37, 41, 0.1); }

.film-sequence {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--linha);
  background: var(--linha);
}

.film-step {
  grid-template-columns: 76px 1fr;
  min-height: 238px;
  padding: clamp(28px, 4vw, 46px);
  align-items: start;
  border: 0;
  background:
    radial-gradient(circle at 10% 8%, rgba(231, 201, 131, 0.055), transparent 35%),
    #0a0f0b;
}

.film-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(231, 201, 131, 0.4);
  border-radius: 50%;
  color: var(--ouro-vivo);
  background: transparent;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
}

.film-step h3 { font-size: clamp(27px, 2.5vw, 38px); line-height: 1.04; }
.film-step p { color: #b8b5aa; }

.practice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--linha);
  background: var(--linha);
}

.practice {
  min-height: 220px;
  padding: clamp(28px, 4vw, 46px);
  border: 0;
  background: #0a0f0b;
}

.practice:nth-child(5) { grid-column: 1 / -1; min-height: 0; }

.heart {
  padding: clamp(42px, 8vw, 86px);
  border: 1px solid var(--linha);
  border-radius: 0;
  background:
    radial-gradient(circle at 85% 18%, rgba(111, 37, 41, 0.18), transparent 38%),
    radial-gradient(circle at 10% 80%, rgba(104, 120, 103, 0.12), transparent 42%),
    #0b110d;
  box-shadow: var(--sombra);
}

.heart p { max-width: 720px; }
.heart .closing { color: var(--ouro-vivo); }

.source-link { border-bottom-color: var(--linha-fria); }
.source-link:hover { background: rgba(231, 201, 131, 0.05); }

footer {
  border-top: 1px solid var(--linha);
  background: #050705;
}

.footer-cross { color: var(--ouro-vivo); }

.audio-dock {
  right: 22px;
  bottom: 20px;
  border: 1px solid rgba(231, 201, 131, 0.3);
  border-radius: 0;
  background: rgba(7, 10, 8, 0.92);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
}

.audio-toggle { border-color: var(--ouro); color: var(--ouro-vivo); }
.audio-state { color: var(--ouro-vivo); }

@media (max-width: 1040px) {
  .topnav { display: none; }
  .mobile-menu { display: block; }
  .hero-art img { object-position: 62% center; }
  .hero::before {
    background:
      linear-gradient(90deg, rgba(4, 7, 5, 0.97), rgba(4, 7, 5, 0.82) 52%, rgba(4, 7, 5, 0.35)),
      linear-gradient(0deg, rgba(4, 7, 5, 0.92), transparent 46%);
  }
  .threshold,
  .medal-lab,
  .power-orbit { grid-template-columns: 1fr; }
  .medal-sticky { position: relative; top: auto; }
  .anatomy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
}

@media (max-width: 720px) {
  .topbar { height: 62px; }
  .brand span:last-child { font-size: 9px; }
  .hero {
    min-height: 860px;
    padding: 108px 26px 128px;
    place-items: end start;
  }
  .hero-art img { object-position: 66% center; filter: saturate(0.72) brightness(0.62); }
  .hero::before {
    background:
      linear-gradient(0deg, rgba(4, 7, 5, 0.98) 0%, rgba(4, 7, 5, 0.85) 44%, rgba(4, 7, 5, 0.24) 75%),
      linear-gradient(90deg, rgba(4, 7, 5, 0.62), rgba(4, 7, 5, 0.16));
  }
  .hero::after { inset: 62px 12px 12px; }
  .hero-art figcaption { display: none; }
  .hero-sigil { width: 56px; height: 56px; margin-bottom: 20px; }
  .hero-sigil svg { width: 28px; }
  .hero h1 { font-size: clamp(68px, 23vw, 104px); }
  .hero-lead { font-size: 18px; }
  .hero-actions { display: grid; width: 100%; }
  .hero-link { justify-content: center; }
  .hero-scroll { display: none; }
  .section,
  .section.narrow,
  #medalha { width: min(100% - 34px, 680px); padding-block: 92px; }
  .section-head h2,
  .threshold h2,
  .heart h2 { font-size: clamp(46px, 14vw, 68px); }
  .threshold { gap: 52px; }
  .story-chapter { grid-template-columns: 56px 1fr; gap: 22px; }
  .story-node { width: 46px; height: 46px; font-size: 16px; }
  .history-event { grid-template-columns: 88px 1fr; }
  .medal-stage { width: calc(100vw - 34px); margin-left: calc((100% - (100vw - 34px)) / 2); }
  .medal-coin { width: 94%; height: 94%; }
  .anatomy { display: block; }
  .cipher-row,
  .prayer-line { grid-template-columns: 1fr; gap: 5px; }
  .film-sequence,
  .practice-grid { grid-template-columns: 1fr; }
  .practice:nth-child(5) { grid-column: auto; }
  .film-step { grid-template-columns: 58px 1fr; min-height: 0; }
  .film-icon { width: 44px; height: 44px; font-size: 16px; }
  .audio-dock { right: 10px; bottom: 10px; left: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art img { transform: none; }
}

@media print {
  .hero-art { display: none; }
  .hero { min-height: auto; background: #fff; }
}
