/* ============================================================
   CASA DEL ALFARERO — 2026
   High-contrast editorial B&W + fire-clay accent.
   Sans-serif (Montserrat), kinetic type, no frameworks.
   ============================================================ */

/* ---------- Font ---------- */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-variable.woff2") format("woff2-variations"),
       url("../fonts/montserrat-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0a0a09;
  --ink-soft: #161513;
  --paper: #ffffff;
  --paper-dim: #f3f2ee;
  --accent: #ff3d17;
  --accent-rgb: 255, 61, 23;
  --accent-2: #ffb400;
  --line: #e4e2db;
  --line-dark: #2a2926;
  --muted: #6b6a64;
  --muted-dark: #a9a79f;

  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --max-w: 1360px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --sect: clamp(5rem, 11vw, 9rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --focus: 3px solid var(--accent);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
img, picture, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }

body {
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

main { flex: 1; }

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

:focus-visible { outline: var(--focus); outline-offset: 3px; border-radius: 1px; }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.wrap { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: fixed;
  top: 0; left: 0;
  z-index: 999;
  padding: 0.9rem 1.4rem;
  background: var(--accent);
  color: var(--paper);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transform: translateY(-120%);
  transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Grain texture overlay ---------- */
.grain {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  opacity: 0.045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Custom cursor (desktop, fine pointer only) ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 999;
  pointer-events: none; border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot { width: 7px; height: 7px; background: var(--accent); }
.cursor-ring {
  width: 38px; height: 38px; border: 1.5px solid rgba(var(--accent-rgb), 0.6);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.cursor-ring.is-hover { width: 64px; height: 64px; background: rgba(var(--accent-rgb), 0.08); border-color: var(--accent); }
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}
html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: var(--gutter) var(--gutter) clamp(2rem, 5vw, 3.5rem);
  transition: transform 0.9s var(--ease), opacity 0.6s ease 0.3s;
}
.preloader.is-done { transform: translateY(-102%); }
.preloader-word { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; }
.preloader-count { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 300; font-variant-numeric: tabular-nums; color: var(--muted-dark); }
.preloader-bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent); width: 0%; transition: width 0.2s linear; }
@media (prefers-reduced-motion: reduce) { .preloader { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 300;
  padding: clamp(1rem, 2.4vw, 1.6rem) 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(14px) saturate(1.4);
  border-color: var(--line); padding-block: 0.9rem;
}
.site-header.is-hidden { transform: translateY(-100%); }

.brand { display: flex; align-items: center; gap: 0.7rem; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand img { width: 42px; height: 42px; filter: drop-shadow(0 1px 4px rgba(0,0,0,0.35)); }
.on-hero .brand { color: var(--paper); }

.nav { display: flex; align-items: center; gap: clamp(1.1rem, 2vw, 2rem); }
.nav a:not(.lang a) {
  position: relative; font-size: 0.92rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  padding-block: 0.3rem;
}
.nav a:not(.lang a)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--accent);
  transition: right 0.35s var(--ease);
}
.nav a:not(.lang a):hover::after, .nav a[aria-current]::after { right: 0; }
.on-hero .nav a { color: var(--paper); }

.lang { display: flex; gap: 0.4rem; font-size: 0.78rem; font-weight: 800; }
.lang a { padding: 0.2rem 0.5rem; border: 1px solid var(--line); border-radius: 20px; opacity: 0.6; }
.lang a[aria-current] { opacity: 1; border-color: var(--ink); background: var(--ink); color: var(--paper); }
.on-hero .lang a { border-color: rgba(255,255,255,0.35); color: var(--paper); }
.on-hero .lang a[aria-current] { background: var(--paper); color: var(--ink); border-color: var(--paper); }

a.header-cta { display: none; }
@media (min-width: 1080px) { a.header-cta { display: inline-flex; } }

.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer; z-index: 310;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform 0.35s var(--ease), opacity 0.25s ease, background 0.3s; }
.on-hero .nav-toggle span { background: var(--paper); }
body.nav-open .nav-toggle span { background: var(--ink); }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1079px) {
  .nav {
    position: fixed; inset: 0; z-index: 305;
    background: var(--paper);
    flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 0.4rem; padding: clamp(2rem,8vw,4rem);
    transform: translateY(-100%); opacity: 0;
    transition: transform 0.55s var(--ease), opacity 0.4s ease;
    pointer-events: none;
  }
  body.nav-open .nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a:not(.lang a) {
    font-size: clamp(2rem, 9vw, 3.2rem); font-weight: 800; text-transform: none; letter-spacing: -0.02em;
    color: var(--ink) !important; opacity: 0; transform: translateY(30px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  }
  body.nav-open .nav a:not(.lang a) { opacity: 1; transform: translateY(0); }
  .nav a:not(.lang a)::after { display: none; }
  .nav .lang { margin-top: 1.5rem; opacity: 0; transition: opacity 0.5s ease 0.3s; }
  body.nav-open .nav .lang { opacity: 1; }
  .nav .lang a { color: var(--ink) !important; border-color: var(--line) !important; }
  .nav .lang a[aria-current] { background: var(--ink) !important; color: var(--paper) !important; }
}
@media (min-width: 1080px) { .nav-toggle { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1rem 1.8rem; font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
  border-radius: 100px; border: 1.5px solid var(--ink); overflow: hidden; isolation: isolate;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--ink); transform: scale(0); transform-origin: center;
  transition: transform 0.5s var(--ease);
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid::before { background: var(--accent); }
.btn-solid:hover::before, .btn-solid:focus-visible::before { transform: scale(1.15); }
.btn-solid:hover, .btn-solid:focus-visible { border-color: var(--accent); }

.btn-line { background: transparent; color: var(--ink); }
.btn-line::before { background: var(--ink); }
.btn-line:hover::before, .btn-line:focus-visible::before { transform: scale(1.15); }
.btn-line:hover, .btn-line:focus-visible { color: var(--paper); }

.on-hero .btn-line, .hero .btn-line, .section-ink .btn-line, .on-dark .btn-line { border-color: rgba(255,255,255,0.55); color: var(--paper); }
.on-hero .btn-line::before, .hero .btn-line::before, .section-ink .btn-line::before, .on-dark .btn-line::before { background: var(--paper); }
.on-hero .btn-line:hover, .hero .btn-line:hover, .section-ink .btn-line:hover, .on-dark .btn-line:hover { color: var(--ink); }

.arrow-link { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.03em; }
.arrow-link::after { content: "→"; display: inline-block; transition: transform 0.35s var(--ease); color: var(--accent); }
.arrow-link:hover::after { transform: translateX(6px); }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.on-dark .eyebrow { color: var(--muted-dark); }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(3.2rem); transition: opacity 0.9s var(--ease-soft), transform 0.9s var(--ease-soft); transition-delay: var(--rd, 0s); }
[data-reveal].in { opacity: 1; transform: translateY(0); }
/* Dynamic event cards are injected after the reveal observer boots — keep them visible */
[data-events-list] .event-card { opacity: 1; transform: none; }
[data-reveal-line] { overflow: hidden; }
[data-reveal-line] > * { display: block; transform: translateY(105%); transition: transform 0.9s var(--ease-soft); transition-delay: var(--rd, 0s); }
[data-reveal-line].in > * { transform: translateY(0); }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; white-space: nowrap; border-block: 1px solid var(--line-dark);
  background: var(--ink); color: var(--paper); padding-block: 0.9rem;
}
.marquee-track { display: inline-flex; gap: 3rem; animation: marquee 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-size: 0.95rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; display: inline-flex; align-items: center; gap: 3rem; }
.marquee span em { font-style: normal; color: var(--accent); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; color: var(--paper); overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media picture, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media img { transform: scale(1.08); will-change: transform; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,10,9,0.55) 0%, rgba(10,10,9,0.35) 40%, rgba(10,10,9,0.85) 100%);
}
.hero-inner { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 7rem; padding-bottom: 3rem; }
.hero-inner .wrap { width: 100%; }
.hero-eyebrow { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.16em; color: var(--paper); opacity: 0.85; margin-bottom: 1.4rem; }
.hero-title {
  font-size: clamp(2.6rem, 8.6vw, 7.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 0.96;
  max-width: 20ch;
}
.hero-title .line { overflow: hidden; display: block; }
.hero-title .line span { display: block; transform: translateY(110%); transition: transform 1s var(--ease-soft); }
.hero.is-ready .hero-title .line span { transform: translateY(0); }
.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub { max-width: 46ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); margin-top: 1.8rem; color: rgba(255,255,255,0.86); font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero-verse { margin-top: 3.5rem; max-width: 30ch; border-left: 2px solid var(--accent); padding-left: 1.2rem; }
.hero-verse p { font-size: 1.05rem; font-weight: 600; font-style: normal; }
.hero-verse cite { display: block; margin-top: 0.5rem; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-dark); }

.hero-scroll {
  position: absolute; left: var(--gutter); bottom: 2.4rem; z-index: 1;
  display: flex; align-items: center; gap: 0.8rem;
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,0.7);
}
.hero-scroll::before { content: ""; width: 1px; height: 42px; background: linear-gradient(var(--accent), transparent); animation: scrollpulse 2.2s ease-in-out infinite; }
@keyframes scrollpulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ---------- Stats band ---------- */
.stats { background: var(--paper-dim); border-block: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 780px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: clamp(2.2rem, 5vw, 3.4rem) var(--gutter); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; }
.stat:nth-child(2n) { border-right: 0; }
@media (min-width: 780px) { .stat { border-bottom: 0; } .stat:nth-child(2n) { border-right: 1px solid var(--line); } .stat:last-child { border-right: 0; } }
.stat-num { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); display: flex; align-items: baseline; gap: 0.15em; }
.stat-num .suffix { color: var(--accent); font-size: 0.5em; }
.stat-label { margin-top: 0.5rem; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding-block: var(--sect); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink .eyebrow { color: var(--muted-dark); }
.section-dim { background: var(--paper-dim); }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 16ch; }

.split { display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.flip > *:first-child { order: 2; } }
.split h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: 1.5rem; }
.prose { color: var(--muted); font-size: 1.05rem; }
.prose p + p { margin-top: 1.1rem; }
.section-ink .prose { color: var(--muted-dark); }

.media-frame { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4/5; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-soft); }
.media-frame:hover img, [data-reveal].in .media-frame img { transform: scale(1.04); }

.verse-block { margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.verse-block p { font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: var(--accent); }
.verse-block cite { display: block; margin-top: 0.7rem; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

/* ---------- Event cards ---------- */
.grid-3 { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.event-card { position: relative; display: block; }
.event-media { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4/3; }
.event-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-soft); }
.event-card:hover .event-media img { transform: scale(1.07); }
.event-index { position: absolute; top: 1rem; left: 1rem; font-size: 0.78rem; font-weight: 800; color: var(--paper); background: rgba(10,10,9,0.55); backdrop-filter: blur(6px); padding: 0.3rem 0.6rem; border-radius: 20px; }
.event-date { position: absolute; top: 1rem; right: 1rem; background: var(--paper); color: var(--ink); text-align: center; line-height: 1.1; padding: 0.55rem 0.7rem; border-radius: 4px; }
.event-date b { display: block; font-size: 1.15rem; font-weight: 800; }
.event-date span { display: block; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); }
.event-body { padding-top: 1.2rem; }
.badge { display: inline-block; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 0.6rem; }
.event-meta { font-size: 0.85rem; color: var(--muted); font-weight: 700; }
.event-body h3 { font-size: 1.35rem; margin-top: 0.4rem; letter-spacing: -0.02em; }
.event-body h3 a::after { content: ""; position: absolute; inset: 0; }
.event-body p { margin-top: 0.6rem; color: var(--muted); font-size: 0.95rem; }

/* ---------- Schedule ---------- */
.schedule { border-top: 1px solid var(--line-dark); }
.schedule-row {
  display: grid; grid-template-columns: 1fr; gap: 0.3rem;
  padding-block: 1.3rem; border-bottom: 1px solid var(--line-dark);
  position: relative; overflow: hidden;
}
@media (min-width: 700px) { .schedule-row { grid-template-columns: 1fr 2.2fr 1fr; align-items: center; gap: 1rem; } }
.schedule-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent);
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.4s var(--ease);
}
.schedule-row:hover::before { transform: scaleY(1); }
.schedule-day { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-dark); }
.schedule-title { font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 700; letter-spacing: -0.01em; transition: transform 0.4s var(--ease), color 0.4s var(--ease); }
.schedule-row:hover .schedule-title { transform: translateX(0.5rem); color: var(--accent); }
.schedule-time { font-size: 0.95rem; font-weight: 700; color: var(--muted-dark); font-variant-numeric: tabular-nums; }
@media (min-width: 700px) { .schedule-time { text-align: right; } }

/* ---------- Ministries bento ---------- */
.min-tile { position: relative; display: block; overflow: hidden; border-radius: 4px; aspect-ratio: 4/5; }
.min-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-soft); }
.min-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,9,0) 40%, rgba(10,10,9,0.92) 100%); }
.min-tile:hover img { transform: scale(1.08); }
.min-tile-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem; z-index: 1; color: var(--paper); }
.min-tile-text h3 { font-size: 1.3rem; letter-spacing: -0.02em; }
.min-tile-text p { margin-top: 0.5rem; font-size: 0.88rem; color: rgba(255,255,255,0.8); max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.45s var(--ease), opacity 0.35s ease; }
.min-tile:hover .min-tile-text p, .min-tile:focus-visible .min-tile-text p { max-height: 6rem; opacity: 1; margin-top: 0.6rem; }
.min-tile-arrow { position: absolute; top: 1.2rem; right: 1.2rem; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.15); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; color: var(--paper); font-size: 1rem; transform: rotate(-40deg) scale(0.85); opacity: 0; transition: all 0.4s var(--ease); }
.min-tile:hover .min-tile-arrow { opacity: 1; transform: rotate(0) scale(1); background: var(--accent); }

/* ---------- Online panel ---------- */
.online-panel { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .online-panel { grid-template-columns: 1fr 1fr; } }
.online-media { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 16/11; }
.online-media img { width: 100%; height: 100%; object-fit: cover; }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 600; }

/* ---------- Give ---------- */
.give-box { background: var(--accent); color: var(--ink); padding: clamp(2.6rem, 6vw, 5rem); border-radius: 6px; }
.give-box .eyebrow { color: rgba(10,10,9,0.65); }
.give-box .eyebrow::before { background: var(--ink); }
.give-box h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--ink); }
.give-box .lede { color: rgba(10,10,9,0.78); }
.zelle-mail { margin-top: 1.4rem; font-size: 1.1rem; font-weight: 800; }
.give-box .btn-solid { margin-top: 1.4rem; border-color: var(--ink); }
.give-box .btn-solid::before { background: var(--ink); }
.give-box .btn-solid:hover { border-color: var(--ink); color: var(--paper); }
.give-box .arrow-link::after { color: var(--ink); }

/* ---------- Map ---------- */
.map-card { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .map-card { grid-template-columns: 1fr 1.3fr; } }
.address-lines { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; font-style: normal; margin-block: 1.2rem 1.8rem; }
.map-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.map-shell { position: relative; aspect-ratio: 16/10; background: var(--paper-dim); border-radius: 4px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--line); }
.map-shell iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-top: clamp(3.5rem, 8vw, 6rem); }
.footer-word { font-size: clamp(2.8rem, 11vw, 9rem); font-weight: 800; letter-spacing: -0.04em; line-height: 0.9; color: transparent; -webkit-text-stroke: 1.5px var(--paper); margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.footer-grid { display: grid; gap: 2.6rem; grid-template-columns: 1fr; padding-bottom: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--line-dark); padding-top: clamp(2.5rem, 6vw, 4rem); }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand p { margin-top: 1rem; color: var(--muted-dark); font-size: 0.92rem; max-width: 34ch; }
.site-footer h4 { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-dark); margin-bottom: 1rem; }
.site-footer ul li { margin-bottom: 0.55rem; font-size: 0.92rem; }
.site-footer ul a { position: relative; }
.site-footer ul a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; padding-block: 1.6rem; border-top: 1px solid var(--line-dark); font-size: 0.8rem; color: var(--muted-dark); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Page hero (subpages) ---------- */
.page-hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; color: var(--paper); overflow: hidden; }
.page-hero .hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,10,9,0.4) 0%, rgba(10,10,9,0.55) 55%, rgba(10,10,9,0.92) 100%);
}
.page-hero-inner { width: 100%; max-width: var(--max-w); margin-inline: auto; padding: 9rem var(--gutter) 3.6rem; }
.page-hero-inner h1 { font-size: clamp(2.4rem, 6.5vw, 4.8rem); letter-spacing: -0.035em; max-width: 18ch; }
.page-hero-inner .lede { margin-top: 1.2rem; max-width: 52ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,0.86); font-weight: 500; }

/* ---------- Timeline ---------- */
.timeline { display: grid; gap: 1.8rem 1.5rem; margin-top: clamp(2.5rem, 5vw, 4rem); grid-template-columns: 1fr; list-style: none; }
@media (min-width: 700px) { .timeline { grid-template-columns: repeat(4, 1fr); } }
.timeline li { border-top: 3px solid var(--accent); padding-top: 1.1rem; }
.timeline-year { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; }
.timeline li p { margin-top: 0.5rem; color: var(--muted); font-size: 0.92rem; }

/* ---------- Two-column grid ---------- */
.grid-2 { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- Pastor cards ---------- */
.pastor-photo { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4/5; margin-bottom: 1.5rem; }
.pastor-photo img { width: 100%; height: 100%; object-fit: cover; }
.pastor-card h3 { font-size: 1.5rem; margin-bottom: 0.9rem; letter-spacing: -0.02em; }

/* ---------- Beliefs accordion ---------- */
.beliefs { border-top: 1px solid var(--line); margin-top: 0.5rem; }
.beliefs details { border-bottom: 1px solid var(--line); padding-block: 1.5rem; }
.beliefs summary {
  cursor: pointer; font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 800; letter-spacing: -0.015em;
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.beliefs summary::-webkit-details-marker { display: none; }
.beliefs summary::after { content: "+"; font-size: 1.7rem; font-weight: 300; color: var(--accent); transition: transform 0.35s var(--ease); flex-shrink: 0; }
.beliefs details[open] summary::after { transform: rotate(45deg); }
.beliefs details .prose { margin-top: 1.1rem; }
.beliefs .refs { margin-top: 0.7rem; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

/* ---------- Info cards ---------- */
.info-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.6rem, 3vw, 2.2rem); }
.info-card h3 { font-size: 1.1rem; margin-bottom: 0.7rem; letter-spacing: -0.01em; }
.info-card p { color: var(--muted); font-size: 0.92rem; }
.info-card .btn { margin-top: 1.3rem; }
.section-ink .info-card, .section-dim .info-card { background: var(--paper); }

/* ---------- Detail grid (event / ministry detail pages) ---------- */
.detail-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .detail-grid { grid-template-columns: 1.2fr 0.8fr; } }
.detail-grid .info-card h3 + p { margin-bottom: 0; }
.detail-grid .info-card h3 { margin-top: 1.6rem; }
.detail-grid .info-card h3:first-child { margin-top: 0; }

/* ---------- Tax note ---------- */
.tax-note { margin-top: 1.6rem; font-size: 0.8rem; color: rgba(10,10,9,0.6); max-width: 58ch; }

/* ---------- 404 ---------- */
.err-hero { min-height: 74vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; max-width: var(--max-w); margin-inline: auto; padding: 9rem var(--gutter) 4rem; }
.err-hero .code { font-size: clamp(5.5rem, 20vw, 12rem); font-weight: 800; letter-spacing: -0.04em; line-height: 0.85; color: transparent; -webkit-text-stroke: 2px var(--accent); }
.err-hero h1 { margin-top: 1.2rem; font-size: clamp(2rem, 5vw, 3.2rem); }
.err-hero .lede { margin-top: 1rem; max-width: 46ch; color: var(--muted-dark); }
.err-hero .btn { margin-top: 2.2rem; }

/* ---------- Misc utility ---------- */
.mt-2 { margin-top: 2rem; }
