/* Three service stages: faith tools / pastoral study / integrated church administration. */
.hero { padding-top: max(44px, calc(6vw - 67px)); padding-bottom: 36px; }
.hero-copy { max-width: max(720px, 34vw); }
.hero-eyebrow, .hero-caption { display: none; }
.hero h1 { margin-top: 0; font-size: max(42px, 3vw); line-height: 1.08; letter-spacing: -.05em; }
.hero-description { max-width: max(550px, 28vw); margin: max(14px, .7vw) auto 0; font-size: max(14px, .78vw); line-height: 1.5; }
.hero-button { margin-top: max(20px, 1vw); min-height: max(44px, 2vw); padding: .5em 1.4em; font-size: max(14px, .78vw); }
.hero-button .icon { width: 1.3em; height: 1.3em; }
.hero-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4.8vw;
  width: 110%;
  max-width: none;
  height: auto;
  margin: 1.3vw 0 0 -5%;
  padding: 16px 0 4.5vw;
}
.hero-gallery::before { inset: -5vw 0 -1vw; background: radial-gradient(ellipse at 25% 60%, #e5d8fa80, transparent 60%), radial-gradient(ellipse at 78% 55%, #f6d6c76b, transparent 55%); }
.hero-gallery .gallery-orbit { display: none; }
.gallery-slot { position: relative; min-width: 0; z-index: 1; }
.gallery-slot-sermon { z-index: 2; }
.gallery-slot:focus-within { z-index: 10; }
.hero-gallery .gallery-card {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  min-width: 0;
  aspect-ratio: 1.78;
  display: flex;
  flex-direction: column;
  container-type: inline-size;
  border-radius: clamp(8px, .45vw, 16px);
  border: 1px solid #ffffff;
  z-index: 1;
  --card-yaw: 0deg;
  --active-yaw: 0deg;
  --card-roll: 0deg;
  --active-x: 0px;
  transform: perspective(58vw) rotateY(var(--card-yaw)) rotateZ(var(--card-roll));
  transform-origin: center;
  scale: 1;
  translate: 0 0;
  transition: transform .85s cubic-bezier(.22,.61,.36,1), scale .85s cubic-bezier(.22,.61,.36,1), translate .85s cubic-bezier(.22,.61,.36,1), box-shadow .65s ease;
  box-shadow: 0 24px 60px -30px #4a355150;
}
.hero-gallery .gallery-faith { --card-yaw: 30deg; --active-yaw: 28deg; --active-x: .6vw; --entrance-delay: 100ms; transform-origin: right center; }
.hero-gallery .gallery-sermon { --entrance-delay: 0ms; z-index: 2; }
.hero-gallery .gallery-craft { --card-yaw: -30deg; --active-yaw: -28deg; --active-x: -.6vw; --entrance-delay: 180ms; transform-origin: left center; }
.hero-gallery .mock-topline { flex: 0 0 auto; min-height: 8cqw; padding: 1.5cqw 3cqw; gap: 2cqw; }
.hero-gallery .mock-topline strong { display: flex; align-items: center; gap: 1.4cqw; font-size: 2.8cqw; }
.gallery-category { padding: .3cqw 1.1cqw; border: 1px solid #e5e0dc; border-radius: 20px; font-size: 2.2cqw; font-weight: 500; white-space: nowrap; }
.hero-gallery .sample-label { font-size: clamp(7px, 1.7cqw, 16px); }
.hero-gallery .product-mark { width: 5cqw; height: 5cqw; border-radius: 1.3cqw; }
.hero-gallery .product-mark .icon { width: 3.3cqw; height: 3.3cqw; }
.hero-gallery .mock-eyebrow { font-size: clamp(8px, 2.3cqw, 24px); }
.hero-gallery .gallery-card h2 { font-size: clamp(20px, 6.2cqw, 52px); margin: 2cqw 0 3.5cqw; line-height: 1.35; }
.hero-gallery .gallery-card-body { flex: 1; padding: 1.8cqw 4.5cqw 1.6cqw 28cqw; background: #fffaf4; }
.hero-gallery .gallery-faith h2 { font-size: 5.6cqw; line-height: 1.2; margin: 1cqw 0 2cqw; }
.hero-gallery .gallery-faith .mock-topline { padding-left: 28cqw; }
.hero-gallery .mini-people > div { padding: 1.1cqw 0; font-size: clamp(9px, 2.8cqw, 23px); gap: 2cqw; }
.hero-gallery .mini-people small { display: none; }
.hero-gallery .mini-people .avatar { width: 5cqw; height: 5cqw; font-size: 2.5cqw; }
.hero-gallery .mini-people .avatar .icon { width: 3cqw; height: 3cqw; }
.hero-gallery .mini-people > div > .icon { width: 3.6cqw; height: 3.6cqw; }
.hero-gallery .mini-note { padding: 1.4cqw; margin-top: 1.5cqw; font-size: clamp(8px, 2.6cqw, 26px); gap: 1.5cqw; border-radius: 1.8cqw; }
.hero-gallery .mini-note .icon { width: 3.5cqw; height: 3.5cqw; }
.hero-gallery .sermon-gallery-body { flex: 1; min-height: 0; padding: 3.4cqw; gap: 4cqw; }
.hero-gallery .manuscript h2 { margin: 1.5cqw 0 2cqw; font-size: 5.2cqw; }
.hero-gallery .mini-file { margin-top: 1.6cqw; padding: 1.4cqw; gap: 1.5cqw; font-size: clamp(7px, 2.4cqw, 26px); border-radius: 1.5cqw; }
.hero-gallery a.mini-file { position: relative; z-index: 6; min-height: 36px; cursor: pointer; }
.hero-gallery a.mini-file:hover, .hero-gallery a.mini-file:focus-visible { color: var(--purple-dark); background: #f2eafa; border-color: #b39ad8; }
.hero-gallery a.mini-file:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.hero-gallery .mini-file small { display: none; font-size: clamp(6px, 1.9cqw, 16px); }
.hero-gallery .mini-file > .icon { width: 3.5cqw; height: 3.5cqw; display: block; }
.hero-gallery .manuscript-flow { display: none; }
.hero-gallery .manuscript-flow span { margin-inline: .8cqw; }
.hero-gallery .book-cover-hero { min-height: 0; height: 100%; max-height: 38cqw; margin: 0 1cqw; padding: 3cqw; transform: rotate(6deg); }
.hero-gallery .book-cover-hero strong { font-size: 5.4cqw; margin-top: 3cqw; }
.hero-gallery .book-top { font-size: clamp(5px, 1.6cqw, 13px); }
.hero-gallery .book-subtitle { font-size: clamp(6px, 1.8cqw, 15px); margin-top: 3cqw; }
.hero-gallery .book-publisher { font-size: clamp(5px, 1.6cqw, 13px); padding-top: 2.5cqw; }
.hero-gallery .mini-website { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 3cqw; }
.hero-gallery .mini-site-nav { flex: 0 0 auto; padding: 0 1cqw 2.5cqw; }
.hero-gallery .mini-site-nav strong { font-size: clamp(8px, 2.7cqw, 22px); }
.hero-gallery .mini-site-nav > span { font-size: clamp(6px, 1.9cqw, 20px); }
.hero-gallery .mini-site-photo { height: auto; flex: 1; min-height: 0; border-radius: 1.2cqw; }
.hero-gallery .mini-site-photo > div { padding: 4cqw; }
.hero-gallery .mini-site-photo span { font-size: clamp(7px, 2.2cqw, 18px); }
.hero-gallery .mini-site-photo h2 { font-size: 6cqw; margin-top: 2cqw; }
.hero-gallery .mini-site-bottom { flex: 0 0 auto; font-size: clamp(7px, 2.2cqw, 24px); padding-top: 2.5cqw; }
@media (min-width: 1101px) {
  .hero-gallery .gallery-craft .mock-topline { padding-right: 25cqw; }
  .hero-gallery .mini-site-nav > span { display: none; }
  .hero-gallery .mini-site-bottom { padding-right: 25cqw; }
}
.services-section { padding-top: max(48px, 2.2vw); }
.gallery-guide { display: flex; align-items: center; justify-content: center; gap: 10px; margin: -5px auto 12px; color: var(--muted); font-size: 12px; }
.gallery-guide .icon { width: 16px; height: 16px; }
.gallery-touch-hint { display: none; }
.gallery-link { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; border-radius: inherit; cursor: pointer; }
.gallery-link:focus-visible { outline: 3px solid var(--purple); outline-offset: -5px; }
.hero-gallery .gallery-card:has(a:focus-visible) { z-index: 10; transform: perspective(58vw) rotateY(var(--active-yaw)); scale: 1.045; translate: var(--active-x) -6px; box-shadow: 0 28px 64px -30px #4a355154; }
@media (hover: hover) and (pointer: fine) and (min-width: 1101px) {
  .hero-gallery .gallery-slot:not(.gallery-slot-sermon)::before { content: ""; position: absolute; inset: -4.5vw 0; }
  .hero-gallery .gallery-slot:hover { z-index: 20; }
  .hero-gallery .gallery-slot:hover .gallery-card { z-index: 20; transform: perspective(58vw) rotateY(var(--active-yaw)); scale: 1.045; translate: var(--active-x) -6px; box-shadow: 0 28px 64px -30px #4a355154; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-gallery.gallery-intro { animation: gallery-intro .8s cubic-bezier(.2,.7,.2,1) both; }
  .gallery-intro .gallery-card { animation: gallery-fade .65s ease var(--entrance-delay) both; }
  @keyframes gallery-intro { from { transform: translateY(22px); } to { transform: translateY(0); } }
  @keyframes gallery-fade { from { opacity: 0; } to { opacity: 1; } }
}
@media (max-width: 1399px) and (min-width: 1101px) {
  .hero-gallery .mini-file > .icon { display: none; }
}
@media (max-width: 1100px) {
  .hero { padding-top: 71px; padding-bottom: 32px; }
  .hero-copy { width: calc(100% - 40px); max-width: 720px; }
  .hero h1 { font-size: clamp(31px, 7.7vw, 48px); line-height: 1.2; }
  .hero-description { max-width: 550px; font-size: 14px; margin-top: 16px; line-height: 1.7; }
  .hero-button { margin-top: 18px; min-height: 48px; padding: 11px 23px; }
  .hero-gallery { display: flex; width: 100%; margin: 26px 0 0; padding: 18px 7vw 26px; gap: 18px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: 7vw; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #d3bfdc transparent; perspective: none; }
  .hero-gallery::before { display: none; }
  .hero-gallery .gallery-slot { flex: 0 0 86vw; max-width: 520px; scroll-snap-align: center; }
  .hero-gallery .gallery-card { aspect-ratio: 1.22; transform: none; transform-origin: center; border: 1px solid #e9e1ed; --active-x: 0px; transition-duration: .55s; }
  .hero-gallery .gallery-card:has(a:focus-visible) { scale: 1.018; translate: 0 -3px; transform: none; }
  .hero-gallery .gallery-faith .mock-topline { padding-left: 3cqw; }
  .hero-gallery .gallery-card-body { padding: 3cqw 4.5cqw 2cqw 5cqw; }
  .hero-gallery .gallery-card h2 { font-size: 7cqw; }
  .hero-gallery .gallery-faith h2 { line-height: 1.25; }
  .hero-gallery .sermon-gallery-body { padding: 5cqw 4.2cqw; }
  .hero-gallery .manuscript h2 { margin-bottom: 3.5cqw; }
  .hero-gallery .book-cover-hero { max-height: none; height: 60cqw; padding: 4.5cqw 3.5cqw; }
  .hero-gallery .book-cover-hero strong { font-size: 6cqw; margin-top: 5cqw; }
  .hero-gallery .book-publisher { padding-top: 4cqw; }
  .hero-gallery .mock-topline { min-height: 10cqw; padding-block: 2.4cqw; }
  .hero-gallery .mock-topline strong { font-size: 12px; }
  .gallery-category { font-size: 9px; }
  .hero-gallery .sample-label { font-size: 8px; }
  .hero-gallery .product-mark { width: 6.8cqw; height: 6.8cqw; min-width: 25px; min-height: 25px; }
  .hero-gallery .product-mark .icon { width: 4cqw; height: 4cqw; }
  .hero-gallery .mini-file { font-size: 9px; margin-top: 2cqw; padding: 2.6cqw 2cqw; }
  .hero-gallery a.mini-file { min-height: 44px; }
  .hero-gallery .mini-file small { display: block; font-size: 7px; }
  .hero-gallery .mini-people > div { padding-block: 1.8cqw; font-size: 12px; }
  .hero-gallery .mini-people small { font-size: 10px; }
  .hero-gallery .mini-people .avatar { width: 5.5cqw; height: 5.5cqw; }
  .hero-gallery .mini-note { font-size: 11px; margin-top: 4cqw; padding: 1.6cqw; }
  .hero-gallery .mini-site-photo h2 { font-size: 8cqw; }
  .hero-gallery .mini-site-bottom { font-size: 9px; }
  .services-section { padding-top: 72px; }
  .gallery-guide { margin-top: 10px; font-size: 12px; }
  .gallery-desktop-hint { display: none; }
  .gallery-touch-hint { display: inline; }
}
@media (max-width: 640px) {
  /* Real action buttons must fit below the headline instead of being clipped by the mockup ratio. */
  .hero-gallery .gallery-card { aspect-ratio: auto; min-height: 365px; }
  .hero-gallery .mock-topline strong { font-size: 14px; }
  .hero-gallery a.mini-file { font-size: 12px; line-height: 1.5; padding: 10px 8px; }
  .hero-gallery a.mini-file small { display: none; }
  .hero-gallery a.mini-file > .icon { display: none; }
  .hero-gallery .book-cover-hero { height: min(64cqw, 240px); align-self: center; }
  .hero { padding-top: 55px; padding-bottom: 36px; }
  .services-section { padding-top: 67px; }
  .faith-activity-grid { gap: 8px; }
  .faith-activity-grid > div { padding: 15px 10px; }
  .faith-activity-grid strong { font-size: 13px; margin-top: 8px; }
  .faith-activity-grid span { font-size: 10px; }
  .faith-sharing-note { font-size: 10px; padding-top: 15px; }
  .foundation-board { width: 88%; margin: 61px auto 58px; padding: 17px 13px; }
  .foundation-heading h3 { font-size: 19px; }
  .foundation-heading span { font-size: 9px; }
  .foundation-modules { gap: 5px; margin-top: 17px; }
  .foundation-modules > div { padding: 13px 3px; }
  .foundation-modules strong { font-size: 12px; }
  .foundation-modules span { font-size: 8px; }
  .foundation-base { font-size: 10px; padding-bottom: 15px; }
  .foundation-expand { font-size: 10px; padding: 11px 7px; }
  #faith-details .free-card { width: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-gallery, .hero-gallery .gallery-card { animation: none !important; transition: none !important; }
}
