/* Peaceful Streams homepage two-state scroll hero — homepage only */
.home-scroll-hero{
  position:relative;
  width:100%;
  height:235svh;
  min-height:1500px;
  overflow:visible; /* important: do not break position:sticky */
  background:transparent;
}

.home-hero-sticky{
  position:sticky;
  top:68px;
  width:100%;
  height:calc(100svh - 68px);
  min-height:540px;
  overflow:hidden;
  isolation:isolate;
  background:#eef7fb;
}

.home-scroll-hero .hero-art,
.home-scroll-hero .hero-reveal-art{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  max-width:none;
  margin:0;
  object-fit:cover;
  object-position:center;
  transform-origin:center center;
  will-change:opacity,transform;
}

.home-scroll-hero .hero-art{
  z-index:1;
  opacity:1;
}

.home-scroll-hero .hero-reveal-art{
  z-index:0;
  opacity:0;
}

.home-hero-shade{
  position:absolute;
  inset:0;
  z-index:2;
  opacity:0;
  pointer-events:none;
  background:
    linear-gradient(180deg,rgba(6,24,34,.03),rgba(6,24,34,.11) 52%,rgba(6,24,34,.27)),
    radial-gradient(circle at center,rgba(0,0,0,.02),rgba(0,0,0,.10) 64%,rgba(0,0,0,.18));
  will-change:opacity;
}

.home-hero-reveal{
  position:absolute;
  z-index:3;
  left:50%;
  top:49%;
  width:min(900px,90vw);
  transform:translate(-50%,-50%);
  text-align:center;
  color:#fff;
}

/* After-scroll branding: clean, open, and close to the approved mockup */
.home-brand-mark-shell,
.home-brand-title,
.home-brand-subtitle,
.home-hero-kicker,
.home-hero-scripture,
.home-hero-button{
  opacity:0;
  will-change:opacity,transform;
}

.home-brand-mark-shell{
  width:clamp(105px,9vw,145px);
  height:clamp(82px,7vw,112px);
  margin:0 auto 4px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  display:flex;
  align-items:center;
  justify-content:center;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}

.home-brand-mark{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  mix-blend-mode:normal;
  filter:drop-shadow(0 3px 10px rgba(255,255,255,.18));
}

.home-brand-title{
  margin:-2px 0 0;
  color:#123c56;
  font:700 clamp(3.15rem,5.7vw,5.9rem)/.94 Georgia,serif;
  letter-spacing:-.035em;
  text-shadow:0 2px 10px rgba(255,255,255,.38);
}

.home-brand-subtitle{
  margin:10px 0 30px;
  color:#17364a;
  font-size:clamp(.72rem,1.12vw,.98rem);
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  text-shadow:0 1px 7px rgba(255,255,255,.45);
}

.home-hero-kicker{
  display:inline-block;
  margin:0 0 13px;
  color:#fff;
  font-size:.78rem;
  font-weight:900;
  letter-spacing:.21em;
  text-transform:uppercase;
  text-shadow:0 2px 12px rgba(0,0,0,.52);
  position:relative;
}

.home-hero-kicker::after{
  content:"";
  display:block;
  width:58px;
  height:3px;
  margin:12px auto 0;
  border-radius:999px;
  background:#b7cf64;
  box-shadow:0 1px 4px rgba(0,0,0,.18);
}

.home-hero-scripture{
  max-width:790px;
  margin:0 auto;
  text-shadow:0 3px 15px rgba(0,0,0,.50);
}

.home-hero-scripture .kjv-text{
  margin:0 auto 14px;
  padding:0;
  border:0;
  max-width:790px;
  color:#fff;
  background:transparent;
  font:italic 600 clamp(1.48rem,2.8vw,2.5rem)/1.30 Georgia,serif;
  text-wrap:balance;
}

.home-hero-scripture .scripture-reference{
  margin:0 0 24px;
  color:#fff!important;
  font-size:clamp(.92rem,1.4vw,1.05rem);
  font-weight:800;
  letter-spacing:.05em;
}

.home-hero-scripture .kjv-label{
  display:inline-block;
  margin-left:.35em;
  font-size:.72em;
  letter-spacing:.14em;
  opacity:.90;
}

.home-hero-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:13px 28px;
  border:1px solid #9bc5b8;
  border-radius:999px;
  background:#fffaf0;
  color:#215e59;
  font-weight:850;
  text-shadow:none;
  box-shadow:0 8px 24px rgba(18,60,86,.16);
  transition:transform .2s ease,background .2s ease,box-shadow .2s ease;
}

.home-hero-button:hover,
.home-hero-button:focus-visible{
  background:#eaf5f0;
  transform:translateY(-2px)!important;
  box-shadow:0 0 20px rgba(47,139,131,.22),0 12px 28px rgba(18,60,86,.18);
}

.home-hero-scroll-cue{
  position:absolute;
  z-index:4;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:2px;
  color:#fff;
  font-size:.74rem;
  font-weight:900;
  letter-spacing:.20em;
  text-transform:uppercase;
  text-shadow:0 2px 12px rgba(0,0,0,.75);
  pointer-events:none;
}

.home-hero-scroll-cue b{
  font-size:1.45rem;
  line-height:1;
  font-weight:700;
  filter:drop-shadow(0 2px 5px rgba(0,0,0,.65));
  animation:homeHeroCue 1.9s ease-in-out infinite;
}

@keyframes homeHeroCue{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(6px)}
}

/* Keep the following section flush with the hero; no empty band. */
.home-scroll-hero + .section{
  margin-top:0!important;
}

@media(max-width:900px){
  .home-scroll-hero{
    height:210svh;
    min-height:1300px;
  }

  .home-hero-sticky{
    height:calc(100svh - 68px);
    min-height:560px;
  }

  .home-hero-reveal{
    width:min(92vw,720px);
    top:50%;
  }

  .home-brand-mark-shell{
    width:clamp(88px,20vw,120px);
    height:clamp(70px,16vw,94px);
  }

  .home-brand-title{
    font-size:clamp(2.4rem,9vw,4rem);
  }

  .home-brand-subtitle{
    max-width:92%;
    margin:9px auto 22px;
    font-size:.67rem;
    line-height:1.5;
    letter-spacing:.10em;
  }

  .home-hero-scripture .kjv-text{
    font-size:clamp(1.3rem,5.5vw,1.95rem);
  }
}

@media(max-width:520px){
  .home-scroll-hero{
    height:195svh;
    min-height:1120px;
  }

  .home-hero-sticky{
    min-height:520px;
  }

  .home-brand-title{
    font-size:clamp(2.15rem,10vw,3.15rem);
  }

  .home-brand-subtitle{
    font-size:.60rem;
    letter-spacing:.075em;
  }

  .home-hero-kicker{
    font-size:.67rem;
  }

  .home-hero-scripture .kjv-text{
    font-size:clamp(1.18rem,6vw,1.62rem);
  }

  .home-hero-button{
    min-height:44px;
    padding:11px 18px;
    font-size:.91rem;
  }
}

@media(prefers-reduced-motion:reduce){
  .home-scroll-hero{
    height:auto;
    min-height:0;
  }

  .home-hero-sticky{
    position:relative;
    top:auto;
  }

  .home-scroll-hero .hero-art{
    opacity:0!important;
    transform:none!important;
  }

  .home-scroll-hero .hero-reveal-art{
    opacity:1!important;
    transform:none!important;
  }

  .home-hero-shade{
    opacity:.28!important;
  }

  .home-brand-mark-shell,
  .home-brand-title,
  .home-brand-subtitle,
  .home-hero-kicker,
  .home-hero-scripture,
  .home-hero-button{
    opacity:1!important;
    transform:none!important;
  }

  .home-hero-scroll-cue{
    display:none;
  }
}

/* Peaceful Streams continuous homepage flow 2026-10-02 */
.home-opening-links{position:absolute;inset:0;z-index:5;pointer-events:none;will-change:opacity}
.home-opening-links .hero-hotspot{position:absolute;display:block;pointer-events:auto;border-radius:10px;background:transparent;outline-offset:3px}
.home-opening-links .hero-hotspot:focus-visible{outline:3px solid #fff;box-shadow:0 0 0 5px rgba(18,60,86,.55)}
.home-opening-links .hero-faith-link{left:28.2%;top:60.7%;width:21.2%;height:7.4%}
.home-opening-links .hero-tech-link{left:51.2%;top:60.7%;width:18.3%;height:7.4%}

.home-pathways{position:relative;overflow:hidden;padding:78px 0}
.home-section-intro{text-align:center;max-width:1180px;width:94%;margin:0 auto 32px}
.home-section-intro h2{margin-top:4px;font-size:clamp(2.35rem,3.25vw,3.55rem);white-space:nowrap;line-height:1.08}
.home-section-intro p{max-width:none;margin:10px auto 0;color:var(--muted);font-size:1.02rem;white-space:nowrap}
.home-path-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.home-path-card{position:relative;min-height:360px;border-radius:22px;overflow:hidden;display:flex;align-items:flex-end;padding:0;border:1px solid rgba(18,60,86,.10);box-shadow:0 16px 38px rgba(18,60,86,.10);isolation:isolate;background:#123c56}
.home-path-card::before{content:"";position:absolute;inset:0;z-index:-2;background-image:linear-gradient(180deg,rgba(8,32,42,.08) 20%,rgba(8,32,42,.82) 100%),var(--path-image);background-size:cover;background-position:center;transform:scale(1.01);transition:transform .8s cubic-bezier(.2,.75,.2,1)}
.home-path-card::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(9,39,52,.22),rgba(9,39,52,0) 60%)}
.home-path-card:hover::before{transform:scale(1.045)}
.home-path-copy{width:100%;padding:34px;color:#fff}
.home-path-copy .kicker{color:#d8efe9}
.home-path-copy h3{font-size:clamp(2rem,3.1vw,3rem);margin:4px 0 10px;color:#fff}
.home-path-copy p{max-width:520px;margin:0 0 20px;font-size:1.03rem;color:rgba(255,255,255,.93)}
.home-path-copy .btn{box-shadow:0 9px 24px rgba(0,0,0,.16)}
[data-home-section="read_grow"] .mini{transition:transform .35s ease,box-shadow .35s ease,border-color .35s ease;box-shadow:0 8px 24px rgba(18,60,86,.045)}
[data-home-section="read_grow"] .mini:hover{transform:translateY(-5px);box-shadow:0 16px 36px rgba(18,60,86,.10);border-color:rgba(47,139,131,.28)}

.home-flow-active .home-flow-section{opacity:0;transform:translate3d(0,38px,0) scale(.992);transition:opacity .9s ease,transform 1.05s cubic-bezier(.2,.75,.2,1)}
.home-flow-active .home-flow-section.is-in-view{opacity:1;transform:none}
.home-flow-active .home-flow-item{opacity:0;transform:translate3d(0,24px,0);transition:opacity .72s ease var(--flow-delay,0ms),transform .82s cubic-bezier(.2,.75,.2,1) var(--flow-delay,0ms)}
.home-flow-active .home-flow-section.is-in-view .home-flow-item{opacity:1;transform:none}

@media(max-width:850px){
  .home-path-grid{grid-template-columns:1fr}
  .home-path-card{min-height:310px}
  .home-path-copy{padding:28px}
  .home-opening-links .hero-faith-link{left:26%;top:59%;width:25%;height:9%}
  .home-opening-links .hero-tech-link{left:51%;top:59%;width:23%;height:9%}
}
@media(max-width:520px){
  .home-pathways{padding:58px 0}
  .home-path-card{min-height:290px}
  .home-path-copy h3{font-size:2rem}
  .home-flow-active .home-flow-section{transform:translate3d(0,24px,0)}
}
@media(prefers-reduced-motion:reduce){
  .home-flow-section,.home-flow-item{opacity:1!important;transform:none!important;transition:none!important}
  .home-path-card::before{transition:none}
}

/* Peaceful Streams pathway interaction upgrade 2026-10-02 */
.home-path-card{
  --spot-x:50%;
  --spot-y:50%;
  --bg-x:0px;
  --bg-y:0px;
  transition:transform .42s cubic-bezier(.2,.75,.2,1),box-shadow .42s ease,border-color .42s ease;
}
.home-path-card::before{
  background-position:calc(50% + var(--bg-x)) calc(50% + var(--bg-y));
  transition:transform .85s cubic-bezier(.2,.75,.2,1),background-position .35s ease;
}
.home-path-card::after{
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y),rgba(255,255,255,.18),rgba(255,255,255,0) 34%),
    linear-gradient(90deg,rgba(9,39,52,.22),rgba(9,39,52,0) 60%);
  opacity:.78;
  transition:opacity .35s ease;
}
.home-path-copy{
  transition:transform .42s cubic-bezier(.2,.75,.2,1);
}
.home-path-card .btn{
  transition:transform .28s ease,box-shadow .28s ease,background .28s ease;
}
@media (hover:hover) and (pointer:fine){
  .home-flow-active .home-flow-section.is-in-view .home-path-card:hover,
  .home-path-card:hover{
    transform:translateY(-7px);
    border-color:rgba(255,255,255,.42);
    box-shadow:0 24px 54px rgba(18,60,86,.18);
  }
  .home-path-card:hover::before{transform:scale(1.075)}
  .home-path-card:hover::after{opacity:1}
  .home-path-card:hover .home-path-copy{transform:translateY(-4px)}
  .home-path-card:hover .btn{transform:translateX(4px);box-shadow:0 12px 28px rgba(0,0,0,.20)}
}
.home-path-card:focus-within{
  outline:3px solid rgba(47,139,131,.36);
  outline-offset:4px;
}

@media(min-width:701px) and (max-width:900px){
  .home-section-intro{max-width:900px;width:96%}
  .home-section-intro h2{white-space:nowrap;font-size:clamp(2.05rem,4.1vw,2.65rem)}
  .home-section-intro p{white-space:nowrap;max-width:none;font-size:.86rem}
}
@media(max-width:700px){
  .home-section-intro{max-width:900px;width:92%}
  .home-section-intro h2{white-space:normal;font-size:clamp(2.2rem,5vw,3.2rem)}
  .home-section-intro p{white-space:normal;max-width:760px}
}

/* Peaceful Streams pathway micro-interactions 2026-10-02 */
.home-path-card{cursor:pointer;transition:transform .42s cubic-bezier(.2,.75,.2,1),box-shadow .42s ease,border-color .42s ease,filter .35s ease,opacity .35s ease}
.home-path-card .path-arrow{display:inline-block;margin-left:.22em;transition:transform .26s cubic-bezier(.2,.75,.2,1)}
.home-path-card:focus{outline:3px solid rgba(47,139,131,.42);outline-offset:4px}
.home-path-card:active{transform:scale(.985)}

@media (hover:hover) and (pointer:fine){
  .home-path-grid:hover .home-path-card:not(:hover){
    filter:brightness(.93) saturate(.90);
    opacity:.94;
  }
  .home-path-card:hover .btn{transform:none;box-shadow:0 12px 28px rgba(0,0,0,.20)}
  .home-path-card:hover .path-arrow,
  .home-path-card:focus-within .path-arrow,
  .home-path-card:focus .path-arrow{
    transform:translateX(6px);
  }
}
@media (hover:none), (pointer:coarse){
  .home-path-card:active{
    transform:scale(.985);
    box-shadow:0 12px 30px rgba(18,60,86,.14);
  }
}

/* Opening homepage identity: live text over the CMS background. */
.home-scroll-hero .home-opening-copy{
  position:absolute;z-index:3;left:50%;top:45%;
  transform:translate(-50%,-50%);width:min(900px,90%);
  text-align:center;color:#173b4b;pointer-events:none;will-change:opacity;
  text-shadow:0 1px 12px rgba(255,250,238,.72);
}
.home-scroll-hero .home-opening-logo{
  display:block;width:clamp(110px,11vw,160px);height:clamp(110px,11vw,160px);
  max-width:100%;margin:0 auto 10px;object-fit:contain;
}
.home-scroll-hero .home-opening-title{
  margin:0;color:#173b4b;font:700 clamp(2.7rem,5.5vw,5.5rem)/1.06 Georgia,serif;
  letter-spacing:-.035em;text-wrap:balance;
}
.home-scroll-hero .home-opening-tagline{
  margin:14px auto 0;color:#28685f;font-size:clamp(.88rem,1.4vw,1.2rem);
  font-weight:700;line-height:1.5;letter-spacing:.035em;
}
.home-scroll-hero .home-opening-intro{
  margin:18px auto 0;color:#173b4b;font-size:clamp(1rem,1.6vw,1.3rem);line-height:1.6;
}
.home-scroll-hero .home-opening-verse{
  margin:28px auto 0;padding:0;border:0;background:transparent;max-width:560px;color:#173b4b;
}
.home-scroll-hero .home-opening-verse p{
  margin:0;font:italic 500 clamp(1.18rem,2vw,1.65rem)/1.45 Georgia,serif;color:inherit;
}
.home-scroll-hero .home-opening-verse cite{
  display:block;margin-top:9px;font-size:.78rem;font-weight:700;font-style:normal;line-height:1.5;letter-spacing:.12em;
}
@media(max-width:900px){
  .home-scroll-hero .home-opening-logo{width:110px;height:110px}
  .home-scroll-hero .home-opening-copy{width:90%;top:45%}
}
@media(max-width:520px){
  .home-scroll-hero .home-opening-copy{width:89%;top:44%}
  .home-scroll-hero .home-opening-logo{width:96px;height:96px;margin-bottom:12px}
  .home-scroll-hero .home-opening-title{font-size:clamp(2.25rem,9.5vw,3rem)}
  .home-scroll-hero .home-opening-tagline{max-width:290px;font-size:.85rem;margin-top:12px}
  .home-scroll-hero .home-opening-intro{font-size:.95rem;margin-top:17px}
  .home-scroll-hero .home-opening-verse{margin-top:24px}
  .home-scroll-hero .home-opening-verse p{font-size:1.18rem}
}
@media(min-width:521px) and (max-height:750px){
  .home-scroll-hero .home-opening-logo{width:90px;height:90px;margin-bottom:6px}
  .home-scroll-hero .home-opening-title{font-size:clamp(2.7rem,4.7vw,4rem)}
  .home-scroll-hero .home-opening-verse{margin-top:18px}
}
@media(prefers-reduced-motion:reduce){
  .home-scroll-hero .home-opening-copy{display:none}
}

/* Homepage Read & Grow cards only. */
[data-home-section="read_grow"]{padding-bottom:30px}
[data-home-section="read_grow"]+.section[data-home-section="watch"]{padding-top:30px}
[data-home-section="read_grow"] .home-grow-intro{text-align:center;margin-bottom:30px}
[data-home-section="read_grow"] .home-grow-intro h2{font-size:clamp(2.2rem,3.6vw,3.5rem);line-height:1.12;margin:8px 0 16px;text-wrap:balance}
[data-home-section="read_grow"] .home-grow-intro p{max-width:760px;margin:0 auto}
[data-home-section="read_grow"] .mini{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-width:0;border-radius:18px}
[data-home-section="read_grow"] .home-grow-icon{display:grid;place-items:center;width:46px;height:46px;margin-bottom:18px;border-radius:13px;background:rgba(255,255,255,.76);color:var(--teal);transition:filter .35s ease,transform .35s ease}
[data-home-section="read_grow"] .home-grow-icon svg{width:27px;height:27px}
[data-home-section="read_grow"] .mini h3{font-size:clamp(1.45rem,2vw,1.8rem);line-height:1.2;margin:0 0 14px}
[data-home-section="read_grow"] .mini p{margin:0 0 14px;line-height:1.6;min-height:3.2em}
[data-home-section="read_grow"] .mini ul{padding-left:20px;margin:0 0 24px;line-height:1.65}
[data-home-section="read_grow"] .mini .btn{margin-top:auto}
[data-home-section="read_grow"] .mini .btn::after{content:"";position:absolute;inset:0;border-radius:18px}
[data-home-section="read_grow"] .mini:focus-within{outline:3px solid rgba(47,139,131,.4);outline-offset:4px;box-shadow:0 12px 28px rgba(18,60,86,.1)}
[data-home-section="read_grow"] .home-grow-arrow{display:inline-block;margin-left:.2em;transition:transform .26s ease}
@media(hover:hover) and (pointer:fine){
[data-home-section="read_grow"] .mini:hover .home-grow-icon{filter:drop-shadow(0 0 8px rgba(47,139,131,.23));transform:translateY(-2px)}
[data-home-section="read_grow"] .mini:hover .home-grow-arrow,[data-home-section="read_grow"] .mini:focus-within .home-grow-arrow{transform:translateX(5px)}
}
@media(max-width:700px){
[data-home-section="read_grow"] .mini p{min-height:0}
[data-home-section="read_grow"] .home-grow-intro{margin-bottom:24px}
[data-home-section="read_grow"]{padding-bottom:22px}
[data-home-section="read_grow"]+.section[data-home-section="watch"]{padding-top:22px}
}
@media(prefers-reduced-motion:reduce){
[data-home-section="read_grow"] .mini,[data-home-section="read_grow"] .home-grow-icon,[data-home-section="read_grow"] .home-grow-arrow{transition:none!important;transform:none!important}
}
