/* Approach page: principles, the risk questionnaire, the portfolio explorer */

/* ---------- principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.pr { padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); display: grid; gap: 12px; align-content: start; transition: border-color .4s, background-color .4s; }
.pr:hover { border-color: var(--line-2); }
.pr__head { display: grid; grid-template-columns: auto minmax(0, 1fr) 28px; gap: 12px; align-items: baseline; text-align: left; }
.pr__n { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: .08em; }
.pr__head b { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2vw, 30px); line-height: 1.1; letter-spacing: -.02em; }
.pr__head i { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); align-self: center; transition: background-color .3s, transform .5s var(--ease); }
.pr__head i::before, .pr__head i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1px; background: currentColor; transform: translate(-50%, -50%); }
.pr__head i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .5s var(--ease); }
.pr__head[aria-expanded="true"] i { background: var(--fg); color: var(--bg); }
.pr__head[aria-expanded="true"] i::after { transform: translate(-50%, -50%) rotate(0); }
.pr > p { color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.pr__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.pr__more > p { overflow: hidden; font-size: 14.5px; line-height: 1.6; color: var(--fg); }
.pr__more > p span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 4px 0 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.pr.is-open .pr__more { grid-template-rows: 1fr; }
.pr.is-open { background: var(--card-2); border-color: var(--line-2); }
@media (max-width: 1000px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .principles { grid-template-columns: 1fr; } }

/* ---------- questionnaire ---------- */
.quiz { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.quiz__qs { display: grid; gap: 14px; }
.qz { padding: clamp(18px, 2.2vw, 28px); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); transition: border-color .4s; }
.qz.is-done { border-color: var(--line-2); }
.qz__top { display: flex; gap: 14px; align-items: baseline; margin-bottom: 14px; }
.qz__n { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.qz__q { font-family: var(--serif); font-size: clamp(20px, 1.7vw, 25px); line-height: 1.25; letter-spacing: -.015em; }
.qz__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.qz__opts .opt { padding: 12px 14px; }
.qz__opts .opt b { font-size: 14.5px; display: flex; align-items: center; gap: 10px; }
.qz__opts .opt b::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line-2); flex-shrink: 0; transition: background-color .3s, border-color .3s, box-shadow .3s; }
.qz__opts .opt[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.qz__opts .opt[aria-pressed="true"] b::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.quiz__out { position: sticky; top: 96px; padding: clamp(20px, 2.4vw, 30px); display: grid; gap: 16px; }
.quiz__donut { position: relative; width: min(100%, 250px); margin: 4px auto 0; aspect-ratio: 1; }
.quiz__donut svg { width: 100%; height: 100%; overflow: visible; }
.quiz__donut path { transition: d .7s var(--ease); }
.quiz__mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.quiz__mid b { font-family: var(--serif); font-weight: 300; font-size: 46px; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.quiz__mid span { font-size: 12px; color: var(--muted); margin-top: 4px; }
.quiz__name { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 2.6vw, 40px); line-height: 1; letter-spacing: -.03em; text-align: center; }
.quiz__name em { color: var(--accent); }
.quiz__say { font-size: 14.5px; color: var(--muted); text-align: center; line-height: 1.55; max-width: 40ch; margin: -4px auto 0; }
.quiz__legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 13px; }
.quiz__legend li { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.quiz__legend li i { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.quiz__legend li b { margin-left: auto; font-family: var(--mono); font-weight: 500; color: var(--fg); }
.quiz__range { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.qrange { position: relative; height: 10px; border-radius: 5px; background: var(--line); }
.qrange__zero { position: absolute; top: -5px; bottom: -5px; width: 1px; background: var(--fg); left: var(--z, 50%); }
.qrange__bar { position: absolute; top: 0; bottom: 0; border-radius: 5px; left: var(--a, 30%); width: var(--w, 40%); background: linear-gradient(90deg, var(--down), var(--line-2) var(--zp, 50%), var(--up)); transition: left .6s var(--ease), width .6s var(--ease); }
.qrange__labels { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.qrange__labels b { font-family: var(--mono); font-weight: 500; }
.quiz__acts { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
@media (max-width: 1000px) { .quiz { grid-template-columns: 1fr; } .quiz__out { position: relative; top: 0; } }
@media (max-width: 560px) { .qz__opts { grid-template-columns: 1fr; } }

/* ---------- explorer ---------- */
.explore { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 64px); padding: clamp(22px, 3vw, 44px); align-items: center; }
.explore__vis { position: relative; width: min(100%, 440px); aspect-ratio: 1; margin: 0 auto; }
.explore__vis svg { width: 100%; height: 100%; overflow: visible; }
.explore__vis .seg-arc { cursor: pointer; transition: opacity .4s, transform .5s var(--ease); transform-origin: 0 0; }
.explore__vis .seg-arc.is-dim { opacity: .28; }
.explore__vis .seg-arc.is-on { transform: scale(1.045); }
.explore__vis .ex-rings circle { fill: none; stroke: var(--line); }
.explore__mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.explore__mid b { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 4.4vw, 64px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.explore__mid span { font-size: 12.5px; color: var(--muted); margin-top: 6px; max-width: 16ch; }
.explore__side { display: grid; gap: 22px; min-width: 0; }
.explore__list { display: flex; flex-wrap: wrap; gap: 8px; }
.explore__list button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; color: var(--muted); transition: color .3s, border-color .3s, background-color .3s; }
.explore__list button i { width: 9px; height: 9px; border-radius: 50%; }
.explore__list button:hover { color: var(--fg); border-color: var(--fg); }
.explore__list button[aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.explore__detail { display: grid; gap: 16px; }
.explore__detail h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 3vw, 48px); line-height: 1; letter-spacing: -.03em; }
.explore__detail h3 em { color: var(--accent); }
.explore__detail > p { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 60ch; }
.exfacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.exfacts div { background: var(--bg); padding: 14px 16px; display: grid; gap: 4px; }
.exfacts span { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.exfacts b { font-weight: 500; font-size: 15px; line-height: 1.4; }
.explore__detail.is-swapping { opacity: 0; transform: translateY(8px); }
.explore__detail { transition: opacity .35s var(--ease), transform .45s var(--ease); }
@media (max-width: 900px) { .explore { grid-template-columns: 1fr; } .explore__vis { width: min(100%, 320px); } }
@media (max-width: 560px) { .exfacts { grid-template-columns: 1fr; } }

/* ---------- behaviour ---------- */
.bh { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bh__stat { padding: 26px 22px 24px 0; display: grid; gap: 8px; border-right: 1px solid var(--line); }
.bh__stat + .bh__stat { padding-left: 22px; }
.bh__stat:last-child { border-right: 0; }
.bh__stat b { font-family: var(--serif); font-weight: 300; font-size: clamp(42px, 4.6vw, 72px); line-height: 1; letter-spacing: -.04em; }
.bh__stat span { font-size: 14px; color: var(--muted); max-width: 32ch; }
@media (max-width: 800px) { .bh { grid-template-columns: 1fr; } .bh__stat { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0 !important; } .bh__stat:last-child { border-bottom: 0; } }
