/* Unitive Mind homepage. Plan: _work/design-plan.md */

/* ---------- Hero: the pool ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; max-height: 1300px; background: var(--abyss); overflow: clip; isolation: isolate; display: flex; flex-direction: column; }
.hero__poster, .hero__poster img, .hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__poster img { object-fit: cover; }
.hero__gl { opacity: 0; transition: opacity 1.6s var(--ease); touch-action: pan-y; }
.hero.gl-live .hero__gl { opacity: 1; }
.hero.no-gl .hero__gl { display: none; }
.hero__scrim { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, rgba(18, 13, 28, .78) 0%, rgba(18, 13, 28, .5) 34%, rgba(18, 13, 28, 0) 62%),
  linear-gradient(0deg, rgba(18, 13, 28, .8) 0%, rgba(18, 13, 28, 0) 26%),
  linear-gradient(180deg, rgba(18, 13, 28, .6) 0%, rgba(18, 13, 28, 0) 18%); }
.hero__inner { position: relative; z-index: 2; flex: 1; display: flex; align-items: center; padding-top: var(--header-h); pointer-events: none; }
.hero__copy { width: min(100%, 860px); display: grid; gap: 28px; pointer-events: auto; }
.hero__h { color: #F6F1FA; text-wrap: balance; }
.hero__lede { color: #DCD3EA; margin: 0; max-width: 640px; }
.hero__btns .btn--ghost { color: #F1ECF6; border-color: rgba(241, 236, 246, .55); }
.hero__foot { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 26px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 6px 0; font-family: var(--sans); font-size: .95rem; letter-spacing: .05em; color: #CFC6DE; }
.hero__facts li { display: inline-flex; align-items: center; }
.hero__facts li + li::before { content: ""; width: 5px; height: 5px; margin: 0 16px; background: var(--gold); transform: rotate(45deg); }
.hero__cue { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; font-family: var(--sans); font-size: .95rem; letter-spacing: .08em; text-decoration: none; color: #F1ECF6; }
.hero__cue-line { position: relative; width: 1px; height: 46px; background: rgba(201, 154, 58, .3); overflow: hidden; }
.hero__cue-line::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--gold-hi); transform: translateY(-100%); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { to { transform: translateY(250%); } }
@media (max-width: 760px) {
  .hero { min-height: 600px; }
  .hero__scrim { background: linear-gradient(0deg, rgba(18, 13, 28, .92) 0%, rgba(18, 13, 28, .7) 46%, rgba(18, 13, 28, 0) 72%), linear-gradient(180deg, rgba(18, 13, 28, .55) 0%, rgba(18, 13, 28, 0) 20%); }
  .hero__inner { align-items: flex-end; padding-bottom: 18px; }
  .hero__copy { gap: 18px; }
  .hero__lede { font-size: 1.02rem; }
  .hero__btns { gap: 4px 18px; }
  .hero__btns .btn--ghost { border: 0; padding: 0; min-height: 46px; text-decoration: underline; text-underline-offset: .3em; text-decoration-color: var(--gold); }
  .hero__btns .btn--ghost::before { display: none; }
  .hero__facts li:nth-child(n+2) { display: none; }
  .hero__foot { padding-bottom: 14px; }
}

/* ---------- Two ways to begin ---------- */
.ways { padding-block: clamp(72px, 8vw, 128px); }
.ways__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(32px, 5vw, 80px); align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.ways__head .lede { margin: 0; color: var(--ink-soft); }
.ways__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2vw, 30px); }
.way { position: relative; display: block; height: min(66vh, 620px); min-height: 520px; border-radius: var(--r); overflow: clip; text-decoration: none; color: #F4EFF8; isolation: isolate; background: var(--abyss); transform-style: preserve-3d; }
.way__media { position: absolute; inset: 0; border-radius: 0; }
.way__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(18, 13, 28, .96) 0%, rgba(18, 13, 28, .82) 40%, rgba(18, 13, 28, .1) 78%); transition: opacity .6s var(--ease); }
.way::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%), rgba(224, 184, 101, .2), transparent 60%); opacity: 0; transition: opacity .5s var(--ease); }
.way:hover::after { opacity: 1; }
.way__body { position: absolute; inset: auto 0 0 0; z-index: 3; display: grid; gap: 12px; padding: clamp(24px, 3vw, 44px); }
.way__kind { font-family: var(--sans); font-weight: 500; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); order: 2; }
.way__name { font-family: var(--display); font-size: clamp(2rem, 3vw, 2.2rem); line-height: 1.1; order: 1; }
.way__price { font-family: var(--sans); font-size: 1rem; color: #D7CEE6; order: 3; }
.way__price strong { font-family: var(--display); font-weight: 400; font-size: 1.7rem; color: #FFF; margin-right: 8px; }
.way__line { color: #D7CEE6; order: 4; }
.way__facts { display: flex; flex-wrap: wrap; gap: 8px; order: 5; }
.way__facts span { padding: 6px 12px; border: 1px solid rgba(201, 154, 58, .45); border-radius: var(--r); font-family: var(--sans); font-size: .88rem; color: #EDE6F5; }
.way__go { display: inline-flex; align-items: center; gap: 14px; margin-top: 6px; font-family: var(--sans); font-weight: 500; color: var(--gold); order: 6; }
.way__go .i-arrow { width: 22px; height: 12px; transition: transform .45s var(--ease); }
.way:hover .way__go .i-arrow { transform: translateX(6px); }
.ways__help { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: clamp(26px, 3vw, 40px) 0 0; font-size: 1.1rem; }
@media (max-width: 900px) {
  .ways__head, .ways__grid { grid-template-columns: 1fr; }
  .way { height: auto; min-height: 560px; }
}

/* ---------- The question: the words surface as you read ---------- */
.question { position: relative; min-height: 92svh; display: flex; align-items: center; background: var(--abyss); overflow: clip; isolation: isolate; padding: clamp(110px, 12vw, 180px) 0; }
.question__bg { position: absolute; inset: 0; z-index: -2; }
.question__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.question::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18, 13, 28, .9) 0%, rgba(18, 13, 28, .7) 60%, rgba(18, 13, 28, .5) 100%); }
.question__inner { position: relative; z-index: 1; display: grid; gap: clamp(32px, 4vw, 56px); }
.question__text { font-size: clamp(2rem, 3.6vw, 3.8rem); line-height: 1.14; color: #F6F1FA; }
.question__text .w { opacity: var(--o, 1); transition: color .3s; }
.question__foot { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 28px; align-items: center; }
.question__foot p { margin: 0; font-size: 1.2rem; color: #D8D0E6; }
@media (max-width: 760px) { .question__foot { grid-template-columns: 1fr; gap: 18px; } .question__rule { width: 80px; } }

/* ---------- The waterline ---------- */
.wl { position: relative; background: var(--mist); padding: clamp(72px, 8vw, 120px) 0; }
.wl__pin { display: grid; gap: clamp(28px, 3.5vw, 52px); }
.wl__head { display: grid; gap: 14px; }
.wl__hint { margin: 0; font-family: var(--sans); color: var(--ink-soft); }
.wl__band { position: relative; }
.wl__water, .wl__line, .wl__cwater, .wl__cline { display: none; }
.wl__cols { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.wl__col { position: relative; display: grid; grid-template-rows: auto auto; border-left: 1px solid var(--line-light); }
.wl__col:last-child { border-right: 1px solid var(--line-light); }
.wl__a, .wl__b { position: relative; z-index: 2; display: grid; align-content: start; gap: 14px; padding: clamp(26px, 2.6vw, 40px); }
.wl__a p, .wl__b p { margin: 0; }
.wl__a p { color: var(--ink-soft); }
.wl__b { background: var(--abyss); }
.wl--live .wl__water, .wl--live .wl__cwater { visibility: hidden; }
.wl__b h3 { color: var(--gold-hi); }
.wl__lab { display: none; }
/* Live (motion on): the two layers share one cell and the water decides which you see */
.wl--live .wl__col { grid-template-rows: auto; }
.wl--live .wl__a, .wl--live .wl__b { grid-area: 1 / 1; }
.wl--live .wl__b { background: radial-gradient(140% 120% at 30% 100%, #2E2048 0%, var(--abyss) 70%); }
.wl--live .wl__water, .wl--live .wl__cwater { display: block; position: absolute; inset: 0; z-index: 1; background: radial-gradient(120% 90% at 30% 100%, #2E2048 0%, var(--abyss) 70%); pointer-events: none; }
.wl--live .wl__line, .wl--live .wl__cline { display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 3; overflow: visible; pointer-events: none; }
.wl__line path, .wl__cline path { fill: none; stroke: var(--gold); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.wl--live .wl__lab { display: block; position: absolute; left: clamp(26px, 2.6vw, 40px); top: var(--wl-y, 100%); z-index: 4; font-family: var(--sans); font-weight: 500; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; pointer-events: none; white-space: nowrap; }
.wl__lab--up { color: var(--gold-deep); transform: translateY(calc(-100% - 10px)); }
.wl__lab--down { color: var(--gold-hi); background: var(--abyss); padding: 3px 8px; margin-left: -8px; transform: translateY(10px); }
.wl--band .wl__cwater, .wl--band .wl__cline { display: none !important; }
.wl--band .wl__col:not(:first-child) .wl__lab { display: none; }
.wl--band .wl__col { min-height: clamp(300px, calc(100svh - 430px), 520px); }
.wl--band .wl__a, .wl--band .wl__b { align-content: center; gap: 18px; }
.wl--band .wl__a p, .wl--band .wl__b p { font-size: 1.12rem; }
.wl--cols .wl__water, .wl--cols .wl__line { display: none !important; }
@media (max-width: 899px) {
  .wl__head { grid-template-columns: 1fr; }
  .wl__cols { grid-template-columns: 1fr; gap: 18px; }
  .wl__col, .wl__col:last-child { border: 1px solid var(--line-light); border-radius: var(--r); overflow: clip; }
  .wl--live .wl__a, .wl--live .wl__b { padding-top: 44px; padding-bottom: 44px; }
}

/* ---------- The framework: the mark assembles ---------- */
.fw { position: relative; background: var(--abyss); padding: clamp(80px, 9vw, 140px) 0 clamp(60px, 7vw, 110px); overflow: clip; isolation: isolate; }
.fw__head { position: relative; z-index: 1; display: grid; gap: 20px; margin-bottom: clamp(30px, 4vw, 60px); }
.fw__premise { margin: 0; font-family: var(--display); font-size: clamp(1.3rem, 1.8vw, 1.8rem); color: var(--gold); }
.fw__head .lede { margin: 0; color: #D8D0E6; }
.fw__stage { position: relative; z-index: 1; display: grid; row-gap: 18px !important; grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(0, 1fr); grid-template-areas: "left mark right" "centre centre centre" "obs obs obs"; gap: 26px clamp(24px, 4vw, 64px); align-items: center; }
.fw__mark { grid-area: mark; position: relative; width: min(30vh, 320px, 70vw); aspect-ratio: 1; }
.fw__piece { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
.fw__piece--left { clip-path: polygon(0 0, 37.5% 0, 37.5% 6%, 40.5% 25%, 44.5% 41%, 45.2% 51%, 44.5% 61%, 40.5% 76%, 37.5% 94%, 37.5% 100%, 0 100%); }
.fw__piece--right { clip-path: polygon(100% 0, 62.5% 0, 62.5% 6%, 59.5% 25%, 55.5% 41%, 54.8% 51%, 55.5% 61%, 59.5% 76%, 62.5% 94%, 62.5% 100%, 100% 100%); }
.fw__piece--centre { clip-path: polygon(37.5% 0, 62.5% 0, 62.5% 6%, 59.5% 25%, 55.5% 41%, 54.8% 51%, 55.5% 61%, 59.5% 76%, 62.5% 94%, 62.5% 100%, 37.5% 100%, 37.5% 94%, 40.5% 76%, 44.5% 61%, 45.2% 51%, 44.5% 41%, 40.5% 25%, 37.5% 6%); }
.fw__halo { position: absolute; inset: -30%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(201, 154, 58, .34) 0%, rgba(201, 154, 58, .08) 40%, transparent 68%); opacity: .7; }
.fw__disc { display: grid; gap: 10px; }
.fw__disc p { margin: 0; color: #D2C9E0; }
.fw__disc h3 { color: #F6F1FA; }
.fw__role { font-family: var(--sans); font-size: .95rem; letter-spacing: .04em; color: var(--gold); }
.fw__disc--left { grid-area: left; text-align: right; justify-items: end; }
.fw__disc--right { grid-area: right; }
.fw__disc--centre { grid-area: centre; justify-self: center; text-align: center; justify-items: center; width: min(100%, 1060px); }
.fw__observer { grid-area: obs; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr) auto; gap: 16px clamp(24px, 4vw, 56px); align-items: center; padding-top: 20px; border-top: 1px solid var(--line-dark); }
.fw__observer h3 { color: var(--gold-hi); }
.fw__observer p { margin: 0; color: #D8D0E6; }
@media (max-width: 899px) {
  .fw__stage { grid-template-columns: 1fr; grid-template-areas: "mark" "left" "centre" "right" "obs"; justify-items: start; }
  .fw__mark { justify-self: center; width: min(62vw, 300px); margin-bottom: 10px; }
  .fw__disc--left, .fw__disc--centre { text-align: left; justify-items: start; justify-self: start; }
  .fw__observer { grid-template-columns: 1fr; }
}

/* ---------- James ---------- */
.james { padding-block: clamp(56px, 6vw, 96px); }
.james__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.james__media { display: grid; gap: 30px; justify-items: start; }
.james__offset { width: min(100%, calc(min(66vh, 620px) * .6875)); }
.james__frame { aspect-ratio: 1100 / 1600; width: 100%; }
.james__cap { margin: 0; font-family: var(--sans); font-size: .95rem; color: var(--ink-soft); }
.james__copy { display: grid; gap: 24px; align-content: center; }
.james__copy p { margin: 0 0 .8em; }
.james__creds { display: grid; border-top: 1px solid var(--line-light); }
.james__creds li { position: relative; padding: 13px 0 13px 30px; border-bottom: 1px solid var(--line-light); font-size: 1.05rem; }
.james__creds li::before { content: ""; position: absolute; left: 2px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border: 1px solid var(--gold-deep); transform: rotate(45deg); }
.james__six { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 18px; align-items: center; }
.james__six-n { font-family: var(--display); font-size: 3.6rem; line-height: 1; color: var(--gold-deep); }
.james__six-marks { display: grid; grid-template-columns: repeat(6, 10px); gap: 6px; }
.james__six-marks i { display: block; width: 10px; height: 26px; background: var(--gold); border-radius: 1px; transform-origin: 50% 100%; }
.james__six-t { color: var(--ink-soft); }
@media (max-width: 899px) {
  .james__grid { grid-template-columns: 1fr; }
  .james__offset { width: min(82%, 420px); }
  .james__six { grid-template-columns: auto auto; }
  .james__six-t { grid-column: 1 / -1; }
}

/* ---------- What changes ---------- */
.changes { overflow: clip; isolation: isolate; padding-block: clamp(72px, 8vw, 128px); }
.changes__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.changes__frame { height: min(70vh, 640px); }
.changes__frame img { transform: scale(1.12); }
.changes__copy { display: grid; gap: clamp(28px, 3vw, 44px); }
.changes__lists { display: grid; grid-template-columns: 1fr 1fr; gap: 28px clamp(24px, 3vw, 48px); }
.changes__h { font-family: var(--sans); font-weight: 500; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.changes__list li { position: relative; padding: 13px 0; color: #EAE3F2; font-size: 1.06rem; }
.changes__list li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-dark); transform-origin: 0 50%; }
@media (max-width: 899px) {
  .changes__grid { grid-template-columns: 1fr; }
  .changes__frame { height: 46vh; }
}
@media (max-width: 600px) { .changes__lists { grid-template-columns: 1fr; } }

/* ---------- The client's words ---------- */
.voice { position: relative; min-height: 88svh; display: flex; align-items: center; overflow: clip; isolation: isolate; background: var(--abyss); padding: clamp(100px, 11vw, 170px) 0; }
.voice__bg { position: absolute; inset: 0; z-index: -2; }
.voice__bg img { width: 100%; height: 100%; object-fit: cover; }
.voice::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18, 13, 28, .88) 0%, rgba(18, 13, 28, .62) 55%, rgba(18, 13, 28, .3) 100%), linear-gradient(0deg, rgba(18, 13, 28, .6), transparent 40%); }
.voice__inner { position: relative; z-index: 1; }
.voice__q { margin: 0; display: grid; gap: 34px; }
.voice__q p { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.7rem, 2.9vw, 3rem); line-height: 1.3; color: #F6F1FA; }
.voice__by { display: grid; grid-template-columns: 90px auto; gap: 4px 24px; align-items: center; font-family: var(--sans); color: #D8D0E6; }
.voice__rule { grid-row: 1 / span 2; }
.voice__by span:last-child { color: var(--gold); }

/* ---------- The engagement ---------- */
.engage { padding-block: clamp(72px, 8vw, 128px); }
.engage__head { margin-bottom: clamp(32px, 4vw, 56px); }
.engage__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 5vw, 90px); align-items: start; }
.engage__media { position: relative; }
.engage__frame { height: min(62vh, 560px); }
.engage__arc { position: relative; display: block; margin-top: 16px; height: 60px; }
.engage__arc svg { width: 100%; height: 44px; overflow: visible; }
.engage__arc path { fill: none; stroke: var(--gold-deep); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.engage__arc .engage__arc-g { stroke: var(--gold-hi); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 6 94; animation: travel 6s linear infinite; }
@keyframes travel { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.engage__arc-l, .engage__arc-r { position: absolute; bottom: 0; font-family: var(--sans); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.engage__arc-l { left: 0; } .engage__arc-r { right: 0; }
.engage__items { display: grid; gap: 0; border-top: 1px solid var(--line-light); }
.engage__item { padding: clamp(20px, 2.2vw, 30px) 0; border-bottom: 1px solid var(--line-light); display: grid; gap: 10px; }
.engage__item p { margin: 0; color: var(--ink-soft); }
.reflect { position: relative; display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 18px clamp(20px, 3vw, 48px); align-items: center; margin-top: clamp(40px, 5vw, 70px); padding: clamp(22px, 2.6vw, 36px) clamp(22px, 3vw, 44px); background: var(--aubergine); color: #F1ECF6; border-radius: var(--r); text-decoration: none; overflow: clip; isolation: isolate; }
.reflect::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(380px circle at var(--mx, 80%) var(--my, 50%), rgba(224, 184, 101, .18), transparent 60%); }
.reflect__gauge { position: relative; justify-self: center; width: 22px; height: 74px; }
.reflect__gauge::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--dusk-text), var(--gold)); }
.reflect__dot { position: absolute; left: 50%; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 1px solid var(--gold-hi); background: var(--abyss); transform: rotate(45deg); animation: sink 4.6s linear infinite; }
@keyframes sink { 0% { transform: translateY(0) rotate(45deg); } 50% { transform: translateY(74px) rotate(45deg); } 100% { transform: translateY(0) rotate(45deg); } }
.reflect__copy strong { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(1.4rem, 1.8vw, 1.9rem); margin-bottom: 4px; }
.reflect__copy span { color: #D8D0E6; }
.reflect__go { display: inline-flex; align-items: center; gap: 14px; font-family: var(--sans); font-weight: 500; color: var(--gold); white-space: nowrap; }
.reflect__go .i-arrow { width: 22px; height: 12px; transition: transform .45s var(--ease); }
.reflect:hover .reflect__go .i-arrow { transform: translateX(6px); }
@media (max-width: 899px) {
  .engage__grid { grid-template-columns: 1fr; }
  .engage__frame { height: 44vh; }
  .reflect { grid-template-columns: 40px minmax(0, 1fr); }
  .reflect__go { grid-column: 2; }
}

/* ---------- Closing ---------- */
.close { position: relative; min-height: 86svh; display: flex; align-items: center; overflow: clip; isolation: isolate; background: var(--abyss); padding: clamp(110px, 12vw, 180px) 0; text-align: center; }
.close__bg { position: absolute; inset: 0; z-index: -3; }
.close__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.close__mark { position: absolute; left: 50%; top: 50%; z-index: -2; width: min(64vh, 560px); margin: calc(min(64vh, 560px) / -2) 0 0 calc(min(64vh, 560px) / -2); opacity: .26; filter: blur(1.5px); }
.close__mark img { width: 100%; }
.close::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 70% at 50% 50%, rgba(18, 13, 28, .35), rgba(18, 13, 28, .85)); }
.close__inner { position: relative; display: grid; justify-items: center; gap: 34px; }
.close__h { font-size: clamp(2.1rem, 3.9vw, 3.9rem); line-height: 1.12; color: #F6F1FA; }
.close__meta { margin: 0; }
