/* =========================================================
   Madalena Costa — estilos
   Paleta e tipografia definidas em :root. Para mudar cores,
   basta alterar as variáveis abaixo.
   ========================================================= */

:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --tint: #efe9e0;
  --ink: #1c1a17;
  --ink-soft: #3a3631;
  --muted: #7a726a;
  --line: rgba(28, 26, 23, 0.1);
  --accent: #a3844c;
  --accent-deep: #7f6535;
  --accent-soft: rgba(163, 132, 76, 0.12);
  --dark: #151311;
  --dark-soft: #221f1b;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(28, 26, 23, 0.04), 0 12px 32px -12px rgba(28, 26, 23, 0.14);
  --shadow-lg: 0 30px 60px -24px rgba(28, 26, 23, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --header-h: 76px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img,
iframe {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
}

p {
  margin: 0;
}

em {
  font-style: italic;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ---------- layout helpers ---------- */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container.narrow {
  max-width: 820px;
}

.section {
  padding: clamp(5rem, 11vw, 9rem) 0;
}

.section-tight {
  padding-top: 0;
}

.section-first {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 5rem));
}

.section-tint {
  background: var(--tint);
}

.section-dark {
  background: var(--dark);
  color: #f2ede6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5vw, 3.75rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.section-title em,
.page-title em {
  color: var(--accent);
}

.section-head {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.page-hero {
  padding: calc(var(--header-h) + clamp(3rem, 9vw, 7rem)) 0 clamp(3rem, 7vw, 5rem);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7.5vw, 5.75rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
}

.page-intro {
  max-width: 46rem;
  margin-top: 1.75rem;
  font-size: 1.05rem;
  color: var(--muted);
}

.prose p + p,
.prose p + ul,
.prose ul + p {
  margin-top: 1.1rem;
}

.prose p {
  color: var(--ink-soft);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.35rem;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.link-arrow span {
  transition: transform 0.35s var(--ease);
}

.link-arrow:hover,
a:hover > .link-arrow {
  color: var(--accent-deep);
  border-color: var(--accent);
}

.link-arrow:hover span,
a:hover > .link-arrow span,
a:hover .link-arrow span {
  transform: translateX(4px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-light {
  background: #f2ede6;
  color: var(--dark);
}

.btn-light:hover {
  background: var(--accent);
  color: #fff;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), opacity 0.3s;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn:hover:not(:disabled) {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* reveal on scroll */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Header + menu
   ========================================================= */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  color: var(--ink);
  background: rgba(247, 244, 239, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease),
    transform 0.45s var(--ease);
}

.site-header.is-overlay:not(.is-scrolled) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: transparent;
  color: #fff;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
}

.menu-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  padding: 0 10px;
}

.menu-toggle span {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: width 0.4s var(--ease);
}

.menu-toggle span:nth-child(1) { width: 24px; }
.menu-toggle span:nth-child(2) { width: 16px; }
.menu-toggle span:nth-child(3) { width: 20px; }

.menu-toggle:hover span {
  width: 24px;
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  pointer-events: none;
}

.menu.is-open {
  visibility: visible;
  pointer-events: auto;
}

.menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 19, 17, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.menu.is-open .menu-backdrop {
  opacity: 1;
}

.menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter) 2rem;
  background: var(--dark);
  color: #f2ede6;
  transform: translateX(100%);
  transition: transform 0.65s var(--ease);
  overflow-y: auto;
}

@media (min-width: 768px) {
  .menu-panel {
    width: min(50vw, 640px);
    padding: 0 clamp(2rem, 4vw, 4rem) 2.5rem;
  }
}

.menu.is-open .menu-panel {
  transform: none;
}

.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}

.menu-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

.menu-close {
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border-radius: 50%;
  transition: background 0.3s;
}

.menu-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.menu-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 1.5px;
  background: currentColor;
}

.menu-close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.menu-close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

.menu-links {
  list-style: none;
  margin: auto 0;
  padding: 2rem 0;
}

.menu-links li {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}

.menu.is-open .menu-links li {
  opacity: 1;
  transform: none;
}

.menu.is-open .menu-links li:nth-child(1) { transition-delay: 0.12s; }
.menu.is-open .menu-links li:nth-child(2) { transition-delay: 0.16s; }
.menu.is-open .menu-links li:nth-child(3) { transition-delay: 0.2s; }
.menu.is-open .menu-links li:nth-child(4) { transition-delay: 0.24s; }
.menu.is-open .menu-links li:nth-child(5) { transition-delay: 0.28s; }
.menu.is-open .menu-links li:nth-child(6) { transition-delay: 0.32s; }
.menu.is-open .menu-links li:nth-child(7) { transition-delay: 0.36s; }
.menu.is-open .menu-links li:nth-child(8) { transition-delay: 0.4s; }

.menu-links a {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 0.35rem 0;
  color: rgba(242, 237, 230, 0.55);
  transition: color 0.35s var(--ease);
}

.menu-index {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  min-width: 1.6rem;
}

.menu-label {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vh, 3.1rem);
  font-weight: 300;
  line-height: 1.15;
  transition: transform 0.45s var(--ease);
}

.menu-links a:hover,
.menu-links a[aria-current='page'] {
  color: #f2ede6;
}

.menu-links a:hover .menu-label {
  transform: translateX(8px);
}

.menu-links a[aria-current='page'] .menu-label {
  font-style: italic;
}

.menu-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(242, 237, 230, 0.12);
  font-size: 0.85rem;
}

.menu-mail {
  color: rgba(242, 237, 230, 0.7);
  word-break: break-all;
  transition: color 0.3s;
}

.menu-mail:hover {
  color: #fff;
}

.social {
  display: flex;
  gap: 0.5rem;
}

.social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid currentColor;
  border-color: rgba(127, 127, 127, 0.3);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s;
}

.social svg {
  width: 18px;
  height: 18px;
}

.social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* =========================================================
   Home — hero
   ========================================================= */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background: var(--dark);
}

.hero-slides {
  position: absolute;
  inset: 0;
  animation: hero-in 2.4s var(--ease) both;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, center);
  opacity: 0;
  overflow: hidden;
  transition: opacity 1.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide.is-active,
.hero-slide.is-prev {
  animation: ken-burns 9s linear both;
}

/* foto + fundo desfocado (criados pelo script) */
.hero-photo,
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, center);
}

.hero-bg {
  display: none;
  transform: scale(1.15);
  filter: blur(28px) brightness(0.55) saturate(1.1);
}

/* quando a foto ficaria muito cortada: mostra-a inteira */
.hero-slide.is-contain .hero-bg {
  display: block;
}

.hero-slide.is-contain .hero-photo {
  object-fit: contain;
}

@keyframes ken-burns {
  from { transform: scale(1.04); }
  to { transform: scale(1); }
}

@keyframes hero-in {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: none; }
}

.hero-dots {
  position: absolute;
  right: var(--gutter);
  bottom: 2.4rem;
  z-index: 2;
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 36px;
  height: 24px;
  display: grid;
  align-items: center;
}

.hero-dot span {
  position: relative;
  display: block;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.hero-dot span::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}

.hero-dot.is-active span::after {
  animation: dot-progress var(--slide-time, 6s) linear forwards;
}

.hero-dots.is-paused .hero-dot.is-active span::after {
  animation: none;
  transform: scaleX(1);
}

@keyframes dot-progress {
  to { transform: scaleX(1); }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 22%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 30%);
  pointer-events: none;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 72px;
}

.scroll-cue-line {
  position: relative;
  width: 1px;
  height: 56px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

.scroll-cue-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: -50%;
  width: 100%;
  height: 50%;
  background: #fff;
  animation: cue 2.2s var(--ease) infinite;
}

@keyframes cue {
  0% { top: -50%; }
  100% { top: 100%; }
}

/* =========================================================
   About
   ========================================================= */

.about {
  display: grid;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

@media (min-width: 900px) {
  .about {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.about-media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-body .section-title {
  margin-bottom: 2rem;
}

.about-body .prose {
  max-width: 36rem;
}

/* =========================================================
   Home — news
   ========================================================= */

.news-card {
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 820px) {
  .news-card {
    grid-template-columns: 1.1fr 1fr;
  }
}

.news-media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.news-card:hover .news-media img {
  transform: scale(1.04);
}

.news-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
}

.news-body .section-title {
  margin-bottom: 1.25rem;
}

.news-body p {
  color: var(--muted);
}

.news-body .link-arrow {
  align-self: flex-start;
}

/* =========================================================
   Support (home + page)
   ========================================================= */

.support {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}

@media (min-width: 960px) {
  .support {
    grid-template-columns: 1fr 1fr;
  }
}

.support-intro .section-title {
  margin-bottom: 1.5rem;
}

.support-intro p {
  max-width: 32rem;
  margin-bottom: 2.25rem;
  color: rgba(242, 237, 230, 0.7);
}

.payment-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .payment-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.support .payment-grid {
  grid-template-columns: 1fr;
}

.payment-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.section-dark .payment-card {
  background: var(--dark-soft);
  border-color: rgba(242, 237, 230, 0.08);
}

.payment-type {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.payment-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
}

.payment-value {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-align: left;
  word-break: break-word;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.payment-value:hover {
  background: rgba(163, 132, 76, 0.22);
}

.payment-value.is-copied {
  background: var(--accent);
  color: #fff;
}

.payment-hint {
  font-size: 0.75rem;
  color: var(--muted);
}

.section-dark .payment-hint {
  color: rgba(242, 237, 230, 0.45);
}

.support-page {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

@media (min-width: 960px) {
  .support-page {
    grid-template-columns: 1.3fr 1fr;
  }
}

.progress-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.progress-figures {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.progress-current {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
}

.progress-goal {
  color: var(--muted);
}

.progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--tint);
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  transition: width 1.6s var(--ease);
}

.progress-percent {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.progress-percent strong {
  color: var(--ink);
  font-weight: 600;
}

.rewards {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.rewards li {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.reward-price {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--accent-deep);
}

.reward-text {
  color: var(--ink-soft);
}

.thanks {
  text-align: center;
}

.thanks .section-title {
  margin-bottom: 1.25rem;
}

.thanks p {
  color: var(--muted);
}

/* =========================================================
   Agenda — calendar
   ========================================================= */

.agenda {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 960px) {
  .agenda {
    grid-template-columns: 1.15fr 1fr;
  }
}

.calendar {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.calendar-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  font-weight: 400;
  line-height: 1.1;
  text-transform: capitalize;
}

.calendar-title span {
  color: var(--muted);
  font-style: italic;
}

.calendar-nav {
  display: flex;
  gap: 0.5rem;
}

.calendar-body {
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.calendar-body.is-leaving-left {
  opacity: 0;
  transform: translateX(-16px);
}

.calendar-body.is-leaving-right {
  opacity: 0;
  transform: translateX(16px);
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}

.calendar-weekdays {
  margin-bottom: 0.5rem;
}

.calendar-weekdays span {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.4rem 0;
}

.calendar-day {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-height: 64px;
  margin: 0 auto;
  width: 100%;
  border-radius: 50%;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}

.calendar-day.is-empty {
  visibility: hidden;
}

.calendar-day.is-weekend {
  color: var(--muted);
}

.calendar-day.is-today {
  box-shadow: inset 0 0 0 1px var(--ink);
  font-weight: 600;
  color: var(--ink);
}

.calendar-day.has-event {
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.calendar-day.has-event::after {
  content: '';
  position: absolute;
  bottom: 18%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.calendar-day.has-event.is-past {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.calendar-day.has-event:hover,
.calendar-day.has-event.is-highlight {
  transform: scale(1.1);
  background: var(--accent);
  color: #fff;
}

.calendar-day.has-event:hover::after,
.calendar-day.has-event.is-highlight::after {
  background: #fff;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--muted);
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.calendar-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
}

.calendar-legend i.is-past {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.agenda-list .eyebrow {
  margin-bottom: 1.5rem;
}

.agenda-events {
  display: grid;
  gap: 0.75rem;
}

.event-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 1.1rem;
  align-items: center;
  padding: 0.75rem;
  padding-right: 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  animation: fade-up 0.6s var(--ease) both;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.event-card:hover,
.event-card.is-highlight {
  border-color: transparent;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.event-card.is-past {
  opacity: 0.72;
}

.event-thumb {
  width: 72px;
  height: 92px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--tint);
}

.event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-date {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.event-title {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.2;
}

.event-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.event-arrow {
  font-size: 1.1rem;
  color: var(--muted);
  transition: transform 0.35s var(--ease), color 0.35s;
}

.event-card:hover .event-arrow {
  transform: translateX(4px);
  color: var(--ink);
}

.agenda-empty {
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
  animation: fade-up 0.6s var(--ease) both;
}

.agenda-empty button {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--accent-deep);
  border-bottom: 1px solid currentColor;
  font-size: 0.85rem;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* =========================================================
   Diário Musical (blog)
   ========================================================= */

.diary-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(340px, 52vh, 520px);
  padding: calc(var(--header-h) + 3rem) 0 clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
  background: var(--dark);
  color: #f7f1e8;
}

.diary-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.55;
  animation: hero-in 2s var(--ease) both;
}

.diary-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(21, 19, 17, 0.85) 0%, rgba(21, 19, 17, 0.35) 60%, rgba(21, 19, 17, 0.1) 100%);
}

.diary-hero-content {
  position: relative;
  z-index: 1;
}

.diary-hero .eyebrow {
  color: #d9bc85;
}

.diary-hero-sub {
  margin-top: 1rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(247, 241, 232, 0.8);
}

.section-diary {
  padding-top: clamp(2rem, 5vw, 3rem);
}

/* filtros */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.chip {
  flex: none;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(163, 132, 76, 0.45);
  background: transparent;
  font-size: 0.85rem;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.chip:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.chip.is-active {
  background: var(--dark);
  border-color: var(--dark);
  color: #f7f1e8;
}

/* cartões */
.entries {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 2.75rem) clamp(1.25rem, 2.5vw, 2rem);
}

@media (min-width: 600px) {
  .entries {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .entries {
    grid-template-columns: repeat(3, 1fr);
  }
}

.entry.is-hidden {
  display: none;
}

.entry.is-entering {
  animation: fade-up 0.5s var(--ease) both;
}

.entry-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.entry-media {
  display: block;
  aspect-ratio: 16 / 10;
  margin-bottom: 1.1rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--tint);
}

.entry-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 1.1s var(--ease);
}

.entry-card:hover .entry-media img {
  transform: scale(1.05);
}

.entry-media.is-empty {
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(201, 164, 92, 0.35), transparent 55%),
    linear-gradient(135deg, #2a231c, var(--dark));
}

.entry-placeholder {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-style: italic;
  color: #e3c98f;
  text-align: center;
  line-height: 1.1;
  transition: transform 1.1s var(--ease);
}

.entry-card:hover .entry-placeholder {
  transform: scale(1.05);
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.entry-tag {
  color: var(--accent-deep);
  font-weight: 600;
}

.entry-tag::after {
  content: '·';
  margin-left: 0.75rem;
  color: var(--muted);
}

.entry-title {
  margin: 0.55rem 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.15;
  transition: color 0.3s;
}

.entry-card:hover .entry-title {
  color: var(--accent-deep);
}

.entry-more {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
}

.entry-more span {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}

.entry-card:hover .entry-more span {
  transform: translateX(4px);
}

.entries-empty {
  padding: 3rem 0;
  text-align: center;
  color: var(--muted);
}

/* artigo aberto */
.article-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: clamp(0rem, 3vw, 2rem);
}

.article-modal[hidden] {
  display: none;
}

.article-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 19, 17, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade 0.35s var(--ease);
}

.article-panel {
  position: relative;
  width: min(100%, 760px);
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  animation: article-in 0.5s var(--ease);
}

@media (min-width: 640px) {
  .article-panel {
    max-height: calc(100vh - 4rem);
    border-radius: var(--radius-lg);
  }
}

@media (max-width: 639px) {
  .article-panel {
    height: 100%;
  }
}

@keyframes article-in {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}

.article-close {
  position: sticky;
  top: 1rem;
  float: right;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin: 1rem 1rem -60px 0;
  border-radius: 50%;
  background: rgba(247, 244, 239, 0.9);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.article-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
}

.article-close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.article-close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

.article-media {
  margin: 0;
}

.article-media img {
  width: 100%;
  max-height: 60vh;
  object-fit: cover;
}

.article-media .entry-media {
  margin: 0;
  border-radius: 0;
  aspect-ratio: 16 / 7;
}

.article-body {
  padding: clamp(1.75rem, 5vw, 3rem);
}

.article-title {
  margin: 0.75rem 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.1;
}

.article-text ul {
  margin: 1.1rem 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.article-text li + li {
  margin-top: 0.4rem;
}

.article-text a:not(.link-arrow) {
  color: var(--accent-deep);
  border-bottom: 1px solid currentColor;
}

.article-text .link-arrow {
  margin-top: 0.75rem;
}

/* =========================================================
   Experience — timeline
   ========================================================= */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.25rem;
  padding: clamp(2rem, 5vw, 3rem) 0;
  border-top: 1px solid var(--line);
}

.timeline-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--accent);
  line-height: 1.3;
}

.timeline-title {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.25rem);
  font-weight: 400;
  line-height: 1.15;
}

.timeline-item p {
  color: var(--ink-soft);
}

.timeline-item p + p {
  margin-top: 1rem;
}

/* =========================================================
   Gallery (main + concert pages)
   ========================================================= */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 180px;
  grid-auto-flow: dense;
  gap: 0.75rem;
}

@media (min-width: 820px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 260px;
    gap: 1rem;
  }
}

.gallery-item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--tint);
}

.gallery-item.is-wide {
  grid-column: span 2;
}

.gallery-item.is-tall {
  grid-row: span 2;
}

.gallery-item.is-video {
  grid-column: 1 / -1;
  grid-row: span 2;
  background: #000;
}

@media (max-width: 819px) {
  .gallery-item.is-video {
    grid-row: span 1;
    aspect-ratio: 16 / 9;
    height: auto;
  }
}

.gallery-item img,
.gallery-item iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.gallery-item img {
  cursor: zoom-in;
  transition: transform 1s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.5rem 1.1rem 1rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), transparent);
  color: #fff;
  font-size: 0.82rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
}

.gallery-item:hover figcaption {
  opacity: 1;
  transform: none;
}

@media (hover: none) {
  .gallery-item figcaption {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   Concert pages
   ========================================================= */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.3s, gap 0.3s var(--ease);
}

.back-link:hover {
  color: var(--ink);
  gap: 0.8rem;
}

.concert {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .concert {
    grid-template-columns: 1fr 1fr;
  }
}

.concert-posters {
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.concert-posters.is-pair {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.concert-posters img {
  width: auto;
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  cursor: zoom-in;
}

.concert-text .page-title {
  margin-bottom: 1.75rem;
}

.concert.is-poster-only .concert-text {
  order: -1;
}

@media (min-width: 900px) {
  .concert.is-poster-only .concert-text {
    order: 0;
  }
}

/* =========================================================
   Contact
   ========================================================= */

.contact {
  display: grid;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: end;
}

@media (min-width: 960px) {
  .contact {
    grid-template-columns: 1.1fr 1fr;
  }
}

.contact-intro .page-title {
  margin-bottom: 1.75rem;
}

.contact-intro p {
  max-width: 34rem;
  color: var(--muted);
}

.contact-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.contact-list > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-list dt {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list dd {
  margin: 0;
  font-size: 1rem;
  word-break: break-word;
}

.contact-list dd a {
  transition: color 0.3s;
}

.contact-list dd a:hover {
  color: var(--accent-deep);
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background: var(--dark);
  color: rgba(242, 237, 230, 0.75);
  padding: clamp(3.5rem, 7vw, 5rem) 0 2rem;
}

.footer-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr auto auto;
    gap: 3rem;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 2rem;
  color: #f2ede6;
  line-height: 1.1;
}

.footer-role {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.88rem;
}

.footer-nav a {
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: #fff;
}

.site-footer .social a {
  border-color: rgba(242, 237, 230, 0.2);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  background: linear-gradient(rgba(242, 237, 230, 0.1), rgba(242, 237, 230, 0.1)) no-repeat var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px;
  font-size: 0.75rem;
  color: rgba(242, 237, 230, 0.45);
}

/* =========================================================
   Lightbox
   ========================================================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(15, 13, 11, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade 0.35s var(--ease);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 1rem;
  animation: zoom-in 0.45s var(--ease);
}

.lightbox-image {
  max-width: 94vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.lightbox-caption {
  color: rgba(242, 237, 230, 0.75);
  font-size: 0.85rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  transition: background 0.3s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 1.5px;
  background: currentColor;
}

.lightbox-close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.lightbox-close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.3s;
  z-index: 1;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lightbox-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

@media (max-width: 640px) {
  .lightbox-nav {
    top: auto;
    bottom: 1rem;
    margin-top: 0;
  }
}

.lightbox-counter {
  position: absolute;
  top: 1.6rem;
  left: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: rgba(242, 237, 230, 0.6);
}

.lightbox-image.is-switching {
  animation: zoom-in 0.4s var(--ease);
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoom-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: none; }
}

/* =========================================================
   Reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   Galeria — vídeos + fotografias (masonry)
   ========================================================= */

.gallery-block + .gallery-block {
  margin-top: clamp(3.5rem, 8vw, 6rem);
}

.gallery-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.gallery-block-head .eyebrow {
  margin-bottom: 0;
}

.gallery-count {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--muted);
}

.video-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 820px) {
  .video-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.video-card {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}

.video-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.masonry {
  columns: 2;
  column-gap: 0.75rem;
}

@media (min-width: 820px) {
  .masonry {
    columns: 3;
    column-gap: 1.25rem;
  }
}

.masonry-item {
  position: relative;
  margin: 0 0 0.75rem;
  break-inside: avoid;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--tint);
}

@media (min-width: 820px) {
  .masonry-item {
    margin-bottom: 1.25rem;
  }
}

.masonry-item img {
  width: 100%;
  height: auto;
  cursor: zoom-in;
  transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
}

.masonry-item:hover img {
  transform: scale(1.04);
}

.masonry-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 3rem 1.1rem 1rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
}

.masonry-item:hover figcaption {
  opacity: 1;
  transform: none;
}

@media (hover: none) {
  .masonry-item figcaption {
    display: none;
  }
}

/* =========================================================
   Experiência — foto de abertura
   ========================================================= */

.experience-photo-wrap {
  max-width: 1360px;
}

.experience-photo {
  margin: 0 0 clamp(3rem, 7vw, 5rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 85vh;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .experience-photo {
    aspect-ratio: auto;
    width: 100%;
    height: min(82vh, 820px);
    max-height: none;
  }
}

.experience-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  cursor: zoom-in;
}

/* =========================================================
   Intro — "Madalena Costa" ao entrar no site
   ========================================================= */

.intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: var(--dark);
  color: #f2ede6;
  text-align: center;
  cursor: pointer;
  animation: intro-out 0.9s var(--ease) 2.1s forwards;
}

.intro-seen .intro {
  display: none;
}

html.intro-lock,
html.intro-lock body {
  overflow: hidden;
}

.intro-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 9.5vw, 7.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.intro-name span {
  display: inline-block;
  opacity: 0;
  filter: blur(12px);
  animation: intro-word 1.4s var(--ease) forwards;
}

.intro-name span + span {
  margin-left: 0.25em;
  font-style: italic;
  color: var(--accent);
  animation-delay: 0.25s;
}

.intro-role {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  text-transform: uppercase;
  color: rgba(242, 237, 230, 0.55);
  opacity: 0;
  animation: fade 1s var(--ease) 0.8s forwards;
}

@keyframes intro-word {
  from { opacity: 0; filter: blur(12px); transform: translateY(12px) scale(1.04); }
  to { opacity: 1; filter: blur(0); transform: none; }
}

@keyframes intro-out {
  to { opacity: 0; visibility: hidden; }
}

.intro-full .hero-slides {
  animation-delay: 2.1s;
}

.intro-short .hero-slides {
  animation-delay: 1.1s;
}

.intro-inner {
  position: relative;
  padding: 2.5rem 1rem;
}

/* versão curta, ao entrar nas outras páginas */
.intro-short .intro {
  animation: intro-out 0.7s var(--ease) 1.1s forwards;
}

.intro-short .intro-name span {
  animation-duration: 0.9s;
}

.intro-short .intro-name span + span {
  animation-delay: 0.1s;
}

.intro-short .intro-role {
  animation-delay: 0.35s;
  animation-duration: 0.6s;
}

/* transição ao sair de uma página */
.page-leave {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--dark);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.page-leave.is-active {
  opacity: 1;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .intro {
    display: none;
  }
}

/* o slideshow só começa a animar depois da intro */
.hero-slides:not(.is-running) .hero-slide,
.hero-dots:not(.is-running) .hero-dot span::after {
  animation: none;
}

/* Sobre (página inicial) — só texto, título à esquerda e texto à direita */
.about-text-only {
  align-items: start;
}

@media (min-width: 900px) {
  .about-text-only {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .about-text-only .about-head {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

.about-text-only .section-title {
  margin-bottom: 0;
}

.about-text-only .prose p {
  font-size: 1.05rem;
}

.about-text-only .prose {
  max-width: 38rem;
}

/* =========================================================
   Página inicial no computador: menu à esquerda, fotos à direita
   ========================================================= */

.hero-panel {
  display: none;
}

@media (min-width: 1024px) {
  .is-home .hero {
    --panel-w: clamp(380px, 40vw, 820px);
  }

  .hero-panel {
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 3;
    width: var(--panel-w);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(2.5rem, 5vh, 3.5rem) clamp(2.5rem, 4vw, 4rem);
    background: var(--dark);
    color: #f2ede6;
    animation: fade 1.2s var(--ease) both;
  }

  .intro-full .hero-panel { animation-delay: 2.1s; }
  .intro-short .hero-panel { animation-delay: 1.1s; }

  .hero-slides,
  .hero-shade {
    left: var(--panel-w);
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 25%);
  }

  .scroll-cue {
    left: calc(var(--panel-w) + (100% - var(--panel-w)) / 2);
  }

  .hero-name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 4.6vw, 4.6rem);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: -0.01em;
  }

  .hero-name em {
    color: var(--accent);
  }

  .hero-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }

  .hero-nav a {
    display: flex;
    align-items: baseline;
    gap: 1.1rem;
    color: rgba(242, 237, 230, 0.6);
    transition: color 0.35s var(--ease);
  }

  .hero-nav-label {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.6vh, 2.2rem);
    font-weight: 300;
    line-height: 1.25;
    transition: transform 0.45s var(--ease);
  }

  .hero-nav a:hover {
    color: #f2ede6;
  }

  .hero-nav a:hover .hero-nav-label {
    transform: translateX(8px);
  }

  .hero-panel .social a {
    border-color: rgba(242, 237, 230, 0.2);
  }

  /* no topo da página inicial o menu já está no painel: esconde a barra de cima */
  .is-home .site-header.is-overlay:not(.is-scrolled) {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
  }
}

/* Nome no topo: "Costa" a dourado e ligeiramente maior */
.brand,
.menu-brand {
  font-size: clamp(1.5rem, 2.6vw, 1.85rem);
}

.brand em,
.menu-brand em {
  color: var(--accent);
  font-style: italic;
}

.site-header.is-overlay:not(.is-scrolled) .brand em {
  color: #e3c98f;
}

.timeline-subtitle {
  display: block;
  margin: -0.4rem 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

/* nome no topo maior no telemóvel */
@media (max-width: 767px) {
  .brand,
  .menu-brand {
    font-size: 1.9rem;
  }
}

/* Página Sobre: biografia em destaque antes das secções numeradas */
.bio-intro {
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.bio-name {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 300;
  line-height: 1.05;
}

.bio-name em {
  color: var(--accent);
}

.bio-intro .timeline-subtitle {
  margin: 0 0 1.75rem;
}

.bio-intro .prose p {
  font-size: 1.08rem;
}

/* =========================================================
   Nome grande em baixo à esquerda (página inicial)
   ========================================================= */

.hero-name {
  position: absolute;
  left: var(--gutter);
  bottom: 5.5rem;
  z-index: 4;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 21vw, 6.5rem);
  font-weight: 300;
  line-height: 0.88;
  letter-spacing: -0.015em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  animation: fade-up 1.2s var(--ease) both;
}

.hero-name em {
  font-style: italic;
  color: #e3c98f;
  padding-left: 0.04em;
}

.intro-full .hero-name { animation-delay: 2.3s; }
.intro-short .hero-name { animation-delay: 1.3s; }

/* sombra mais forte em baixo para o nome se ler bem sobre a foto */
.is-home .hero-shade {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 22%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 45%);
}

/* no topo da página inicial o nome já está em grande: esconde o nome pequeno da barra */
.is-home .site-header.is-overlay:not(.is-scrolled) .brand {
  opacity: 0;
  pointer-events: none;
}

.site-header .brand {
  transition: opacity 0.4s var(--ease);
}

@media (min-width: 1024px) {
  /* no computador o nome fica em cima, no painel do menu */
  .hero-name {
    display: none;
  }

  .hero-panel-name {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(3rem, 4.6vw, 4.6rem);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: -0.01em;
  }

  .hero-panel-name em {
    color: var(--accent);
  }

  .is-home .hero-shade {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 25%);
  }
}

/* =========================================================
   Intro — brilho suave a passar pelas letras
   ========================================================= */

.intro-name {
  animation: intro-glow 2.6s ease-in-out 0.4s both;
}

.intro-name span {
  color: transparent;
  background-image: linear-gradient(
    110deg,
    var(--shine-end) 0%,
    var(--shine-end) 34%,
    var(--shine-light) 46%,
    #ffffff 50%,
    var(--shine-light) 54%,
    var(--shine-start) 66%,
    var(--shine-start) 100%
  );
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  animation:
    intro-word 1.4s var(--ease) forwards,
    intro-shine 1.9s cubic-bezier(0.45, 0, 0.25, 1) 0.55s forwards;
}

.intro-name span:first-child {
  --shine-start: #a59d91;
  --shine-light: #fff4dc;
  --shine-end: #f4efe8;
}

.intro-name span + span {
  --shine-start: #7d6230;
  --shine-light: #ffefc6;
  --shine-end: #cfa95f;
  color: transparent;
  animation:
    intro-word 1.4s var(--ease) 0.25s forwards,
    intro-shine 1.9s cubic-bezier(0.45, 0, 0.25, 1) 0.8s forwards;
}

@keyframes intro-shine {
  from { background-position: 100% 0; }
  to { background-position: 0% 0; }
}

@keyframes intro-glow {
  0% { filter: drop-shadow(0 0 0 rgba(246, 227, 180, 0)); }
  50% { filter: drop-shadow(0 0 26px rgba(246, 227, 180, 0.35)); }
  100% { filter: drop-shadow(0 0 8px rgba(246, 227, 180, 0.12)); }
}

/* versão curta (outras páginas) */
.intro-short .intro-name {
  animation-duration: 1.4s;
  animation-delay: 0.1s;
}

.intro-short .intro-name span {
  animation:
    intro-word 0.9s var(--ease) forwards,
    intro-shine 1.1s cubic-bezier(0.45, 0, 0.25, 1) 0.15s forwards;
}

.intro-short .intro-name span + span {
  animation:
    intro-word 0.9s var(--ease) 0.1s forwards,
    intro-shine 1.1s cubic-bezier(0.45, 0, 0.25, 1) 0.3s forwards;
}

/* Galeria: vídeo em destaque a toda a largura */
.video-card.is-featured {
  grid-column: 1 / -1;
}

/* Apoiar: foto da harpa nova por cima da barra de progresso */
.support-side {
  display: grid;
  gap: 1.25rem;
}

.support-photo {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
}

.support-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 1.2s var(--ease);
}

.support-photo:hover img {
  transform: scale(1.04);
}

.support-photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1.25rem 1rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  pointer-events: none;
}

/* Galeria: vídeos divididos por ano */
.video-year + .video-year {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.video-year-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  color: var(--accent-deep);
}

.video-year-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Galeria: reel do Instagram ao lado de um vídeo */
@media (min-width: 820px) {
  .video-grid.has-reel {
    grid-template-columns: 1.7fr 1fr;
    align-items: start;
  }
}

.reel-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.reel-card .instagram-media {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
  overflow: hidden;
}

/* antes de o Instagram carregar, mostra um cartão simples com o link */
.reel-card blockquote.instagram-media {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}

.reel-card blockquote.instagram-media a {
  color: var(--accent-deep);
  border-bottom: 1px solid currentColor;
  font-size: 0.9rem;
}

/* Rodapé: "Feito com ♥ por …" */
.footer-heart {
  display: inline-block;
  color: var(--accent);
  animation: heart-beat 2.4s ease-in-out infinite;
}

@keyframes heart-beat {
  0%, 60%, 100% { transform: scale(1); }
  10% { transform: scale(1.25); }
  20% { transform: scale(1); }
  30% { transform: scale(1.18); }
}

/* Diário Musical: a foto do artigo aparece sempre inteira (sem cortes) */
.article-media {
  display: flex;
  justify-content: center;
  background: var(--dark);
}

.article-media img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
}

.article-media .entry-media {
  width: 100%;
}

/* Apoiar: foto da harpa nova inteira */
.support-photo {
  aspect-ratio: auto;
}

.support-photo img {
  height: auto;
}

/* Apoiar: no computador a contagem fica por baixo do texto e a foto à direita;
   no telemóvel: texto, foto e contagem */
.support-page {
  grid-template-areas:
    "text"
    "photo"
    "progress";
}

.support-page > .prose { grid-area: text; }
.support-page > .support-photo { grid-area: photo; }
.support-page > .progress-card { grid-area: progress; }

@media (min-width: 960px) {
  .support-page {
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "text photo"
      "progress photo";
    row-gap: 2.5rem;
  }

  .support-page > .progress-card {
    align-self: start;
  }
}

/* =========================================================
   Botão de música (página inicial)
   ========================================================= */

.music-toggle {
  position: fixed;
  top: calc((var(--header-h) - 44px) / 2);
  right: calc(var(--gutter) + 46px);
  z-index: 60;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: rgba(21, 19, 17, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
  animation: fade 1s var(--ease) both;
}

.intro-full .music-toggle { animation-delay: 2.6s; }
.intro-short .music-toggle { animation-delay: 1.5s; }

.music-toggle:hover {
  transform: scale(1.06);
  background: rgba(21, 19, 17, 0.55);
}

/* quando a barra de cima está sólida (ao descer a página) */
body.is-home:has(.site-header.is-scrolled) .music-toggle {
  color: var(--ink);
  background: rgba(247, 244, 239, 0.9);
  border-color: var(--line);
}

.music-toggle.is-playing {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.music-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.music-bars {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}

.music-bars i {
  display: block;
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: currentColor;
  transform-origin: bottom;
  animation: music-bar 1s ease-in-out infinite;
}

.music-bars i:nth-child(2) { animation-delay: -0.3s; }
.music-bars i:nth-child(3) { animation-delay: -0.6s; }
.music-bars i:nth-child(4) { animation-delay: -0.15s; }

@keyframes music-bar {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

.music-toggle.is-playing .music-icon { display: none; }
.music-toggle.is-playing .music-bars { display: flex; }

/* nome da música que começou */
.music-now {
  position: fixed;
  top: calc((var(--header-h) - 34px) / 2);
  right: calc(var(--gutter) + 100px);
  z-index: 60;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(21, 19, 17, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f7f1e8;
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.music-now.is-visible {
  opacity: 1;
  transform: none;
}

.music-now:empty {
  display: none;
}

/* no computador, no topo da página inicial a barra está escondida: a bola fica no canto da foto */
@media (min-width: 1024px) {
  .music-toggle {
    right: var(--gutter);
  }

  .music-now {
    right: calc(var(--gutter) + 54px);
  }

  .is-home:has(.site-header.is-scrolled) .music-toggle {
    right: calc(var(--gutter) + 46px);
  }

  .is-home:has(.site-header.is-scrolled) .music-now {
    right: calc(var(--gutter) + 100px);
  }
}

/* a tocar: sempre dourada, mesmo depois de descer a página */
body .music-toggle.is-playing,
body.is-home:has(.site-header.is-scrolled) .music-toggle.is-playing {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Galeria: agradecimento ao fotógrafo */
.photo-credit {
  max-width: 40rem;
  margin: -0.25rem 0 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--ink-soft);
}

.photo-credit a {
  color: var(--accent-deep);
  border-bottom: 1px solid currentColor;
  transition: color 0.3s;
}

.photo-credit a:hover {
  color: var(--ink);
}

.photo-credit.is-end {
  margin: clamp(1.5rem, 4vw, 2.5rem) auto 0;
  text-align: center;
}

.support-page .prose strong {
  font-weight: 600;
  color: var(--ink);
}

/* Agenda: concerto sem cartaz / sem data definida */
.event-thumb.is-empty {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(201, 164, 92, 0.4), transparent 60%),
    linear-gradient(135deg, #2a231c, var(--dark));
  color: #e3c98f;
}

.event-thumb.is-empty svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.event-card.is-static {
  grid-template-columns: 72px 1fr;
  cursor: default;
}

.event-card.is-static:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line);
}
