/* =====================================================================
   sections.css — redesign of Principles, Existence, Understanding, Living
   Load AFTER style.css. Nothing in style.css needs to be deleted.
   Hero, FAQ, Founder, Contact and Footer are untouched.
   ===================================================================== */

/* ---------- shared ---------- */
.zone {
  position: relative;
  overflow: clip; /* clip (not hidden) so position: sticky keeps working */
  padding: 150px 0;
  scroll-margin-top: 76px;
}
.zone-inner {
  position: relative;
  z-index: 2;
}
.zone p {
  text-align: left;
}
.zone-title {
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1;
  margin-bottom: 26px;
  color: var(--highlight);
}
.zone-lede {
  font-size: clamp(17px, 1.9vw, 21px);
  color: var(--ink-soft);
  max-width: 620px;
  text-wrap: pretty;
}
.zone .eyebrow {
  margin-bottom: 22px;
}

@keyframes eq-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes eq-breathe {
  50% {
    transform: translate(-50%, -50%) scale(1.06);
  }
}

/* =====================================================================
   01 PRINCIPLES — an editorial index. Tag | statement | explanation.
   A moss tide sweeps across a row on hover.
   ===================================================================== */
#principles.zone {
  background:
    linear-gradient(135deg, rgba(230, 224, 211, 0.72), transparent 48%),
    var(--paper-dim);
}
.pr-top {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: end;
  margin-bottom: 90px;
}
.pr-top .zone-title {
  margin: 0;
  font-size: clamp(56px, 10vw, 144px);
  line-height: 0.92;
}
.pr-top .zone-lede {
  padding-bottom: 10px;
}

.pr-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}
.pr-row {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr);
  gap: clamp(20px, 4vw, 60px);
  align-items: baseline;
  padding: 46px 28px;
  border-bottom: 1px solid var(--line);
  transition: color 0.5s ease;
}
.pr-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--moss-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.65s var(--ease-manuscript);
}
.pr-row:hover::before {
  transform: scaleX(1);
}
.pr-row:hover {
  color: var(--paper);
}
.pr-tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: var(--ink-soft);
  transition: color 0.5s ease;
}
.pr-tag::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 1px;
  margin-right: 0;
  vertical-align: middle;
  background: var(--ochre);
  transition:
    width 0.5s var(--ease-manuscript),
    margin 0.5s var(--ease-manuscript);
}
.pr-row:hover .pr-tag::before {
  width: 26px;
  margin-right: 12px;
}
.pr-row h3 {
  font-size: clamp(26px, 3.3vw, 46px);
  line-height: 1.08;
}
.pr-row p {
  color: var(--ink-soft);
  font-size: 16.5px;
  transition: color 0.5s ease;
}
.pr-row:hover .pr-tag,
.pr-row:hover p {
  color: rgba(239, 234, 224, 0.8);
}
/* .reveal on the list is kept working alongside its own transitions */
.pr-list.reveal {
  transition:
    opacity 0.9s var(--ease-manuscript),
    transform 0.9s var(--ease-manuscript);
}
.principles-gratitude p {
  text-align: center;
}

/* =====================================================================
   02 EXISTENCE — night section. A central spine that statements hang
   off, and symbol.png as an orbiting emblem (the one use of the symbol).
   ===================================================================== */
#existence.zone {
  color: var(--paper);
  background:
    radial-gradient(
      circle at 82% 10%,
      rgba(122, 152, 127, 0.24),
      transparent 34%
    ),
    radial-gradient(
      circle at 8% 92%,
      rgba(176, 130, 57, 0.14),
      transparent 30%
    ),
    #1b251e;
}
#existence.zone::after {
  content: none; /* remove old decorative circle */
}
#existence .eyebrow {
  color: rgba(239, 234, 224, 0.6);
}
.ex-head {
  position: relative;
  max-width: 900px;
  margin: 0 auto 140px;
  text-align: center;
}
.ex-head .zone-title {
  color: var(--paper);
  font-size: clamp(46px, 9vw, 120px);
  line-height: 0.95;
}
.ex-head .zone-lede {
  margin: 0 auto;
  text-align: center;
  color: rgba(239, 234, 224, 0.74);
}
.ex-head::before,
.ex-head::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  aspect-ratio: 1;
  border: 1px solid rgba(239, 234, 224, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: eq-breathe 9s ease-in-out infinite;
  pointer-events: none;
}
.ex-head::before {
  width: min(92vw, 820px);
}
.ex-head::after {
  width: min(62vw, 540px);
  animation-delay: -4.5s;
}

.ex-spine {
  position: relative;
  display: grid;
  gap: 96px;
  max-width: 1040px;
  margin: 0 auto;
}
.ex-spine::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(var(--moss), rgba(122, 152, 127, 0.04));
}
.ex-item {
  position: relative;
  width: calc(50% - 56px);
}
.ex-item:nth-child(even) {
  margin-left: auto;
}
.ex-item::after {
  content: "";
  position: absolute;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #1b251e;
  border: 1px solid var(--moss);
  box-shadow: 0 0 0 6px rgba(122, 152, 127, 0.14);
}
.ex-item:nth-child(odd)::after {
  right: -62.5px;
}
.ex-item:nth-child(even)::after {
  left: -62.5px;
}
.ex-tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--moss);
  margin-bottom: 16px;
}
.ex-item h3 {
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.1;
  margin-bottom: 18px;
  color: var(--paper);
}
.ex-item p {
  color: rgba(239, 234, 224, 0.72);
  font-size: 17px;
  max-width: 52ch;
}

.ex-soul {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
  margin-top: 170px;
  padding-top: 100px;
  border-top: 1px solid rgba(239, 234, 224, 0.14);
}
.ex-emblem {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
}
.ex-emblem::before {
  content: "";
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 100px rgba(122, 152, 127, 0.38);
}
.ex-emblem img {
  position: relative;
  z-index: 2;
  width: 56%;
  height: 56%;
  object-fit: contain;
}
.ex-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(239, 234, 224, 0.3);
  animation: eq-spin 70s linear infinite;
}
.ex-orbit::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--ochre);
}
.ex-orbit.o1 {
  inset: 0;
}
.ex-orbit.o2 {
  inset: 6.5%;
  border-style: solid;
  border-color: rgba(239, 234, 224, 0.12);
  animation-duration: 46s;
  animation-direction: reverse;
}
.ex-orbit.o2::after {
  background: var(--moss);
}
.ex-soul .big-quote {
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.25;
  color: var(--paper);
}
.ex-soul-text {
  margin-top: 34px;
  max-width: 62ch;
  color: rgba(239, 234, 224, 0.72);
  font-size: 17px;
}

/* =====================================================================
   03 UNDERSTANDING — split headline, a full-bleed "bars" statement on
   free will, then the attachment cycle on a soft glow.
   ===================================================================== */
#understanding.zone {
  padding-bottom: 0;
  background: linear-gradient(180deg, #e6e0d3 0%, #e9e3d8 58%, #ded8ca 100%);
}
.ux-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: end;
}
.ux-head .zone-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(44px, 7.6vw, 108px);
  line-height: 0.95;
}
.ux-head .zone-lede {
  padding-bottom: 10px;
}

.ux-will {
  position: relative;
  margin-top: 130px;
  padding: 130px 0;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
/* vertical bars: bound by something */
.ux-will::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 89px,
    rgba(239, 234, 224, 0.06) 89px 90px
  );
  pointer-events: none;
}
.ux-will .wrap {
  position: relative;
}
.ux-will .eyebrow {
  color: rgba(239, 234, 224, 0.55);
}
.ux-will h3 {
  max-width: 1000px;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(30px, 5.4vw, 72px);
  line-height: 1.12;
  color: var(--paper);
}
.ux-will p {
  max-width: 62ch;
  margin-top: 48px;
  margin-left: auto;
  font-size: 17px;
  color: rgba(239, 234, 224, 0.74);
}

.ux-suffer {
  padding-top: 150px;
  padding-bottom: 160px;
}
.ux-suffer-head {
  max-width: 700px;
}
.ux-suffer .cycle-wrap {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 100px);
  margin-top: 70px;
}
.ux-suffer .cycle-svg-holder {
  padding: 5%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(239, 234, 224, 0.95) 0%,
    rgba(122, 152, 127, 0.16) 68%,
    transparent 72%
  );
}
.ux-suffer .cycle-detail {
  min-height: 300px;
  padding: 28px 0 0;
  border-left: 0;
  border-top: 2px solid var(--ember);
}
.ux-suffer .cycle-detail h3 {
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1;
  margin-bottom: 22px;
}
.ux-suffer .cycle-detail p {
  font-size: 19px;
  max-width: 44ch;
}

/* =====================================================================
   04 LIVING — four sheets that stack over each other as you scroll.
   ===================================================================== */
.lv-head {
  max-width: 860px;
  margin-bottom: 100px;
}
.lv-head .zone-title {
  font-size: clamp(38px, 6.4vw, 88px);
}
.lv-stack {
  padding-bottom: 20px;
}
.lv-panel {
  --tint: #f4efe3;
  position: sticky;
  top: calc(92px + var(--i) * 26px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
  min-height: clamp(300px, 46vh, 420px);
  margin-bottom: 36px;
  padding: clamp(30px, 5vw, 64px);
  background: var(--tint);
  border-top: 2px solid var(--ochre);
  border-radius: 4px;
  box-shadow:
    0 -18px 40px rgba(34, 38, 31, 0.08),
    0 24px 50px rgba(34, 38, 31, 0.06);
}
.lv-panel:nth-child(2) {
  --tint: #ede2c8;
}
.lv-panel:nth-child(3) {
  --tint: #e6d6ae;
}
.lv-panel:nth-child(4) {
  --tint: #dcc891;
}
.lv-panel h3 {
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.02;
  color: var(--highlight);
}
.lv-panel h3::before {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  margin-bottom: 22px;
  background: var(--ochre);
}
.lv-panel p {
  font-size: clamp(18px, 1.7vw, 21px);
  color: var(--ink-soft);
  max-width: 52ch;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 900px) {
  .zone {
    padding: 104px 0;
  }
  .pr-top,
  .ux-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .pr-top {
    margin-bottom: 56px;
  }
  .pr-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 34px 6px;
  }
  .ex-head {
    margin-bottom: 90px;
  }
  .ex-spine {
    gap: 64px;
  }
  .ex-spine::before {
    left: 6px;
  }
  .ex-item,
  .ex-item:nth-child(even) {
    width: auto;
    margin-left: 0;
    padding-left: 40px;
  }
  .ex-item:nth-child(odd)::after,
  .ex-item:nth-child(even)::after {
    left: 0;
    right: auto;
  }
  .ex-soul {
    grid-template-columns: 1fr;
    margin-top: 110px;
    padding-top: 70px;
  }
  .ex-emblem {
    width: min(80%, 360px);
  }
  #understanding.zone {
    padding-bottom: 0;
  }
  .ux-will {
    margin-top: 90px;
    padding: 90px 0;
  }
  .ux-will p {
    margin-left: 0;
  }
  .ux-suffer {
    padding-top: 100px;
    padding-bottom: 104px;
  }
  .ux-suffer .cycle-wrap {
    grid-template-columns: 1fr;
  }
  .ux-suffer .cycle-detail {
    min-height: 0;
  }
  .lv-head {
    margin-bottom: 60px;
  }
  .lv-panel {
    grid-template-columns: 1fr;
    top: calc(78px + var(--i) * 14px);
    min-height: 0;
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ex-head::before,
  .ex-head::after,
  .ex-orbit {
    animation: none;
  }
  .pr-row,
  .pr-row::before,
  .pr-tag,
  .pr-tag::before {
    transition: none;
  }
}
