/* Home page v3: the story in five photographs, the chooser, the altar */

/* ---- The good news, told in five photographs that slide over one another ---- */
.chapters { position: relative; background: var(--ink); }
.chapter { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: flex-end; color: var(--on-dark); overflow: hidden; background: var(--ink); box-shadow: 0 -30px 60px rgba(0, 0, 0, .45); }
.chapter .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: calc(clamp(40px, 8vh, 96px) + 30px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; }
.chapter-n { font: 800 14px/1 var(--ui); letter-spacing: .18em; text-transform: uppercase; margin: 0 0 20px; display: inline-flex; align-items: center; gap: 12px; text-shadow: 0 1px 12px rgba(10, 8, 6, .9); }
.chapter-n b { background: var(--sun); color: var(--ink); padding: 6px 9px; border-radius: 6px; font-weight: 800; }
.chapter h2 { font-size: clamp(44px, 7.6vw, 158px); line-height: .84; text-shadow: 0 2px 4px rgba(10, 8, 6, .35), 0 6px 46px rgba(10, 8, 6, .75); }
/* The highlighted line never wraps, so the headline is sized from its own column, not the window:
   the longest line ("OUR OWN WAY.") is about 6em wide, and 15.4% of the column per em keeps it inside
   at every window width. Without this it ran over the text beside it on mid-width windows. */
.chapter .wrap > div:first-child { container-type: inline-size; min-width: 0; }
@supports (font-size: 1cqw) { .chapter h2 { font-size: clamp(40px, 15.4cqw, 158px); } }
.chapter h2 .hl { text-shadow: none; }
.chapter h2 .hl { display: table; white-space: nowrap; margin-top: .07em; padding: .05em .12em 0; line-height: .9; }
/* The words must win over the photograph on every slide, bright sky and fog included: an even dark veil
   over the whole picture, deepening to near-black behind the text. */
.chapter::after { background: linear-gradient(180deg, rgba(10, 8, 6, .5) 0%, rgba(10, 8, 6, .4) 18%, rgba(10, 8, 6, .58) 40%, rgba(10, 8, 6, .86) 68%, rgba(10, 8, 6, .96) 100%); }
.chapter-side { text-shadow: 0 1px 3px rgba(10, 8, 6, .7), 0 2px 24px rgba(10, 8, 6, .9); }
.chapter-side { padding-bottom: 8px; }
.chapter-side .btn { text-shadow: none; }
.chapter-p { font: 400 clamp(20px, 2vw, 25px)/1.42 var(--read); margin: 0 0 20px; max-width: 30ch; }
.chapter-v { font: 400 italic 17.5px/1.5 var(--read); color: rgba(251, 247, 239, .9); border-left: 4px solid var(--sun); padding-left: 16px; margin: 0 0 26px; max-width: 38ch; }
.chapter-v cite { display: block; font: 800 12px/1 var(--ui); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark); margin-top: 10px; }

/* ---- "What brought you here today?" ---- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.chip { font: 600 17px/1 var(--ui); padding: 17px 24px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; transition: transform .18s ease, background .18s ease, color .18s ease; }
.chip:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.chip[aria-selected="true"] { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.why-panel { background: var(--ink); color: var(--on-dark); border-radius: 26px; padding: clamp(30px, 5vw, 60px); animation: rise .55s cubic-bezier(.2, .7, .2, 1); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px; align-items: end; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.why-chip { font: 800 13px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--sun); margin: 0 0 20px; }
.why-panel blockquote { margin: 0; }
.why-panel blockquote p { font: 500 italic clamp(26px, 3.4vw, 44px)/1.22 var(--read); margin: 0 0 18px; text-wrap: pretty; }
.why-panel cite, .altar cite { font: 800 12.5px/1 var(--ui); font-style: normal; letter-spacing: .14em; text-transform: uppercase; }
.why-panel cite .tr, .altar cite .tr { margin-left: 8px; opacity: .6; }
.why-word { font: 400 20px/1.5 var(--read); color: var(--on-dark); margin: 0 0 24px; }
.all-q { font: 800 clamp(34px, 4.6vw, 56px)/.95 var(--display); font-stretch: 68%; text-transform: uppercase; margin: clamp(70px, 9vw, 120px) 0 36px; }
.why-panel[hidden] { display: none; }
.more-q { margin: 44px 0 0; }
.no-js .chips { display: none; }
.no-js .why-panel[hidden] { display: grid; margin-bottom: 14px; }

/* ---- Lay it down ---- */
.altar { position: relative; background: var(--ink); color: var(--on-dark); overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; }
.altar-inner { position: relative; z-index: 2; width: 100%; padding-top: 140px; padding-bottom: clamp(48px, 9vh, 110px); }
.altar .kicker { color: var(--on-dark); }
.altar h2 { font-size: clamp(70px, 13vw, 210px); line-height: .84; margin: 0 0 26px; text-shadow: 0 4px 50px rgba(10, 8, 6, .5); }
.altar h2 .hl { display: inline-block; line-height: .9; padding: .02em .1em 0; }
.altar-p { font: 400 clamp(20px, 2.1vw, 26px)/1.42 var(--read); max-width: 32ch; margin: 0 0 30px; }
.altar-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 680px; }
.altar-form input { flex: 1 1 280px; min-height: 64px; border-radius: 999px; border: 1.5px solid rgba(251, 247, 239, .6); background: rgba(10, 8, 6, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font: 600 18px/1.2 var(--ui); padding: 14px 28px; transition: border-color .15s ease, box-shadow .15s ease; }
.altar-form input::placeholder { color: rgba(251, 247, 239, .6); }
.altar-form input:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 4px rgba(255, 208, 40, .3); }
.altar-form .btn { min-height: 64px; }
.altar-note { font: 500 13.5px/1.4 var(--ui); color: var(--muted-on-dark); margin: 16px 0 0; }
.altar-ask, .altar-done { transition: opacity .7s ease; }
.altar.busy .altar-ask { opacity: 0; pointer-events: none; }
.altar-done { animation: rise .9s cubic-bezier(.2, .7, .2, 1); max-width: 760px; }
.altar-done h2 { outline: none; font-size: clamp(54px, 9vw, 140px); }
.altar-done h2 .hl { white-space: nowrap; }
.altar-done blockquote { margin: 0 0 22px; }
.altar-done blockquote p { font: 500 italic clamp(21px, 2.3vw, 28px)/1.4 var(--read); margin: 0 0 14px; }
/* What they typed, lifted off the page */
.altar-words { position: absolute; z-index: 3; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; padding: 0 24px; pointer-events: none; font: 800 clamp(40px, 8vw, 120px)/.92 var(--display); font-stretch: 66%; text-transform: uppercase; color: var(--on-dark); text-shadow: 0 4px 40px rgba(0, 0, 0, .6); }
.altar-words span { display: inline-block; white-space: pre; opacity: 0; animation: laid 3.4s cubic-bezier(.3, .1, .2, 1) forwards; }
@keyframes laid {
  0% { opacity: 0; transform: translateY(18px); filter: blur(8px); }
  18% { opacity: 1; transform: none; filter: blur(0); }
  58% { opacity: 1; transform: none; filter: blur(0); }
  100% { opacity: 0; transform: translateY(-120px) scale(.9); filter: blur(14px); }
}

@media (max-width: 960px) {
  .chapter .wrap { grid-template-columns: 1fr; gap: 22px; }
  @supports (font-size: 1cqw) { .chapter h2 { font-size: clamp(40px, 15.4cqw, 96px); } }
  .why-panel { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .chapter h2 { font-size: clamp(40px, 13.4vw, 84px); }
  @supports (font-size: 1cqw) { .chapter h2 { font-size: clamp(40px, 15.4cqw, 84px); } }
  .chapter::after { background: linear-gradient(180deg, rgba(10, 8, 6, .48) 0%, rgba(10, 8, 6, .55) 22%, rgba(10, 8, 6, .76) 48%, rgba(10, 8, 6, .92) 72%, rgba(10, 8, 6, .97) 100%); }
  .chapter-v { font-size: 16px; margin-bottom: 20px; }
  .chip { font-size: 15.5px; padding: 14px 18px; }
  .why-panel { border-radius: 20px; }
  .why-panel .btn { width: 100%; }
  .altar h2 { font-size: clamp(66px, 21vw, 104px); }
  .altar-form .btn { width: 100%; }
}
@media (min-width: 1200px) {
  .chapter .wrap { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
}
