/* Heróis da Fé — black, white, and orange for small points only. Rounded surfaces, pill buttons. */

/* ---------- tokens ---------- */
:root {
  --black: #0a0a0a;
  --black-2: #161616;
  --black-3: #212121;
  --paper: #f3f3f1;
  --paper-2: #e6e6e2;
  --paper-3: #d8d8d3;
  --orange: #f6821f;

  --bg: var(--paper);
  --ink: var(--black);
  --muted: #5b5b57;
  --surface: var(--paper-2);
  --surface-2: var(--paper-3);
  --accent: var(--orange);
  --accent-ink: var(--black);

  --font: "Hanken Grotesk", system-ui, sans-serif;

  /* five sizes */
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 0.95rem + 0.3vw, 1.125rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(4rem, 0.6rem + 9.4vw, 9.25rem);

  /* corners: surfaces, small parts, buttons */
  --r: 22px;
  --r-sm: 14px;
  --r-pill: 999px;

  --margin: clamp(1.25rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 1.6vw, 1.5rem);
  --section: clamp(4.5rem, 8vw, 7.5rem);
  --bar-h: 72px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 200ms;
  --t-reveal: 800ms;
}

.dark {
  --bg: var(--black);
  --ink: var(--paper);
  --muted: #9b9b96;
  --surface: var(--black-2);
  --surface-2: var(--black-3);
  background: var(--bg);
  color: var(--ink);
}
.light {
  --bg: var(--paper);
  --ink: var(--black);
  --muted: #5b5b57;
  --surface: var(--paper-2);
  --surface-2: var(--paper-3);
  background: var(--bg);
  color: var(--ink);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--black); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.45;
  letter-spacing: -0.005em;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: calc(var(--bar-h) + 1rem); }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 { font-weight: 500; text-wrap: balance; }
p { max-width: 62ch; text-wrap: pretty; }
p + p { margin-top: 0.9em; }
.head { font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.045em; }
.lead { font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.015em; }
.small { font-size: var(--step-small); line-height: 1.45; }
.muted { color: var(--muted); }
.nums { font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 0.75rem 1rem; border-radius: var(--r-pill); text-decoration: none; font-size: var(--step-small); }
.skip:focus { top: 1rem; }

/* ---------- controls ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.25rem; padding: 0 1.6rem;
  background: var(--accent); color: var(--accent-ink);
  border-radius: var(--r-pill);
  font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.button:active { transform: scale(0.96); }
.button[disabled] { opacity: 0.45; cursor: not-allowed; }
.button-sm { min-height: 2.5rem; padding: 0 1.15rem; font-size: var(--step-small); }
.arrow { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform 320ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .button:not([disabled]):hover { background: var(--ink); color: var(--bg); }
  .button:hover .arrow, .band-place:hover .arrow { transform: translateX(4px); }
}
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
.link-plain { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: currentColor; }
  .link-plain:hover { text-decoration-color: var(--accent); }
}

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.85rem; text-decoration: none; font-weight: 500; letter-spacing: -0.02em; }
.logo { width: 60px; height: 60px; flex: none; object-fit: contain; transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .brand:hover .logo { transform: rotate(-14deg) scale(1.05); }
}

/* ---------- bar (after the hero) ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--bar-h);
  display: flex; align-items: center; gap: 2rem;
  padding: 0 var(--margin);
  transform: translateY(-100%);
  transition: transform 460ms var(--ease-out);
}
.bar.is-shown { transform: none; }
.bar .logo { width: 48px; height: 48px; }
.bar-links { display: flex; gap: 1.5rem; margin-left: auto; font-size: var(--step-small); }
.menu-open { display: none; font-weight: 500; min-height: 44px; padding: 0 0.25rem; }

/* ---------- phone menu ---------- */
.menu { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; padding: 1rem var(--margin) 2rem; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu-top { display: flex; justify-content: space-between; align-items: center; min-height: 60px; }
.menu-close { font-weight: 500; min-height: 44px; }
.menu-links { display: flex; flex-direction: column; margin-top: auto; padding-top: 2rem; }
.menu-links a { font-size: var(--step-head); line-height: 1.12; letter-spacing: -0.045em; text-decoration: none; padding: 0.06em 0; }
.menu-action { margin-top: 2rem; }
@media (prefers-reduced-motion: no-preference) {
  .menu:not([hidden]) { animation: fade 300ms ease both; }
  .menu:not([hidden]) .menu-links a { animation: menu-in 560ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms + 60ms); }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(28px); } }

/* ---------- main sits above the footer, which it uncovers ---------- */
main { position: relative; z-index: 2; background: var(--black); }

/* ============ HERO ============ */
.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 62svh auto;
  column-gap: var(--gutter);
  padding: 0 var(--margin) var(--margin);
}
.hero-left { grid-column: 1 / 5; grid-row: 1; display: flex; flex-direction: column; padding-top: 1.5rem; }
.hero-talk { margin-top: 20svh; max-width: 17em; }
.hero-sentence { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 1.75rem; }
.hero-right { grid-column: 5 / 13; grid-row: 1; padding-top: 1.5rem; }
.hero-nav { display: flex; gap: 2.25rem; font-size: var(--step-small); min-height: 60px; align-items: center; }
.hero-title { margin-top: clamp(2.5rem, 9svh, 6rem); font-size: var(--step-display); line-height: 0.9; letter-spacing: -0.05em; font-weight: 500; margin-left: -0.04em; }
.hero-title .line { will-change: transform; }
.hero-photo { grid-column: 5 / 13; grid-row: 2; position: relative; }
.hero-photo-frame { overflow: hidden; height: 70svh; min-height: 22rem; border-radius: var(--r); }
.hero-photo-frame img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 40%; filter: brightness(1.18) contrast(1.06); will-change: transform; }
.next {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  width: 290px;
  margin-top: -84px; margin-bottom: -84px; margin-left: 20px;
  padding: 1.05rem 1.25rem 1.15rem;
  background: var(--accent); color: var(--accent-ink);
  border-radius: var(--r);
  text-decoration: none;
  transition: transform 400ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .next:hover { transform: translateY(-4px); } }
.next-time { font-size: var(--step-head); line-height: 1; letter-spacing: -0.05em; font-weight: 500; margin-bottom: 0.5rem; }
.next-line { font-size: var(--step-small); line-height: 1.35; font-weight: 500; }
.next-when { font-size: var(--step-small); line-height: 1.35; margin-top: 0.15rem; }

/* ============ INTRO ============ */
.intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 38svh 38svh auto; gap: 8px; padding: 8px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r); }
.tile-a { grid-column: 1 / 9; grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; }
.tile-verse { font-size: var(--step-body); max-width: 30ch; }
.tile-verse p { margin-bottom: 0.25rem; }
.tile-verse cite { font-style: normal; color: var(--muted); font-size: var(--step-small); }
.tile-slogan { font-size: var(--step-display); line-height: 0.86; letter-spacing: -0.055em; margin-left: -0.05em; }
.tile-b { grid-column: 9 / 13; grid-row: 1; background: var(--paper-3); display: flex; align-items: flex-end; padding: 24px; }
.tile-word { font-size: var(--step-display); line-height: 0.86; letter-spacing: -0.055em; font-weight: 500; white-space: nowrap; margin-left: -0.05em; }
.tile-c { grid-column: 9 / 13; grid-row: 2; }
.tile-c img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 62%; }
.tile-text { grid-column: 1 / 13; grid-row: 3; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; padding: 72px 0 96px; border-radius: 0; overflow: visible; }
.tile-text-body { grid-column: 7 / 13; padding: 0 40px 0 0; font-size: var(--step-lead); line-height: 1.38; letter-spacing: -0.015em; }

/* ============ AGENDA ============ */
.agenda { padding: var(--section) var(--margin); }
.agenda-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.agenda-body { margin-top: 56px; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 32px; align-items: start; }
.tabs { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 6px; }
.tab-pill { position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: var(--r-sm); background: var(--ink); z-index: 0; transition: transform 520ms var(--ease-out); pointer-events: none; }
.tab {
  position: relative;
  width: 160px; min-height: 64px; padding: 0.6rem 1rem;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  background: transparent; border-radius: var(--r-sm); text-align: left;
  transition: background-color var(--t-hover) ease, color 320ms ease, transform var(--t-press) var(--ease-out);
}
/* the surface sits under the sliding pill; the label sits above it */
.tab::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--surface); transition: background-color var(--t-hover) ease; }
.tab:active { transform: scale(0.97); }
.tab-day { font-size: var(--step-body); font-weight: 500; line-height: 1.2; }
.tab-date { font-size: var(--step-small); color: var(--muted); transition: color 320ms ease; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.tabs.has-pill .tab { transition: background-color 0ms, color 220ms ease, transform var(--t-press) var(--ease-out); }
.tabs.has-pill .tab[aria-selected="true"] { transition: background-color 0ms linear 460ms, color 220ms ease 160ms, transform var(--t-press) var(--ease-out); }
.tab[aria-selected="true"] .tab-date { color: inherit; }
@media (hover: hover) and (pointer: fine) {
  .tab[aria-selected="false"]:hover::before { background: var(--surface-2); }
}
.panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bands { display: flex; flex-direction: column; gap: 6px; }
.band {
  display: grid; grid-template-columns: 22% minmax(0, 1fr) auto; align-items: center; column-gap: 1.25rem;
  min-height: 76px; padding: 0.9rem 22px;
  background: var(--surface); border-radius: var(--r-sm);
}
.bands .band:nth-child(even) { background: var(--surface-2); }
.band-time { font-size: var(--step-body); font-weight: 500; letter-spacing: -0.01em; }
.band-what { display: flex; flex-direction: column; }
.band-what strong { font-weight: 500; font-size: var(--step-body); }
.band-what span { font-size: var(--step-small); color: var(--muted); }
.band-who { font-size: var(--step-small); text-align: right; color: var(--muted); }
.panel-photo { margin-top: 6px; aspect-ratio: 2 / 1; max-height: 52svh; width: 100%; overflow: hidden; border-radius: var(--r); }
.panel-photo img { width: 100%; height: 100%; object-fit: cover; }
.band-place { margin-top: 6px; text-decoration: none; background: var(--surface-2); transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.band-go { display: inline-flex; align-items: center; gap: 0.4rem; justify-content: flex-end; color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .band-place:hover { background: var(--paper); color: var(--black); }
  .band-place:hover .band-what span { color: #5b5b57; }
  .band-place:hover .band-go { color: var(--black); }
}
.panel + .panel { margin-top: 6px; }
.js .panel:not(.is-active) { display: none; }
.js .panel + .panel { margin-top: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .panel.is-active .band { animation: band-in 600ms var(--ease-out) both; }
  .js .panel.is-active .band:nth-child(2) { animation-delay: 70ms; }
  .js .panel.is-active .panel-photo { animation: photo-open 900ms var(--ease-out) 60ms both; }
  .js .panel.is-active .panel-photo img { animation: photo-in 1300ms var(--ease-soft) 60ms both; }
}
@keyframes band-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes photo-open { from { clip-path: inset(0 0 100% 0 round var(--r)); } to { clip-path: inset(0 0 0 0 round var(--r)); } }
@keyframes photo-in { from { transform: scale(1.12); } }

/* ============ AO VIVO ============ */
.live { padding: var(--section) var(--margin); }
.live-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.live-status { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.6rem 1.1rem; border-radius: var(--r-pill); background: var(--surface); font-size: var(--step-small); font-weight: 500; max-width: none; }
.live-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.live.is-live .live-dot { background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .live.is-live .live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: live-ping 1.6s var(--ease-out) infinite; }
}
@keyframes live-ping { from { transform: scale(1); opacity: 0.7; } to { transform: scale(3); opacity: 0; } }
.live-body { margin-top: 48px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: end; }
.player { grid-column: 1 / 10; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r); background: var(--black); color: var(--paper); }
.player-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: brightness(0.62); transition: transform 1200ms var(--ease-soft), filter 400ms ease; }
.player-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; width: 100%; }
.player-circle { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); transition: transform 380ms var(--ease-out); }
.player-circle svg { width: 34px; height: 34px; fill: currentColor; margin-left: 4px; }
.player-label { font-weight: 500; font-size: var(--step-body); }
@media (hover: hover) and (pointer: fine) {
  .player-play:hover .player-circle { transform: scale(1.08); }
  .player:hover .player-poster { transform: scale(1.03); filter: brightness(0.7); }
}
.player-play:active .player-circle { transform: scale(0.95); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-side { grid-column: 10 / 13; display: flex; flex-direction: column; gap: 1.5rem; padding-bottom: 0.25rem; }
.live-links { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; }

/* ============ APÓSTOLOS ============ */
.about { padding: var(--section) var(--margin); }
.about-lead { margin-top: 24px; max-width: none; width: min(100%, 44rem); }
.about-tiles { margin-top: 72px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: start; }
.about-photo { grid-column: 1 / 9; position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.about-note { position: absolute; top: 0; right: 0; width: 320px; padding: 20px 22px; background: var(--bg); font-size: var(--step-body); line-height: 1.45; border-bottom-left-radius: var(--r); }
.about-side { grid-column: 9 / 13; }
.about-map { background: var(--surface); aspect-ratio: 13 / 10; padding: 1.25rem; border-radius: var(--r); }
.about-map svg { width: 100%; height: 100%; }
.map-shape { fill: var(--ink); }
.map-dot { fill: var(--accent); }
.map-ring { fill: none; stroke: var(--surface); stroke-width: 8; }
.facts { margin-top: 1.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; font-size: var(--step-small); }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 500; font-size: var(--step-body); }

/* ============ M12 ============ */
.m12 { padding: var(--section) var(--margin); }
.m12-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: end; }
.m12-intro { grid-column: 1 / 6; }
.m12-intro p { margin-top: 1.5rem; max-width: 42ch; }
.m12-side { grid-column: 10 / 13; display: flex; flex-direction: column; gap: 1.25rem; }
.m12-logo { width: auto; height: 132px; align-self: flex-start; }
.m12-note { color: var(--muted); }
.m12-flow { margin-top: 64px; }
.m12-svg { width: 100%; height: auto; overflow: visible; }
.m12-tall { display: none; }
.m12-svg rect { rx: 2.5px; }
.m12-svg .ta { fill: #cfcfca; }
.m12-svg .tb { fill: #a9a9a3; }
.m12-svg .tc { fill: #6a6a65; }
.m12-svg .td { fill: var(--ink); }
.m12-svg .te { fill: var(--accent); }
.m12-steps { margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.m12-steps h3 { font-size: var(--step-lead); letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.m12-steps p { max-width: 30ch; }
@media (prefers-reduced-motion: no-preference) {
  .js .m12-figure rect { transform: translate(var(--dx), var(--dy)); opacity: 0; transition: transform 1000ms var(--ease-out) var(--d), opacity 400ms ease var(--d); }
  .js .m12-figure.is-in rect { transform: none; opacity: 1; }
  .js .m12-figure[data-reveal] { opacity: 1; transform: none; }
}

/* ============ MINISTÉRIOS ============ */
.min { padding: var(--section) var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.min-head { grid-column: 1 / 6; position: sticky; top: calc(var(--bar-h) + 32px); }
.min-title { font-size: var(--step-display); line-height: 0.86; letter-spacing: -0.055em; margin-left: -0.05em; }
.min-blocks { grid-column: 7 / 13; display: flex; flex-direction: column; gap: 72px; padding-top: 0.5rem; }
.min-block { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 28px; align-items: start; }
.min-block:nth-child(even) { grid-template-columns: minmax(0, 1fr) 170px; }
.min-block:nth-child(even) .min-photo { order: 2; }
.min-block h3 { font-size: var(--step-lead); letter-spacing: -0.02em; margin-bottom: 1rem; }
.min-photo { aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r); }
.min-photo img { width: 100%; height: 100%; object-fit: cover; }
.min-mark { display: grid; place-items: center; background: var(--surface); }
.min-mark img { width: 44%; height: auto; object-fit: contain; }
.min-list { display: flex; flex-direction: column; gap: 12px; line-height: 1.35; }

/* ============ LEGENDÁRIOS ============ */
.leg { padding: var(--section) var(--margin); }
.leg-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: center; }
.leg-logo { grid-column: 1 / 5; width: min(100%, 340px); height: auto; }
.leg-copy { grid-column: 6 / 13; }
.leg-copy .lead { margin-top: 1.5rem; max-width: 40ch; }
.leg-photos { margin-top: 64px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; height: clamp(320px, 38vw, 560px); }
.leg-photo { grid-column: span 3; overflow: hidden; border-radius: var(--r); }
.leg-photo-wide { grid-column: span 6; }
.leg-photo img { width: 100%; height: 100%; object-fit: cover; }
.leg-facts { margin-top: 10px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.leg-facts > div { padding: 1.4rem 1.4rem 1.5rem; background: var(--surface); border-radius: var(--r); }
.leg-facts dt { font-size: var(--step-head); line-height: 1; letter-spacing: -0.05em; font-weight: 500; margin-bottom: 0.75rem; }
.leg-facts dd { color: var(--ink); max-width: 26ch; }

/* ============ GALERIA ============ */
.gallery { padding: var(--section) 0; overflow: hidden; }
.gallery-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0 var(--margin) 0 6vw; margin-bottom: 32px; }
.gallery-count { font-size: var(--step-small); color: var(--muted); max-width: none; }
.row {
  --h: 68svh;
  display: flex; gap: 12px;
  height: var(--h);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-left: 6vw;
  padding: 0 6vw;
  scrollbar-width: none;
  cursor: grab;
}
.row::-webkit-scrollbar { display: none; }
.row.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.row.is-dragging img { pointer-events: none; }
.mod { flex: none; height: 100%; scroll-snap-align: start; overflow: hidden; border-radius: var(--r); }
.mod.tall { aspect-ratio: 3 / 4; }
.mod.pair { width: calc((var(--h) - 12px) / 2 * 4 / 3); display: flex; flex-direction: column; gap: 12px; overflow: visible; border-radius: 0; }
.mod.pair figure { flex: 1; overflow: hidden; min-height: 0; border-radius: var(--r); }
.mod img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; transform: translateX(var(--px, 0px)) scale(1.12); }

/* ============ DÍZIMOS E OFERTAS ============ */
.give { padding: var(--section) var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: center; }
.give-copy { grid-column: 1 / 7; }
.give-verse { margin-top: 2rem; font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.015em; max-width: 30ch; }
.give-verse p { margin-bottom: 0.6rem; }
.give-verse cite { font-style: normal; font-size: var(--step-small); color: var(--muted); letter-spacing: 0; }
.give-text { margin-top: 1.75rem; max-width: 46ch; }
.give-card { grid-column: 8 / 13; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 1.5rem; align-items: center; padding: 24px; border-radius: var(--r); }
.qr { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); background: #ffffff; padding: 12px; overflow: hidden; }
.qr img { width: 100%; height: 100%; object-fit: contain; }
.qr-empty { display: none; position: absolute; inset: 12px; place-items: center; text-align: center; padding: 1rem; border-radius: calc(var(--r-sm) - 6px); background: var(--paper-2); color: #5b5b57; max-width: none; }
.qr.is-empty img { display: none; }
.qr.is-empty .qr-empty { display: grid; }
.pix { display: flex; flex-direction: column; gap: 0.5rem; }
.pix-title { font-weight: 500; font-size: var(--step-body); }
.pix-key { margin: 0.6rem 0 0.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; padding: 0.6rem 0.6rem 0.6rem 1rem; border-radius: var(--r-sm); background: var(--surface-2); }
.pix-value { flex: 1 1 8rem; min-width: 0; overflow-wrap: anywhere; font-size: var(--step-small); }
.pix-copy.is-done { background: var(--paper); color: var(--black); }

/* ============ VISITE ============ */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; padding: 160px var(--margin) 120px; }
.contact-sentence { grid-column: 1 / 6; max-width: 26ch; }
.contact-photo { grid-column: 8 / 10; width: 160px; aspect-ratio: 1; overflow: hidden; border-radius: 50%; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 22%; }
.contact-links { grid-column: 10 / 13; display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; }
.contact-q { font-weight: 500; margin-bottom: 0.9rem; }
.contact-links .small { margin-top: 0.9rem; }

/* ============ FOOTER ============ */
.foot { position: sticky; bottom: 0; z-index: 1; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto auto; padding: calc(var(--bar-h) + 40px) var(--margin) 20px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); line-height: 1.5; }
.foot-cols > * > p:first-child { margin-bottom: 0.35rem; font-weight: 500; }
.foot-logo { width: 112px; height: 112px; object-fit: contain; margin-bottom: 1.25rem; }
.foot-brand .muted { margin: 0; }
.foot-list li { color: var(--muted); }
.foot-list a { color: var(--muted); transition: color var(--t-hover) ease, text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .foot-list a:hover { color: var(--ink); } }
.foot-word { grid-row: 3; overflow: hidden; padding-bottom: 0.04em; }
.foot-word svg { width: 100%; height: auto; overflow: visible; }
.foot-word text { font-family: var(--font); font-weight: 500; font-size: 160px; letter-spacing: -0.055em; fill: var(--ink); }
.word-two { display: none; }
.foot-legal { grid-row: 4; margin-top: 20px; color: var(--muted); max-width: none; }

/* ============ MOTION ============ */
[data-img] { position: relative; }
.lines .line, .split .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines [data-line], .split [data-line] { display: block; }
@media (prefers-reduced-motion: no-preference) {
  /* hero, on load */
  .js .lines [data-line] { transform: translateY(105%); animation: line-up 1000ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 300ms); }
  .js .hero-nav, .js .hero-left .brand, .js .hero-menu { opacity: 0; animation: fade 700ms ease 200ms forwards; }
  .js .next { opacity: 0; animation: next-in 900ms var(--ease-out) 850ms forwards; }
  .js .hero-photo-frame { clip-path: inset(100% 0 0 0 round var(--r)); animation: open 1300ms var(--ease-in-out) 420ms forwards; }
  .js .hero-photo-frame img { animation: settle 2200ms var(--ease-soft) 420ms both; }

  /* headings: each line rises from behind its own baseline when the section arrives */
  .js .split [data-line] { transform: translateY(108%); transition: transform 1000ms var(--ease-out); transition-delay: calc(var(--i, 0) * 100ms); }
  .js .split.is-in [data-line] { transform: none; }

  /* text blocks */
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 800ms var(--ease-out), transform 1000ms var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms + 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  /* lists arrive item by item */
  .js [data-stagger] > * { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms + 120ms); }
  .js [data-stagger].is-in > * { opacity: 1; transform: none; }

  /* pictures open upward inside their rounded frame and settle from a slight scale */
  /* a curtain in the ground colour lifts off the picture; the picture itself is never clipped, so it loads normally */
  .js [data-img]::after { content: ""; position: absolute; inset: -1px; z-index: 3; background: var(--bg); transform-origin: 50% 0; transition: transform 1100ms var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); pointer-events: none; }
  .js [data-img].is-in::after { transform: scaleY(0); }
  .js [data-img] img { opacity: 0; transform: scale(1.14); transition: opacity 300ms ease, transform 1700ms var(--ease-soft), filter 400ms ease; transition-delay: calc(var(--i, 0) * 90ms); }
  .js [data-img].is-in img { opacity: 1; transform: none; }
  .js [data-img] .player-play { opacity: 0; transition: opacity 700ms ease 500ms; }
  .js [data-img].is-in .player-play { opacity: 1; }

  /* gallery modules slide in from the right */
  .js .mod { opacity: 0; transform: translateX(64px); transition: opacity 800ms var(--ease-out), transform 1100ms var(--ease-out); }
  .js .row.is-in .mod { opacity: 1; transform: none; }
  .js .row.is-in .mod:nth-child(2) { transition-delay: 70ms; }
  .js .row.is-in .mod:nth-child(3) { transition-delay: 140ms; }
  .js .row.is-in .mod:nth-child(4) { transition-delay: 210ms; }
  .js .row.is-in .mod:nth-child(n+5) { transition-delay: 280ms; }

  /* footer wordmark rises when the curtain opens */
  .js .foot-word[data-reveal] { opacity: 1; transform: none; }
  .js .foot-word svg { transform: translateY(70%); transition: transform 1200ms var(--ease-out); }
  .js .foot-word svg + svg { transition-delay: 90ms; }
  .js .foot-word.is-in svg { transform: none; }
}
@media (hover: hover) and (pointer: fine) {
  .min-block:hover .min-photo img, .leg-photo:hover img { transform: scale(1.05); transition: transform 900ms var(--ease-soft); }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes open { to { clip-path: inset(0 0 0 0 round var(--r)); } }
@keyframes settle { from { scale: 1.12; } to { scale: 1; } }
@keyframes next-in { from { opacity: 0; transform: translateY(28px) rotate(-2deg); } to { opacity: 1; transform: none; } }

/* ============ TABLET ============ */
@media (max-width: 1100px) {
  .bar-links { gap: 1rem; }
  .tile-text-body { grid-column: 5 / 13; }
  .about-photo { overflow: hidden; aspect-ratio: auto; border-radius: 0; }
  .about-photo img { aspect-ratio: 16 / 10; border-radius: var(--r); }
  .about-note { position: static; width: auto; padding: 16px 0 0; background: none; border-radius: 0; }
  .m12-intro { grid-column: 1 / 8; }
  .m12-side { grid-column: 9 / 13; }
  .min-blocks { grid-column: 6 / 13; }
  .min-block { grid-template-columns: 140px minmax(0, 1fr); gap: 20px; }
  .min-block:nth-child(even) { grid-template-columns: minmax(0, 1fr) 140px; }
  .player { grid-column: 1 / 13; }
  .live-side { grid-column: 1 / 13; flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 2rem; }
  .live-side > p { max-width: 46ch; }
  .leg-copy { grid-column: 5 / 13; }
  .leg-facts { grid-template-columns: 1fr 1fr; }
  .give-copy { grid-column: 1 / 13; }
  .give-card { grid-column: 1 / 13; max-width: 640px; margin-top: 1rem; }
  .contact-sentence { grid-column: 1 / 7; }
  .contact-photo { grid-column: 7 / 9; width: 120px; }
  .contact-links { grid-column: 9 / 13; }
}
@media (max-width: 900px) {
  .bar-links { display: none; }
  .bar-action { margin-left: auto; }
}

/* ============ PHONE ============ */
@media (max-width: 759px) {
  :root { --bar-h: 66px; --step-display: 22vw; --r: 18px; --r-sm: 12px; }
  .logo { width: 52px; height: 52px; }
  .bar .logo { width: 44px; height: 44px; }
  .bar { gap: 1rem; }
  .bar-action { display: none; }
  .menu-open { display: inline-flex; align-items: center; margin-left: auto; }

  .hero { display: flex; flex-direction: column; padding: 0; position: relative; }
  .hero-left { display: contents; }
  .hero-left .brand { position: absolute; top: 1rem; left: var(--margin); z-index: 3; }
  .hero-menu { position: absolute; top: calc(1rem + 4px); right: var(--margin); z-index: 3; min-height: 44px; }
  .hero-right { order: 1; padding: calc(1rem + 52px + 13svh) var(--margin) 0; }
  .hero-talk { order: 2; margin: 1.5rem var(--margin) 0; max-width: none; }
  .hero-photo { order: 3; margin: 3.5rem var(--margin) var(--margin); }
  .hero-nav { display: none; }
  .hero-title { margin-top: 0; line-height: 0.88; }
  .hero-sentence { max-width: 22ch; margin-bottom: 1.25rem; }
  .hero-talk .button { width: 100%; }
  .next { width: 70%; margin-left: 14px; margin-top: 0; margin-bottom: -44px; }
  .hero-photo-frame { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .hero-photo-frame img { height: 115%; }

  .intro { grid-template-columns: 1fr 1fr; grid-template-rows: 46svh auto auto auto; gap: 6px; padding: 6px; }
  .tile-a { grid-column: 1 / 3; grid-row: 1; padding: 18px; }
  .tile-b { grid-column: 1; grid-row: 2; aspect-ratio: 1; padding: 16px; }
  .tile-word { font-size: var(--step-head); }
  .tile-c { grid-column: 2; grid-row: 2; aspect-ratio: 1; }
  .tile-text { grid-column: 1 / 3; grid-row: 3; display: block; padding: 40px 14px 64px; }
  .tile-text-body { padding: 0; font-size: var(--step-body); }

  .agenda-head, .live-head { flex-direction: column; align-items: stretch; gap: 1.5rem; }
  .agenda-head .button { width: 100%; }
  .agenda-body { grid-template-columns: 1fr; gap: 12px; margin-top: 40px; }
  .tabs { flex-direction: row; position: sticky; top: var(--bar-h); z-index: 5; gap: 4px; background: var(--bg); padding: 6px 0; }
  .tab { width: auto; flex: 1; min-height: 60px; padding: 0.5rem 0.65rem; }
  .tab-day { font-size: var(--step-small); }
  .tab-hour { display: none; }
  .band { grid-template-columns: 1fr; row-gap: 0.35rem; padding: 16px 18px; }
  .band-who, .band-go { text-align: left; justify-content: flex-start; }
  .panel-photo { aspect-ratio: 4 / 3; }

  .live-status { align-self: flex-start; }
  .live-body { display: block; margin-top: 28px; }
  .player-circle { width: 72px; height: 72px; }
  .live-side { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }
  .live-links .button { width: 100%; }

  .about-tiles { display: block; margin-top: 40px; }
  .about-photo img { aspect-ratio: 4 / 3; }
  .about-side { margin-top: 2.5rem; }
  .about-map { aspect-ratio: 3 / 2; }

  .m12-top { display: block; }
  .m12-side { margin-top: 2rem; flex-direction: row; align-items: center; gap: 1.25rem; }
  .m12-logo { height: 96px; }
  .m12-flow { margin-top: 40px; display: grid; grid-template-columns: 34vw minmax(0, 1fr); column-gap: 1.25rem; }
  .m12-wide { display: none; }
  .m12-tall { display: block; }
  .m12-figure { grid-column: 1; grid-row: 1; }
  .m12-steps { grid-column: 2; grid-row: 1; margin-top: 0; display: grid; grid-template-columns: 1fr; grid-template-rows: repeat(4, 1fr); gap: 0; }
  .m12-steps li { padding-top: 0.25rem; }
  .m12-steps p { font-size: var(--step-small); }

  .min { display: block; padding-top: calc(var(--section) * 0.7); }
  .min-head { position: sticky; top: var(--bar-h); z-index: 4; background: var(--bg); padding: 12px var(--margin); margin: 0 calc(var(--margin) * -1); }
  .min-title { font-size: var(--step-head); line-height: 1; letter-spacing: -0.045em; }
  .min-title .line { display: inline-block; vertical-align: top; }
  .min-blocks { margin-top: 24px; gap: 64px; }
  .min-block, .min-block:nth-child(even) { grid-template-columns: 1fr; gap: 20px; }
  .min-block:nth-child(even) .min-photo { order: 0; }
  .min-photo { aspect-ratio: 4 / 3; }

  .leg-top { display: block; }
  .leg-logo { width: 62%; margin-bottom: 2rem; }
  .leg-photos { height: auto; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 40px; }
  .leg-photo { grid-column: span 1; aspect-ratio: 3 / 4; }
  .leg-photo-wide { grid-column: 1 / 3; aspect-ratio: 4 / 3; }
  .leg-facts { grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
  .leg-facts > div { padding: 1rem 1rem 1.1rem; }
  .leg-facts dd { font-size: var(--step-small); }

  .row { --h: 62svh; gap: 8px; padding: 0 20px; scroll-padding-left: 20px; scroll-snap-type: x mandatory; }
  .gallery-head { padding: 0 20px; flex-direction: column; gap: 0.25rem; }
  .mod.tall { aspect-ratio: auto; width: 72vw; }
  .mod.pair { width: 64vw; gap: 8px; }

  .give { display: block; }
  .give-card { grid-template-columns: 1fr; margin-top: 2.5rem; padding: 18px; }
  .qr { width: min(100%, 260px); }

  .contact { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 1rem; row-gap: 2rem; padding: 96px var(--margin); }
  .contact-sentence { grid-column: 1 / 3; }
  .contact-photo { grid-column: 1; width: 96px; }
  .contact-links { grid-column: 2; }
  .contact-links .small { margin-top: 0.5rem; }

  .foot { padding-top: calc(var(--bar-h) + 24px); }
  .foot-cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .word-one { display: none; }
  .word-two { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo-frame img, .hero-title .line, .mod img { transform: none !important; }
}
