:root {
  --night: #101019;
  --cream: #f4f0df;
  --violet: #7648ff;
  --cyan: #46e2e1;
  --pink: #ff5d9e;
  --yellow: #f5e95d;
  --line-dark: rgba(244, 240, 223, .22);
  --line-light: rgba(16, 16, 25, .2);
  --max: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--cream); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; overflow-x: hidden; }
a { color: inherit; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: .75rem; left: .75rem; padding: .7rem 1rem; background: var(--yellow); color: var(--night); transform: translateY(-170%); transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient span { position: absolute; width: 45vw; aspect-ratio: 1; border-radius: 50%; filter: blur(110px); opacity: .12; }
.ambient span:nth-child(1) { top: -20%; left: -15%; background: var(--violet); }
.ambient span:nth-child(2) { top: 38%; right: -25%; background: var(--cyan); }
.ambient span:nth-child(3) { bottom: -30%; left: 22%; background: var(--pink); }

.site-header { width: min(calc(100% - 2rem), var(--max)); min-height: 76px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; border-bottom: 1px solid var(--line-dark); }
.brand { display: inline-flex; align-items: center; gap: .65rem; justify-self: start; text-decoration: none; font-size: .72rem; font-weight: 800; letter-spacing: .15em; }
.brand span { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--cyan); transform: rotate(45deg); color: var(--cyan); }
.brand span::first-letter { transform: rotate(-45deg); }
nav { display: flex; gap: 1.4rem; }
nav a { text-decoration: none; font-size: .72rem; border-bottom: 1px solid transparent; }
nav a:hover { border-color: var(--cyan); }
.site-header > p { justify-self: end; margin: 0; font-family: ui-monospace, monospace; color: #a6a2b3; font-size: .66rem; }
main > section { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }

.hero { position: relative; min-height: 760px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 2rem; padding: 5rem 0; }
.eyebrow, .section-id { margin: 0 0 1.2rem; text-transform: uppercase; letter-spacing: .16em; font-size: .68rem; font-weight: 800; }
h1 { position: relative; z-index: 2; margin: 0; font-size: clamp(4.7rem, 10vw, 9.5rem); line-height: .78; letter-spacing: -.075em; font-weight: 800; }
h1 span { color: transparent; -webkit-text-stroke: 1.5px var(--cream); }
.lead { max-width: 680px; margin: 2rem 0 0; font-family: Georgia, serif; font-size: clamp(1.35rem, 2.6vw, 2.05rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.button { min-height: 49px; padding: .75rem 1.1rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--cream); text-decoration: none; transition: background .2s, color .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--cream); color: var(--night); }
.button.primary:hover { background: var(--cyan); border-color: var(--cyan); }
.button.ghost { background: transparent; }
.button.ghost:hover { background: var(--violet); }
.hero-prism { position: relative; aspect-ratio: 1; max-width: 500px; justify-self: end; width: 100%; }
.prism-face { position: absolute; inset: 14%; clip-path: polygon(50% 0, 100% 88%, 0 88%); }
.face-a { background: linear-gradient(135deg, rgba(118,72,255,.95), rgba(70,226,225,.2)); transform: rotate(-5deg); }
.face-b { background: linear-gradient(225deg, rgba(255,93,158,.72), rgba(245,233,93,.12)); transform: rotate(8deg) scale(.83); mix-blend-mode: screen; }
.ray { position: absolute; left: 57%; top: 51%; height: 2px; transform-origin: left; }
.ray-one { width: 58%; background: var(--cyan); transform: rotate(-21deg); }
.ray-two { width: 67%; background: var(--pink); transform: rotate(2deg); }
.ray-three { width: 55%; background: var(--yellow); transform: rotate(23deg); }
.hero-caption { position: absolute; right: 0; bottom: 3rem; padding-left: 1rem; border-left: 2px solid var(--cyan); color: #aaa7b6; font-size: .72rem; }

.manifesto, .possibilities, .faq { padding: clamp(5rem, 10vw, 9rem) 0; display: grid; grid-template-columns: minmax(170px, .32fr) minmax(0, 1fr); gap: 2rem; border-top: 1px solid var(--line-dark); }
h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(2.8rem, 6vw, 5.6rem); line-height: .94; letter-spacing: -.045em; }
h2 em { color: var(--cyan); font-weight: 400; }
.manifesto div > p { max-width: 820px; font-size: 1.08rem; }
.manifesto div > p:first-of-type { margin-top: 2rem; font-family: Georgia, serif; font-size: clamp(1.3rem, 2.5vw, 1.9rem); }

.lab { width: 100%; max-width: none; padding: clamp(5rem, 9vw, 8rem) max(1rem, calc((100vw - var(--max)) / 2)); background: var(--cream); color: var(--night); }
.lab-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.lab-head > p { max-width: 420px; color: #5d5968; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { width: 100%; padding: 0; margin: 4rem 0 1.2rem; font-family: Georgia, serif; font-size: 1.7rem; }
.options-fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.options-fieldset legend { grid-column: 1 / -1; background: var(--cream); }
.option-card { min-width: 0; min-height: 170px; display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 1rem; padding: 1.4rem; background: var(--cream); cursor: text; }
.option-card > span:first-child { width: 55px; height: 55px; display: grid; place-items: center; border-radius: 50%; color: white; font-size: 1.4rem; font-weight: 800; }
.option-a > span:first-child { background: var(--violet); }
.option-b > span:first-child { background: var(--pink); }
.input-wrap { min-width: 0; display: block; }
.input-wrap strong { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .13em; }
.option-card input { width: 100%; margin-top: .8rem; padding: .6rem 0; border: 0; border-bottom: 2px solid var(--night); border-radius: 0; background: transparent; color: var(--night); font-family: Georgia, serif; font-size: clamp(1.4rem, 3vw, 2.3rem); }
.axis-help { max-width: 720px; color: #5d5968; }
.axis { display: grid; grid-template-columns: minmax(250px, .75fr) minmax(260px, 1fr) 115px; gap: 2rem; align-items: center; padding: 1.35rem 0; border-top: 1px solid var(--line-light); }
.axis:last-child { border-bottom: 1px solid var(--line-light); }
.axis-copy { display: grid; grid-template-columns: 45px 1fr; gap: .7rem; }
.axis-copy > span { font-family: ui-monospace, monospace; color: var(--violet); }
.axis label { font-family: Georgia, serif; font-size: 1.4rem; }
.axis-copy p { margin: .25rem 0 0; color: #5d5968; font-size: .8rem; }
.range-wrap { display: grid; grid-template-columns: 24px 1fr 24px; gap: .7rem; align-items: center; }
.side-label { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: white; font-size: .68rem; font-weight: 800; }
.label-a { background: var(--violet); }
.label-b { background: var(--pink); }
input[type="range"] { width: 100%; accent-color: var(--violet); cursor: pointer; }
.axis output { font-size: .73rem; text-align: right; font-weight: 700; }
.refract-button { width: 100%; min-height: 70px; margin-top: 2rem; padding: 1rem 1.3rem; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--night); background: var(--night); color: var(--cream); font-size: 1rem; font-weight: 800; cursor: pointer; }
.refract-button:hover { background: var(--violet); }
.refract-button span { color: var(--yellow); font-size: 1.6rem; }

.result { position: relative; margin-top: 5rem; padding-top: 4rem; border-top: 2px solid var(--night); }
.result-head { position: relative; z-index: 2; max-width: 850px; }
.result-head h2 span:first-child { color: var(--violet); }
.result-head h2 span:last-child { color: #bd2463; }
.result-head > p:last-child { font-family: Georgia, serif; font-size: 1.3rem; }
.result-prism { position: absolute; right: 3%; top: 2rem; width: 230px; aspect-ratio: 1; opacity: .4; }
.result-prism span { position: absolute; inset: 0; clip-path: polygon(50% 0, 100% 88%, 0 88%); transform-origin: center; }
.result-prism span:nth-child(1) { background: var(--violet); transform: translateX(var(--lean, 0px)) rotate(-8deg); }
.result-prism span:nth-child(2) { background: var(--pink); transform: translateX(calc(var(--lean, 0px) * -1)) rotate(8deg) scale(.82); mix-blend-mode: multiply; }
.result-prism span:nth-child(3) { background: var(--cyan); transform: rotate(var(--spread, 0deg)) scale(.62); mix-blend-mode: multiply; }
.facets { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 3rem; border: 1px solid var(--line-light); background: var(--line-light); }
.facet { min-height: 290px; padding: 1.4rem; background: var(--cream); }
.facet > span { font-family: ui-monospace, monospace; font-size: .63rem; letter-spacing: .1em; }
.facet h3 { margin: 4rem 0 .8rem; font-family: Georgia, serif; font-size: 1.5rem; font-weight: 400; }
.facet p { color: #504d59; }
.facet.tension { border-top: 7px solid var(--violet); }
.facet.shadow { border-top: 7px solid var(--cyan); }
.facet.test { border-top: 7px solid var(--pink); }
.result-tools { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.result-tools button { min-height: 40px; padding: .5rem .8rem; border: 1px solid var(--night); background: transparent; color: var(--night); cursor: pointer; }
.result-tools button:hover { background: var(--yellow); }
#result-status { min-height: 1.5em; color: #4d348f; font-size: .75rem; }

.protocol { width: 100%; max-width: none; padding: clamp(5rem, 9vw, 8rem) max(1rem, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: minmax(170px, .32fr) minmax(0, 1fr); gap: 2rem; background: var(--violet); }
.protocol h2 { max-width: 850px; }
.protocol ol { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.protocol li { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; min-height: 180px; padding: 1.2rem; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.protocol li > span { font-family: ui-monospace, monospace; color: var(--yellow); }
.protocol h3 { margin: 0; font-family: Georgia, serif; font-size: 1.4rem; font-weight: 400; }
.protocol li p { color: #e6defe; }
.possibility-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.possibility-grid article { padding: 1.4rem; border: 1px solid var(--line-dark); }
.possibility-grid article > span { font-size: 2rem; color: var(--cyan); }
.possibility-grid h3 { margin: 2.5rem 0 .5rem; font-family: Georgia, serif; font-size: 1.4rem; font-weight: 400; }
.possibility-grid p { color: #aaa7b6; }
.inactive { color: #9692a0; font-size: .75rem; }
.safety { width: 100%; max-width: none; display: grid; grid-template-columns: .75fr 1.25fr; gap: 3rem; align-items: center; padding: clamp(5rem, 9vw, 8rem) max(1rem, calc((100vw - var(--max)) / 2)); background: var(--cyan); color: var(--night); }
.safety-orbit { position: relative; width: min(370px, 80vw); aspect-ratio: 1; border: 1px solid var(--night); border-radius: 50%; }
.safety-orbit::before { content: ""; position: absolute; inset: 20%; border: 1px solid var(--night); transform: rotate(45deg); }
.safety-orbit span { position: absolute; width: 55px; height: 55px; display: grid; place-items: center; border-radius: 50%; background: var(--night); color: var(--cream); font-weight: 800; }
.safety-orbit span:first-child { top: 10%; left: 12%; }
.safety-orbit span:nth-child(2) { right: 12%; bottom: 10%; }
.safety-orbit i { position: absolute; width: 15px; height: 15px; top: 50%; left: 50%; border-radius: 50%; background: var(--pink); transform: translate(-50%,-50%); }
.safety div:last-child p { max-width: 760px; }
.faq details { border-top: 1px solid var(--line-dark); }
.faq details:last-child { border-bottom: 1px solid var(--line-dark); }
.faq summary { padding: 1.15rem 2rem 1.15rem 0; font-weight: 700; cursor: pointer; }
.faq details p { max-width: 720px; color: #aaa7b6; }
.closing { padding: clamp(6rem, 12vw, 11rem) 0; text-align: center; }
.closing h2 { max-width: 900px; margin-inline: auto; }
.closing .hero-actions { justify-content: center; }
footer { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; padding: 1.5rem 0 2.5rem; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line-dark); font-size: .7rem; color: #a7a3b1; }
footer p { margin: 0; }

@media (max-width: 860px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-prism { position: absolute; z-index: 0; width: 55vw; right: -12%; opacity: .45; }
  .manifesto, .possibilities, .faq, .protocol, .safety { grid-template-columns: 1fr; }
  .lab-head { display: grid; }
  .axis { grid-template-columns: 1fr; gap: .7rem; }
  .axis output { text-align: left; }
  .facets { grid-template-columns: 1fr; }
  .facet { min-height: auto; }
  .facet h3 { margin-top: 2rem; }
  .result-prism { opacity: .18; }
}
@media (max-width: 580px) {
  h1 { font-size: clamp(4rem, 20vw, 6.2rem); }
  .options-fieldset, .protocol ol, .possibility-grid { grid-template-columns: 1fr; }
  .option-card { grid-template-columns: 50px 1fr; }
  .option-card > span:first-child { width: 44px; height: 44px; }
  footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
