/* ==========================================================================
   Layout v2 (loaded on every page, after style.css + pages.css)
   1. Founder hero: half-bleed split with a slow two-photo crossfade + pause (WCAG 2.2.2).
   2. Volume section on a deep cocoa field instead of the cropped full-bleed photo.
   3. Calm text system: two alignment lines only (container edge + the halfway
      reading line), no first-line indents, serif headings, 17–18px body at ~65 characters.
   ========================================================================== */

/* ---------- Shared ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: .11em; text-transform: uppercase;
  color: var(--sage);
}
.eyebrow .motif-icon { width: 44px; }
.arch { border-radius: 50% 50% 0 0 / 40% 40% 0 0; } /* semicircular top on a 4:5 frame */

/* ---------- 1. Founder hero ---------- */
.hero2 { position: relative; background: var(--bg); overflow: clip; }
.hero2__inner {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: clamp(40px, 6vw, 112px); align-items: center;
  min-height: 100svh; padding: clamp(120px, 15vh, 168px) var(--gutter) clamp(56px, 8vh, 96px);
}
.hero2__title {
  margin-top: 28px; font-family: var(--serif); font-weight: 400;
  font-size: clamp(52px, 6.2vw, 108px); line-height: .96; letter-spacing: -.02em; color: var(--ink);
}
.hero2__title .tl { display: block; }
.hero2__title .sage { color: var(--sage); }
/* brand ribbon under "For Good." — draws in once the headline has risen */
.hero2__title .inf__mark { width: 1.7em; top: calc(100% + .03em); --draw-delay: 1.1s; }
.hero2__lead { margin-top: clamp(60px, 5vw, 80px); max-width: 31em; font-size: clamp(17px, .45vw + 12px, 20px); line-height: 1.65; color: var(--gray); }
.hero2__ctas { margin-top: 40px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero2__link {
  font-size: 12px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--ink);
  text-decoration: underline; text-decoration-color: rgba(74, 55, 40, .3); text-underline-offset: 6px;
  transition: text-decoration-color .3s;
}
.hero2__link:hover { text-decoration-color: var(--sage); }
.hero2__trust { margin-top: 56px; display: flex; align-items: center; gap: 18px; }
.hero2__trust .trust__row { margin-top: 0; }
.hero2__trust p { font-size: 14px; line-height: 1.5; color: var(--gray); }
.hero2__trust strong { color: var(--ink); font-weight: 600; }

.hero2__media { position: relative; margin: 0; justify-self: center; }
.hero2__frame {
  position: relative; overflow: hidden; background: var(--taupe);
  height: min(74svh, 760px); aspect-ratio: 4 / 5;
}
.hero2__slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.6s var(--ease), transform 0s linear 1.6s; /* reset zoom only once faded out */
}
.hero2__slide.is-active { opacity: 1; transform: scale(1); transition: opacity 1.6s var(--ease), transform 9s linear; }
.hero2__slide--sofa { object-position: 60% 30%; }
.hero2__slide--kitchen { object-position: 64% 35%; }
.hero2__pause {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
  background: rgba(251, 248, 243, .86); color: var(--ink);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero2__pause svg { width: 14px; height: 14px; }
.hero2__pause .i-play { display: none; }
.hero2__pause[aria-pressed="true"] .i-play { display: block; }
.hero2__pause[aria-pressed="true"] .i-pause { display: none; }

/* B: half-bleed split — photo fills the right half edge to edge */
.hero2--split .hero2__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 0; padding: 0; align-items: stretch; }
.hero2--split .hero2__text { align-self: center; padding: clamp(120px, 15vh, 168px) clamp(40px, 5vw, 96px) clamp(56px, 8vh, 96px) var(--gutter); }
.hero2--split .hero2__media { justify-self: stretch; }
.hero2--split .hero2__frame { height: 100%; min-height: 100svh; width: 100%; aspect-ratio: auto; }

/* ---------- 2. Volume section on cocoa (no cropped photo) ---------- */
.v2-stage .stage__img { display: none; }
.v2-stage .stage__bg { background: radial-gradient(120% 90% at 50% 18%, #6d5243 0%, #4a3728 52%, #2f2219 100%); }
.v2-stage .toggle-zone__sticky::before { flex: 1 1 0; min-height: 92px; }
.v2-stage .toggle-zone__sticky::after { content: ''; flex: 1 1 0; }

/* ---------- 3. Text system ---------- */
.how__intro, .hero__copy { text-indent: 0 !important; }

/* page header: one left edge — eyebrow, title, lead */
.ph2 { padding: clamp(150px, 19vh, 220px) var(--gutter) 0; }
.ph2__title {
  margin-top: 28px; font-family: var(--serif); font-weight: 400;
  font-size: clamp(56px, 8vw, 128px); line-height: .92; letter-spacing: -.02em; color: var(--ink);
}
.ph2__title .tline { display: block; }
.ph2__title .sage { color: var(--sage); }
.ph2__title .inf__mark { width: 1.5em; top: calc(100% + .08em); }
.ph2__lead {
  margin-top: clamp(56px, 6vw, 80px); max-width: 30em;
  font-size: clamp(20px, .55vw + 14px, 24px); font-weight: 500; line-height: 1.5; letter-spacing: -.01em; color: var(--ink);
}

/* editorial section: aside (photo / heading) on the left, reading column from the 50% line */
.ed { padding: clamp(96px, 10vw, 160px) var(--gutter) 0; }
.ed--band { margin-top: clamp(96px, 10vw, 160px); padding-bottom: clamp(96px, 10vw, 160px); background: var(--bg); }
.ed__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
.ed__aside { grid-column: 1 / span 5; }
.ed__body { grid-column: 7 / span 6; max-width: 640px; }
/* mirrored section: text in the left half, photo on the right (stacks photo-first on smaller screens) */
.ed--flip .ed__body { grid-column: 1 / span 6; grid-row: 1; }
.ed--flip .ed__aside { grid-column: 8 / span 5; grid-row: 1; }
.ed__sticky { position: sticky; top: 120px; }
.ed__photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--taupe); }
.ed__photo img { width: 100%; height: 100%; object-fit: cover; }
.ed__caption { margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--gray-light); }
.ed__title { margin-top: 24px; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 3.6vw, 56px); line-height: 1.05; letter-spacing: -.015em; color: var(--ink); }
.ed__title .sage { color: var(--sage); }
.ed__aside .ed__title { margin-top: 0; }
.ed__body p { margin-top: 24px; font-size: 18px; line-height: 1.75; color: #5f5148; }
.ed__body .ed__title + p, .ed__body .eyebrow + p { margin-top: 32px; }
.ed p.eyebrow { margin-top: 0; font-size: 12px; line-height: 1.4; color: var(--sage); } /* beats .ed__body p */
.ed__body .eyebrow + .ed__title { margin-top: 20px; }
.ed__body p.ed__lead { margin-top: 64px; font-size: 22px; font-weight: 500; line-height: 1.5; letter-spacing: -.01em; color: var(--ink); }
.ed__body p.ed__pull { margin: 48px 0; font-family: var(--serif); font-size: clamp(28px, 2.3vw, 36px); line-height: 1.2; color: var(--ink); }
.ed__body p.ed__pull span { color: var(--sage); }
.ed__body blockquote {
  margin: 48px 0; padding: 4px 0 4px 28px; border-left: 2px solid var(--sage);
  font-family: var(--serif); font-size: clamp(26px, 2vw, 32px); line-height: 1.25; color: var(--sage);
}
.ed__statement { margin-top: 64px; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 2.8vw, 44px); line-height: 1.1; letter-spacing: -.015em; color: var(--ink); }
.ed__statement .sage { color: var(--sage); }
.ed__body p.ed__callout { margin-top: 40px; padding: 28px 32px; background: var(--white); border-left: 2px solid var(--sage); color: var(--ink); }
.ed + .r4 { padding-top: clamp(96px, 10vw, 160px); }
.ed__body > p.ed__lead:first-child { margin-top: 0; }
.ed--human { padding-bottom: 300px; } /* clears the quote arch, which overlaps 211px upwards */
/* story pages: the name + "The Journey" stay put while the story reads alongside */
.ed--story { padding-top: 0; }
.ed__h { margin-top: 64px; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.4vw, 40px); line-height: 1.1; letter-spacing: -.01em; color: var(--ink); }
.ed__h + p { margin-top: 20px !important; }

/* page-load entrance (pages.css has this; the homepage only loads style.css) */
.reveal-load { opacity: 0; transform: translateY(20px); transition: opacity 1s cubic-bezier(.2, 0, .2, 1) var(--d, .4s), transform 1s cubic-bezier(.2, 0, .2, 1) var(--d, .4s); }
.loaded .reveal-load { opacity: 1; transform: none; }

/* ---------- Same two lines everywhere ---------- */
/* split sections (homepage, Community): heading from the container edge, copy from the halfway line */
.split__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
.split__grid .h-sans { grid-column: 1 / span 6; }
.split__copy { grid-column: 7 / span 5; font-size: 17px; line-height: 1.75; }
/* journal articles: stone image on the left, the article from the halfway line, 18px */
.artpage__grid { grid-template-columns: minmax(0, 544px) minmax(0, 1fr) minmax(0, 640px); }
.artpage__media .article__media { zoom: .82; } /* the stone + stroke art is drawn at 664px */
.artpage__text { max-width: none; }
.artpage__text p { font-size: 18px; line-height: 1.75; color: #5f5148; }
/* body copy a touch larger for easier reading */
.story__copy, .ready__copy, .book__copy, .legal__body p { font-size: 17px; line-height: 1.75; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .split__grid { grid-template-columns: 1fr; }
  .split__grid .h-sans, .split__copy { grid-column: 1 / -1; }
  .artpage__grid { grid-template-columns: 1fr; }
  .ed__grid { grid-template-columns: minmax(0, 1fr); column-gap: 0; } /* 12 columns of gaps would overflow small phones */
  .ed__aside, .ed__body { grid-column: 1 / -1; }
  .ed--flip .ed__aside, .ed--flip .ed__body { grid-column: 1 / -1; grid-row: auto; }
  .ed__sticky { position: static; }
  .ed__aside .ed__photo { max-width: 480px; }
  .ed__aside + .ed__body { margin-top: 56px; }
  .ed--human { padding-bottom: 240px; }
}
/* hero stacks only below 900px — tablets in landscape keep text + photo side by side */
@media (max-width: 899px) {
  .hero2__inner { grid-template-columns: 1fr; row-gap: 56px; min-height: 0; }
  .hero2__media { justify-self: start; }
  .hero2__frame { height: min(64svh, 600px); }
  .hero2--split .hero2__inner { grid-template-columns: 1fr; }
  .hero2--split .hero2__text { padding: 140px var(--gutter) 0; }
  .hero2--split .hero2__frame { min-height: 0; height: 72svh; }
}
@media (max-width: 809px) {
  .hero2__inner { padding-top: 120px; }
  .hero2__title { font-size: clamp(44px, 12.5vw, 64px); }
  .hero2__media { justify-self: stretch; }
  .hero2__frame { height: auto; width: 100%; max-width: 440px; } /* width-driven: 4:5 from the column */
  .hero2__trust { margin-top: 40px; }
  .ph2__lead { font-size: 20px; }
  .ed__body p, .artpage__text p { font-size: 17px; }
  .ed__body p.ed__lead { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero2__slide { transition: none; transform: none; }
}

/* ---------- One right-hand column line ----------
   Every two-column section starts its right column on the same line as the card and stats grids:
   the right half of the page (728px at 1440), instead of six slightly different positions. */
@media (min-width: 1081px) {
  .split__grid, .ed__grid { column-gap: 16px; }
  .meet__grid { grid-template-columns: minmax(0, 553px) 1fr minmax(0, 648px); }
  .story__grid, .story--flip .story__grid, .book__grid, .ready__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .story__img { width: 100%; }
  .story--flip .story__kicker { padding-left: calc(50% + 8px); }
  .how__steps { grid-template-columns: 1fr minmax(0, 648px); }
}
/* stacked (tablet and phone): photos and pricing cards use the full column like everything else */
@media (max-width: 1080px) {
  .story__images, .meet__photo { max-width: none; }
  .story__img { width: 100%; }
  .pricing__cards { max-width: none; margin-left: 0; margin-right: 0; }
}
/* the pricing band and the cream section after it read as one: don't double the gap */
.pricing + .split { padding-top: 0; }
.meet__text .motif-icon { width: 44px; }

/* ---------- Four membership tiers: Threshold, Circle, Gathering, Inner Sanctum ---------- */
.pricing__cards--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* each card's seven parts share rows with its neighbours (subgrid), so names, prices, lists and buttons line up */
.pricing__cards--four .price-card { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; padding: 32px 28px; }
.price-card__step { margin-bottom: 16px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); }
.pricing__cards--four .price-card__title { font-size: 30px; }
.pricing__cards--four .price-card__price { margin-top: 28px; }
.price-card__num--text { font-size: 32px; }
.pricing__cards--four .price-card__num { min-width: 0; } /* "/ month" sits the same distance after every price */
.price-card__note { margin-top: 4px; font-size: 13px; line-height: 1.6; color: var(--gray-light); }
.pricing__cards--four .price-card__options { margin: 32px 0 40px; }
.pricing__cards--four .price-card .pill { margin-top: 0; align-self: end; justify-self: start; }
/* the top tier reads as the inner room: cocoa card, blush accents */
.price-card--sanctum { background: var(--ink); }
.price-card--sanctum .price-card__step, .price-card--sanctum .price-card__num { color: var(--blush); }
.price-card--sanctum .price-card__title { color: var(--white); }
.price-card--sanctum .price-card__desc, .price-card--sanctum .price-card__options li { color: rgba(255, 255, 255, .78); }
.price-card--sanctum .price-card__note { color: rgba(255, 255, 255, .55); }
.price-card--sanctum .price-card__options li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='9.3' stroke='%23d4a899' stroke-width='1.4'/%3E%3Cpath d='M6.2 10.3l2.5 2.5 5.1-5.4' stroke='%23d4a899' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
@media (max-width: 1280px) { .pricing__cards--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 809px) { .pricing__cards--four { grid-template-columns: minmax(0, 1fr); } }
