/* ==========================================================================
   FORMED BY SCRIPTURE — HOMEPAGE
   ==========================================================================
   Layout for the hub homepage. Colours and radii come from brand.css.
   Each of the three experience cards previews the real thing:
   the Well Versed tile, the Bible GPS map, a Formation Pathways statement.
   The whole card is one link (the heading link stretches over it).
   ========================================================================== */
.hub-hero { background: radial-gradient(120% 90% at 100% 0%, rgba(128,246,174,.16), transparent 55%), var(--brand-black); }
.hub-hero .hero__title { font-size: clamp(2.2rem, 6.2vw, 4.4rem); line-height: 1.04; max-width: 15ch; }
.hub-hero .hero__lede { max-width: 52ch; color: rgba(255,255,255,.86); }
.hub-note { margin: var(--s-5) 0 0; font-size: var(--t-sm); color: var(--text-2); max-width: 56ch; }
.hub-note--onDark { color: rgba(255,255,255,.8); }
.hub-intro { max-width: 60ch; color: var(--ink-70); font-size: var(--t-md); margin: var(--s-3) 0 var(--s-7); }
#begin { scroll-margin-top: 90px; }

.hub-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-6); }
.hub-card { position: relative; display: flex; flex-direction: column; background: #FFFFFF; border-radius: 24px; overflow: hidden; box-shadow: var(--lift); transition: transform .18s ease, box-shadow .18s ease; }
.hub-card:hover, .hub-card:focus-within { transform: translateY(-4px); box-shadow: var(--lift-hover); }
.hub-card__preview { display: flex; min-height: 210px; }
.hub-card__body { padding: var(--s-5) var(--s-5) var(--s-6); display: flex; flex-direction: column; flex: 1; }
.hub-card__kind { font-family: var(--display); font-weight: 600; font-size: var(--t-eyebrow); letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 var(--s-2); }
.hub-card h3 { font-size: var(--t-lg); margin: 0 0 var(--s-3); }
.hub-card h3 a { color: inherit; text-decoration: none; }
.hub-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: 24px; }
.hub-card h3 a:focus-visible { outline: none; }
.hub-card h3 a:focus-visible::after { outline: 3px solid var(--ring); outline-offset: -3px; box-shadow: inset 0 0 0 6px var(--accent); }
.hub-card p { color: var(--ink-70); margin: 0 0 var(--s-3); }
.hub-card__feature { color: var(--text); font-weight: 500; }
.hub-card__cta { margin-top: auto; padding-top: var(--s-4); font-family: var(--display); font-weight: 600; color: var(--brand-black); align-self: flex-start; box-shadow: inset 0 -.5em 0 var(--accent); }
.hub-card__cta::after { content: ' →'; }
.hub-card .lab__tile { min-height: 210px; width: 100%; }
.hub-card .lab__name { font-size: clamp(28px, 5.4vw, 36px); }


/* Bible GPS preview: a slice of the real map */
.hub-gps { position: relative; width: 100%; background: #E6F0E7; overflow: hidden; }
.hub-gps svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub-gps__bar { position: absolute; left: 14px; right: 14px; top: 14px; display: flex; gap: 6px; }
.hub-gps__bar span { flex: 1; background: #FFFFFF; border-radius: 12px; padding: 9px 14px; font-size: .85rem; color: var(--text-2); box-shadow: 0 6px 16px -8px rgba(23,61,48,.5); }
.hub-gps__bar b { background: #1A73E8; color: #FFFFFF; border-radius: 12px; padding: 9px 14px; font-family: var(--display); font-size: .8rem; font-weight: 600; }

/* Formation Pathways preview: a real statement and the five responses */
.hub-fp { flex-direction: column; justify-content: center; gap: var(--s-4); padding: var(--s-5); background: var(--sage); width: 100%; }
.hub-fp__q { font-family: var(--display); font-weight: 500; font-size: var(--t-md); line-height: 1.3; color: var(--brand-black); }
.hub-fp__scale { display: flex; flex-wrap: wrap; gap: 6px; }
.hub-fp__scale i { font-style: normal; font-size: var(--t-xs); border-radius: 999px; padding: 6px 12px; background: #FFFFFF; color: var(--text); }
.hub-fp__scale .is-on { background: var(--forest); color: #FFFFFF; }

.hub-three { list-style: none; margin: var(--s-7) 0 0; padding: 0; display: grid; gap: var(--s-4); }
.hub-three li { background: #FFFFFF; border-radius: 20px; padding: var(--s-5); }
.hub-three h3 { font-size: var(--t-md); margin: 0 0 var(--s-2); }
.hub-three p { margin: 0; color: var(--ink-70); }
.hub-philosophy { font-family: var(--display); font-weight: 600; font-size: var(--t-lg); color: var(--brand-black); margin: var(--s-8) 0 0; max-width: 24ch; line-height: 1.2; }
.hub-dims { background: var(--offwhite); }
.hub-dims .dim-list { background: #FFFFFF; border-radius: 24px; overflow: hidden; box-shadow: var(--lift); padding-inline: var(--s-4); }
.hub-hopex { background: radial-gradient(110% 120% at 0% 100%, rgba(128,246,174,.18), transparent 55%), var(--brand-black); border-radius: 28px; padding: clamp(2rem, 6vw, 4rem); color: #FFFFFF; }
.hub-hopex h2 { color: #FFFFFF; font-size: var(--t-xl); max-width: 20ch; margin-bottom: var(--s-4); }
.hub-hopex p { color: rgba(255,255,255,.86); max-width: 62ch; }

.fp-isnot { list-style: none; margin: var(--s-3) 0 0; padding: 0; }
.fp-isnot li { padding: var(--s-2) 0; border-top: 1px solid var(--rule); color: var(--ink-70); }

@media (max-width: 899px) {
  .hub-hero .hero__aside { display: none; }      /* the live season moves below the fold on phones */
  .hub-card__preview, .hub-card .lab__tile { min-height: 170px; }
}
@media (min-width: 900px) {
  .hub-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hub-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .hub-card { transition: none; } .hub-card:hover, .hub-card:focus-within { transform: none; } }

/* numerals in the six-dimension list: a mint chip, the HopeX accent */
.hub-dims .dim-row__num { background: var(--accent); color: var(--brand-black); border-radius: 8px; }
.section--wash .hub-three li { box-shadow: var(--lift); }

/* ---- 12 Nov, later: simplified homepage ---- */
.hub-hero .hero__title { font-size: clamp(2rem, 7.4vw, 4.4rem); max-width: 16ch; text-wrap: balance; }
.hub-hero .hero__lede { max-width: 46ch; }
.hub-hero { padding-block: clamp(3.5rem, 9vw, 7rem); }
.hub-begin h2 { font-size: var(--t-xl); margin-bottom: var(--s-6); }
.hub-card__featured { display: inline-block; align-self: flex-start; font-family: var(--display); font-weight: 600; font-size: var(--t-eyebrow); letter-spacing: .1em; text-transform: uppercase; background: var(--accent); color: var(--brand-black); border-radius: 999px; padding: 5px 12px; margin: 0 0 var(--s-3) !important; }
.hub-card__kind { letter-spacing: .12em; }
/* the secondary link on the artwork: sits above the card-wide link */
.hub-card__lab { position: absolute; left: 16px; bottom: 14px; z-index: 2; font-family: var(--display); font-weight: 600; font-size: .8rem; color: #FFFFFF; background: #0B0B0C; border-radius: 999px; padding: 8px 14px; text-decoration: none; }
.hub-card__lab::after { content: ' →'; }
.hub-card__lab:hover { background: #fff; color: #0B0B0C; }
.hub-card__lab:focus-visible { outline: 3px solid #0B0B0C; outline-offset: 2px; }
.hub-gps__arrive { position: absolute; left: 14px; bottom: 14px; background: #fff; border-radius: 14px; padding: 8px 14px; font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: #17231D; box-shadow: 0 10px 24px -10px rgba(23,61,48,.6); border-top: 4px solid #7B5CC6; }
.hub-gps__arrive small { display: block; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: #4B3490; }

/* six dimensions: quiet expandable rows inside one soft surface */
.dim-panels { background: var(--surface); border-radius: 24px; box-shadow: var(--lift); padding: var(--s-2) var(--s-5); }
.dim-panel + .dim-panel { border-top: 1px solid var(--border); }
.dim-panel summary { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4) 0; cursor: pointer; list-style: none; }
.dim-panel summary::-webkit-details-marker { display: none; }
.dim-panel summary:focus-visible { outline: 3px solid var(--ring); outline-offset: 4px; border-radius: 10px; }
.dim-panel__num { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 10px; background: var(--accent); color: var(--brand-black); font-family: var(--display); font-weight: 700; font-size: var(--t-sm); display: inline-flex; align-items: center; justify-content: center; }
.dim-panel__head { flex: 1; min-width: 0; }
.dim-panel__name { display: block; font-family: var(--display); font-weight: 600; font-size: var(--t-md); color: var(--brand-black); line-height: 1.2; }
.dim-panel__line { display: block; color: var(--text-muted); font-size: var(--t-sm); margin-top: 2px; }
.dim-panel__icon { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-soft); position: relative; transition: transform .2s ease, background .2s ease; }
.dim-panel__icon::before, .dim-panel__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--brand-black); transform: translate(-50%, -50%); }
.dim-panel__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: opacity .2s ease; }
.dim-panel[open] .dim-panel__icon { background: var(--accent); transform: rotate(180deg); }
.dim-panel[open] .dim-panel__icon::after { opacity: 0; }
.dim-panel__body { padding: 0 0 var(--s-5) calc(2.4rem + var(--s-4)); }
.dim-panel__body p { margin: 0 0 var(--s-3); max-width: 56ch; }
@media (min-width: 900px) { .dim-panels { padding: var(--s-3) var(--s-6); } }
@media (prefers-reduced-motion: reduce) { .dim-panel__icon, .dim-panel__icon::after { transition: none; } }
/* The artwork sits above the card-wide link but lets taps fall through to it,
   except on the small "Open Well Versed" link, which takes its own taps. */
.hub-card .lab__tile { z-index: 1; pointer-events: none; }
.hub-card__lab { pointer-events: auto; }

/* ---- centred hero ---- */
.hub-hero--center { text-align: center; padding-block: clamp(4.5rem, 12vw, 9rem); background: radial-gradient(90% 80% at 50% 0%, rgba(128,246,174,.16), transparent 60%), var(--brand-black); }
.hub-hero--center .eyebrow { justify-content: center; margin-bottom: var(--s-5); }
.hub-hero--center .hero__title { font-size: clamp(2.5rem, 8.6vw, 5.25rem); line-height: 1.02; max-width: 13ch; margin-inline: auto; text-wrap: balance; }
.hub-hero--center .hero__lede { max-width: 44ch; margin: var(--s-5) auto 0; text-wrap: pretty; }
.hub-hero--center .btn-row { justify-content: center; margin-top: var(--s-6); }
@media (max-width: 520px) { .hub-hero--center .eyebrow { font-size: .68rem; letter-spacing: .14em; } .hub-hero--center .eyebrow::before { display: none; } }
.hub-hero--center .eyebrow { margin-inline: auto; width: fit-content; max-width: 100%; }
@media (min-width: 900px) { .hub-hero--center .hero__title { max-width: 17ch; } }

/* ---- small signs of life in the card previews ---- */
.has-motion .hub-gps svg path[stroke="#1A73E8"] { stroke-dasharray: 520; stroke-dashoffset: 520; }
.has-motion .hub-card.is-in .hub-gps svg path[stroke="#1A73E8"], .has-motion .hub-card:not(.reveal) .hub-gps svg path[stroke="#1A73E8"] { animation: hub-route 1.6s .3s ease-out forwards; }
@keyframes hub-route { to { stroke-dashoffset: 0; } }
.has-motion .hub-gps svg circle[opacity] { animation: hub-pulse 2s 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes hub-pulse { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(1.8); opacity: 0; } }
.has-motion .hub-gps__arrive { opacity: 0; }
.has-motion .hub-card.is-in .hub-gps__arrive, .has-motion .hub-card:not(.reveal) .hub-gps__arrive { animation: fbs-rise .5s 1.7s ease-out forwards; }
.has-motion .hub-card.is-in .hub-fp__scale .is-on, .has-motion .hub-card:not(.reveal) .hub-fp__scale .is-on { animation: hub-pick .5s .9s ease-out backwards; }
@keyframes hub-pick { from { background: #fff; color: var(--text); transform: scale(.9); } }
@media (prefers-reduced-motion: reduce) { .hub-gps svg path, .hub-gps svg circle, .hub-gps__arrive, .hub-fp__scale .is-on { animation: none !important; opacity: 1; stroke-dashoffset: 0; } }
