

  /* ---------- Hero photo mode (fade-in photo on the right). Remove "hero-photo-mode" from the hero section to switch back to the logo. ---------- */
  .hero-photo{display:none;}
  .hero-photo-mode .hero-photo{
    display:block; position:absolute; top:0; right:0; bottom:0; width:66%; z-index:1;
    background-image:
      linear-gradient(90deg, var(--navy-900) 0%, rgba(24,44,62,0.78) 22%, rgba(24,44,62,0.18) 62%, rgba(24,44,62,0) 100%),
      linear-gradient(180deg, rgba(24,44,62,0) 70%, rgba(24,44,62,0.55) 100%),
      var(--photo);
    background-size:cover; background-position:center, center, 52% 30%; background-repeat:no-repeat;
    -webkit-mask-image:linear-gradient(90deg, transparent 0%, #000 30%);
    mask-image:linear-gradient(90deg, transparent 0%, #000 30%);
  }
  .hero-photo-mode .hero-grid{grid-template-columns:minmax(0,640px); z-index:2;}
  .hero-photo-mode .hero-figure{display:none;}
  @media (max-width:860px){
    .hero-photo-mode .hero-photo{
      width:100%; -webkit-mask-image:none; mask-image:none;
      background-image:
        linear-gradient(180deg, rgba(24,44,62,0.94) 0%, rgba(24,44,62,0.85) 55%, rgba(24,44,62,0.62) 100%),
        var(--photo);
      background-position:center, 55% 30%;
    }
  }


  /* Logo as the hero back image: large, centered in the right side, over a soft gold glow. */
  .hero-photo-mode .hero-photo.is-logo{
    width:62%;
    background-image:
      radial-gradient(ellipse 52% 46% at 52% 50%, rgba(255,222,89,0.13), transparent 70%),
      var(--photo);
    background-size:100% 100%, min(580px, 88%) auto;
    background-position:center, 62% center;
    -webkit-mask-image:linear-gradient(90deg, transparent 0%, #000 16%);
    mask-image:linear-gradient(90deg, transparent 0%, #000 16%);
  }
  @media (max-width:1240px){
    /* On tablets and phones the logo returns to its original frame beside or below the text. */
    .hero-photo-mode .hero-photo.is-logo{display:none;}
    .hero-photo-mode .hero-figure{display:flex;}
    .hero-photo-mode .hero-grid{grid-template-columns:1.15fr 0.85fr;}
  }
  @media (max-width:920px){
    .hero-photo-mode .hero-grid{grid-template-columns:1fr;}
  }

  /* Couple photo: keep both faces in frame. */
  .hero-photo-mode .hero-photo.is-couple{ background-position:center, center, 46% 20%; }
  @media (max-width:1240px){
    .hero-photo-mode .hero-figure{display:none;}
    .hero-photo-mode .hero-grid{grid-template-columns:minmax(0,640px);}
  }
  @media (max-width:860px){
    /* Phones: the photo fades in behind the text; the text may cover the faces. */
    .hero-photo-mode .hero-photo.is-couple{
      top:0; left:0; right:0; bottom:0; width:100%; height:auto;
      background-image: linear-gradient(180deg, rgba(24,44,62,0.9) 0%, rgba(24,44,62,0.68) 50%, rgba(24,44,62,0.4) 100%), var(--photo);
      background-size:cover; background-position:center, 46% 30%;
      -webkit-mask-image:none; mask-image:none;
    }
  }
  /* reveal on scroll */
  .reveal{opacity:0; transform:translateY(18px); transition:opacity .7s ease, transform .7s ease;}
  .reveal.in{opacity:1; transform:translateY(0);}

/* ---------- Direction v2 additions ---------- */
.hero h1.hero-long{font-size:clamp(34px, 4.3vw, 54px); line-height:1.1;}
.hero h1.hero-long .script{color:var(--gold); font-style:normal; font-size:1.12em;}

/* Scripture reference under a section heading */
.verse-ref{display:block; margin-top:14px; font-style:normal; font-family:var(--label); text-transform:uppercase; letter-spacing:0.16em; font-size:12.5px; color:var(--navy);}

/* Inline text link inside the practices list */
.text-link{color:var(--navy); font-weight:700; text-decoration:underline; text-underline-offset:3px; text-decoration-color:var(--gold-dim);}
.text-link:hover{color:var(--navy-900); text-decoration-color:var(--navy);}

/* The practices list is taller than before, so the side card keeps its own height. */

/* Hero headline: hand-lettered "create & build", with extra room around the ampersand. */
.hero h1{text-wrap:balance;}
.hero h1 .script{font-style:normal; font-size:1.2em; color:var(--gold);}
.hero h1 .amp{font-family:inherit; font-weight:inherit; font-size:1em; color:#fff; margin:0 0.2em;}
.community-copy p.lead-in{margin-bottom:18px;}

/* Home hero supporting line */
.hero .hero-sub{margin-top:22px; max-width:34ch;}
