/* ILUSÃO — promo site */
:root {
  --ink: #0a1208;
  --ink-2: #050805;
  --ink-3: #121b0f;
  --moss: #1a2818;
  --paper: #d8d0b8;
  --paper-2: #c4bb9f;
  --paper-ink: #1c1a14;
  --gold: #c9a961;
  --gold-soft: #c9a96155;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: #050805;
  color: #d6d3c4;
  font-family: 'IM Fell English', 'Cormorant Garamond', Georgia, serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* =================================================
   HERO
================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(4,6,5,0.55) 0%, rgba(8,17,10,0.35) 35%, rgba(4,8,6,0.7) 100%),
    url("forest-hero.png") center center / cover no-repeat,
    #040605;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 48px;
  animation: bg-breathe 14s ease-in-out infinite alternate;
}
@keyframes bg-breathe {
  0% { background-size: auto, 105% auto, auto; }
  100% { background-size: auto, 112% auto, auto; }
}

.fog-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 2;
}
.fog { width: 100%; height: 100%; }
.fog-blob { transform-origin: center; }
.fog-a { animation: drift-a 38s ease-in-out infinite alternate; }
.fog-b { animation: drift-b 52s ease-in-out infinite alternate; }
.fog-c { animation: drift-c 64s ease-in-out infinite alternate; }
@keyframes drift-a { 0% { transform: translate(-50px, 10px) scale(1); } 100% { transform: translate(120px, -30px) scale(1.15); } }
@keyframes drift-b { 0% { transform: translate(50px, -20px) scale(1.1); } 100% { transform: translate(-100px, 40px) scale(0.95); } }
@keyframes drift-c { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-80px, -10px) scale(1.2); } }

.vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, transparent 35%, rgba(0,0,0,0.6) 75%, rgba(0,0,0,0.98) 100%);
  pointer-events: none;
  z-index: 5;
}

/* trees */
.trees {
  position: absolute;
  left: 0; right: 0;
  bottom: -2vh;
  height: 78vh;
  pointer-events: none;
}
.tree {
  position: absolute;
  bottom: 0;
}
.tree-z0 { opacity: 0.95; filter: blur(0.4px); z-index: 4; }
.tree-z1 { opacity: 0.75; filter: blur(1.2px); transform: scale(0.78); transform-origin: bottom center; z-index: 3; }
.tree-z2 { opacity: 0.45; filter: blur(2.4px); transform: scale(0.55); transform-origin: bottom center; z-index: 2; }
.trunk {
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #050805 0%, #0a0e08 100%);
  border-radius: 1px;
}
.branches { position: absolute; left: 50%; top: 0; bottom: 30%; width: 0; }
.branch {
  position: absolute;
  left: 0;
  height: 1px;
  background: #0a0e08;
  transform-origin: left center;
}
.branch-L { transform-origin: right center; right: 0; left: auto; }

/* hero content */
.hero-inner {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 880px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Special Elite', 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: #b8a87c99;
  margin-bottom: 36px;
  text-transform: uppercase;
}
.kicker-dot {
  display: inline-block;
  width: 4px; height: 4px;
  background: #b8a87c;
  border-radius: 50%;
  opacity: 0.55;
}

.title {
  font-family: 'Cormorant Garamond', 'IM Fell English', Georgia, serif;
  font-weight: 500;
  font-size: clamp(80px, 18vw, 240px);
  line-height: 0.92;
  letter-spacing: 0.04em;
  font-variant: small-caps;
  text-transform: lowercase;
  text-shadow:
    0 0 30px rgba(201, 169, 97, 0.35),
    0 0 80px rgba(201, 169, 97, 0.12),
    0 2px 0 rgba(0,0,0,0.6);
  position: relative;
}
.title.flicker {
  animation: title-flicker 7s infinite;
}
@keyframes title-flicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.6; }
  94% { opacity: 1; }
  95% { opacity: 0.4; }
  96% { opacity: 0.95; }
  97% { opacity: 0.7; }
  98% { opacity: 1; }
}

.serif-rule {
  height: 1px;
  width: min(60%, 420px);
  margin: 36px auto 28px;
}

.tagline {
  font-family: 'IM Fell English', 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.55;
  color: #c4bfa8;
  margin-bottom: 36px;
  text-wrap: balance;
}

.typewriter {
  font-family: 'Special Elite', 'Courier Prime', monospace;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: #9ba076;
  margin-bottom: 56px;
  text-transform: uppercase;
}
.caret {
  display: inline-block;
  color: #c9a961;
  animation: blink 1.05s steps(2, start) infinite;
  margin-left: 2px;
}
@keyframes blink { to { visibility: hidden; } }

.enter {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  font-family: 'Special Elite', 'Courier Prime', monospace;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #d6d3c4;
  border: 1px solid #c9a96144;
  background: rgba(10, 18, 8, 0.4);
  transition: all 0.35s ease;
  backdrop-filter: blur(4px);
}
.enter:hover {
  border-color: #c9a961;
  color: #c9a961;
  background: rgba(20, 30, 16, 0.55);
  letter-spacing: 0.42em;
  padding-left: 32px; padding-right: 32px;
}
.enter-arrow {
  display: inline-block;
  animation: arrow-bob 2.2s ease-in-out infinite;
  color: #c9a961;
}
@keyframes arrow-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

.hero-foot {
  position: absolute;
  bottom: 24px; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  padding: 0 32px;
  font-family: 'Special Elite', 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: #6e7a5e;
  text-transform: uppercase;
}

/* =================================================
   DOSSIER (Section 2 — paper / case file)
================================================= */
.dossier {
  position: relative;
  background: #0a1208;
  padding: 100px 24px 80px;
  border-top: 1px solid #1a2818;
}

.paper-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(20, 35, 18, 0.6) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(8, 14, 8, 1) 0%, transparent 60%);
  pointer-events: none;
}

.dossier-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  z-index: 2;
}

/* header */
.dossier-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: start;
  padding-bottom: 36px;
  margin-bottom: 56px;
  border-bottom: 1px dashed #2a3a26;
}

.stamp {
  display: inline-block;
  padding: 8px 18px;
  border: 2px solid #9b3d2a;
  color: #c44a36;
  font-family: 'Special Elite', monospace;
  font-size: 13px;
  letter-spacing: 0.32em;
  transform: rotate(-3deg);
  opacity: 0.78;
  box-shadow: inset 0 0 0 1px #9b3d2a55;
}

.case-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  font-family: 'Special Elite', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
}
.case-meta > div {
  display: flex;
  gap: 14px;
  align-items: baseline;
  border-bottom: 1px dotted #2a3a26;
  padding-bottom: 6px;
}
.meta-k {
  color: #6e7a5e;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.22em;
  min-width: 130px;
}
.meta-v {
  color: #d6d3c4;
  text-transform: uppercase;
}
.status-esc { color: #c44a36; }

/* brief */
.brief, .evidence {
  margin-bottom: 80px;
}

.brief-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin-bottom: 36px;
  font-variant: small-caps;
  text-transform: lowercase;
  display: flex;
  align-items: baseline;
  gap: 22px;
  flex-wrap: wrap;
}
.brief-num {
  font-family: 'Special Elite', monospace;
  font-size: 13px;
  letter-spacing: 0.28em;
  color: #6e7a5e;
  font-variant: normal;
  text-transform: uppercase;
  font-style: normal;
}

.brief-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  max-width: 720px;
  font-size: 19px;
  line-height: 1.7;
  color: #c4bfa8;
}
.brief-body p { text-wrap: pretty; }
.brief-body em {
  font-style: italic;
  color: #e8e3cc;
}

.warn {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  background: rgba(155, 61, 42, 0.08);
  border-left: 2px solid #9b3d2a;
  margin-top: 16px;
  font-size: 17px;
}
.warn-bar {
  display: inline-block;
  width: 14px; height: 14px;
  background: #9b3d2a;
  margin-top: 6px;
  flex-shrink: 0;
}
.warn strong { color: #c44a36; }

.folklore {
  margin-top: 56px;
  max-width: 720px;
  padding: 32px 36px;
  background: linear-gradient(180deg, rgba(20, 30, 16, 0.4), rgba(10, 18, 8, 0.4));
  border: 1px solid #1f2c1c;
  border-left: 3px solid var(--gold);
  font-size: 17px;
  line-height: 1.7;
  color: #b8b39d;
}
.folklore-tag {
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #6e7a5e;
  margin-bottom: 14px;
}
.folklore p + p { margin-top: 14px; }
.folklore-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 24px;
  line-height: 1.4;
  margin-top: 20px;
  text-wrap: balance;
}
.folklore-quote u { text-decoration-color: currentColor; text-underline-offset: 4px; }

/* evidence / link grid */
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 720px) {
  .link-grid { grid-template-columns: 1fr; }
  .case-meta { grid-template-columns: 1fr; }
  .dossier-head { grid-template-columns: 1fr; }
}

.link-card {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 28px 32px;
  background:
    linear-gradient(180deg, rgba(18, 28, 16, 0.6), rgba(8, 14, 8, 0.6));
  border: 1px solid #1f2c1c;
  transition: all 0.4s ease;
  overflow: hidden;
}
.link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 100% at 100% 50%, var(--accent, #c9a961) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.link-card:hover { border-color: var(--accent, #c9a961); transform: translateY(-2px); }
.link-card:hover::before { opacity: 0.18; }

.lc-tag {
  font-family: 'Special Elite', monospace;
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #6e7a5e;
  border: 1px solid #2a3a26;
  padding: 4px 8px;
  white-space: nowrap;
}
.link-card:hover .lc-tag { color: var(--accent); border-color: var(--accent); }

.lc-icon {
  font-size: 22px;
  font-family: 'Cormorant Garamond', serif;
  width: 32px;
  text-align: center;
}

.lc-label {
  font-family: 'Special Elite', monospace;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e8e3cc;
  margin-bottom: 4px;
}
.lc-sub {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 14px;
  color: #8a8b74;
}
.lc-corner {
  position: absolute;
  top: 6px; right: 6px;
  width: 10px; height: 10px;
  border-top: 1px solid;
  border-right: 1px solid;
  opacity: 0.5;
}

/* footer */
.dossier-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 48px;
  border-top: 1px dashed #2a3a26;
}
.sig-line {
  width: 220px;
  height: 1px;
  margin-bottom: 8px;
  opacity: 0.7;
}
.sig-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  color: #d6d3c4;
}
.sig-role {
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #6e7a5e;
  margin-top: 4px;
}
.rights {
  text-align: right;
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: #6e7a5e;
  text-transform: uppercase;
}
.rights-sub {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #8a8b74;
  margin-top: 8px;
  text-transform: none;
}

/* =================================================
   GRAIN (top overlay)
================================================= */
.grain {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: overlay;
  z-index: 100;
}

/* Hide focus outlines for mouse, keep for keyboard */
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid #c9a961; outline-offset: 4px; }

/* ---- Language toggle button ---- */
.lang-toggle {
  position: fixed;
  top: 1.2rem;
  right: 1.4rem;
  z-index: 999;
  background: transparent;
  border: 1px solid;
  padding: 0.35rem 0.75rem;
  font-family: 'Special Elite', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-toggle:hover {
  background: rgba(201,169,97,0.12);
}
