/* Casa Viva Rio House - landing page styles
   Matched to casavivario.carrd.co (fonts, sizing, crops, frames, spacing). */

:root {
  --bg: #ffffff;
  --bg-alt: #f1f1f4;
  --text: #646669;
  --strong: #3c3f43;
  --gold: #d4af37;
  --blue: #5c83ee;
  --ink: #10182f;
  --border: #d7d7de;
  --maxtext: 720px;
  --maxwide: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Varela Round', sans-serif;
  font-size: 1.22rem;            /* ~19.5px */
  line-height: 2.1;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  font-weight: 300;
  letter-spacing: -0.022em;
  line-height: 1.25;
  margin: 0 0 0.55em;
}

p { margin: 0 0 1.1em; }
strong { color: var(--strong); font-weight: 700; }
em { font-style: italic; }

/* ---------- layout (all white, as the original) ---------- */
section { padding: 54px 24px; }
.wrap { max-width: var(--maxtext); margin: 0 auto; }
.wide { max-width: var(--maxwide); margin: 0 auto; }
.center { text-align: center; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.72rem;
  font-weight: 700; font-family: 'Manrope', sans-serif; color: var(--gold);
  margin-bottom: 1.1em;
}
.kicker {
  font-size: 1.7rem; font-weight: 300; color: var(--text);
  font-family: 'Manrope', sans-serif; letter-spacing: -0.022em;
  margin: 0 0 0.7em; line-height: 1.3;
}

/* ---------- hero (cinematic, bottom-anchored) ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; background: #0a0e1a;
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  background: url('gallery/logo.jpeg') center 44% / cover no-repeat;
  transform: scale(1.03);
  animation: heroZoom 28s ease-in-out infinite alternate;
  will-change: transform;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,11,22,0.12) 0%, rgba(8,11,22,0.04) 28%, rgba(8,11,22,0.58) 70%, rgba(8,11,22,0.90) 100%),
    radial-gradient(135% 78% at 50% 26%, transparent 42%, rgba(8,11,22,0.42) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--maxwide); margin: 0 auto;
  padding: 0 24px clamp(86px, 16vh, 168px);
  text-align: left;
  animation: heroRise 1s cubic-bezier(.2,.7,.2,1) both;
}
/* kicker pinned to the top of the hero, over the bluer sky */
.hero-top {
  position: absolute; top: clamp(20px, 4.5vh, 44px); left: 0; right: 0; z-index: 2;
  width: 100%; max-width: var(--maxwide); margin: 0 auto; padding: 0 24px;
  animation: heroRise 1s cubic-bezier(.2,.7,.2,1) both;
}
.hero-kicker {
  font-family: 'Manrope', sans-serif; font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold); margin: 0; line-height: 1.7;
}
.hero-title {
  font-family: 'Manrope', sans-serif; font-weight: 300; color: #fff;
  font-size: clamp(2.7rem, 7.2vw, 5.4rem); line-height: 1.0; letter-spacing: -0.032em;
  margin: 0 0 0.55em; max-width: 15ch;
  text-shadow: 0 2px 44px rgba(0,0,0,0.38);
}
.hero-title em { font-style: normal; color: var(--gold); }
.hero-sub {
  font-family: 'Varela Round', sans-serif; color: rgba(255,255,255,0.92);
  font-size: clamp(1.05rem, 1.5vw, 1.32rem); line-height: 1.6;
  max-width: 560px; margin: 0;
  text-shadow: 0 1px 22px rgba(0,0,0,0.45);
}
.hero-scroll {
  position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 9px;
  color: rgba(255,255,255,0.82); text-decoration: none;
  font-family: 'Manrope', sans-serif; font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase;
  transition: color .2s ease;
}
.hero-scroll:hover { color: #fff; }
.hero-scroll i {
  width: 18px; height: 18px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); animation: heroBob 1.8s ease-in-out infinite;
}
@keyframes heroZoom { from { transform: scale(1.03); } to { transform: scale(1.13); } }
@keyframes heroRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes heroBob { 0%,100% { transform: rotate(45deg) translate(0,0); } 50% { transform: rotate(45deg) translate(4px,4px); } }
@media (prefers-reduced-motion: reduce) {
  .hero-media, .hero-inner, .hero-top, .hero-scroll i { animation: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; cursor: pointer; background: var(--ink); color: #fff;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em;
  padding: 13px 34px; border-radius: 999px; border: 0; text-decoration: none;
  transition: transform .15s ease, background .2s ease;
}
.btn:hover { background: var(--blue); transform: translateY(-2px); }
/* primary hero call-to-action (gold, stands out on the image) */
.btn.hero-cta {
  margin-top: clamp(22px, 3.4vh, 34px);
  background: var(--gold); color: var(--ink);
  font-size: 1rem; padding: 15px 38px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.34);
}
.btn.hero-cta:hover { background: #e7c64f; color: var(--ink); transform: translateY(-2px); }

/* ---------- section headings ---------- */
h2.section-title { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 0.65em; }

.problem-tag { display: block; font-weight: 700; color: var(--strong); margin-bottom: 0.2em; }

/* ---------- split rows: text + framed image ---------- */
.split {
  display: flex; justify-content: space-between; align-items: center; gap: 56px;
  max-width: var(--maxwide); margin: 0 auto;
}
.split.flip { flex-direction: row-reverse; }
.split-text { flex: 0 1 540px; }
.split-img { flex: 0 0 426px; margin: 0; }
.split-img .frame {
  display: block; border: 10px solid var(--bg-alt); border-radius: 26px;
}
.split-img img {
  width: 100%; aspect-ratio: 406 / 552; object-fit: cover; object-position: 50% 50%;
  border-radius: 16px; display: block;
}
.split.no-img { display: block; max-width: var(--maxtext); }
.split.no-img .split-img { display: none; }

/* ---------- video panel: two portrait players side by side ---------- */
.video-pair {
  display: flex; gap: 30px; justify-content: center; align-items: flex-start;
  flex-wrap: wrap; margin-top: 2.3em;
}
.video-card { margin: 0; flex: 0 0 330px; max-width: 330px; }
.video-card .frame {
  position: relative; display: block; aspect-ratio: 9 / 16;
  border: 10px solid var(--bg-alt); border-radius: 26px; background: #0a0e1a;
}
.video-card .frame > video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 16px; display: block; background: #0a0e1a;
}
/* tap-to-play poster overlay - renders correctly in every browser, unlike the
   native poster attribute, which Safari stretches and ignores object-fit on. */
.video-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0;
  display: block; cursor: pointer; background: #0a0e1a; border-radius: 16px;
  overflow: hidden; z-index: 2;
}
.video-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-poster::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 74px; height: 74px;
  transform: translate(-50%, -50%); border-radius: 50%; background: rgba(12,17,33,0.5);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.video-poster::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  transform: translate(-38%, -50%);
  border-style: solid; border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent #fff;
}
.video-poster[hidden] { display: none; }
.video-card .video-head {
  margin: 0 0 1rem; font-family: 'Manrope', sans-serif; font-weight: 300; color: var(--text);
  font-size: clamp(1.2rem, 2vw, 1.55rem); letter-spacing: -0.022em; line-height: 1.25;
}
.sound-toggle {
  position: absolute; bottom: 14px; right: 14px; z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: rgba(12,17,33,0.5); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .15s ease;
}
.sound-toggle:hover { background: rgba(12,17,33,0.82); transform: scale(1.06); }
.sound-toggle svg { width: 20px; height: 20px; display: block; }

ul.clean { list-style: none; padding: 0; margin: 0 0 1.1em; }
ul.clean li { padding: 1px 0 1px 26px; position: relative; }
ul.clean li::before {
  content: ''; position: absolute; left: 4px; top: 22px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}
.stack strong { display: block; line-height: 1.55; }

/* ---------- main gallery: equal-flex rows, fixed height (carrd-style) ----------
   5 per row; rows split width evenly so the last (short) row stretches into
   wide landscape cells, exactly like the original. */
.grid-gallery {
  display: flex; flex-wrap: wrap; gap: 9px;
  max-width: 1200px; margin: 0 auto; --gh: 372px;
}
.grid-gallery figure {
  flex: 1 1 calc(20% - 7.2px); height: var(--gh);
  margin: 0; overflow: hidden; border-radius: 16px;
}
.grid-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.grid-gallery figure:hover img { transform: scale(1.04); }

/* ---------- Rio gallery: justified flex (rounded) ---------- */
.jgallery { display: flex; flex-wrap: wrap; gap: 9px; max-width: 1200px; margin: 0 auto; --row: 300px; }
.jgallery figure { margin: 0; flex: 1 1 auto; height: var(--row); overflow: hidden; border-radius: 16px; }
.jgallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.jgallery figure:hover img { transform: scale(1.04); }

/* ---------- trifecta (title + tagline, divider lines) ---------- */
.trifecta { display: flex; align-items: flex-start; max-width: 980px; margin: 2.4em auto 0; }
.trifecta .pillar { flex: 1; text-align: center; padding: 14px 30px; }
.trifecta .pillar + .pillar { border-left: 1px solid var(--border); }
.trifecta .pillar h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 300; margin-bottom: 0.45em; }
.trifecta .pillar .lead { color: var(--strong); font-weight: 700; display: block; }

/* ---------- signup ---------- */
.signup { text-align: center; }
.signup form { display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin: 1.6em auto 0; }
.signup input {
  width: 100%; padding: 14px 20px; border: 1px solid var(--border);
  border-radius: 999px; font-size: 1rem; font-family: inherit; color: var(--strong);
}
.signup input::placeholder { color: #9aa0a6; }
.signup input:focus { outline: none; border-color: var(--blue); }
.signup form .btn { width: 100%; margin-top: 4px; }
/* honeypot: hidden from people, tempting to bots */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-thanks { color: var(--strong); font-weight: 700; font-size: 1.12rem; margin: 1.2em auto 0; max-width: 420px; }
.form-error { color: #c0392b; font-size: 0.95rem; margin: 0.4em 0 0; }

footer { padding: 40px 24px; text-align: center; color: #9aa0a6; font-size: 0.82rem;
  letter-spacing: 0.06em; background: var(--bg-alt); font-family: 'Manrope', sans-serif; text-transform: uppercase; }

/* ---------- content bands (problem-led body, full-width alternating) ---------- */
.band { padding: 50px 24px; }
.band.alt { background: var(--bg-alt); }
.band.dark { background: var(--ink); }
/* "what it is" orientation bridge under the hero (warm card on white) */
.what-it-is { text-align: center; padding: clamp(26px, 4vw, 44px) 24px clamp(16px, 2.5vw, 24px); }
.what-it-is .inner {
  max-width: 760px; margin: 0 auto;
  background: #f6f1e6; border: 1px solid rgba(120, 90, 30, 0.08); border-radius: 22px;
  padding: clamp(26px, 4vw, 40px) clamp(28px, 5vw, 52px);
  box-shadow: 0 24px 60px -30px rgba(120, 90, 30, 0.28);
}
.what-it-is .eyebrow { margin-bottom: 0.85em; }
.what-it-is h2 {
  font-family: 'Manrope', sans-serif; font-weight: 300; color: var(--strong);
  font-size: clamp(1.7rem, 3.6vw, 2.45rem); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 0.5em;
}
.what-it-is .lead-body {
  font-size: 1.16rem; line-height: 1.55; color: var(--text);
  max-width: 60ch; margin: 0 auto 1em;
}
.what-it-is .triad {
  font-family: 'Manrope', sans-serif; font-weight: 700; color: var(--gold);
  font-size: clamp(1.05rem, 2vw, 1.3rem); letter-spacing: 0.005em; margin: 0;
}

/* intro block that heads the three problems (its own highlighted box) */
.problems-intro { padding: clamp(14px, 2vw, 22px) 24px clamp(36px, 5vw, 52px); }
.problems-intro .pi-box {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: var(--bg-alt); border-radius: 22px;
  padding: clamp(30px, 5vw, 48px) clamp(22px, 5vw, 50px);
}
.problems-intro .eyebrow { margin-bottom: 1em; }
.problems-intro h2 {
  font-family: 'Manrope', sans-serif; font-weight: 300; color: var(--strong);
  font-size: clamp(1.5rem, 3.4vw, 2.25rem); line-height: 1.22; letter-spacing: -0.022em; margin: 0;
}
.problems-intro h2 strong { font-weight: 700; }
.band-inner {
  max-width: var(--maxwide); margin: 0 auto;
  display: grid; grid-template-columns: 1.22fr 0.78fr; gap: 54px; align-items: center;
}
.band.flip .band-copy { order: 2; }
.band.no-asset .band-inner { grid-template-columns: 1fr; max-width: var(--maxtext); }
.band.no-asset .band-asset { display: none; }
.band-eyebrow {
  display: block; font-family: 'Manrope', sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem;
  color: var(--gold); margin-bottom: 1.15em;
}
.band-claim {
  font-family: 'Manrope', sans-serif; font-weight: 300; color: var(--strong);
  font-size: clamp(1.9rem, 3.7vw, 2.9rem); line-height: 1.1; letter-spacing: -0.025em;
  margin: 0 0 0.6em;
}
.band-claim b { font-weight: 700; }
.band-support { font-size: 1.08rem; line-height: 1.62; margin: 0 0 1.05em; max-width: 46ch; }
.band-support:last-child { margin-bottom: 0; }
.band-support .hl { color: var(--strong); font-weight: 700; }
.band-support .stat { color: var(--gold); font-weight: 800; font-family: 'Manrope', sans-serif; letter-spacing: -0.01em; }
.band .stack strong { display: block; line-height: 1.5; color: var(--strong); }
.band ul.clean { margin: 0.4em 0 1.05em; }
.band ul.clean li { line-height: 1.5; padding: 4px 0 4px 26px; }
.band ul.clean li::before { top: 13px; }
.band .btn { margin-top: 0.5em; }
.band.dark .band-claim { color: #fff; }
.band.dark .band-support { color: rgba(255,255,255,0.74); }
.band.dark .band-support .hl { color: #fff; }
.band.dark .stack strong { color: #fff; }
.band.dark ul.clean li { color: rgba(255,255,255,0.74); }
.band-asset { margin: 0; width: 100%; max-width: 350px; justify-self: center; }
.band-asset img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 50%;
  border-radius: 18px; display: block;
  transition: transform .7s cubic-bezier(.16,1,.3,1);
}
/* testimonial quote: a small boxed aside that stands apart from the body copy */
.band-quote {
  margin: clamp(26px, 3vw, 34px) 0 0; max-width: 46ch; text-align: left;
  background: var(--bg-alt); border-left: 3px solid var(--gold); border-radius: 14px;
  padding: 20px 24px;
  font-family: 'Varela Round', sans-serif; font-size: 1.02rem; line-height: 1.5; color: var(--text);
  box-shadow: 0 16px 36px -22px rgba(16,24,47,0.28);
}
.band-quote p { margin: 0; }
.band-quote cite {
  display: block; margin-top: 0.55em; font-style: normal; font-family: 'Manrope', sans-serif;
  font-weight: 700; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold);
}
.band.alt .band-quote { background: #fff; }
.band.dark .band-quote { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.82); }
/* centered variant: sits in the middle below a band (used after the CTA) */
.band-quote.center { margin-left: auto; margin-right: auto; }
.band-asset .shot { display: block; overflow: hidden; border-radius: 18px;
  transition: transform .5s cubic-bezier(.16,1,.3,1), box-shadow .5s ease; }
.band:hover .band-asset .shot { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(16,24,47,0.18); }
.band:hover .band-asset img { transform: scale(1.045); }

@media (max-width: 860px) {
  .band { padding: 38px 22px; }
  .band-inner { grid-template-columns: 1fr; gap: 24px; }
  .band.flip .band-copy { order: 0; }
  .band-support { max-width: none; }
  .band-asset { max-width: 420px; }
  .band-asset img { aspect-ratio: 4 / 5; }
}

/* ---------- pull quotes (quiet supporting asides) ---------- */
.quote { padding: 10px 24px; }
.quote-mark { display: none; }
.quote-inner {
  max-width: 620px; margin: 0 auto; text-align: left;
  border-left: 3px solid var(--gold); padding-left: 20px;
}
.quote blockquote {
  margin: 0; font-family: 'Varela Round', sans-serif;
  font-size: 1.08rem; line-height: 1.55; color: var(--text);
}
.quote cite {
  display: block; margin-top: 0.4em; font-style: normal; font-family: 'Manrope', sans-serif;
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold);
}

/* ---------- scroll progress bar ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold), #e7c75c);
  z-index: 200; will-change: transform; pointer-events: none;
}

/* ---------- scroll reveal (progressive enhancement) ---------- */
.has-js .split,
.has-js .wrap,
.has-js .quote-inner,
.has-js .band-copy,
.has-js .band-asset,
.has-js .band-quote.center,
.has-js .problems-intro .pi-box,
.has-js .what-it-is .inner,
.has-js .wide > .eyebrow,
.has-js .wide > h2,
.has-js .wide > p,
.has-js .grid-gallery figure,
.has-js .jgallery figure,
.has-js .trifecta .pillar,
.has-js .video-card,
.has-js .cinematic .cine-inner {
  opacity: 0; transform: translateY(28px);
  transition: opacity .85s cubic-bezier(.16,1,.3,1), transform .85s cubic-bezier(.16,1,.3,1);
}
.has-js .band-asset { transition-delay: .08s; }
.has-js .in { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .has-js .split, .has-js .wrap, .has-js .quote-inner,
  .has-js .band-copy, .has-js .band-asset, .has-js .band-quote.center, .has-js .problems-intro .pi-box, .has-js .what-it-is .inner,
  .has-js .wide > .eyebrow, .has-js .wide > h2, .has-js .wide > p,
  .has-js .grid-gallery figure, .has-js .jgallery figure,
  .has-js .trifecta .pillar, .has-js .video-card, .has-js .cinematic .cine-inner {
    opacity: 1; transform: none; transition: none;
  }
}

/* ---------- depth + micro-interactions ---------- */
.split-img .frame { overflow: hidden; transition: transform .5s cubic-bezier(.16,1,.3,1), box-shadow .5s ease; }
.split-img img { transition: transform .7s cubic-bezier(.16,1,.3,1); }
.split:hover .split-img .frame { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(16,24,47,0.16); }
.split:hover .split-img img { transform: scale(1.045); }

.trifecta .pillar { transition: transform .45s cubic-bezier(.16,1,.3,1); }
.trifecta .pillar:hover { transform: translateY(-6px); }
.trifecta .pillar .icon-wrap { transition: background .35s ease, color .35s ease; }
.trifecta .pillar:hover .icon-wrap { background: var(--gold); }
.trifecta .pillar:hover .icon { color: #fff; }

.btn { box-shadow: 0 10px 26px rgba(16,24,47,0.18); }
.btn:active { transform: translateY(0) scale(.98); }

/* ---------- cinematic parallax band ---------- */
.cinematic {
  position: relative; min-height: 78vh; display: flex; align-items: center;
  background: #0a0e1a url('gallery/p.jpeg') center / cover no-repeat fixed;
  overflow: hidden;
}
.cinematic.crew { background-image: url('gallery/6.jpeg'); }
.cinematic::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,11,22,0.80) 0%, rgba(8,11,22,0.46) 45%, rgba(8,11,22,0.12) 100%);
}
.cine-inner { position: relative; z-index: 1; max-width: var(--maxwide); margin: 0 auto; width: 100%; padding: 0 24px; color: #fff; }
.cine-eyebrow { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.9rem; }
.cine-title { font-family: 'Manrope', sans-serif; font-weight: 300; color: #fff; font-size: clamp(2.4rem, 5.5vw, 4.4rem); line-height: 1.05; letter-spacing: -0.03em; margin: 0; max-width: 16ch; text-shadow: 0 2px 40px rgba(0,0,0,0.45); }
@media (max-width: 820px) {
  .cinematic { background-attachment: scroll; min-height: 42vh; }
  /* push the crop right so the selfie guy at the very end stays in shot */
  .cinematic.crew { background-position: 82% center; }
}

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .split { flex-direction: column; gap: 30px; max-width: var(--maxtext); }
  .split.flip { flex-direction: column; }
  .split-text { flex-basis: auto; }
  .split-img { flex-basis: auto; width: 100%; max-width: 430px; }
  .trifecta { flex-direction: column; gap: 44px; align-items: stretch; }
  .trifecta .pillar + .pillar { border-left: 0; border-top: 1px solid var(--border); padding-top: 38px; }
  .trifecta .pillar .lead { white-space: normal; }
  .grid-gallery { --gh: 300px; }
  .grid-gallery figure { flex-basis: calc(33.333% - 6px); }
}
@media (max-width: 720px) {
  section { padding: 52px 22px; }
  body { font-size: 1.12rem; line-height: 1.95; }
  .grid-gallery { --gh: 240px; gap: 6px; }
  .grid-gallery figure { flex-basis: calc(50% - 3px); }
  .jgallery { --row: 165px; gap: 6px; }
  .video-pair { gap: 20px; }
  .video-card { flex-basis: 280px; max-width: 88vw; }
}
