/* Live homepage — tree intro + editorial story */

.page-home {
  --glass-edge: rgba(90, 61, 56, 0.12);
  --home-glass-bg: rgba(253, 252, 251, 0.015);
  --home-glass-border: rgba(255, 255, 255, 0.06);
  --home-glass-blur: blur(3px) saturate(1.02);
  --home-glass-read-bg: rgba(253, 252, 251, 0.78);
  --home-glass-read-border: rgba(255, 255, 255, 0.52);
  --home-glass-read-blur: blur(18px) saturate(1.14);
  --home-glass-card-bg: rgba(253, 252, 251, 0.62);
  --home-glass-card-border: rgba(255, 255, 255, 0.38);
  --home-glass-card-blur: blur(14px) saturate(1.1);
  --home-text-lift: 0 0 18px rgba(253, 252, 251, 0.92), 0 1px 2px rgba(253, 252, 251, 0.65);
  background: transparent;
}

.page-home #content { padding: 0; }

/* Homepage intro: hide chrome briefly while tree holds */
.page-home .top-sticky {
  opacity: 0;
  transition: opacity 0.9s var(--ease-soft) 0.08s;
}
.page-home.is-intro-ready .top-sticky {
  opacity: 1;
}
.page-home.has-admin-bar .top-sticky { top: 2.75rem; }

/* ---- Hero ---- */
.home-hero { margin: 0; }
.home-hero__stage {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  height: 100dvh;
  overflow: clip;
  background: transparent;
  display: grid;
  align-items: end;
}

.home-hero__copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  width: min(100% - 2.5rem, 40rem);
  margin: 0 auto max(4rem, 22vh) max(1.25rem, calc((100% - 1120px) / 2));
  padding: 1.1rem 1.2rem 1.15rem;
  border-radius: 1.15rem;
  background: var(--home-glass-bg);
  border: 1px solid var(--home-glass-border);
  box-shadow: none;
  backdrop-filter: var(--home-glass-blur);
  -webkit-backdrop-filter: var(--home-glass-blur);
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1s var(--ease-soft) 0.18s,
    transform 1s var(--ease-soft) 0.18s;
}
.page-home.is-intro-ready .home-hero__copy {
  opacity: 1;
  transform: none;
}
.home-hero__logo-ring {
  flex-shrink: 0;
  margin: 0 0 0.35rem;
  width: 10.5rem;
  height: 10.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fffaf8;
  box-shadow:
    0 0 0 2px #fffaf8,
    0 0 0 4px rgba(201, 143, 132, 0.45),
    0 8px 22px rgba(90, 61, 56, 0.12);
}
.home-hero__logo {
  width: 7.75rem;
  height: 7.75rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.home-hero__content {
  flex: 1;
  min-width: 0;
}
.home-hero__copy h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 3.3vw, 2.35rem);
  font-weight: 600;
  font-synthesis: weight;
  letter-spacing: -0.012em;
  color: var(--ink);
  line-height: 1.28;
  text-shadow: var(--home-text-lift);
  overflow-wrap: break-word;
}
.home-hero__title-brand {
  display: inline-block;
  white-space: nowrap;
}
.home-hero__lead {
  margin: 0 0 1.15rem;
  color: #2f2826;
  font-size: 1.05rem;
  font-weight: 500;
  max-width: 34rem;
  text-wrap: pretty;
  line-height: 1.55;
  text-shadow: 0 0 14px rgba(253, 252, 251, 0.88), 0 1px 1px rgba(253, 252, 251, 0.6);
}
.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.home-hero__actions .btn--primary,
.home-hero__actions .btn--glass {
  box-shadow: 0 8px 24px rgba(90, 61, 56, 0.12);
}

.btn--glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(90, 61, 56, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s var(--ease-soft), transform 0.3s var(--ease);
}
.btn--glass:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  transform: translateY(-1px);
}

.home-hero__scroll {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  width: 2rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.75s var(--ease-soft) 0.45s;
}
.page-home.is-intro-ready .home-hero__scroll { opacity: 0.8; }
.home-hero__scroll span {
  width: 1.15rem;
  height: 1.15rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: home-scroll-nudge 1.8s var(--ease-soft) infinite;
  filter: drop-shadow(0 1px 2px rgba(253, 248, 246, 0.9));
}
@keyframes home-scroll-nudge {
  0%, 100% { translate: 0 0; opacity: 0.55; }
  50% { translate: 0 6px; opacity: 1; }
}

/* ---- Editorial values sheet — subtle glass like hero ---- */
.story-panel {
  position: relative;
  padding: 1.5rem 0 2rem;
}
.story-panel > .container {
  position: relative;
  z-index: 1;
}
.story-sheet {
  width: min(100%, 46rem);
  margin-inline: auto;
  padding: clamp(1.5rem, 3vw, 2.35rem);
  border-radius: calc(var(--radius) + 0.45rem);
  background: var(--home-glass-bg);
  border: 1px solid var(--home-glass-border);
  box-shadow: none;
  backdrop-filter: var(--home-glass-blur);
  -webkit-backdrop-filter: var(--home-glass-blur);
}
.story-sheet__head {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.story-sheet__head .eyebrow {
  color: var(--blush-600);
  font-weight: 600;
}
.story-sheet__head h2 {
  color: var(--ink);
  font-weight: 600;
  text-shadow: var(--home-text-lift);
}
.story-sheet__head .lede,
.story-sheet__head p {
  color: #2f2826;
  font-weight: 500;
  text-shadow: 0 0 12px rgba(253, 252, 251, 0.85);
}
.story-sheet__head .lede {
  max-width: 40rem;
  line-height: 1.55;
}

.principle-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 720px) {
  .principle-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  .principle-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: min(100%, calc(50% - 0.5rem));
    justify-self: center;
  }
}

.principle-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1.05rem 1.1rem;
  border-radius: 1rem;
  background: var(--home-glass-bg);
  border: 1px solid var(--home-glass-border);
  box-shadow: none;
  backdrop-filter: var(--home-glass-blur);
  -webkit-backdrop-filter: var(--home-glass-blur);
  transition: border-color 0.3s var(--ease-soft);
}
.principle-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}
.principle-card__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 0.85rem;
  color: var(--blush-600);
  background: rgba(253, 252, 251, 0.35);
  border: 1px solid var(--home-glass-border);
  box-shadow: none;
  backdrop-filter: var(--home-glass-blur);
  -webkit-backdrop-filter: var(--home-glass-blur);
}
.principle-card__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}
.principle-card__body h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  text-shadow: var(--home-text-lift);
}
.principle-card__body p {
  margin: 0;
  color: #2f2826;
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.55;
  text-shadow: 0 0 10px rgba(253, 252, 251, 0.8);
}

/* Scroll fade — IO-driven, staggered cards */
.page-home .story-sheet__head.reveal,
.page-home .principle-card.reveal,
.page-home .story-sheet__close.reveal,
.page-home .story-sheet__cta.reveal,
.page-home .invite.reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(3px);
  animation: none !important;
  transition:
    opacity 0.85s var(--ease-soft),
    transform 0.85s var(--ease-soft),
    filter 0.85s var(--ease-soft);
  transition-delay: var(--reveal-delay, 0s);
}
.page-home .story-sheet__head.reveal.is-visible,
.page-home .principle-card.reveal.is-visible,
.page-home .story-sheet__close.reveal.is-visible,
.page-home .story-sheet__cta.reveal.is-visible,
.page-home .invite.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}
.page-home .principle-card.reveal {
  transition-duration: 1s;
}

/* Legacy row styles — keep for templates */
.principle-row {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.85rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(90, 61, 56, 0.08);
}
.principle-row:last-child { border-bottom: 0; }
.principle-row__num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--blush-400);
  line-height: 1.2;
  padding-top: 0.1rem;
}
.principle-row__body h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 400;
  color: var(--ink);
}
.principle-row__body p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 38rem;
}

.story-sheet__close {
  margin: 1.5rem 0 0;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--home-glass-border);
  border-radius: 1rem;
  background: var(--home-glass-bg);
  backdrop-filter: var(--home-glass-blur);
  -webkit-backdrop-filter: var(--home-glass-blur);
}
.story-sheet__close p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-style: italic;
  font-weight: 500;
  color: #2f2826;
  line-height: 1.45;
  text-shadow: 0 0 12px rgba(253, 252, 251, 0.85);
}
.story-sheet__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.invite__content {
  display: grid;
  gap: 1.15rem;
}
.invite__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.invite__logo {
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(90, 61, 56, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.65);
}
.invite__head-copy {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}
.invite__head-copy .eyebrow {
  margin: 0;
}
.invite__head-copy h2 {
  margin: 0;
}
.invite__lede {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.55;
}
.home-contact-meta {
  list-style: none;
  margin: 0;
  padding: 0.85rem 0.95rem;
  display: grid;
  gap: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
  border-radius: 0.95rem;
  background: rgba(255, 253, 252, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.home-contact-meta__item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}
.home-contact-meta__icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 0.65rem;
  color: var(--blush-600);
  background: rgba(255, 253, 252, 0.72);
  border: 1px solid rgba(235, 200, 191, 0.55);
}
.home-contact-meta__icon svg {
  width: 1.05rem;
  height: 1.05rem;
}
.home-contact-meta__text {
  align-self: center;
  min-width: 0;
  line-height: 1.45;
}
a.home-contact-meta__text {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}
a.home-contact-meta__text:hover { color: var(--blush-600); }
.invite__social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.invite__social .social-links--contact {
  margin-top: 0;
}
.invite__actions .btn__icon svg {
  width: 1.05rem;
  height: 1.05rem;
}
@media (min-width: 800px) {
  .invite__actions {
    flex-direction: column;
    align-items: stretch;
    min-width: 13.5rem;
  }
  .invite__actions .btn {
    width: 100%;
  }
}

.page-home .invite__inner.glass-invite {
  background:
    linear-gradient(135deg, rgba(255, 252, 250, 0.9), rgba(245, 217, 210, 0.55)),
    rgba(233, 201, 194, 0.35);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

@media (max-width: 700px) {
  .home-hero__stage {
    min-height: 100svh;
    height: 100svh;
  }
  .home-hero__copy {
    margin-left: 1rem;
    margin-right: 1rem;
    width: auto;
    margin-bottom: max(3rem, 19vh);
    padding: 1rem 1.05rem 1.05rem;
    padding-bottom: calc(1.05rem + env(safe-area-inset-bottom, 0));
    border-radius: 1rem;
    gap: 0.9rem;
  }
  .home-hero__logo-ring {
    width: 8.65rem;
    height: 8.65rem;
    margin-bottom: 0.2rem;
  }
  .home-hero__logo {
    width: 6.4rem;
    height: 6.4rem;
  }
  .home-hero__copy h1 {
    font-size: clamp(1.35rem, 5.5vw, 1.85rem);
    line-height: 1.25;
  }
  .home-hero__lead {
    font-size: 0.98rem;
    line-height: 1.55;
  }
  .home-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
  .home-hero__scroll {
    bottom: max(0.85rem, env(safe-area-inset-bottom, 0.85rem));
  }
  .story-panel {
    padding: 1.15rem 0 1.75rem;
  }
  .story-sheet {
    padding: 1.25rem 1.15rem;
    border-radius: 1.15rem;
  }
  .story-sheet__cta {
    flex-direction: column;
  }
  .story-sheet__cta .btn {
    width: 100%;
    justify-content: center;
  }
  .principle-card {
    padding: 0.95rem 1rem;
  }
  .principle-card__icon {
    width: 2.5rem;
    height: 2.5rem;
  }
  .principle-card__body h3 {
    font-size: 1.08rem;
  }
  .page-home .invite__inner.glass-invite {
    padding: 1.25rem 1.15rem;
  }
  .invite__head {
    gap: 0.85rem;
  }
  .invite__logo {
    width: 3rem;
    height: 3rem;
  }
  .home-contact-meta {
    padding: 0.75rem 0.8rem;
  }
}

@media (max-width: 380px) {
  .page-home .brand__name {
    font-size: 0.92rem;
  }
  .home-hero__copy h1 {
    font-size: 1.28rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .top-sticky,
  .home-hero__copy,
  .home-hero__scroll,
  .page-home .story-sheet__head.reveal,
  .page-home .principle-card.reveal,
  .page-home .story-sheet__close.reveal,
  .page-home .story-sheet__cta.reveal,
  .page-home .invite.reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .home-hero__scroll span { animation: none; }
}
