/* Human Flourishing Map, redesigned 2026-11-24 to match worldonpurpose.com:
   - cream page, Georgia headings, Palatino body (site variables)
   - the label line and button glow use the site's own gradients (.label_line, .button_gradient-ball)
   - the map figure is the home page methodology figure (three rings, spiral, Mind/Body/Heart/Soul corners)
   - photos come from the site's Webflow asset library, 18px corners like .approach_img-wrap */
:root {
  --bg: #faf5ea;
  --card: #fffdf8;
  --ink: #000;
  --ink-2: #171717;
  --muted: #6b6b6b;
  --line: #dddbd1;
  --track: #e7e2d4;
  --green: #102906;
  --ring: rgba(27, 27, 24, 0.14);
  --orange: #ff4d00;
  --brand-line: linear-gradient(90deg, #ff4d00, #e7eb4c 31%, #0b90cb 68%, #0c59c1);
  /* Integral altitude colors, red to violet: the spiral and the progress bar (Oren, 2026-11-24). */
  --altitude: linear-gradient(90deg, hsl(0 66% 50%), hsl(30 66% 48%), hsl(55 66% 42%), hsl(120 50% 40%), hsl(175 60% 40%), hsl(215 66% 50%), hsl(255 60% 52%), hsl(285 60% 50%));
  --ball-1: linear-gradient(to right, #fd3846, #ffd000);
  --ball-2: linear-gradient(78deg, #a600ff, #2bff00);
  --radius-img: 18px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --heading: Georgia, 'Times New Roman', Times, serif;
  --text: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-size-adjust: 100%; }
.embed body, .embed html { background: transparent; }
/* Embedded: the parent page scrolls; the iframe is sized to fit, so it never shows its own scrollbar. */
.embed, .embed body { overflow: hidden; }
.embed .top { display: none; }
.top { padding: 24px 20px 8px; display: flex; justify-content: center; }
.top a { display: inline-block; line-height: 0; }
.top img { width: 170px; height: auto; }
img { display: block; max-width: 100%; }
p { margin: 0 0 16px; }
h1 { font-family: var(--heading); font-weight: 400; font-size: 3rem; letter-spacing: -0.02em; line-height: 1.08; margin: 0 0 18px; }
h1:focus, .statement:focus { outline: none; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.lead { font-size: 1.2rem; line-height: 1.55; }
.meta { color: var(--muted); font-size: 0.92rem; margin-top: 16px; }
.wrap { max-width: 620px; margin: 0 auto; padding: 24px 20px 72px; text-align: center; }

/* Site label: gradient line + small caps heading (METHODOLOGY, OFFERINGS on the home page). */
.label { display: flex; align-items: center; gap: 14px; font-family: var(--heading); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin: 0 0 28px; }
.label::before { content: ''; width: 56px; height: 2px; background: var(--brand-line); flex: none; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 999px; background: var(--ink-2); color: var(--bg);
  font: 400 1.05rem var(--text); padding: 17px 34px; cursor: pointer; text-decoration: none; min-height: 52px;
  transition: transform 0.35s var(--ease), background-color 0.35s ease;
}
.btn > .btn-text { position: relative; z-index: 2; }
/* The site's button glow: two blurred gradient balls that drift behind the pill. */
.btn .glow { position: absolute; inset: 0; z-index: 1; border-radius: inherit; overflow: hidden; pointer-events: none; opacity: 0.38; transition: opacity 0.45s ease; }
.btn { box-shadow: 0 10px 28px -10px rgba(255, 77, 0, 0.45); }
.btn:hover { box-shadow: 0 14px 34px -10px rgba(255, 77, 0, 0.6); }
.btn .glow i { position: absolute; width: 50%; height: 90%; top: 40%; border-radius: 50%; filter: blur(14px); }
.btn .glow i:first-child { left: 2%; background: var(--ball-1); animation: drift-a 6s ease-in-out infinite alternate; }
.btn .glow i:last-child { right: 2%; background: var(--ball-2); opacity: 0.7; animation: drift-b 7s ease-in-out infinite alternate; }
.btn:hover .glow, .btn:focus-visible .glow { opacity: 0.75; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; box-shadow: none; }
.btn:disabled .glow { opacity: 0; }
.btn .arrow { position: relative; z-index: 2; transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn.wide { width: 100%; }
@keyframes drift-a { from { transform: translate(-6%, 8%) scale(1); } to { transform: translate(18%, -12%) scale(1.15); } }
@keyframes drift-b { from { transform: translate(6%, -8%) scale(1.1); } to { transform: translate(-20%, 10%) scale(0.95); } }
.link { background: none; border: 0; padding: 10px 0; color: var(--ink); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }
.nav { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }

/* ---------- The map figure (home page methodology figure) ---------- */
.map { position: relative; width: 100%; aspect-ratio: 1 / 1; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map .ring { fill: none; stroke: var(--ring); stroke-width: 1; }
.map .spiral-color path { fill: none; stroke-width: 2.4; stroke-linecap: round; }
.map .spiral { fill: none; stroke: #fff; stroke-width: 8; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); transition: stroke-dashoffset 0.9s var(--ease); }
.map .spiral-shadow { fill: none; stroke: var(--ring); stroke-width: 1; stroke-dasharray: 2 5; opacity: 0.6; }
.map .dot { fill: var(--orange); transition: opacity 0.4s ease; }
.map .dim { position: absolute; transform: translate(-50%, -50%); font-family: var(--heading); font-size: 1rem; color: var(--ink); padding: 4px 10px; border-radius: 999px; transition: color 0.35s ease, background-color 0.35s ease, opacity 0.35s ease; white-space: nowrap; }
.map .dim.mind { left: 12.88%; top: 12.88%; }
.map .dim.body { left: 87.12%; top: 12.88%; }
.map .dim.heart { left: 12.88%; top: 87.12%; }
.map .dim.soul { left: 87.12%; top: 87.12%; }
.map.tracking .dim { opacity: 0.45; }
.map.tracking .dim.done { opacity: 0.85; }
.map.tracking .dim.on { opacity: 1; background: var(--ink-2); color: var(--bg); }
.map .center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; font-family: var(--heading); line-height: 1; }
.map .center b { display: block; font-weight: 400; font-size: 2.4rem; letter-spacing: -0.02em; }
.map .center span { display: block; margin-top: 6px; font-family: var(--text); font-size: 0.85rem; color: var(--muted); }
/* Landing: the spiral draws itself once, like the home page. */
.map.draw .spiral { animation: draw 2.8s var(--ease) 0.5s both; }
.map.draw .ring { animation: ring-in 1.2s var(--ease) both; transform-origin: 200px 200px; }
.map.draw .ring:nth-of-type(2) { animation-delay: 0.12s; }
.map.draw .ring:nth-of-type(3) { animation-delay: 0.24s; }
.map.draw .dim { animation: fade-up 0.8s var(--ease) both; }
.map.draw .dim.mind { animation-delay: 1.0s; }
.map.draw .dim.body { animation-delay: 1.4s; }
.map.draw .dim.heart { animation-delay: 1.8s; }
.map.draw .dim.soul { animation-delay: 2.2s; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ring-in { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }

/* ---------- Motion helpers ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-up-c { from { opacity: 0; transform: translate(-50%, calc(-50% + 14px)); } to { opacity: 1; transform: translate(-50%, -50%); } }
.map.draw .dim { animation-name: fade-up-c; }
@keyframes word-up { from { opacity: 0; transform: translateY(0.6em); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes scale-in { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: scale(1); } }
@keyframes float { from { transform: translateY(-6px) rotate(var(--r, 0deg)); } to { transform: translateY(8px) rotate(var(--r, 0deg)); } }
.split .w { display: inline-block; animation: word-up 0.9s var(--ease) both; animation-delay: calc(0.08s * var(--i) + 0.1s); }
.rise { animation: fade-up 0.9s var(--ease) both; animation-delay: var(--d, 0.5s); }
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
.photo { position: relative; overflow: hidden; border-radius: var(--radius-img); background: var(--track); }
.photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.6s var(--ease); }
.in .photo img, .photo.in img { transform: scale(1); }

/* ---------- Landing ---------- */
.landing { max-width: 1180px; margin: 0 auto; padding: 8px 24px 40px; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; min-height: 560px; }
.hero h1 { font-size: clamp(2.8rem, 5.4vw, 4.5rem); line-height: 1.02; letter-spacing: -0.03em; margin-bottom: 26px; }
.hero .lead { max-width: 34rem; font-size: 1.25rem; color: #1b1b18; margin-bottom: 34px; }
.hero .meta { margin-top: 14px; padding-left: 6px; }
.hero-art { position: relative; padding: 9%; }
.hero-art .float { position: absolute; width: 23%; aspect-ratio: 3 / 4; border-radius: var(--radius-img); overflow: hidden; box-shadow: 0 18px 40px rgba(27, 27, 24, 0.16); animation: pop 1s var(--ease) both, float 5s ease-in-out infinite alternate; z-index: 2; }
.hero-art .float img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .float:nth-child(1) { --r: -5deg; left: 36%; top: -3%; width: 21%; aspect-ratio: 4 / 3; animation-delay: 0.9s, 0s; }
.hero-art .float:nth-child(2) { --r: 4deg; right: -2%; top: 36%; animation-delay: 1.2s, 1.1s; }
.hero-art .float:nth-child(3) { --r: 3deg; left: 40%; bottom: -4%; width: 19%; animation-delay: 1.5s, 2.2s; }
.hero-art .float:nth-child(4) { --r: -4deg; left: -2%; top: 34%; animation-delay: 1.8s, 0.6s; }
@keyframes pop { from { opacity: 0; scale: 0.6; } to { opacity: 1; scale: 1; } }

/* "What you receive" and "How it works": two clean numbered lists side by side (Oren, 2026-11-24: no photo cards here). */
.info { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; padding: 120px 0 0; }
.how-line { font-size: 1.1rem; line-height: 1.5; color: #1b1b18; margin: 0 0 30px; }
.rows { list-style: none; padding: 0; margin: 0; }
.rows li { display: flex; align-items: baseline; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding-left 0.4s var(--ease); }
.rows li:hover { padding-left: 8px; }
.rows li:first-child { padding-top: 4px; }
.row-num { flex: none; min-width: 3.6rem; font-family: var(--heading); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.row-text { flex: 1; font-family: var(--heading); font-size: 1.3rem; line-height: 1.3; letter-spacing: -0.01em; }
.row-sub { display: block; margin-top: 6px; font-family: var(--text); font-size: 0.95rem; letter-spacing: 0; color: var(--muted); }
.row-count { flex: none; font-size: 0.92rem; color: var(--muted); }
.how-last { margin: 22px 0 0; color: var(--muted); font-size: 1.02rem; font-style: italic; }
.final { text-align: center; padding: 100px 0 30px; }
.final .map { width: min(260px, 70%); margin: 0 auto 26px; }
.final h2 { font-family: var(--heading); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: -0.02em; line-height: 1.08; margin: 0 0 28px; }

/* ---------- Question flow ---------- */
.flow { max-width: 1120px; margin: 0 auto; padding: 8px 24px 56px; display: grid; grid-template-columns: 340px 1fr; gap: 72px; align-items: start; }
.flow-side { padding-top: 12px; }
.flow-side .map { max-width: 320px; }
.steps { list-style: none; padding: 0; margin: 30px 0 0; border-top: 1px solid var(--line); }
.steps li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; transition: color 0.3s ease; }
.steps .tick { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; font-size: 0.7rem; transition: all 0.35s ease; }
.steps .done { color: var(--ink); }
.steps .done .tick { background: var(--green); border-color: var(--green); color: #fff; }
.steps .now { color: var(--ink); }
.steps .now .tick { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 77, 0, 0.14); }
.steps .now .tick::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.steps .count { margin-left: auto; font-size: 0.85rem; }
.flow-main { max-width: 620px; text-align: left; padding-top: 6px; }
.q-screen { text-align: left; }
.counter { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.9rem; color: var(--muted); }
.progress { height: 4px; background: var(--track); border-radius: 999px; overflow: hidden; margin: 10px 0 30px; }
.progress > span { display: block; height: 100%; background: var(--altitude); background-size: 620px 100%; border-radius: 999px; transition: width 0.6s var(--ease); }
.part-name { display: flex; align-items: center; gap: 12px; font-family: var(--heading); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin: 0 0 18px; }
.part-name::before { content: ''; width: 36px; height: 2px; background: var(--brand-line); flex: none; }
.dims { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 30px; font-family: var(--heading); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.dims span { padding: 7px 0; text-align: center; border-radius: 999px; border: 1px solid transparent; opacity: 0.55; transition: all 0.35s ease; }
.dims .past { opacity: 0.9; color: var(--ink); }
.dims .now { opacity: 1; color: var(--ink); border-color: var(--ink); }
.statement { font-family: var(--heading); font-size: 2.1rem; letter-spacing: -0.02em; line-height: 1.22; margin: 0 0 34px; min-height: 3.66em; }
.options { display: grid; gap: 10px; }
.opt {
  position: relative; display: flex; align-items: center; gap: 14px; text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 16px;
  padding: 15px 20px; font: 400 1.08rem var(--text); color: var(--ink); cursor: pointer; min-height: 56px;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease), box-shadow 0.25s ease;
}
.opt .key { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); transition: all 0.25s ease; }
.opt:hover { border-color: var(--ink); transform: translateX(4px); box-shadow: 0 8px 24px rgba(27, 27, 24, 0.06); }
.opt:hover .key { border-color: var(--ink); color: var(--ink); }
.opt[aria-checked='true'] { border-color: var(--ink-2); background: var(--ink-2); color: var(--bg); }
.opt[aria-checked='true'] .key { background: var(--brand-line); border-color: transparent; color: #000; }
.q-anim > * { animation: fade-up 0.6s var(--ease) both; }
.q-anim > *:nth-child(1) { animation-delay: 0s; }
.q-anim .statement { animation-delay: 0.05s; }
.q-anim .options .opt { animation: fade-up 0.5s var(--ease) both; }
.q-anim .options .opt:nth-child(1) { animation-delay: 0.12s; }
.q-anim .options .opt:nth-child(2) { animation-delay: 0.17s; }
.q-anim .options .opt:nth-child(3) { animation-delay: 0.22s; }
.q-anim .options .opt:nth-child(4) { animation-delay: 0.27s; }
.q-anim .options .opt:nth-child(5) { animation-delay: 0.32s; }

/* Focus areas */
.dream-q { font-size: 2rem; min-height: 0; margin-bottom: 12px; }
.focus-help { margin-bottom: 26px; }
.focus-count { color: var(--muted); font-size: 0.95rem; margin-left: 6px; white-space: nowrap; }
.focus-group { margin: 0 0 20px; }
.focus-group-name { font-family: var(--heading); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.focus-groups .options { display: flex; flex-wrap: wrap; gap: 8px; }
.focus-opt { border-radius: 999px; min-height: 46px; padding: 10px 20px; font-size: 1rem; }
.focus-opt:hover { transform: translateY(-2px); }
.focus-opt[aria-disabled='true'] { opacity: 0.4; cursor: default; }
.focus-opt[aria-disabled='true']:hover { border-color: var(--line); transform: none; box-shadow: none; }
.focus-other { margin: 12px 0 0; }
.focus-other[hidden] { display: none; }
.flow .btn.wide { margin-top: 10px; }

/* Fields */
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 0.92rem; margin-bottom: 6px; color: var(--muted); }
.field input, .field textarea { width: 100%; text-align: left; padding: 15px 20px; border: 1px solid var(--line); border-radius: 16px; font: 1.05rem/1.55 var(--text); background: var(--card); color: var(--ink); min-height: 54px; transition: border-color 0.25s ease, box-shadow 0.25s ease; }
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 77, 0, 0.1); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error { color: #9b1c1c; font-size: 0.95rem; }
.fine { color: var(--muted); font-size: 0.85rem; margin-top: 14px; }

/* Done */
.done-wrap { max-width: 1080px; margin: 0 auto; padding: 8px 24px 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.done-art { position: relative; }
.done-art .photo { aspect-ratio: 4 / 5; }
.done-art .map { position: absolute; width: 58%; right: -8%; bottom: -8%; background: rgba(250, 245, 234, 0.92); border-radius: 50%; padding: 4%; box-shadow: 0 20px 50px rgba(27, 27, 24, 0.18); backdrop-filter: blur(6px); }
.done-art .map .dim { display: none; }
.done-copy h1 { font-size: clamp(2.6rem, 4.6vw, 3.8rem); letter-spacing: -0.03em; }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 28px; min-height: 0; text-align: left; }
  .hero-art { max-width: 520px; width: 100%; margin: 0 auto; }
  .info { grid-template-columns: 1fr; gap: 64px; padding-top: 80px; }
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow-side { display: grid; grid-template-columns: 92px 1fr; gap: 18px; align-items: center; padding: 0 0 18px; }
  .flow-side .map { width: 92px; }
  .flow-side .map .dim, .flow-side .map .center { display: none; }
  .flow-side .steps { margin: 0; border: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
  .flow-side .steps li { border: 0; padding: 0; font-size: 0.85rem; gap: 6px; }
  .flow-side .steps .count { display: none; }
  .flow-side .steps .tick { width: 16px; height: 16px; font-size: 0.55rem; }
  .flow-side .steps .now .tick::after { width: 6px; height: 6px; }
  .done-wrap { grid-template-columns: 1fr; gap: 40px; }
  .done-art { max-width: 420px; width: 88%; }
}
@media (max-width: 520px) {
  html, body { font-size: 16px; }
  .landing, .flow, .done-wrap { padding-left: 16px; padding-right: 16px; }
  .hero h1 { font-size: 2.7rem; }
  .hero .btn { width: 100%; }
  .row-text { font-size: 1.12rem; }
  .rows li { gap: 14px; padding: 18px 0; }
  .rows li:first-child { padding-top: 4px; }
  .row-num { min-width: 2.2rem; }
  .rows .row-num { white-space: nowrap; }
  .btn { font-size: 1rem; padding: 16px 20px; white-space: nowrap; }
  .btn .arrow { display: none; }
  .hero .meta { text-align: center; padding: 0; }
  .map .dim { font-size: 0.85rem; padding: 3px 8px; }
  .statement { font-size: 1.6rem; min-height: 4.5em; }
  .dream-q { font-size: 1.6rem; }
  .opt:hover { transform: none; }
  .final .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .photo img { transform: none; }
}
