/* ---------- questions page v4: area constellation in the hero, the guided ask, the explore board ---------- */
.qhero-cta { min-height: 50px; padding-inline: 24px; font-size: 1.02rem; }

/* the areas floating on the right of the hero */
.qhero-areas { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; justify-items: center; align-content: center; padding: 10px; }
.qha { display: grid; justify-items: center; gap: 8px; width: 100%; max-width: 132px; padding: 18px 10px 14px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh); color: var(--ti); animation: st-in 0.6s calc(var(--i) * 70ms + 0.15s) var(--ease) both; }
.qha > svg { width: 44px; height: 44px; padding: 8px; border-radius: 14px; background: var(--tf); box-sizing: content-box; }
.qha small { font: 600 0.76rem/1.25 var(--sans); color: var(--ink-2); text-align: center; }
.qha:nth-child(2) { transform: translateY(-18px); }
.qha:nth-child(5) { transform: translateY(14px); }
.qha:nth-child(7) { grid-column: 2; }
@media (max-width: 940px) { .qhero-areas { display: none; } }

/* the ask band */
.qask-band { background: linear-gradient(var(--paper), var(--paper)); padding-block: clamp(44px, 6vw, 80px); border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.qask-head { display: grid; justify-items: center; text-align: center; gap: 8px; margin-bottom: 28px; }
.qask-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 26ch; }

.aw { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; max-width: 1120px; margin-inline: auto; scroll-margin-top: 90px; }
@media (max-width: 900px) { .aw { grid-template-columns: minmax(0, 1fr); } }
.aw-main { background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--sh-2); overflow: hidden; }
.aw-rail { list-style: none; margin: 0; padding: 16px 22px; display: flex; gap: 6px; background: var(--wash); border-bottom: 1px solid var(--line); overflow-x: auto; }
.aw-rail li { flex: 1; display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 12px; font: 600 0.84rem/1.2 var(--sans); color: var(--faint); cursor: pointer; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.aw-rail li:hover { background: rgba(255, 255, 255, 0.7); }
.aw-rail i { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 700 0.75rem/1 var(--sans); font-style: normal; border: 1.5px solid var(--line-strong); background: #fff; color: var(--faint); }
.aw-rail li.on { color: var(--ink); background: #fff; box-shadow: var(--sh); }
.aw-rail li.on i { background: var(--ink); border-color: var(--ink); color: #fff; }
.aw-rail li.done { color: var(--pine); }
.aw-rail li.done i { background: var(--pine); border-color: var(--pine); color: #fff; font-size: 0; }
.aw-rail li.done i::after { content: "✓"; font-size: 0.8rem; }
@media (max-width: 620px) { .aw-rail span { display: none; } .aw-rail li.on span { display: inline; } }

.aw-stage { padding: clamp(22px, 3vw, 34px); }
.aw-panel { display: grid; gap: 14px; animation: st-in 0.35s var(--ease) both; }
.aw-panel h3 { font: 600 clamp(1.4rem, 2.4vw, 1.75rem)/1.2 var(--serif); }
.aw-help { color: var(--sub); font-size: 0.96rem; margin-top: -6px; }
.aw-label { font: 600 0.88rem/1.3 var(--sans); color: var(--ink); margin-top: 6px; }
.aw-panel input[type="text"], .aw-panel textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; font: 400 1rem/1.45 var(--sans); color: var(--ink); }
#aw-title { font: 500 1.15rem/1.4 var(--serif-text); padding: 16px 18px; }
.aw-panel textarea { min-height: 170px; resize: vertical; }
.aw-panel input:focus, .aw-panel textarea:focus { outline: none; border-color: var(--pine-2); box-shadow: 0 0 0 4px var(--pine-soft); }
.aw-count { justify-self: end; font-size: 0.8rem; color: var(--brass-ink); margin-top: -6px; }
.aw-count.ok { color: var(--pine); }
.aw-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.aw-two > div { display: grid; gap: 8px; align-content: start; }
@media (max-width: 620px) { .aw-two { grid-template-columns: minmax(0, 1fr); } }
.aw-note { font-size: 0.78rem; color: var(--faint); }
.aw-agree { padding: 14px 16px; background: var(--wash); border-radius: 14px; }
.aw-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.aw-backlink { border: 0; background: none; color: var(--sub); font: 600 0.92rem/1 var(--sans); cursor: pointer; padding: 10px 4px; }
.aw-backlink:hover { color: var(--ink); }
.aw-next, .aw-post { min-height: 50px; padding-inline: 26px; border-radius: 14px; font-size: 1rem; }
.aw-next:disabled { opacity: 0.4; cursor: not-allowed; }
.aw-post { box-shadow: 0 10px 22px -10px rgba(18, 107, 80, 0.8); }

.aw-areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.aw-area { display: grid; justify-items: center; gap: 10px; padding: 18px 10px 16px; border-radius: 18px; border: 1.5px solid var(--line); background: #fff; color: var(--ti); cursor: pointer; transition: transform 0.15s var(--ease), border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.aw-area:hover { transform: translateY(-3px); border-color: currentColor; box-shadow: var(--sh); }
.aw-area.on { border-color: currentColor; background: var(--tf); box-shadow: 0 0 0 3px var(--tf); }
.aw-area-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--tf); }
.aw-area.on .aw-area-icon { background: #fff; }
.aw-area b { font: 600 0.88rem/1.25 var(--sans); color: var(--ink); text-align: center; }
@media (max-width: 620px) { .aw-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.aw-done { justify-items: center; text-align: center; padding: 20px 0; }
.aw-done .pl-thanks-mark { font-size: 2rem; }

/* the live preview */
.aw-preview { position: sticky; top: 96px; display: grid; gap: 12px; }
.aw-pv-label { font: 600 0.68rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sub); text-align: center; }
.aw-pv-card { display: grid; gap: 12px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh-2); transform: rotate(1deg); transition: transform 0.3s var(--ease); }
.aw-preview:hover .aw-pv-card { transform: rotate(0); }
.aw-pv-head { display: flex; align-items: center; gap: 12px; }
.aw-pv-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--tf); color: var(--ti); }
.aw-pv-topic { padding: 5px 11px; border-radius: 999px; background: var(--tf); color: var(--ti); font: 600 0.78rem/1.2 var(--sans); }
.aw-pv-card > b { font: 600 1.35rem/1.3 var(--serif); color: var(--ink); overflow-wrap: anywhere; }
.aw-pv-card > p { font-size: 0.92rem; line-height: 1.55; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.aw-pv-card .ghost { color: var(--faint); font-weight: 400; font-style: italic; }
.aw-pv-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.aw-pv-foot small { font-size: 0.8rem; color: var(--faint); }
.aw-pv-back { padding: 7px 12px; border-radius: 10px; background: var(--pine); color: #fff; font: 600 0.78rem/1 var(--sans); }
@media (max-width: 900px) { .aw-preview { position: static; order: -1; } .aw-pv-card { transform: none; } }

/* explore board */
#qboard { scroll-margin-top: 80px; }
#qboard > .qboard-head { margin-bottom: 22px; }
.qboard2 { display: grid; gap: 34px; }
.qboard2-tools { display: grid; gap: 14px; }
.qareas { display: flex; flex-wrap: wrap; gap: 8px; }
.qarea { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink-2); font: 600 0.88rem/1 var(--sans); cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.15s var(--ease); }
.qarea:first-child { padding-left: 14px; }
.qarea:hover { border-color: var(--pine-2); transform: translateY(-1px); }
.qarea-icon { display: grid; place-items: center; color: var(--pine); }
.qarea em { font-style: normal; font-weight: 500; min-width: 22px; padding: 3px 7px; border-radius: 999px; background: var(--wash); color: var(--sub); text-align: center; font-variant-numeric: tabular-nums; }
.qarea.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.qarea.on .qarea-icon { color: #9fd3bb; }
.qarea.on em { background: rgba(255, 255, 255, 0.15); color: #fff; }

.qsec { display: grid; gap: 14px; }
.qsec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.qsec .qsec-head { margin-bottom: 0; }
.qsec-head h3 { font: 600 1.35rem/1.2 var(--serif); }
.qsec-head span { font-size: 0.86rem; color: var(--sub); }
.qsec-sum { color: var(--sub); font-size: 0.94rem; max-width: 70ch; margin-top: -6px; }
.qgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }

.qtile2 { display: grid; gap: 10px; align-content: start; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 20px; transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s; animation: st-row 0.45s calc(var(--i) * 45ms) var(--ease) both; position: relative; }
.qtile2:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-strong); }
.qtile2-head { display: flex; align-items: center; gap: 10px; }
.qtile2-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--tf); color: var(--ti); flex: none; }
.qtile2-when { margin-left: auto; font-size: 0.76rem; color: var(--faint); }
.qtile2 h3 { font: 600 1.14rem/1.32 var(--serif); }
.qtile2 h3 a { color: var(--ink); }
.qtile2 h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.qtile2 h3 a:hover { text-decoration: none; }
.qtile2:hover h3 a { color: var(--pine-deep); }
.qtile2-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.qtile2-backs { font-size: 0.84rem; color: var(--sub); }
.qtile2-backs b { font: 600 1.05rem/1 var(--serif); color: var(--ink); }
.qtile2-backs em { font-style: normal; font-weight: 600; color: var(--brass-ink); }
.qtile2-acts { display: flex; align-items: center; gap: 4px; }
.qtile2-acts .btn[disabled] { opacity: 1; background: var(--pine-soft); border-color: #cfe5d8; color: var(--pine-deep); }

.qinvite { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; text-align: left; padding: 22px 26px; border-radius: 20px; border: 1.5px dashed var(--pine-2); background: var(--pine-wash); color: var(--ink); cursor: pointer; transition: background 0.15s, transform 0.15s var(--ease); }
.qinvite:hover { background: #e9f4ee; transform: translateY(-2px); }
.qinvite-plus { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--pine); color: #fff; font: 300 1.9rem/1 var(--sans); }
.qinvite b { display: block; font: 600 1.15rem/1.3 var(--serif); }
.qinvite div span { font-size: 0.92rem; color: var(--sub); }
.qinvite-go { font: 600 0.95rem/1 var(--sans); color: var(--pine); white-space: nowrap; }
@media (max-width: 620px) { .qinvite { grid-template-columns: minmax(0, 1fr); } }

/* ---------- pass 2: the orbit, one finished ask panel, a single row of areas ---------- */
.qorbit { position: relative; width: min(100%, 460px); aspect-ratio: 1; justify-self: center; }
.qorbit-ring { position: absolute; border-radius: 50%; pointer-events: none; }
.qorbit-ring.r1 { inset: 9%; border: 1.5px dashed rgba(18, 107, 80, 0.25); animation: spin 120s linear infinite; }
.qorbit-ring.r2 { inset: 26%; background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(18, 107, 80, 0.12); box-shadow: 0 0 0 22px rgba(255, 255, 255, 0.28); }
.qorbit-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 36%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; align-content: center; gap: 2px; text-align: center; background: var(--pine-deep); color: #fff; box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.85), 0 24px 50px -16px rgba(11, 74, 55, 0.7); animation: st-in 0.7s var(--ease) both; }
.qorbit-core span { font-size: 1.6rem; line-height: 1; color: #f3c9c4; animation: beat-heart 2.4s ease-in-out infinite; }
.qorbit-core b { font: 600 1.02rem/1.15 var(--serif); margin-top: 4px; }
.qorbit-core small { font-size: 0.72rem; color: #a9d3bf; }
@keyframes beat-heart { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.18); } 24% { transform: scale(1); } 36% { transform: scale(1.1); } }
.qorb { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 6px; width: 96px; animation: st-in 0.6s calc(var(--i) * 80ms + 0.2s) var(--ease) both; }
.qorb-icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: #fff; color: var(--ti); border: 1px solid var(--line); box-shadow: 0 0 0 5px var(--tf), 0 12px 26px -12px rgba(20, 40, 59, 0.35); transition: transform 0.2s var(--ease); }
.qorb:hover .qorb-icon { transform: translateY(-3px) scale(1.05); }
.qorb small { font: 600 0.74rem/1.2 var(--sans); color: var(--ink-2); text-align: center; background: rgba(255, 255, 255, 0.85); padding: 3px 8px; border-radius: 999px; }
.qhero-in { align-items: center; }
@media (max-width: 940px) { .qorbit { display: none; } }
@media (prefers-reduced-motion: reduce) { .qorbit-ring.r1, .qorbit-core span { animation: none; } }

.qask-band { position: relative; background: var(--wash); border-top: 1px solid var(--line); overflow: hidden; }
.qask-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(18, 107, 80, 0.09) 1px, transparent 0); background-size: 24px 24px; pointer-events: none; }
.qask-band > .wrap { position: relative; }
.qask-head { gap: 10px; margin-bottom: 30px; }
.qask-head h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.qask-head p { color: var(--sub); max-width: 52ch; }
.aw { grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 2px 4px rgba(20, 40, 59, 0.04), 0 30px 70px -30px rgba(20, 40, 59, 0.3); overflow: hidden; max-width: 1140px; }
.aw-main { border: 0; border-radius: 0; box-shadow: none; display: grid; grid-template-rows: auto 1fr; min-height: 560px; }
.aw-rail { background: #fff; padding: 18px 26px 0; border-bottom: 0; gap: 0; }
.aw-rail li { position: relative; padding: 10px 8px 16px; border-radius: 0; background: none !important; box-shadow: none !important; border-bottom: 2px solid var(--line-2); }
.aw-rail li.on { border-bottom-color: var(--ink); }
.aw-rail li.done { border-bottom-color: var(--pine-2); }
.aw-stage { padding: 30px clamp(24px, 3vw, 38px) 34px; }
.aw-preview { position: relative; top: auto; align-content: center; padding: 40px 32px; background: var(--pine-wash); border-left: 1px solid var(--line); overflow: hidden; }
.aw-preview::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(18, 107, 80, 0.14) 1px, transparent 0); background-size: 20px 20px; }
.aw { align-items: stretch; }
.aw-main { min-height: 0; }
.aw-preview { align-self: stretch; }
.aw-preview > * { position: relative; z-index: 1; }
.aw-pv-label { color: var(--pine-deep); }
.aw-pv-card { box-shadow: 0 2px 4px rgba(20, 40, 59, 0.05), 0 26px 50px -22px rgba(11, 74, 55, 0.45); }
@media (max-width: 900px) { .aw { grid-template-columns: minmax(0, 1fr); } .aw-main { min-height: 0; } .aw-preview { border-left: 0; border-bottom: 1px solid var(--line); padding: 26px 20px; } }

.qareas-scroll { position: relative; margin-inline: -4px; }
.qareas-scroll::after { content: ""; position: absolute; right: 0; top: 0; bottom: 6px; width: 48px; background: linear-gradient(90deg, rgba(251, 252, 251, 0), var(--paper)); pointer-events: none; }
.qareas { flex-wrap: nowrap; overflow-x: auto; padding: 4px 40px 8px 4px; scrollbar-width: none; }
.qareas::-webkit-scrollbar { display: none; }
.qarea { flex: none; }

/* ---------- explore board, love pass ---------- */
.qboard2-tools { padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh); gap: 12px; }
.qboard2-tools .qsearch { border-color: var(--line); background-color: var(--wash); }
.qboard2-tools .qsearch:focus { background-color: #fff; }
.qareas-scroll::after { background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff); }
.qgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 1100px) { .qgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .qgrid { grid-template-columns: minmax(0, 1fr); } }
.qgrid > * { min-width: 0; }
.qboard2, .qboard2-tools { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 420px) { .qtile2-acts { grid-template-columns: minmax(0, 1fr); } .qtile2-acts .btn { white-space: normal; } }
.qtile2 { display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 18px; border-radius: 22px; }
.qtile2 h3 { font-size: 1.18rem; line-height: 1.32; min-height: 2.64em; }
.qtile2-head .qrow-topic { font-size: 0.74rem; }
.qtile2-meta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.qtile2-meta .qtrack { font-size: 0.72rem; }
.qtile2-backs { font-size: 0.82rem; color: var(--sub); white-space: nowrap; }
.qtile2-backs b { font: 700 0.9rem/1 var(--sans); color: var(--ink); }
.qtile2-acts { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.qtile2-acts .btn { width: 100%; justify-content: center; min-height: 42px; border-radius: 12px; font-size: 0.9rem; }
.qtile2-acts .btn[disabled]::before { content: "✓ "; }
.qtile2-acts .qshare { width: 42px; height: 42px; padding: 0; justify-content: center; border: 1px solid var(--line-strong); border-radius: 12px; font-size: 0; gap: 0; }
.qtile2-acts .qshare svg { width: 17px; height: 17px; }
.qtile2-acts .qshare:hover { border-color: var(--pine-2); }
.qsec { padding-top: 8px; }
.qsec-head h3 { font-size: 1.45rem; }
.qmore { margin-top: 10px; padding-inline: 22px; border-radius: 999px; }

/* ---------- home: the Oracle's own desk when no outside AI is connected ---------- */
.oracle-desk-head { display: grid; gap: 4px; padding: 4px 2px 10px; }
.oracle-desk-head b { font: 600 1rem/1.3 var(--sans); color: var(--ink); }
.oracle-desk-head small { font-size: 0.84rem; color: var(--sub); }
.oracle-row { animation: st-row 0.5s calc(var(--i) * 90ms) var(--ease) both; }
.oracle-row .desk-dot { animation: beat 2s calc(var(--i) * 0.5s) ease-in-out infinite; }
.oracle-mark { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--pine-deep); color: #fff; font: 600 1rem/1 var(--serif); }
.oracle-row .desk-who b { font-family: var(--serif); font-weight: 600; }
.oracle-desk-join { margin-top: 8px; width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1.5px dashed var(--pine-2); background: var(--pine-wash); color: var(--ink); cursor: pointer; transition: background 0.15s, transform 0.15s var(--ease); }
.oracle-desk-join:hover { background: #e9f4ee; transform: translateY(-1px); }
.oracle-plus { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--pine); color: #fff; font: 300 1.4rem/1 var(--sans); }
.oracle-desk-join b { display: block; font: 600 0.95rem/1.3 var(--sans); }
.oracle-desk-join small { font-size: 0.8rem; color: var(--sub); }
.oracle-desk-join em { font-style: normal; font: 600 0.9rem/1 var(--sans); color: var(--pine); white-space: nowrap; }

/* ---------- home hero: the Oracle at work on the stage ---------- */
.st-oracle { animation: st-row 0.5s calc(var(--i) * 110ms + 0.2s) var(--ease) both; }
.st-omark { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--pine-deep); color: #fff; font: 600 1.1rem/1 var(--serif); position: relative; }
.st-omark::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; background: #3ccf8e; border: 2px solid #fff; animation: beat 2s calc(var(--i) * 0.6s) ease-in-out infinite; }
.st-oracle .st-who b { display: flex; align-items: baseline; gap: 6px; }
.st-oracle .st-who b em { font-style: normal; font-weight: 500; font-size: 0.74rem; color: var(--sub); }
.st-oracle .st-who small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-busy { display: grid; justify-items: end; gap: 5px; min-width: 70px; }
.st-busy i { position: relative; display: block; width: 64px; height: 5px; border-radius: 999px; background: var(--pine-soft); overflow: hidden; }
.st-busy i::after { content: ""; position: absolute; inset: 0; width: 40%; border-radius: inherit; background: var(--pine-2); animation: st-scan 1.6s ease-in-out infinite; }
.st-busy small { font-size: 0.7rem; color: var(--pine); font-weight: 600; }
@keyframes st-scan { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) { .st-busy i::after, .st-omark::after { animation: none; } }

/* founder row */
.st-omark.founder { background: var(--brass); }
.st-founder .st-who b em { color: var(--brass-ink); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.62rem; padding: 2px 6px; border-radius: 999px; background: var(--brass-soft); }

/* the certificate: engraved double frame, signature line, gold seal */
.st-card.st-cert { grid-column: 2 / 13; margin-top: 18px; padding: 24px 150px 22px 28px; rotate: 0.8deg; }
@media (max-width: 940px) { .st-card.st-cert { grid-column: 1 / -1; rotate: none; } }
@media (max-width: 560px) { .st-card.st-cert { padding: 22px 22px 120px; } }
.st-cert { position: relative; background:
  radial-gradient(circle at 1px 1px, rgba(169, 123, 31, 0.08) 1px, transparent 0) 0 0 / 10px 10px, #fdf8ea;
  box-shadow: inset 0 0 0 6px #fdf8ea, inset 0 0 0 7px var(--brass), inset 0 0 0 10px #fdf8ea, inset 0 0 0 11px rgba(169, 123, 31, 0.45), 0 22px 50px -14px rgba(116, 83, 15, 0.4); }
.st-cert-top small { color: var(--brass-ink); letter-spacing: 0.22em; }
.st-cert em { font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 2.8vw, 2.6rem); color: var(--ink); border-bottom: 1px solid rgba(169, 123, 31, 0.6); }
.st-cert-line { font: italic 400 0.92rem/1.4 var(--serif-text); color: var(--ink-2); }
.st-cert-sign { display: grid; gap: 2px; margin-top: 4px; justify-self: start; padding-top: 6px; border-top: 1px solid rgba(20, 40, 59, 0.35); min-width: 46%; }
.st-cert-sign i { font: italic 600 1.02rem/1.1 var(--serif); color: var(--pine-deep); }
.st-earn { position: absolute; top: -13px; left: 26px; z-index: 2; padding: 6px 12px; border-radius: 999px; background: var(--brass-ink); color: #fff; font: 700 0.72rem/1 var(--sans); letter-spacing: 0.04em; box-shadow: 0 6px 14px -4px rgba(116, 83, 15, 0.6); transition: transform 0.2s var(--ease); }
.st-cert:hover .st-earn { transform: translateX(3px); }
.st-cert em.st-cert-blank { color: rgba(20, 40, 59, 0.38); font-weight: 400; }
.st-cert-sign small { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sub); }
.st-seal { position: absolute; right: 30px; top: 50%; margin-top: -48px; width: 96px; height: 96px; filter: drop-shadow(0 6px 10px rgba(116, 83, 15, 0.45)); transform: rotate(-10deg); transition: transform 0.4s var(--ease); }
.st-cert:hover .st-seal { transform: rotate(0deg) scale(1.05); }
.st-seal svg { position: relative; z-index: 1; display: block; }
.st-seal-tail { position: absolute; z-index: 0; bottom: -22px; width: 22px; height: 44px; background: #a97b1f; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); }
.st-seal-tail.l { left: 26px; transform: rotate(14deg); background: #8a6414; }
.st-seal-tail.r { right: 26px; transform: rotate(-14deg); }


/* ---------- home: the living disease field ---------- */
.dfield { position: relative; }
.field-tip { position: absolute; z-index: 5; transform: translate(-50%, calc(-100% - 16px)); display: grid; gap: 3px; min-width: 200px; max-width: 280px; padding: 11px 14px; border-radius: 12px; background: var(--ink); color: #fff; box-shadow: 0 14px 30px -10px rgba(20, 40, 59, 0.6); pointer-events: none; opacity: 0; transition: opacity 0.15s; }
.field-tip.on { opacity: 1; }
.field-tip::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.field-tip small { font: 600 0.64rem/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: #a9d3bf; }
.field-tip b { font: 600 0.98rem/1.3 var(--serif); }
.field-tip span { font-size: 0.78rem; color: #cfe2d8; }
.field-tip.brass { background: #5b410b; }
.field-tip.brass small { color: #f3d58a; }
.field-tip.green { background: var(--pine-deep); }
.unit-note.brass b { color: #a97b1f; }
.unit-note.brass::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: #c9962e; box-shadow: 0 0 0 4px rgba(201, 150, 46, 0.25); animation: beat 2s ease-in-out infinite; vertical-align: 2px; }

/* ---------- home: "Just happened" as a timeline ---------- */
.stream { position: relative; display: grid; gap: 0; padding: 8px 8px 8px 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh); }
.stream::before { content: ""; position: absolute; left: 37px; top: 30px; bottom: 30px; border-left: 2px solid var(--line-2); }
.tl-row { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 4px; align-items: start; padding: 12px 16px 12px 16px; border-radius: 14px; animation: st-row 0.45s calc(var(--i) * 60ms) var(--ease) both; }
.tl-row:hover { background: var(--wash); }
.tl-row.new { animation: arrive 1.6s var(--ease); }
.tl-icon { position: relative; z-index: 1; width: 36px; height: 36px; margin-left: 4px; border-radius: 50%; display: grid; place-items: center; background: var(--tf); color: var(--ti); font: 700 0.95rem/1 var(--sans); box-shadow: 0 0 0 4px #fff; }
.tl-body { display: grid; gap: 3px; min-width: 0; }
.tl-label { font: 600 0.68rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ti); }
.tl-body p { margin: 0; font: 500 1.02rem/1.4 var(--serif-text); color: var(--ink); }
.tl-body p .up { color: var(--pine); }
.tl-body small { font-size: 0.8rem; color: var(--faint); }

/* timeline, pass 2: clickable rows, square tone icons, a quiet arrow */
.stream { padding: 10px; border-radius: 22px; }
.stream::before { left: 37px; top: 34px; bottom: 34px; border-left: 2px dashed var(--line); }
.tl-row { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px 12px 8px; color: var(--ink); text-decoration: none; transition: background 0.15s, transform 0.15s var(--ease); }
.tl-row:hover { text-decoration: none; background: var(--wash); transform: translateX(2px); }
.tl-row + .tl-row { border-top: 1px solid var(--line-2); border-radius: 0; }
.tl-row:hover, .tl-row:first-child:hover { border-radius: 14px; }
.tl-icon { width: 42px; height: 42px; margin-left: 2px; border-radius: 13px; box-shadow: 0 0 0 5px #fff; font-size: 1.05rem; }
.tl-row:hover .tl-icon { box-shadow: 0 0 0 5px var(--wash); }
.tl-label { display: flex; align-items: center; gap: 8px; }
.tl-label em { font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 0.74rem; color: var(--faint); }
.tl-label em::before { content: "·"; margin-right: 8px; }
.tl-body p { font: 600 1.06rem/1.35 var(--serif); }
.tl-row:hover .tl-body p { color: var(--pine-deep); }
.tl-body small { font-size: 0.78rem; }
.tl-go { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--faint); font-size: 0.95rem; transition: background 0.15s, color 0.15s, transform 0.15s var(--ease); }
.tl-row:hover .tl-go { background: var(--pine); color: #fff; transform: translateX(2px); }

/* ---------- cards: the question first, everything else quiet ---------- */
.qhero-go { display: flex; flex-wrap: wrap; gap: 14px !important; }
.qtile2 { gap: 14px; padding: 22px 24px 20px; }
.qtile2-when, .qtile2-meta .qtrack { display: none; }
.qtile2-head { gap: 8px; }
.qtile2-icon { width: 30px; height: 30px; border-radius: 9px; }
.qtile2-icon svg { width: 17px; height: 17px; }
.qtile2-head .qrow-topic { background: none; padding: 0; font: 600 0.74rem/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; }
.qtile2 h3 { font: 600 1.4rem/1.28 var(--serif); letter-spacing: -0.005em; min-height: 0; flex: 1; color: var(--ink); }
.qtile2-meta { border-top: 0; padding-top: 0; justify-content: flex-start; }
.qtile2-backs { font-size: 0.85rem; }
.qtile2-acts .btn:not([disabled]) { background: #fff; color: var(--pine-deep); border: 1.5px solid #cfe5d8; box-shadow: none; }
.qtile2-acts .btn:not([disabled]):hover { background: var(--pine); border-color: var(--pine); color: #fff; }
.qtile2-acts .btn[disabled] { background: var(--pine-wash); border: 1.5px solid transparent; color: var(--pine); }
.qtile2-acts .qshare { border-color: var(--line); color: var(--faint); }
.qtile2:hover .qtile2-acts .btn:not([disabled]) { border-color: var(--pine-2); }

/* ---------- questions page welcome: a warm line, a box to ask, three real questions ---------- */
.qh { background: var(--wash); border-bottom: 1px solid var(--line); }
.qh-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(44px, 6vw, 80px); }
.qh-text { display: grid; gap: 18px; animation: st-in 0.6s var(--ease) both; }
.qh-text h1 { margin: 0; font-size: clamp(2.3rem, 4.4vw, 3.5rem); line-height: 1.08; max-width: 17ch; text-wrap: balance; }
.qh-text h1 em { color: var(--pine); font-style: italic; }
.qh-text .lede { margin: 0; max-width: 36em; font: 400 1.12rem/1.6 var(--serif-text, var(--serif)); color: var(--ink-2); }
.qh-ask { display: flex; gap: 8px; margin-top: 6px; padding: 7px 7px 7px 20px; background: #fff; border: 1px solid var(--line-strong); border-radius: 999px; box-shadow: 0 1px 2px rgba(20, 40, 59, 0.04), 0 14px 30px rgba(20, 40, 59, 0.08); transition: border-color 0.2s, box-shadow 0.2s; }
.qh-ask:focus-within { border-color: var(--pine-2); box-shadow: 0 0 0 4px var(--pine-wash), 0 14px 30px rgba(20, 40, 59, 0.08); }
.qh-input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 400 1.02rem/1.4 var(--serif-text, var(--serif)); color: var(--ink); }
.qh-input::placeholder { color: var(--faint); font-style: italic; }
.qh-ask .btn { border-radius: 999px; padding-inline: 22px; white-space: nowrap; }
.qh-note { margin: 0; font-size: 0.84rem; color: var(--sub); }
.qh-note a { font-weight: 600; color: var(--pine-deep); }
.qh-sep { margin-inline: 10px; color: var(--line-strong); }
.qh-photos { height: clamp(360px, 34vw, 460px); }
.qh-photos .fam-cap small { font: 600 0.68rem/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--pine-deep); }
@media (max-width: 900px) { .qh-in { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .qh-ask { flex-direction: column; border-radius: 18px; padding: 10px; } .qh-ask .btn { width: 100%; } }

.qask-band[hidden] { display: none; }
.qask-head { position: relative; }
.qask-close { margin-top: 4px; border: 0; background: none; font: 500 0.86rem/1 var(--sans); color: var(--sub); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.qboard2 .qmore { display: block; margin: 20px auto 0; min-height: 48px; padding-inline: 28px; }

/* phones: a question is a calm row (photo, topic, title, backers, the button) instead of a full-height card,
   so the board reads as a list a person can scan; the story is one tap away on the question's own page */
@media (max-width: 640px) {
  .qtile2.has-photo { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 14px; row-gap: 8px; padding: 14px; border-radius: 18px; }
  .qtile2.has-photo > .qt-photo { grid-row: 1 / span 2; width: 76px; height: 76px; margin: 0; border-radius: 14px; overflow: hidden; position: relative; aspect-ratio: auto; }
  .qtile2.has-photo > .qt-photo img { width: 100%; height: 100%; object-fit: cover; }
  .qtile2.has-photo > .qtile2-head { grid-column: 2; }
  .qtile2.has-photo > .qtile2-head .qtile2-icon { display: none; }
  .qtile2.has-photo > h3 { grid-column: 2; min-height: 0; font-size: 1.04rem; margin: 0; }
  .qtile2.has-photo > .qrow-body, .qtile2.has-photo > .qrow-by, .qtile2-meta .qtrack { display: none; }
  .qtile2.has-photo > .qtile2-meta { grid-column: 1 / -1; padding-top: 10px; margin-top: 2px; }
  .qtile2.has-photo > .qtile2-acts { grid-column: 1 / -1; }
  .qtile2-acts .btn { min-height: 46px; }
  .qmore { width: 100%; min-height: 50px; }
}

