/* ==========================================================================
   RCCG True Vine Parish Toulouse — main stylesheet
   Colours: edit the tokens below to re-brand the whole site.
   ========================================================================== */
:root {
  --grape: #150c3f;
  --wine: #29166f;
  --berry: #4a3aa7;
  --gold: #e0b25b;
  --gold-2: #f3d493;
  --gold-ink: #a4741a; /* gold that stays readable on white */
  --cream: #f7f6fb;
  --paper: #ffffff;
  --ink: #17122e;
  --muted: #5d5a72;
  --line: #e6e3f0;
  --radius: 22px;
  --shadow: 0 24px 60px -24px rgba(21, 12, 63, .38);
  --ff-display: 'Fraunces', Georgia, serif;
  --ff-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
.js body { opacity: 0; transition: opacity .6s var(--ease); }
.js body.ready { opacity: 1; }
.js body.leaving { opacity: 0; transition-duration: .28s; }

img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.icon-svg { width: 1.25em; height: 1.25em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
@media (min-width: 700px) { .container { width: min(1180px, 100% - 64px); } }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.3rem); }
h3 { font-size: 1.35rem; line-height: 1.2; }
h1 em, h2 em { font-style: italic; color: var(--gold-ink); }
.on-dark h1 em, .on-dark h2 em { color: var(--gold); }
p + p { margin-top: 1rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--berry);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.on-dark .eyebrow { color: var(--gold); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 60ch; }
.on-dark .lead { color: rgba(255, 255, 255, .78); }
.muted { color: var(--muted); }
.placeholder { background: rgba(224, 178, 91, .22); border-radius: 4px; padding: 0 .25em; }
.on-dark .placeholder { background: rgba(224, 178, 91, .25); }
.link { font-weight: 700; color: var(--berry); display: inline-flex; gap: .4rem; align-items: center; }
.on-dark .link { color: var(--gold); }
.link:hover .arr { transform: translateX(4px); }
.arr { display: inline-block; transition: transform .3s var(--ease); }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; z-index: 200; height: 3px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--gold), var(--berry));
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; color: var(--ink); padding: 18px 0;
  transition: background .4s, box-shadow .4s, padding .4s var(--ease), color .3s;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  color: var(--ink); padding: 10px 0; box-shadow: 0 1px 0 var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
@media (min-width: 700px) { .site-header .container { width: min(1340px, 100% - 48px); } }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand svg, .brand-logo { width: 48px; height: 48px; transition: transform .6s var(--ease); }
.brand-logo { object-fit: contain; border-radius: 50%; }
.brand:hover svg { transform: rotate(-12deg) scale(1.05); }
.brand b { font-family: var(--ff-display); font-size: 1.25rem; font-weight: 600; display: block; line-height: 1.05; }
.brand small { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; opacity: .72; }
.nav-links { display: none; gap: .1rem; align-items: center; list-style: none; }
.nav-links a { position: relative; padding: .5rem .6rem; font-size: .88rem; white-space: nowrap; font-weight: 600; opacity: .82; transition: opacity .2s; }
.nav-links a::after {
  content: ""; position: absolute; left: .6rem; right: .6rem; bottom: .2rem; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.site-header .nav-cta { display: none; }
@media (min-width: 600px) { .site-header .nav-cta { display: inline-flex; } }
.menu-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid currentColor; background: none;
  color: inherit; display: grid; place-items: center; cursor: pointer;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 18px; height: 2px; background: currentColor; transition: .35s var(--ease);
}
.menu-btn span { position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { top: 0; rotate: 45deg; }
.menu-open .menu-btn span::after { top: 0; rotate: -45deg; }
@media (min-width: 1280px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
}
.nav-actions { display: flex; align-items: center; gap: .6rem; }

/* language switch */
.lang-switch {
  position: relative; isolation: isolate; display: inline-grid; grid-template-columns: repeat(2, 40px);
  padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px currentColor;
  font: 800 .72rem/1 var(--ff-body); letter-spacing: .08em;
}
.lang-switch button {
  background: none; border: 0; color: inherit; font: inherit; letter-spacing: inherit;
  padding: .55rem 0; text-align: center; border-radius: 999px; cursor: pointer; transition: color .35s var(--ease);
}
.lang-switch button[aria-pressed="true"] { color: var(--grape); }
/* The gold marker shares the exact grid cell of the EN button (and slides one cell for FR),
   so it always matches the button's size and position. */
.lang-switch [data-set-lang="en"] { grid-area: 1 / 1; }
.lang-switch [data-set-lang="fr"] { grid-area: 1 / 2; }
.lang-switch .thumb {
  grid-area: 1 / 1; align-self: stretch; justify-self: stretch; z-index: -1;
  border-radius: 999px; background: var(--gold); transition: transform .45s var(--ease);
}
.lang-switch[data-lang="fr"] .thumb { transform: translateX(100%); }
.lang-switch:hover .thumb { box-shadow: 0 0 0 4px rgba(224, 178, 91, .25); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--grape); color: #fff;
  display: flex; flex-direction: column; justify-content: safe center; overflow-y: auto; padding: 100px 24px 40px;
  clip-path: circle(0 at calc(100% - 40px) 40px); visibility: hidden;
  transition: clip-path .7s var(--ease), visibility 0s .7s;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; transition-delay: 0s; }
.mobile-menu a {
  font-family: var(--ff-display); font-size: clamp(1.5rem, 6vw, 2.3rem); display: block; padding: .25rem 0;
  opacity: 0; transform: translateY(24px); transition: .55s var(--ease); transition-delay: calc(var(--i) * 50ms + .15s);
}
.mobile-menu a.active { color: var(--gold); }
.menu-open .mobile-menu a { opacity: 1; transform: none; }
/* White text only while the header sits on the dark home banner */
.site-header.over-dark:not(.scrolled) { color: #fff; }
.menu-open .site-header { color: #fff; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.menu-open { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--wine); --fg: #fff; --hover: var(--berry);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.55rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--fg); font: 700 .95rem/1 var(--ff-body);
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--hover); transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover::before { transform: none; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:hover .arr { transform: translateX(4px); }
.btn-gold { --bg: var(--gold); --fg: var(--grape); --hover: var(--gold-2); }
.btn-ghost { --bg: transparent; --fg: currentColor; --hover: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-light { --bg: #fff; --fg: var(--wine); --hover: var(--gold-2); }
.btn-sm { padding: .7rem 1.15rem; font-size: .85rem; }
.btn-whatsapp { --bg: #0f8a44; --fg: #fff; --hover: #0b7438; }
.contact-socials { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.btn[disabled] { opacity: .7; pointer-events: none; }
.btn.loading .btn-text::after { content: "…"; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden;
  padding: 140px 0 110px; color: #fff;
  background:
    radial-gradient(640px circle at var(--mx, 70%) var(--my, 30%), rgba(224, 178, 91, .17), transparent 60%),
    linear-gradient(160deg, var(--grape) 0%, #221358 55%, var(--wine) 100%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; animation: float 20s ease-in-out infinite; }
.blob.b1 { width: 440px; height: 440px; background: var(--berry); top: -140px; right: -90px; opacity: .5; }
.blob.b2 { width: 380px; height: 380px; background: var(--gold); bottom: -150px; left: -110px; opacity: .25; animation-delay: -7s; }
.blob.b3 { width: 260px; height: 260px; background: #5b4bd6; top: 40%; left: 42%; opacity: .16; animation-delay: -12s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 25px) scale(.95); }
}
.hero-grid { position: relative; z-index: 2; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.3fr .7fr; } }
.hero h1 { margin: 1.2rem 0 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

.vine { position: absolute; right: -6%; bottom: -2%; width: min(720px, 95vw); opacity: .35; z-index: 1; pointer-events: none; }
.page-hero .vine { width: min(520px, 80vw); opacity: .55; }
.vine .stem {
  fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round;
  stroke-dasharray: var(--len, 2200); stroke-dashoffset: var(--len, 2200);
  animation: draw 4s var(--ease) .3s forwards;
}
.vine .tendril { stroke-width: 1.4; animation-delay: 1.6s; animation-duration: 2.5s; }
.vine .leaf {
  fill: var(--gold); opacity: 0; transform: scale(0); transform-box: fill-box; transform-origin: 0 50%;
  animation: pop .9s var(--ease) forwards; animation-delay: calc(1.1s + var(--i) * .28s);
}
.vine .grapes { transform-origin: 50% 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: .9; transform: scale(1); } }

/* split-word headline animation */
/* Each word rises from behind a mask that only cuts off the BOTTOM edge, so leaning
   italic letters (e.g. the last "l" of "We'll") are never trimmed on the sides. */
[data-split] .w { display: inline-block; vertical-align: top; padding-bottom: .2em; margin-bottom: -.2em; clip-path: inset(-1em -1em 0 -1em); }
[data-split] .w > span { display: inline-block; transform: translateY(110%); animation: rise 1s var(--ease) forwards; animation-delay: calc(.25s + var(--i) * .08s); }
@keyframes rise { to { transform: none; } }

/* glass + countdown */
.glass {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-radius: var(--radius); padding: 1.75rem;
}
.next-label { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); position: relative; flex: none; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.8s var(--ease) infinite; }
.is-live .live-dot { background: #ff4d6d; }
@keyframes ping { to { transform: scale(2.8); opacity: 0; } }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 1.2rem 0 1rem; }
.countdown div { text-align: center; background: rgba(255, 255, 255, .07); border-radius: 14px; padding: .85rem .2rem; }
.countdown b { display: block; font-family: var(--ff-display); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.countdown small { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.cd-when { font-size: .95rem; opacity: .85; margin-bottom: 1rem; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; z-index: 3; translate: -50% 0;
  width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 20px;
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee-wrap { position: relative; z-index: 3; margin-top: -2.2rem; overflow: hidden; padding: 1rem 0; }
.marquee { background: var(--gold); color: var(--grape); padding: 1.05rem 0; transform: rotate(-1.6deg); width: 104%; margin-left: -2%; overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: scroll-x 34s linear infinite; }
.marquee-track span { font-family: var(--ff-display); font-style: italic; font-size: clamp(1.3rem, 3vw, 2rem); white-space: nowrap; padding-right: 2.2rem; }
.marquee-track span::after { content: "✦"; font-style: normal; font-size: .7em; margin-left: 2.2rem; vertical-align: middle; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; color: var(--ink); padding: 170px 0 100px;
  background:
    radial-gradient(600px circle at var(--mx, 80%) var(--my, 20%), rgba(224, 178, 91, .16), transparent 60%),
    linear-gradient(180deg, #f1effa, #fff);
  border-bottom: 1px solid var(--line);
}
.page-hero .blob.b1 { background: #c8c1ef; opacity: .55; }
.page-hero .blob.b2 { background: var(--gold-2); opacity: .45; }
.page-hero .crumbs a:hover { color: var(--gold-ink); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); max-width: 17ch; margin: 1rem 0 1.2rem; }
.crumbs { font-size: .85rem; opacity: .7; display: flex; gap: .5rem; }
.crumbs a:hover { color: var(--gold); }

/* ---------- Sections & layout ---------- */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head h2 { margin: .9rem 0 1rem; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .lead { margin-inline: auto; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; }
.bg-paper { background: var(--cream); }
.bg-dark { background: var(--grape); color: #fff; }
.split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 5rem; } .split.wide-left { grid-template-columns: 1.2fr .8fr; } }
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid-3 { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { display: grid; gap: 1.25rem; max-width: 900px; margin-inline: auto; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.stack > * + * { margin-top: 1.2rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem;
  position: relative; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--muted); }
.card .icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.3rem;
  background: linear-gradient(135deg, var(--wine), var(--berry)); color: #fff;
  transition: transform .5s var(--ease);
}
.card .icon svg { width: 26px; height: 26px; }
.card:hover .icon { transform: rotate(-8deg) scale(1.08); }
.on-dark .card, .card.dark { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); color: #fff; }
.on-dark .card p { color: rgba(255, 255, 255, .7); }
.on-dark .card .icon { background: linear-gradient(135deg, var(--gold), #c9962f); color: var(--grape); }

.service-card .when { display: flex; flex-wrap: wrap; gap: .5rem; margin: .2rem 0 1rem; }
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 700; background: rgba(74, 58, 167, .09); color: var(--wine); }
.pill.gold { background: rgba(224, 178, 91, .22); color: #7a5410; }
.service-card .num { position: absolute; right: 1.4rem; top: 1rem; font-family: var(--ff-display); font-size: 4rem; line-height: 1; color: rgba(41, 22, 111, .07); transition: color .4s, transform .6s var(--ease); }
.service-card:hover .num { color: rgba(224, 178, 91, .35); transform: translateY(-4px) rotate(-6deg); }

/* image placeholder / visual block */
.visual {
  aspect-ratio: 4 / 5; border-radius: calc(var(--radius) * 1.4); position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--wine), var(--grape)); color: #fff;
  display: flex; align-items: flex-end; padding: 2rem; box-shadow: var(--shadow);
}
.visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* When a real photo is added: hide the placeholder label and shade the bottom so text stays readable. */
.visual:has(img) .ph-tag, .visual:has(img) .ring { display: none; }
.visual:has(img)::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(21, 12, 63, .85), rgba(21, 12, 63, 0) 55%); }
.avatar:has(img) .icon-svg { display: none; }
.visual .ph-tag { position: absolute; top: 1rem; left: 1rem; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: rgba(0, 0, 0, .28); padding: .35rem .75rem; border-radius: 999px; z-index: 2; }
.visual .ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); animation: spin 40s linear infinite; }
.visual .ring.r1 { width: 140%; aspect-ratio: 1; top: -60%; right: -70%; border-style: dashed; }
.visual .ring.r2 { width: 90%; aspect-ratio: 1; bottom: -30%; left: -30%; border-color: rgba(224, 178, 91, .3); animation-direction: reverse; }
.visual blockquote { position: relative; z-index: 2; font-family: var(--ff-display); font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.3; font-style: italic; }
.visual cite { display: block; margin-top: .8rem; font-family: var(--ff-body); font-style: normal; font-size: .85rem; color: var(--gold); letter-spacing: .08em; }
.visual-float { position: absolute; bottom: -1.5rem; right: 1rem; background: var(--paper); color: var(--ink); border-radius: 18px; padding: 1rem 1.3rem; box-shadow: var(--shadow); display: flex; gap: .8rem; align-items: center; animation: bob 6s ease-in-out infinite; z-index: 3; }
.visual-float .icon-svg { color: var(--berry); width: 28px; height: 28px; }
.visual-wrap { position: relative; }
/* Wide photo (home page welcome) with a slow zoom-out as it appears */
.visual.visual-wide { aspect-ratio: 21 / 9; }
@media (max-width: 700px) { .visual.visual-wide { aspect-ratio: 4 / 3; padding: 1.4rem; } }
.visual-wide img, .photo-zoom img { transform: scale(1.1); transition: transform 2.4s var(--ease); }
.reveal.in .visual-wide img, .reveal.in .photo-zoom img { transform: none; }
.visual-wide blockquote { max-width: 22ch; }
.welcome-text { margin-top: 4rem; align-items: start; }
@media (max-width: 899px) { .welcome-text { margin-top: 3rem; gap: 1.2rem; } }
@media (min-width: 900px) { .visual-float { right: -1.5rem; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes bob { 50% { transform: translateY(-10px); } }
.signature { font-family: var(--ff-display); font-style: italic; font-size: 1.3rem; margin-top: 1.6rem; color: var(--wine); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.from-left { transform: translateX(-50px); }
.js .reveal.from-right { transform: translateX(50px); }
.js .reveal.scale { transform: scale(.92); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; color: #fff; border-radius: calc(var(--radius) * 1.5);
  padding: clamp(2.5rem, 6vw, 4.5rem); display: grid; gap: 1.8rem; align-items: center;
  background: linear-gradient(120deg, var(--wine), var(--berry));
}
@media (min-width: 860px) { .cta-band { grid-template-columns: 1.4fr auto; } }
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.cta-band p { color: rgba(255, 255, 255, .8); margin-top: .8rem; max-width: 55ch; }
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.cta-band::before { width: 520px; height: 520px; right: -170px; top: -230px; border: 1px dashed rgba(255, 255, 255, .3); animation: spin 50s linear infinite; }
.cta-band::after { width: 300px; height: 300px; right: -40px; bottom: -180px; background: var(--gold); filter: blur(80px); opacity: .35; }
.cta-band > * { position: relative; z-index: 1; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; gap: 2.2rem; padding-left: 2.2rem; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; }
.timeline::before { background: rgba(255, 255, 255, .15); }
.timeline::after { background: linear-gradient(var(--gold), var(--berry)); transform-origin: top; transform: scaleY(var(--prog, 0)); }
.t-item { position: relative; }
.t-item::before { content: ""; position: absolute; left: calc(-2.2rem + 1px); top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--grape); border: 2px solid var(--gold); }
.t-item .year { font-family: var(--ff-display); font-size: 1.8rem; color: var(--gold); line-height: 1; }
.t-item h3 { margin: .4rem 0 .3rem; }
.t-item p { color: rgba(255, 255, 255, .72); }

/* numbered list cards */
.num-card { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; }
.num-card .n { font-family: var(--ff-display); font-size: 2.4rem; line-height: 1; color: var(--berry); min-width: 2ch; }
.on-dark .num-card .n { color: var(--gold); }

/* ---------- Leaders ---------- */
.avatar {
  aspect-ratio: 1; border-radius: var(--radius); position: relative; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c1, var(--wine)), var(--c2, var(--berry))); color: rgba(255, 255, 255, .35);
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.avatar .icon-svg { width: 38%; height: 38%; }
.avatar::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent); transition: transform .9s var(--ease);
}
.leader:hover .avatar::after { transform: translateX(120%) skewX(-18deg); }
.leader:hover .avatar img { transform: scale(1.06); }
.leader { padding: 1rem; }
/* Team cards keep a comfortable size and stay centred, however many leaders are listed */
.team-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 270px)); justify-content: center; }
.leader .body { padding: 1.1rem .5rem .6rem; }
.leader .role { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--berry); }
.leader h3 { margin: .35rem 0 .4rem; font-size: 1.25rem; }
.featured-leader .avatar { aspect-ratio: 4 / 5; border-radius: calc(var(--radius) * 1.4); box-shadow: var(--shadow); }
.featured-leader .avatar .icon-svg { width: 30%; height: 30%; }
/* Cut-out portrait standing in front of a navy panel with a gold glow */
.avatar.portrait { overflow: hidden; isolation: isolate; }
.avatar.portrait::before {
  content: ""; position: absolute; z-index: -1; left: 10%; top: 8%; width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 178, 91, .5), rgba(224, 178, 91, 0) 68%);
  animation: glow 6s ease-in-out infinite;
}
.portrait-ring {
  position: absolute; z-index: -1; left: 50%; top: 40%; width: 88%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; border: 1.5px dashed rgba(224, 178, 91, .45); animation: spin 50s linear infinite;
}
.avatar.portrait img { top: auto; height: 88%; object-fit: contain; object-position: center bottom; transform-origin: center bottom; transition: transform .9s var(--ease); }
.featured-leader .avatar.portrait:hover img { transform: scale(1.03); }
/* Full photo version of the pastor's portrait: fills the frame, slow zoom on hover */
.avatar.pastor-photo img { object-position: center 30%; }
.featured-leader .avatar.pastor-photo:hover img { transform: scale(1.04); }
@keyframes glow { 50% { opacity: .65; transform: scale(.94); } }
.quote { border-left: 3px solid var(--gold); padding: .4rem 0 .4rem 1.2rem; font-family: var(--ff-display); font-style: italic; font-size: 1.3rem; line-height: 1.4; margin: 1.6rem 0; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 1rem; counter-reset: step; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start;
  padding: 1.5rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s;
}
.step:hover { transform: translateX(8px); box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--ff-display); font-size: 2rem; color: var(--berry); line-height: 1; }
.step h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- Info list ---------- */
.info-list { display: grid; gap: 1rem; list-style: none; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list .ic { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: rgba(74, 58, 167, .09); color: var(--wine); }
.info-list b { display: block; }
.info-list span, .info-list a { color: var(--muted); }
.info-list a:hover { color: var(--berry); }

.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); background: #ece3e7; box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.8); }
.map { position: relative; }
.map-gate {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .8rem;
  text-align: center; padding: 1.5rem; color: var(--ink);
  background:
    radial-gradient(circle at 30% 25%, rgba(224, 178, 91, .28), transparent 45%),
    repeating-linear-gradient(0deg, rgba(41, 22, 111, .06) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(90deg, rgba(41, 22, 111, .06) 0 1px, transparent 1px 38px),
    linear-gradient(135deg, #f3f1fa, #e6e2f3);
  transition: opacity .45s var(--ease), visibility 0s .45s;
}
.map-gate .icon-svg { width: 42px; height: 42px; color: var(--berry); animation: bob 3s ease-in-out infinite; }
.map-gate p { font-size: .9rem; color: var(--muted); max-width: 34ch; }
.map-gate small { font-size: .78rem; color: var(--muted); max-width: 36ch; }
.map-gate a { color: var(--berry); font-weight: 700; text-decoration: underline; }
.map.loaded .map-gate { opacity: 0; visibility: hidden; }

/* ---------- Sermons ---------- */
.live-banner {
  display: grid; gap: 1.5rem; align-items: center; border-radius: calc(var(--radius) * 1.3);
  padding: clamp(1.8rem, 4vw, 2.8rem); background: var(--grape); color: #fff; position: relative; overflow: hidden;
}
@media (min-width: 820px) { .live-banner { grid-template-columns: auto 1fr auto; } }
.live-badge { display: inline-flex; align-items: center; gap: .6rem; background: rgba(255, 77, 109, .15); color: #ff8fa3; padding: .5rem 1rem; border-radius: 999px; font-weight: 800; font-size: .8rem; letter-spacing: .14em; }
.live-badge .live-dot { background: #ff4d6d; }
.live-banner h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.live-banner p { color: rgba(255, 255, 255, .7); }

.toolbar { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  padding: .55rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper);
  font: 700 .85rem var(--ff-body); color: inherit; cursor: pointer; transition: .3s var(--ease);
}
.chip:hover { border-color: var(--wine); }
.chip.active { background: var(--wine); color: #fff; border-color: var(--wine); }
.search { position: relative; width: min(100%, 320px); }
.search input { width: 100%; padding: .8rem 1rem .8rem 2.8rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font: inherit; color: inherit; transition: border-color .25s, box-shadow .25s; }
.search input:focus { outline: none; border-color: var(--berry); box-shadow: 0 0 0 4px rgba(74, 58, 167, .14); }
.search .icon-svg { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; color: var(--muted); }

.sermon { padding: 0; cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; }
.sermon.enter { animation: card-in .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.thumb { aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.sermon:hover .thumb img { transform: scale(1.06); }
.thumb::before { content: ""; position: absolute; width: 180%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .22); animation: spin 60s linear infinite; }
.thumb .t-title { position: absolute; left: 1.2rem; right: 5rem; bottom: 1rem; font-family: var(--ff-display); font-size: 1.25rem; line-height: 1.15; z-index: 1; opacity: .95; }
.play {
  width: 62px; height: 62px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--wine);
  display: grid; place-items: center; position: relative; z-index: 1; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transition: transform .45s var(--ease);
}
.play::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); animation: ping 2.2s var(--ease) infinite; }
.play svg { width: 22px; height: 22px; margin-left: 3px; }
.sermon:hover .play, .feature-thumb:hover .play { transform: scale(1.14); }
.series-tag { position: absolute; top: 1rem; left: 1rem; z-index: 1; background: rgba(0, 0, 0, .28); padding: .3rem .75rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sermon .body { padding: 1.3rem 1.5rem 1.6rem; }
.sermon h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.meta { font-size: .84rem; color: var(--muted); display: flex; gap: .4rem 1rem; flex-wrap: wrap; }
.meta span { display: inline-flex; align-items: center; gap: .35rem; }
.meta .icon-svg { width: 1em; height: 1em; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); display: none; }

.feature-thumb { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: calc(var(--radius) * 1.3); overflow: hidden; position: relative; background: linear-gradient(135deg, var(--berry), var(--wine) 60%, #1a0716); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6); }
.feature-thumb::before { content: ""; position: absolute; width: 150%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .2); animation: spin 60s linear infinite; }
/* Latest sermon with its real YouTube thumbnail, and the player once clicked */
.feature-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.feature-thumb.has-thumb::before { display: none; }
.feature-thumb.has-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(21, 12, 63, .55), rgba(21, 12, 63, .1)); transition: background .4s; }
.feature-thumb.has-thumb:hover img { transform: scale(1.04); }
.feature-thumb.has-thumb:hover::after { background: linear-gradient(to top, rgba(21, 12, 63, .4), rgba(21, 12, 63, 0)); }
.feature-thumb .play { z-index: 2; }
.feature-thumb.playing { aspect-ratio: 16 / 9; background: #000; }
.feature-thumb.playing::before { display: none; }
.feature-thumb.playing iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.modal {
  position: fixed; inset: 0; z-index: 300; padding: 16px; display: grid; place-items: center;
  background: rgba(20, 8, 18, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s;
}
.modal.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.modal-box { width: min(960px, 100%); transform: scale(.94) translateY(20px); transition: transform .5s var(--ease); color: #fff; }
.modal.open .modal-box { transform: none; }
.modal-frame { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; display: grid; place-items: center; text-align: center; padding: 0; }
.modal-frame iframe { width: 100%; height: 100%; border: 0; }
.modal-frame .soon { padding: 2rem; color: rgba(255, 255, 255, .8); }
.modal-head { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.modal-head h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
.modal-close { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .4); background: none; color: #fff; font-size: 1.4rem; cursor: pointer; transition: .3s var(--ease); }
.modal-close:hover { background: #fff; color: var(--wine); rotate: 90deg; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; max-width: 860px; margin-inline: auto; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: box-shadow .4s, border-color .3s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { list-style: none; cursor: pointer; padding: 1.3rem 1.5rem; font-weight: 700; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--wine); }
.pm { width: 34px; height: 34px; border-radius: 50%; background: var(--cream); flex: none; position: relative; transition: background .3s, rotate .5s var(--ease); }
.pm::before, .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--wine); translate: -50% -50%; transition: rotate .4s var(--ease); }
.pm::after { rotate: 90deg; }
.faq details[open] .pm { background: var(--gold); rotate: 180deg; }
.faq details[open] .pm::after { rotate: 0deg; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq .answer { padding: 0 1.5rem 1.4rem; color: var(--muted); }
.faq .answer a { color: var(--berry); font-weight: 700; }
.faq-tools { display: flex; justify-content: center; margin-bottom: 2rem; }
.faq-tools .search { width: min(100%, 460px); }

/* ---------- Forms ---------- */
.form-card { background: var(--paper); border-radius: calc(var(--radius) * 1.3); padding: clamp(1.6rem, 4vw, 2.8rem); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form { display: grid; gap: 1.1rem; }
.form .row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field label, .field .label { display: block; font-size: .86rem; font-weight: 700; margin-bottom: .45rem; }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: inherit; padding: .9rem 1rem; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--cream); transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--berry); box-shadow: 0 0 0 4px rgba(74, 58, 167, .14); background: #fff; }
.field textarea { min-height: 170px; resize: vertical; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--muted); cursor: pointer; }
.check input { margin-top: .3rem; accent-color: var(--wine); width: 17px; height: 17px; flex: none; }
.radio-cards { display: grid; gap: .7rem; }
@media (min-width: 560px) { .radio-cards { grid-template-columns: 1fr 1fr; } }
.radio-card { position: relative; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card span { display: block; padding: 1rem 1.1rem; border-radius: 14px; border: 1.5px solid var(--line); background: var(--cream); transition: .3s var(--ease); font-size: .88rem; color: var(--muted); }
.radio-card b { display: block; color: var(--ink); font-size: .95rem; margin-bottom: .15rem; }
.radio-card input:checked + span { border-color: var(--wine); background: rgba(74, 58, 167, .06); box-shadow: 0 0 0 4px rgba(74, 58, 167, .1); }
.radio-card input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.form-note { font-size: .8rem; color: var(--muted); }
.form-error { color: #b3261e; font-weight: 600; font-size: .9rem; display: none; }
.form-error.show { display: block; }
.form-success { display: none; text-align: center; padding: 2rem 0; }
.form.sent > :not(.form-success) { display: none; }
.form.sent .form-success { display: block; animation: card-in .7s var(--ease); }
.success-mark { width: 84px; height: 84px; margin: 0 auto 1.4rem; }
.success-mark circle { fill: none; stroke: var(--gold); stroke-width: 3; stroke-dasharray: 240; stroke-dashoffset: 240; }
.success-mark path { fill: none; stroke: var(--wine); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; }
.form.sent .success-mark circle { animation: dash .8s var(--ease) forwards; }
.form.sent .success-mark path { animation: dash .5s var(--ease) .6s forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.form-success h3 { font-size: 1.7rem; margin-bottom: .6rem; }

.verse-card { border-radius: calc(var(--radius) * 1.3); padding: 2rem; background: linear-gradient(140deg, var(--grape), var(--wine)); color: #fff; position: relative; overflow: hidden; }
.verse-card blockquote { font-family: var(--ff-display); font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-style: italic; line-height: 1.4; position: relative; }
.verse-card cite { display: block; margin-top: 1rem; color: var(--gold); font-style: normal; font-weight: 700; font-size: .85rem; letter-spacing: .1em; }
.verse-card::after { content: "“"; position: absolute; right: 1rem; top: -2.5rem; font-family: var(--ff-display); font-size: 12rem; color: rgba(255, 255, 255, .07); line-height: 1; }

/* ---------- Photo gallery ---------- */
.gallery { columns: 3 280px; column-gap: 1rem; }
.g-item {
  display: block; width: 100%; break-inside: avoid; margin: 0 0 1rem; padding: 0; border: 0;
  position: relative; overflow: hidden; border-radius: 18px; background: var(--line);
  font: inherit; color: #fff; text-align: left; cursor: zoom-in;
}
.g-item[hidden] { display: none; }
.g-item.enter { animation: card-in .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
.g-item img { width: 100%; height: auto; display: block; transition: transform .8s var(--ease); }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.06); }
.g-cap {
  position: absolute; inset: auto 0 0 0; padding: 2.6rem 1.1rem 1rem; font-weight: 700; line-height: 1.3;
  background: linear-gradient(to top, rgba(21, 12, 63, .88), transparent);
  transform: translateY(30%); opacity: 0; transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.g-cap small { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .2rem; }
.g-item:hover .g-cap, .g-item:focus-visible .g-cap { transform: none; opacity: 1; }
@media (hover: none) { .g-cap { transform: none; opacity: 1; } }
.g-ph { aspect-ratio: var(--r); display: grid; place-items: center; cursor: default; opacity: .5; background: linear-gradient(135deg, var(--wine), var(--grape)); }
.g-ph:nth-child(3n + 2) { background: linear-gradient(135deg, var(--berry), #2f2380); }
.g-ph:nth-child(3n) { background: linear-gradient(135deg, #c9962f, var(--wine)); }
.g-ph-inner { display: grid; justify-items: center; gap: .6rem; padding: 1rem; text-align: center; font-weight: 700; font-size: .9rem; color: rgba(255, 255, 255, .8); }
.g-ph .icon-svg { width: 34px; height: 34px; color: var(--gold-2); }
.gallery-empty { text-align: center; max-width: 620px; margin: 0 auto 3.5rem; }
.gallery-empty .icon { width: 64px; height: 64px; margin: 0 auto 1.2rem; border-radius: 20px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--wine), var(--berry)); animation: bob 5s ease-in-out infinite; }
.gallery-empty .icon .icon-svg { width: 30px; height: 30px; }
.gallery-empty h2 { margin-bottom: .8rem; }
.gallery-empty .lead { margin-inline: auto; }
.center-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; margin-top: 2.5rem; }

.lightbox {
  position: fixed; inset: 0; z-index: 300; padding: 16px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem;
  background: rgba(20, 8, 18, .95); opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; touch-action: pan-y;
}
.lightbox.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lb-figure { margin: 0; display: grid; justify-items: center; gap: .9rem; }
.lb-img { max-width: 100%; max-height: 78vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); opacity: 0; transform: scale(.96); user-select: none; -webkit-user-drag: none; }
.lb-img.in { animation: lb-in .45s var(--ease) forwards; }
@keyframes lb-in { to { opacity: 1; transform: none; } }
.lb-figure figcaption { width: 100%; max-width: 900px; display: flex; justify-content: space-between; gap: 1rem; color: #fff; font-weight: 600; }
.lb-count { flex: none; color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }
.lb-nav, .lb-close {
  width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06);
  color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer; transition: background .3s, color .3s, transform .3s var(--ease);
}
.lb-nav:hover, .lb-close:hover { background: #fff; color: var(--wine); }
.lb-prev:hover { transform: translateX(-3px); }
.lb-next:hover { transform: translateX(3px); }
.lb-close { position: absolute; top: 16px; right: 16px; font-size: 1.5rem; z-index: 1; }
.lightbox.single .lb-nav, .lightbox.single .lb-count { visibility: hidden; }
@media (max-width: 700px) {
  .lightbox { grid-template-columns: minmax(0, 1fr); }
  .lb-nav { position: absolute; bottom: 24px; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
  .lb-img { max-height: 68vh; }
}

/* Albums */
.albums { display: grid; gap: 2.4rem 1.6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.albums[hidden], #album-view[hidden] { display: none; }
.album { position: relative; display: block; color: #fff; }
.album-stack { position: relative; aspect-ratio: 4 / 3; margin: 16px 12px 0; }
.album-stack::before, .album-stack::after {
  content: ""; position: absolute; inset: 0; border-radius: 18px; box-shadow: 0 10px 30px -12px rgba(21, 12, 63, .35);
  transition: transform .6s var(--ease);
}
.album-stack::before { background: #d9d5ea; transform: rotate(-5deg) translateY(-6px); }
.album-stack::after { background: #e9e6f4; transform: rotate(3deg) translateY(-3px); }
.album:hover .album-stack::before, .album:focus-visible .album-stack::before { transform: rotate(-9deg) translate(-14px, -12px); }
.album:hover .album-stack::after, .album:focus-visible .album-stack::after { transform: rotate(7deg) translate(14px, -8px); }
.album-cover {
  position: absolute; inset: 0; z-index: 1; overflow: hidden; border-radius: 18px; box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--wine), var(--grape)); display: grid; place-items: center;
  transition: transform .6s var(--ease);
}
.album:hover .album-cover { transform: translateY(-6px); }
.album-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.album:hover .album-cover img { transform: scale(1.07); }
.album-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(21, 12, 63, .85), rgba(21, 12, 63, 0) 55%); }
.album-cover .icon-svg { width: 40px; height: 40px; color: var(--gold-2); position: relative; z-index: 1; }
.album-label { position: absolute; z-index: 2; left: 2rem; right: 2rem; bottom: 1.1rem; display: flex; align-items: flex-end; justify-content: space-between; gap: .8rem; transition: transform .6s var(--ease); }
.album:hover .album-label { transform: translateY(-6px); }
.album-label h3 { font-size: 1.4rem; }
.album-label span { flex: none; font-size: .76rem; font-weight: 800; letter-spacing: .06em; background: var(--gold); color: var(--grape); padding: .3rem .7rem; border-radius: 999px; }
.album-ph { opacity: .5; }
.album-head { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; margin-bottom: 2.2rem; }
.album-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); outline: none; }
.album-count { color: var(--muted); font-weight: 700; }
.btn-back { --bg: transparent; --fg: var(--wine); --hover: rgba(74, 58, 167, .08); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-back:hover .arr { transform: translateX(-4px); }
.view-enter { animation: card-in .55s var(--ease) both; }

.home-gallery { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
@media (min-width: 800px) { .home-gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; } }
.home-gallery a { position: relative; overflow: hidden; border-radius: 18px; display: block; background: var(--line); }
.home-gallery a:first-child { grid-column: span 2; grid-row: span 2; }
.home-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.home-gallery a:hover img { transform: scale(1.06); }

/* ---------- Legal pages ---------- */
.legal { display: grid; gap: 2.5rem; }
@media (min-width: 960px) {
  .legal { grid-template-columns: 250px minmax(0, 1fr); gap: 4rem; align-items: start; }
  .toc { position: sticky; top: 100px; }
}
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.toc b { display: block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--berry); margin-bottom: .8rem; }
.toc ol { list-style: none; counter-reset: toc; display: grid; gap: .2rem; }
.toc a { display: flex; gap: .6rem; font-size: .9rem; line-height: 1.35; color: var(--muted); padding: .45rem .6rem; border-radius: 10px; transition: background .25s, color .25s, transform .35s var(--ease); }
.toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); color: var(--berry); font-weight: 800; font-size: .76rem; padding-top: .12rem; }
.toc a:hover { color: var(--wine); transform: translateX(3px); }
.toc a.active { background: rgba(74, 58, 167, .08); color: var(--wine); font-weight: 700; }
.prose { max-width: 780px; }
.prose section { padding-bottom: 2.4rem; margin-bottom: 2.4rem; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.prose section:last-child { border-bottom: 0; margin-bottom: 0; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 1rem; }
.prose h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2rem; display: grid; gap: .45rem; margin-top: .7rem; }
.prose li::marker { color: var(--berry); }
.prose p a, .prose li a, .prose dd a, .prose td a { color: var(--berry); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.updated { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 700; color: var(--wine); background: rgba(74, 58, 167, .08); padding: .45rem .9rem; border-radius: 999px; margin-bottom: 2rem; }
.note { border-left: 3px solid var(--gold); background: rgba(224, 178, 91, .12); border-radius: 0 14px 14px 0; padding: 1rem 1.2rem; margin-top: 1rem; font-size: .93rem; color: var(--ink); }
.def { display: grid; grid-template-columns: minmax(150px, max-content) 1fr; gap: .6rem 1.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem 1.5rem; margin-top: .9rem; }
.def dt { font-weight: 700; font-size: .9rem; }
.def dd { color: var(--muted); }
@media (max-width: 560px) { .def { grid-template-columns: 1fr; gap: .15rem; } .def dd { margin-bottom: .7rem; } }
.table-wrap { overflow-x: auto; margin-top: 1rem; border-radius: 16px; border: 1px solid var(--line); }
.table-wrap table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .9rem; background: var(--paper); }
.table-wrap th, .table-wrap td { padding: .9rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap th { background: var(--grape); color: #fff; font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { font-weight: 700; color: var(--ink); }
.table-wrap td { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--grape); color: rgba(255, 255, 255, .72); padding: 5rem 0 2rem; position: relative; overflow: hidden; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.site-footer h4 { color: #fff; font-size: 1.1rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; display: grid; gap: .55rem; }
.site-footer a { transition: color .25s; }
.site-footer a:hover { color: var(--gold); }
.site-footer .link { color: var(--gold); }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer p { max-width: 36ch; font-size: .95rem; }
.socials { display: flex; gap: .6rem; margin-top: 1.3rem; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); display: grid; place-items: center; transition: .35s var(--ease); }
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--grape); transform: translateY(-3px); }
.footer-big { font-family: var(--ff-display); font-style: italic; font-size: clamp(3.5rem, 15vw, 11rem); line-height: .9; color: rgba(255, 255, 255, .05); white-space: nowrap; margin: 3.5rem 0 1.5rem; user-select: none; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; font-size: .85rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Keep "True Vine Parish" on one line on small phones */
@media (max-width: 420px) { .site-header .brand b { font-size: 1.05rem; white-space: nowrap; } .site-header .brand { gap: .55rem; } }
