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

:root {
  --parchment: #f2ead8;
  --ink:       #2c1f0e;
  --gold:      #a07830;
  --gold-lt:   #c9a45a;
  --rust:      #8b3a2a;
  --paper:     #faf5e6;
  --shadow:    rgba(0, 0, 0, 0.12);
  --cream:     #f5f0e8;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--parchment);
  font-family: 'EB Garamond', serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(180,140,80,.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(120,80,40,.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
nav {
  width: 100%;
  background: var(--parchment);
  padding: 0 clamp(20px, 5vw, 60px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(160,120,48,.25);
  box-shadow: 0 2px 20px rgba(44,31,14,.06);
}

.nav-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 9px 0 7px;
  border-bottom: 1px solid rgba(160,120,48,.13);
  font-style: italic;
  font-size: clamp(.65rem, 1.5vw, .77rem);
  letter-spacing: .16em;
  color: var(--gold);
  flex-wrap: wrap;
}
.nav-top span { opacity: .55; font-style: normal; }

.nav-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 0;
  gap: 16px;
}

.logo { display: flex; flex-direction: column; line-height: 1; flex-shrink: 0; }
.logo-main {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--ink);
}
.logo-sub {
  font-size: clamp(.55rem, 1.2vw, .67rem);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}

/* hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(160,120,48,.3);
  color: var(--gold);
  font-size: 1.1rem;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 2px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links li a {
  display: block;
  padding: 6px clamp(10px, 2vw, 20px);
  font-size: clamp(.68rem, 1.3vw, .8rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  transition: color .25s;
  white-space: nowrap;
}
.nav-links li a::after {
  content: '';
  position: absolute;
  left: clamp(10px, 2vw, 20px);
  right: clamp(10px, 2vw, 20px);
  bottom: -2px;
  height: 1px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.nav-links li a:hover { color: var(--rust); }
.nav-links li a:hover::after { transform: scaleX(1); }
.nav-links li + li { border-left: 1px solid rgba(160,120,48,.2); }

.nav-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--gold-lt);
  font-style: italic;
  font-size: .75rem;
}
.nav-rule::before, .nav-rule::after {
  content: '';
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(160,120,48,.35), transparent);
}

/* ── Mobile nav ── */
@media (max-width: 700px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 8px 0 16px;
    gap: 0;
  }
  .nav-links.open { display: flex; }

  .nav-links li + li { border-left: none; border-top: 1px solid rgba(160,120,48,.12); }
  .nav-links li a { padding: 12px 4px; font-size: .8rem; }
  .nav-links li a::after { left: 4px; right: 4px; }

  .nav-top { font-size: .62rem; gap: 8px; }
  .nav-rule { display: none; }
}

/* ══════════════════════════════════════
   RESET & VARIÁVEIS (herda do styles.css)
══════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --parchment: #f2ead8;
  --ink:       #2c1f0e;
  --gold:      #a07830;
  --gold-lt:   #c9a45a;
  --rust:      #8b3a2a;
  --paper:     #faf5e6;
  --shadow:    rgba(0, 0, 0, 0.12);
  --cream:     #f5f0e8;
}

html { scroll-behavior: smooth; }

body {
  background: var(--parchment);
  font-family: 'EB Garamond', serif;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(180,140,80,.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(120,80,40,.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.story-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(60px, 12vh, 120px) clamp(24px, 6vw, 80px) clamp(60px, 10vh, 100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* decorative horizontal rules flanking the hero */
.story-hero::before,
.story-hero::after {
  content: '';
  display: block;
  width: min(480px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(160,120,48,.35), transparent);
  margin: 0 auto;
}
.story-hero::before { margin-bottom: clamp(32px, 5vh, 56px); }
.story-hero::after  { margin-top:    clamp(40px, 6vh, 64px); }

.hero-ornament {
  font-size: .9rem;
  color: var(--gold-lt);
  margin-bottom: 20px;
  display: block;
}

.hero-eyebrow {
  font-size: clamp(.6rem, 1.4vw, .7rem);
  letter-spacing: .36em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.2rem, 10vw, 7.5rem);
  line-height: .95;
  color: var(--ink);
  margin-bottom: 28px;
}
.hero-title em {
  font-style: italic;
  color: var(--rust);
  display: block;
}
.hero-title span {
  font-style: normal;
  font-weight: 400;
  display: block;
  opacity: .72;
  font-size: .62em;
  letter-spacing: .06em;
}

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1rem, 2.2vw, 1.22rem);
  line-height: 1.65;
  color: rgba(44,31,14,.65);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: clamp(.62rem, 1.3vw, .72rem);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-meta .dot { opacity: .4; }

.hero-scroll-hint {
  margin-top: clamp(20px, 4vh, 36px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(160,120,48,.5);
  font-size: .65rem;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.hero-scroll-hint svg { animation: scrollBob 2s ease-in-out infinite; }
@keyframes scrollBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.br-desk { display: inline; }
@media (max-width: 600px) { .br-desk { display: none; } }

/* ══════════════════════════════════════
   STORY MAIN
══════════════════════════════════════ */
.story-main {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 48px) clamp(60px, 10vh, 100px);
}

/* ── ACT ── */
.act {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0 clamp(24px, 4vw, 48px);
  margin-bottom: clamp(48px, 8vh, 80px);
  position: relative;
}

/* aside — act label + vertical line */
.act-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6px;
}
.act-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: sticky;
  top: calc(80px + 16px); /* nav height + padding */
}
.act-roman {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--rust);
  line-height: 1;
}
.act-word {
  font-size: .58rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.act-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(180deg, rgba(160,120,48,.4) 0%, transparent 100%);
  margin-top: 12px;
  min-height: 60px;
}

/* act body */
.act-body { padding-bottom: 8px; }

.act-header { margin-bottom: 28px; }
.act-eyebrow {
  font-size: clamp(.6rem, 1.3vw, .68rem);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.act-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  color: var(--ink);
  line-height: 1.2;
}

/* text paragraphs */
.act-text { margin-bottom: 24px; }
.act-text p + p { margin-top: 16px; }
.act-text p {
  font-size: clamp(.88rem, 1.6vw, 1.02rem);
  line-height: 1.82;
  color: #4a3420;
}
.act-text p.lead {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--ink);
  line-height: 1.7;
}
.act-text em { color: var(--rust); font-style: italic; }

/* blockquote */
.act-quote {
  border-left: 2px solid var(--rust);
  margin: 28px 0;
  padding: 20px 28px;
  background: rgba(139,58,42,.04);
  position: relative;
}
.act-quote::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 18px;
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: var(--rust);
  opacity: .18;
  line-height: 1;
}
.act-quote p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 10px;
}
.act-quote cite {
  font-size: clamp(.65rem, 1.3vw, .74rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}

.final-quote {
  border-left-color: var(--gold);
  background: rgba(160,120,48,.05);
}
.final-quote::before { color: var(--gold); }

/* detail cards */
.act-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(160,120,48,.15);
}
.detail-card {
  background: var(--paper);
  border: 1px solid rgba(160,120,48,.12);
  padding: 18px 16px;
  text-align: center;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.detail-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.detail-icon { font-size: 1.4rem; display: block; margin-bottom: 8px; }
.detail-label {
  font-size: .6rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.detail-value {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(.82rem, 1.5vw, .92rem);
  color: var(--ink);
  line-height: 1.35;
}

/* act divider */
.act-divider {
  text-align: center;
  margin: clamp(24px, 4vh, 48px) 0;
  position: relative;
  color: var(--gold-lt);
  font-size: .85rem;
  letter-spacing: .3em;
}
.act-divider::before, .act-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(160,120,48,.3));
}
.act-divider::before { right: 52%; }
.act-divider::after  { left: 52%; transform: scaleX(-1); }

/* ── Mobile: single column ── */
@media (max-width: 640px) {
  .act {
    grid-template-columns: 1fr;
  }
  .act-aside {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-top: 0;
  }
  .act-label {
    flex-direction: row;
    gap: 10px;
    position: static;
  }
  .act-line { display: none; }
  .act-roman { font-size: 1.8rem; }
}

/* ══════════════════════════════════════
   GALLERY SECTION
══════════════════════════════════════ */
.gallery-section {
  position: relative;
  z-index: 1;
  padding: clamp(48px, 8vh, 80px) 0 clamp(60px, 10vh, 100px);
  background: linear-gradient(180deg, var(--parchment) 0%, #e8dfc8 100%);
  overflow: hidden;
}

/* top border */
.gallery-section::before {
  content: '';
  display: block;
  width: min(400px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(160,120,48,.3), transparent);
  margin: 0 auto clamp(40px, 6vh, 64px);
}

.gallery-header {
  text-align: center;
  padding: 0 clamp(16px, 5vw, 40px);
  margin-bottom: clamp(32px, 5vh, 52px);
}
.eyebrow-gold {
  font-size: clamp(.62rem, 1.4vw, .7rem);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.gallery-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.6rem, 4vw, 3rem);
  color: var(--ink);
  margin-bottom: 10px;
}
.gallery-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(.88rem, 1.8vw, 1.05rem);
  color: rgba(44,31,14,.5);
  margin-bottom: 16px;
}
.gallery-rule {
  width: 72px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-lt), transparent);
  margin: 0 auto;
}

/* ── Film strip ── */
.film-strip-outer {
  overflow: hidden;
  padding: 0 clamp(16px, 4vw, 40px);
}

.film-strip {
  background: #1a1208;
  border-radius: 4px;
  padding: 0;
  overflow: hidden;
  position: relative;
}

/* reels (holes strips at top and bottom) */
.reel {
  height: 28px;
  background: #1a1208;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}
.reel-holes {
  display: flex;
  gap: clamp(28px, 8vw, 60px);
  padding: 0 clamp(10px, 2vw, 20px);
  width: 100%;
  justify-content: space-between;
  flex-wrap: nowrap;
  overflow: hidden;
}
.reel-holes span {
  display: block;
  width: clamp(14px, 3vw, 18px);
  height: 10px;
  background: var(--parchment);
  border-radius: 3px;
  opacity: .85;
  flex-shrink: 0;
}

/* frames track */
.frames-track {
  display: flex;
  gap: 20px;
  padding: 12px clamp(16px, 4vw, 32px);
  background: #1a1208;
  transition: transform .45s cubic-bezier(.22,1,.36,1);
  will-change: transform;
  cursor: grab;
}
.frames-track:active { cursor: grabbing; }

.frame {
  flex: 0 0 clamp(220px, 55vw, 380px);
  cursor: pointer;
  position: relative;
}
.frame-inner {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: #2a1e10;
  border: 2px solid rgba(201,164,90,.15);
}
.frame-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease, filter .4s ease;
  filter: sepia(.15) contrast(1.05);
}
.frame:hover .frame-inner img {
  transform: scale(1.04);
  filter: sepia(0) contrast(1.08);
}

/* fallback for missing images */
.frame-inner.img-error {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #231a0e;
}
.frame-inner.img-error::after {
  content: '🎬';
  font-size: 2.5rem;
  opacity: .35;
}

.frame-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 16px 14px;
  background: linear-gradient(transparent, rgba(20,12,4,.75));
  transform: translateY(100%);
  transition: transform .35s ease;
}
.frame:hover .frame-overlay { transform: translateY(0); }
.frame-caption {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(.75rem, 1.5vw, .88rem);
  color: rgba(242,234,216,.85);
  text-align: center;
}

/* controls */
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 24px 0 12px;
  padding: 0 16px;
}
.gal-btn {
  background: none;
  border: 1px solid rgba(160,120,48,.35);
  color: var(--gold);
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s, color .2s;
  flex-shrink: 0;
}
.gal-btn:hover {
  background: var(--rust);
  border-color: var(--rust);
  color: var(--parchment);
}

.gal-dots { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.gal-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(160,120,48,.25);
  border: none;
  cursor: pointer;
  transition: background .25s, transform .25s;
  padding: 0;
}
.gal-dot.active {
  background: var(--rust);
  transform: scale(1.35);
}

.gallery-caption-text {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(.82rem, 1.7vw, .96rem);
  color: rgba(44,31,14,.5);
  min-height: 1.4em;
  padding: 0 clamp(16px, 5vw, 60px);
  transition: opacity .4s;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.story-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(40px, 6vh, 60px) 24px;
  border-top: 1px solid rgba(160,120,48,.15);
}
.footer-ornament {
  color: var(--gold-lt);
  letter-spacing: .5em;
  font-size: .8rem;
  margin-bottom: 20px;
}
.footer-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: rgba(44,31,14,.55);
  margin-bottom: 12px;
}
.footer-credit {
  font-size: .6rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(160,120,48,.45);
}

.btn-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px; /* Espaçamento entre o ícone e o texto */
    background-color: #f8efd5;
    color: #333;
    text-decoration: none;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    transition: background-color 0.3s, box-shadow 0.3s;
}

/* Efeito ao passar o mouse */
.btn-link:hover {
    background-color:  #f2ead8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.icone {
    width: 24px;
    height: 24px;
    width: 30px;
    height: 30px;
    object-fit: cover; /* Garante que a imagem não fique distorcida */
    border-radius: 50%;
}