/* Home page only: hero lesson preview, lesson tour, pillar panels, badge journey,
   verse reveal and the family bento. Builds on the tokens in app.css. */

/* ------------------------------------------------------------ hero */
.hero-v2 { padding-top: clamp(32px, 5vw, 72px); }
.hero-v2 .hero-grid { grid-template-columns: 1.1fr .9fr; }
.hero-v2 h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.02; margin: 22px 0 24px; }
.script {
  position: relative; display: inline-block; white-space: nowrap; font-family: "Caveat", "Segoe Script", cursive; font-weight: 700;
  font-size: 1.22em; line-height: .9; letter-spacing: 0; color: var(--burgundy); transform: rotate(-2deg); padding: 0 .04em;
}
.script svg { position: absolute; left: 0; right: 0; bottom: -.18em; width: 100%; height: .3em; overflow: visible; }
.script path { fill: none; stroke: var(--gold-400); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1.2s .5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-v2 .lead { font-size: clamp(1.06rem, 1.5vw, 1.22rem); }

.hero-v2 .hero-art { position: relative; justify-self: center; width: min(100%, 460px); padding: 0; }
.hero-frame {
  position: relative; z-index: 1; aspect-ratio: 640 / 780; border-radius: 999px 999px 36px 36px; overflow: hidden;
  border: 8px solid #fff; box-shadow: 0 1px 0 #fff inset, var(--shadow-lg); background: #ffe6bf;
  animation: frame-in 1s var(--ease) both;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease); }
.hero-art:hover .hero-frame img { transform: scale(1.06); }
@keyframes frame-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.hero-v2 .fc-stars { top: 16%; right: -10%; left: auto; bottom: auto; }
.fc-lesson { left: -16%; bottom: 14%; animation-delay: -2s; min-width: 230px; }
.fc-lesson .mini-medal { border-radius: 12px; background: linear-gradient(135deg, #f8d26a, var(--gold)); }
.fc-bar { display: block; height: 5px; margin-top: 7px; border-radius: 5px; background: var(--parchment); overflow: hidden; }
.fc-bar span { display: block; height: 100%; width: 70%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-400), var(--burgundy)); animation: grow 1.6s .8s var(--ease) both; }
.fc-verse { right: -6%; bottom: -4%; animation-delay: -4s; }
.fc-verse > i { background: var(--burgundy-50); color: var(--burgundy); }
.float-card { animation: bob 6s ease-in-out infinite, pop-in .7s var(--ease) both; }
.fc-stars { animation-delay: -1s, .5s; } .fc-lesson { animation-delay: -2s, .7s; } .fc-verse { animation-delay: -4s, .9s; }
@keyframes pop-in { from { opacity: 0; scale: .85; } }

@media (max-width: 860px) {
  .hero-v2 .hero-grid { grid-template-columns: 1fr; }
  .hero-v2 .hero-art { width: min(82%, 380px); margin-top: 16px; }
}
@media (max-width: 640px) {
  .hero-v2 .hero-art { width: min(86%, 320px); }
  .fc-lesson { left: -8%; bottom: 8%; min-width: 0; display: flex; }
  .fc-verse { display: none; }
  .hero-v2 .fc-stars { right: -6%; top: 10%; }
}

/* ------------------------------------------------------------ lesson tour */
.tour-section .section-head p { max-width: 42ch; }
.tour { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 48px); align-items: stretch; }
.tour-tabs { display: grid; gap: 8px; align-content: start; }
.tour-tab {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; width: 100%; padding: 18px 20px; overflow: hidden;
  border: 1px solid transparent; border-radius: 20px; background: transparent; text-align: left; cursor: pointer; color: var(--ink-2);
  transition: background .3s var(--ease), border-color .3s, box-shadow .3s var(--ease);
}
.tour-tab:hover { background: var(--parchment); }
.tour-tab.active { background: #fff; border-color: var(--line); box-shadow: var(--shadow); color: var(--ink); }
.tour-num { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--ink-3); padding-top: 1px; transition: color .3s; }
.tour-tab.active .tour-num { color: var(--burgundy); }
.tour-copy strong { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--ink); }
.tour-copy strong i { font-size: .9rem; color: var(--burgundy); opacity: .5; transition: opacity .3s; }
.tour-tab.active .tour-copy strong i { opacity: 1; }
.tour-copy > span { display: block; max-height: 0; opacity: 0; overflow: hidden; font-size: .92rem; line-height: 1.5; color: var(--ink-2); transition: max-height .45s var(--ease), opacity .3s, margin .45s var(--ease); }
.tour-tab.active .tour-copy > span { max-height: 5em; opacity: 1; margin-top: 6px; }
.tour-timer { position: absolute; left: 20px; right: 20px; bottom: 0; height: 2px; background: transparent; }
.tour-tab.active .tour-timer { background: var(--line); }
.tour-timer span { display: block; height: 100%; width: 0; background: var(--burgundy); }
.tour-tab.active .tour-timer span { animation: tour-time var(--tour-ms, 5000ms) linear forwards; }
.tour.paused .tour-tab.active .tour-timer span { animation-play-state: paused; }
@keyframes tour-time { to { width: 100%; } }

.tour-stage {
  position: relative; min-height: 420px; border-radius: 28px; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, var(--burgundy-50), #fff 55%, var(--gold-50));
  border: 1px solid var(--line);
}
.tour-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(140, 28, 51, .1) 1px, transparent 1px); background-size: 20px 20px; -webkit-mask: radial-gradient(80% 80% at 50% 50%, #000, transparent); mask: radial-gradient(80% 80% at 50% 50%, #000, transparent); }
.tour-screen {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; padding: clamp(20px, 4vw, 44px);
  opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none; transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.tour-screen.active { opacity: 1; transform: none; pointer-events: auto; }

/* watch */
.ts-video { position: relative; width: min(100%, 440px); aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 30% 20%, #f6d98f, #c9783a 45%, #5a1f2d); box-shadow: var(--shadow-lg); }
.ts-video::before { content: ""; position: absolute; left: 12%; bottom: 0; width: 70%; height: 45%; border-radius: 50% 50% 0 0; background: #3f6b3a; opacity: .7; }
.ts-play { position: relative; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--burgundy); font-size: 1.2rem; box-shadow: 0 0 0 10px rgba(255, 255, 255, .25); animation: pulse-ring 2s infinite; }
@keyframes pulse-ring { 50% { box-shadow: 0 0 0 18px rgba(255, 255, 255, .08); } }
.ts-cap { position: absolute; left: 16px; top: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .35); color: #fff; font-size: .74rem; font-weight: 700; }
.ts-scrub { position: absolute; left: 16px; right: 16px; bottom: 14px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.ts-scrub span { display: block; height: 100%; width: 0; background: #fff; }
.tour-screen.active .ts-scrub span { animation: tour-time 5s linear forwards; }
.ts-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* read */
.ts-read { width: min(100%, 440px); padding: 28px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.ts-speaker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px; background: var(--burgundy-50); color: var(--burgundy); font-size: .78rem; font-weight: 700; }
.ts-read p { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.45; }
.ts-read p span { background: linear-gradient(transparent 60%, var(--gold-200) 60%) no-repeat 0 0 / 0% 100%; }
.tour-screen.active .ts-read p span { animation: highlight .9s var(--ease) forwards; }
.tour-screen.active .ts-read p:nth-of-type(1) span:nth-child(2) { animation-delay: .8s; }
.tour-screen.active .ts-read p:nth-of-type(2) span { animation-delay: 1.6s; }
.tour-screen.active .ts-read p:nth-of-type(3) span { animation-delay: 2.4s; }
.tour-screen.active .ts-read p:nth-of-type(4) span { animation-delay: 3.2s; }
@keyframes highlight { to { background-size: 100% 100%; } }

/* remember */
.ts-flip { width: 260px; height: 170px; perspective: 900px; }
.ts-flip-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.tour-screen.active .ts-flip-inner { animation: flip 4.4s var(--ease) .6s forwards; }
@keyframes flip { 0%, 30% { transform: none; } 45%, 100% { transform: rotateY(180deg); } }
.ts-face { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; padding: 20px; border-radius: 22px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.ts-face.front { background: var(--brand-grad); color: #fff; box-shadow: var(--shadow-lg); }
.ts-face.front small { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.ts-face.front strong { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; }
.ts-face.back { transform: rotateY(180deg); background: #fff; border: 1px solid var(--gold-200); box-shadow: var(--shadow); font-size: 1.02rem; font-weight: 600; }
.ts-idea { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 16px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); font-weight: 600; font-size: .9rem; }
.ts-idea i { color: var(--burgundy); }

/* quiz */
.ts-quiz { display: grid; gap: 10px; width: min(100%, 420px); }
.ts-quiz small { font-weight: 700; color: var(--ink-3); font-size: .78rem; }
.ts-quiz strong { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; line-height: 1.25; margin-bottom: 4px; }
.ts-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line-2); font-weight: 600; }
.ts-opt b { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--parchment); font-size: .8rem; }
.ts-opt i { margin-left: auto; color: var(--success); opacity: 0; }
.tour-screen.active .ts-opt.ok { animation: correct .5s var(--ease) 1.2s forwards; }
.tour-screen.active .ts-opt.ok i { animation: fade-in .3s 1.4s forwards; }
.tour-screen.active .ts-opt.ok b { animation: correct-key .5s 1.2s forwards; }
@keyframes correct { to { border-color: var(--success); background: var(--green-50); transform: scale(1.02); } }
@keyframes correct-key { to { background: var(--success); color: #fff; } }
@keyframes fade-in { to { opacity: 1; } }
.ts-explain { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--green-50); color: #0f5c43; font-size: .86rem; font-weight: 600; opacity: 0; transform: translateY(6px); }
.tour-screen.active .ts-explain { animation: rise .5s var(--ease) 1.8s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* pray */
.ts-pray { display: grid; justify-items: center; gap: 12px; width: min(100%, 420px); padding: 30px 26px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); text-align: center; }
.ts-cross { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-50); color: var(--gold); }
.ts-pray p { margin: 0 0 6px; font-family: var(--font-display); font-style: italic; font-size: 1.3rem; line-height: 1.45; }
.ts-check { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border-radius: 12px; background: var(--parchment); font-size: .88rem; font-weight: 600; text-align: left; }
.ts-check i { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; flex-shrink: 0; font-size: .65rem; color: transparent; border: 2px solid var(--line-2); }
.tour-screen.active .ts-check i { animation: tick .4s var(--ease) forwards; }
.tour-screen.active .ts-check:nth-of-type(2) i { animation-delay: 1s; }
.tour-screen.active .ts-check:nth-of-type(3) i { animation-delay: 2s; }
@keyframes tick { to { background: var(--success); border-color: var(--success); color: #fff; } }

/* ------------------------------------------------------------ pillar panels */
.pillars-section { background: #fbfafc; border-block: 1px solid #f3f2f6; }
.pillar-row { display: flex; gap: 12px; height: 460px; }
.pillar-panel {
  --c: var(--believe);
  position: relative; flex: 1; min-width: 0; overflow: hidden; cursor: pointer; border-radius: 26px; outline-offset: 3px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 6%, white), color-mix(in srgb, var(--c) 14%, white));
  border: 1px solid color-mix(in srgb, var(--c) 16%, white);
  transition: flex .6s var(--ease), background .5s var(--ease), box-shadow .5s var(--ease);
}
.pillar-panel.open { flex: 3.2; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 88%, white), var(--c) 55%, color-mix(in srgb, var(--c) 70%, black)); box-shadow: 0 30px 50px -28px color-mix(in srgb, var(--c) 80%, transparent); color: #fff; }
.pillar-panel::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px); background-size: 18px 18px; opacity: 0; transition: opacity .5s; }
.pillar-panel.open::after { opacity: 1; }
.pp-num { position: absolute; top: 22px; left: 24px; font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--c); transition: color .4s; z-index: 1; }
.pillar-panel.open .pp-num { color: rgba(255, 255, 255, .7); }
.pp-icon {
  position: absolute; z-index: 1; top: 56px; left: 22px; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.15rem;
  background: #fff; color: var(--c); box-shadow: 0 10px 20px -10px color-mix(in srgb, var(--c) 60%, transparent); transition: transform .5s var(--ease), background .4s;
}
.pillar-panel.open .pp-icon { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; transform: scale(1.1); }
.pp-label {
  position: absolute; z-index: 1; left: 50%; bottom: 28px; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl;
  font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--c); white-space: nowrap; transition: opacity .3s;
}
.pillar-panel.open .pp-label { opacity: 0; }
.pp-body { position: absolute; z-index: 1; left: 28px; right: 28px; bottom: 28px; opacity: 0; transform: translateY(14px); transition: opacity .35s, transform .5s var(--ease); pointer-events: none; }
.pillar-panel.open .pp-body { opacity: 1; transform: none; transition-delay: .2s; pointer-events: auto; }
.pp-body h3 { color: #fff; font-size: clamp(2rem, 3.4vw, 2.8rem); margin: 0 0 8px; }
.pp-body p { color: rgba(255, 255, 255, .88); font-size: 1.05rem; max-width: 34ch; margin: 0 0 14px; }
.pp-links { display: grid; gap: 6px; margin-bottom: 14px; }
.pp-link { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .16); color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem; transition: background .25s, transform .25s var(--ease); }
.pp-link span { flex-shrink: 0; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-size: .7rem; font-weight: 700; }
.pp-link i { margin-left: auto; font-size: .75rem; opacity: .7; transition: transform .25s var(--ease); }
.pp-link:hover { background: rgba(255, 255, 255, .24); color: #fff; transform: translateX(3px); }
.pp-link:hover i { transform: translateX(3px); opacity: 1; }
.pp-more { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .85); font-size: .8rem; font-weight: 700; text-decoration: none; }
.pp-more:hover { color: #fff; text-decoration: underline; }
.pp-body small { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: .76rem; font-weight: 700; color: #fff; white-space: nowrap; }

/* ------------------------------------------------------------ badge journey */
.journey { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.journey-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.journey-points li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink-2); }
.journey-points i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--gold-50); color: var(--gold); font-size: .85rem; }
.journey-board { position: relative; padding: clamp(20px, 3vw, 32px); border-radius: 30px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.journey-board::before { content: ""; position: absolute; width: 360px; height: 360px; right: -140px; top: -180px; border-radius: 50%; background: radial-gradient(closest-side, var(--gold-200), transparent); opacity: .6; }
.jb-head { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.jb-head small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.jb-head b { font-family: var(--font-display); font-weight: 600; font-size: 2.4rem; line-height: 1.1; }
.jb-head b i { font-size: 1.5rem; color: var(--amber); }
.jb-streak { padding: 8px 14px; border-radius: 999px; background: #fff1e6; color: #c4520c; font-weight: 700; font-size: .85rem; }
.jb-levels { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); margin: 26px 0 24px; }
.jb-line { position: absolute; left: 8.33%; right: 8.33%; top: 21px; height: 4px; border-radius: 4px; background: var(--parchment); }
.jb-line span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold-400), var(--burgundy)); transition: width 2.4s var(--ease); }
.jb-level { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; }
.jb-level span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line-2); color: var(--ink-3); transition: all .4s var(--ease); }
.jb-level small { font-size: .68rem; font-weight: 700; line-height: 1.2; color: var(--ink-3); max-width: 9ch; }
.jb-level.reached span { background: var(--brand-grad); border-color: transparent; color: #fff; box-shadow: 0 0 0 5px var(--burgundy-50); transform: scale(1.06); }
.jb-level.reached small { color: var(--ink); }
.jb-badges { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.jb-badge { height: 132px; perspective: 800px; outline-offset: 3px; border-radius: 20px; }
.jb-badge-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s var(--ease); }
.jb-badge:hover .jb-badge-inner, .jb-badge:focus .jb-badge-inner { transform: rotateY(180deg); }
.jb-front, .jb-back { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 12px; border-radius: 20px; text-align: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.jb-front { background: var(--parchment); }
.jb-front strong { font-size: .84rem; font-weight: 700; }
.jb-disc { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.2rem;
  background: radial-gradient(circle at 32% 26%, color-mix(in srgb, var(--c) 40%, white), var(--c) 58%, color-mix(in srgb, var(--c) 70%, black));
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px color-mix(in srgb, var(--c) 30%, var(--gold-200)); filter: grayscale(1) opacity(.4); transition: filter .6s var(--ease), transform .6s var(--ease); }
.jb-badge.earned .jb-disc { filter: none; animation: medal-pop .8s var(--ease); }
.jb-badge.earned .jb-front { background: color-mix(in srgb, var(--c) 7%, white); }
.jb-back { transform: rotateY(180deg); background: var(--c); color: #fff; font-size: .84rem; font-weight: 600; line-height: 1.35; }
.jb-back i { font-size: 1rem; opacity: .8; }
.jb-hint { position: relative; margin: 16px 0 0; font-size: .78rem; font-weight: 600; color: var(--ink-3); text-align: center; }

/* ------------------------------------------------------------ verse reveal */
.verse-section { overflow: hidden; }
.verse-reveal { position: relative; margin: 0 auto; max-width: 980px; text-align: center; padding: clamp(20px, 4vw, 40px) 0; }
.verse-reveal::before { content: ""; position: absolute; inset: -20% 10%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--gold-200) 70%, transparent), transparent); opacity: .7; }
.vr-mark { display: block; height: .55em; font-family: var(--font-display); font-size: clamp(7rem, 14vw, 11rem); line-height: 1; color: var(--burgundy); opacity: .15; }
.verse-reveal blockquote { margin: 0; font-family: var(--font-display); font-weight: 500; font-style: italic; font-size: clamp(2.4rem, 6.4vw, 5.2rem); line-height: 1.04; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.verse-reveal blockquote span { display: inline-block; opacity: .12; filter: blur(6px); transform: translateY(14px); transition: opacity .7s var(--ease), filter .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.verse-reveal.in blockquote span { opacity: 1; filter: none; transform: none; }
.verse-reveal figcaption { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 26px; font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--burgundy); }
.verse-reveal figcaption span { width: 40px; height: 1px; background: currentColor; opacity: .4; }

/* ------------------------------------------------------------ family bento */
.family-section .section-head p { max-width: 42ch; }
.bento { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; min-height: 520px; }
.bento-tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 28px; border-radius: 28px; overflow: hidden; isolation: isolate;
  color: var(--ink); text-decoration: none; border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.bento-tile:hover { color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.bento-tile h3 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.bento-tile p { margin: 0; color: var(--ink-2); max-width: 40ch; }
.bento-tag { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; margin-bottom: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(8px); font-size: .76rem; font-weight: 700; color: var(--ink); }
.bento-go { position: absolute; right: 22px; top: 22px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), background .3s, color .3s; }
.bento-tile:hover .bento-go { transform: rotate(-45deg); background: var(--burgundy); color: #fff; }

.bento-parents { grid-row: span 2; color: #fff; border: 0; }
.bento-parents:hover { color: #fff; }
.bento-parents img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 1s var(--ease); }
.bento-parents:hover img { transform: scale(1.05); }
.bento-parents::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23, 21, 28, 0) 35%, rgba(66, 11, 24, .88)); }
.bento-parents h3 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.bento-parents p { color: rgba(255, 255, 255, .85); }
.bento-copy { display: grid; gap: 8px; }

.bento-live { background: linear-gradient(160deg, #fffaf0, var(--gold-50) 50%, #fbe7b7); border-color: var(--gold-200); }
.bento-rays { position: absolute; right: -60px; top: -60px; z-index: -1; width: 280px; height: 280px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(232, 178, 62, .28) 0 6deg, transparent 6deg 18deg); animation: spin 60s linear infinite;
  -webkit-mask: radial-gradient(closest-side, #000 30%, transparent); mask: radial-gradient(closest-side, #000 30%, transparent); }
.bento-rays::after { content: ""; position: absolute; inset: 38%; border-radius: 50%; background: radial-gradient(circle, #fff, var(--gold-200)); box-shadow: 0 0 40px 10px rgba(255, 236, 180, .9); }
@keyframes spin { to { transform: rotate(360deg); } }
.bento-live .bento-go { right: auto; left: auto; top: auto; bottom: 24px; right: 24px; }

.bento-community { background: linear-gradient(160deg, #fff, var(--burgundy-50)); }
.bento-chat { display: grid; gap: 8px; margin-bottom: auto; padding-bottom: 14px; padding-right: 50px; }
.bubble { justify-self: start; max-width: 85%; padding: 9px 14px; border-radius: 16px 16px 16px 4px; background: #fff; box-shadow: var(--shadow-sm); font-size: .84rem; font-weight: 500; opacity: 0; transform: translateY(8px); }
.bubble.me { justify-self: end; border-radius: 16px 16px 4px 16px; background: var(--burgundy); color: #fff; }
.bento-community.in .bubble { animation: rise .5s var(--ease) forwards; }
.bento-community.in .bubble:nth-child(2) { animation-delay: .6s; }
.bento-community.in .bubble:nth-child(3) { animation-delay: 1.2s; }
.bento-community .bento-go { top: auto; bottom: 24px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 960px) {
  .tour, .journey { grid-template-columns: 1fr; }
  .tour-stage { min-height: 380px; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; min-height: 0; }
  .bento-parents { grid-column: 1 / -1; grid-row: auto; min-height: 380px; }
  .bento-live, .bento-community { min-height: 280px; }
}
@media (max-width: 760px) {
  .pillar-row { flex-direction: column; height: auto; }
  .pillar-panel, .pillar-panel.open { flex: none; min-height: 84px; transition: min-height .6s var(--ease), background .5s var(--ease); }
  .pillar-panel.open { min-height: 420px; }
  .pp-icon { top: 16px; left: auto; right: 18px; width: 48px; height: 48px; }
  .pp-num { top: 32px; }
  .pp-label { writing-mode: horizontal-tb; transform: none; left: 64px; top: 22px; bottom: auto; font-size: 1.5rem; }
  .pillar-panel:not(.open) .pp-label { opacity: 1; }
}
@media (max-width: 640px) {
  .tour-stage { min-height: 360px; }
  .jb-levels small { display: none; }
  .jb-level span { width: 38px; height: 38px; font-size: .85rem; }
  .jb-line { top: 17px; }
  .jb-badges { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr; }
  .bento-tile { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .verse-reveal blockquote span { opacity: 1; filter: none; transform: none; }
  .bubble { opacity: 1; transform: none; }
}
.bento-copy .bento-tag { justify-self: start; }
.bento-prayers { display: grid; gap: 8px; margin-bottom: auto; padding-bottom: 14px; }
.bento-prayers .bubble { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 8px 14px; font-weight: 600; }
.bento-prayers .bubble i { color: var(--burgundy); font-size: .8rem; }
.bento-prayers .bubble:nth-child(2) { margin-left: 18px; }
.bento-prayers .bubble:nth-child(3) { margin-left: 36px; }
.bento-community.in .bento-prayers .bubble { animation: rise .5s var(--ease) forwards; }
.bento-community.in .bento-prayers .bubble:nth-child(2) { animation-delay: .25s; }
.bento-community.in .bento-prayers .bubble:nth-child(3) { animation-delay: .5s; }
.bento-rosary { position: absolute; right: 26px; top: 50%; width: 92px; transform: translateY(-50%) rotate(-10deg); opacity: .9; transition: transform .6s var(--ease); z-index: -1; }
.bento-community:hover .bento-rosary { transform: translateY(-55%) rotate(-2deg) scale(1.06); }

/* hero: keep the glow behind the picture and the copy crisp on top */
.hero-v2 .hero-copy { position: relative; z-index: 2; }
.hero-v2 .aurora { inset: 4% -8% -4% -8%; opacity: .45; filter: blur(60px); }
.hero-v2 .aurora::before { background: color-mix(in srgb, var(--burgundy) 30%, white); }
.fc-lesson { left: -12%; bottom: 10%; min-width: 0; max-width: 240px; }

/* the tour's video is a real link to a Jesus Wonder video */
a.ts-video { text-decoration: none; cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
a.ts-video.has-pic { background-size: cover; background-position: center; }
a.ts-video.has-pic::before { left: 0; width: 100%; height: 100%; border-radius: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .45)); opacity: 1; }
a.ts-video:hover { transform: translateY(-3px) scale(1.01); box-shadow: 0 40px 70px -30px rgba(23, 21, 28, .55); }
a.ts-video:hover .ts-play { transform: scale(1.08); }
.ts-play { transition: transform .3s var(--ease); }
.ts-cap { max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
