:root {
  --bg: #080808;
  --surface: #10100f;
  --surface-2: #161614;
  --text: #f1efe8;
  --muted: #8f8e86;
  --line: #292925;
  --line-bright: #4b4941;
  --accent: #b89663;
  --accent-soft: #d0b58c;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: -0.015em;
}

button, input { font: inherit; }
button { color: inherit; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.site-header,
.site-footer {
  position: fixed;
  left: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 34px;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.site-header { top: 0; border-bottom: 1px solid var(--line); background: rgba(8,8,8,.82); backdrop-filter: blur(16px); }
.site-footer { bottom: 0; color: var(--muted); border-top: 1px solid var(--line); background: var(--bg); }

.wordmark { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 500; }
.wordmark-mark { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid var(--line-bright); font-family: var(--mono); font-size: 9px; }
.header-meta { display: flex; gap: 30px; color: var(--muted); font-family: var(--mono); font-size: 10px; }
.status { color: var(--text); }
.status i { display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

main { min-height: 100vh; }
.screen { display: none; min-height: 100vh; padding: 128px 5vw 100px; animation: reveal .55s ease both; }
.screen.active { display: block; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow,
.step-label,
.panel-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 300; }

.landing { position: relative; overflow: hidden; }
.landing:after {
  content: "";
  position: absolute;
  width: 48vw;
  height: 48vw;
  right: -16vw;
  top: 8vh;
  border: 1px solid #1e1e1b;
  border-radius: 50%;
  box-shadow: 0 0 120px rgba(184,150,99,.05), inset 0 0 100px rgba(184,150,99,.025);
}

.landing h1 {
  position: relative;
  z-index: 1;
  max-width: 1050px;
  margin: 8vh 0 6vh;
  font-size: clamp(70px, 10vw, 158px);
  line-height: .86;
  letter-spacing: -.065em;
}
.landing h1 em { color: var(--accent-soft); font-style: normal; }

.landing-footer { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 60px; border-top: 1px solid var(--line); padding-top: 26px; }
.landing-footer p { max-width: 500px; margin: 0; color: #b7b5ad; font-size: clamp(17px, 1.5vw, 24px); line-height: 1.45; }

.primary-button {
  min-width: 230px;
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 34px;
  padding: 0 18px 0 22px;
  border: 1px solid var(--line-bright);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.primary-button:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.button-arrow { font-size: 18px; }
.primary-button.compact { min-width: 210px; }

.dimension-line { position: absolute; z-index: 2; bottom: 82px; left: 5vw; right: 5vw; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.dimension-line span { border-top: 1px solid var(--line); padding-top: 10px; color: #62615b; font-family: var(--mono); font-size: 9px; text-transform: uppercase; }

.setup { padding-top: 160px; }
.setup-grid { display: grid; grid-template-columns: minmax(350px, .9fr) minmax(480px, 1.1fr); gap: 10vw; margin-top: 65px; }
.setup h2 { font-size: clamp(54px, 6vw, 94px); line-height: .95; letter-spacing: -.055em; }
.supporting-copy { max-width: 450px; margin-top: 42px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.setup-form { padding-top: 16px; }
.setup-form > label,
.setup-form legend { display: block; margin-bottom: 14px; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.setup-form input[type="text"] { width: 100%; padding: 13px 0 22px; color: var(--text); border: 0; border-bottom: 1px solid var(--line-bright); outline: none; background: transparent; font-size: clamp(30px, 4vw, 58px); font-weight: 300; letter-spacing: -.04em; }
.setup-form input[type="text"]::placeholder { color: #353531; }
.setup-form input[type="text"]:focus { border-color: var(--accent); }
.setup-form fieldset { margin: 60px 0 45px; padding: 0; border: 0; }
.type-options { display: flex; flex-wrap: wrap; gap: 9px; }
.type-options input { position: absolute; opacity: 0; pointer-events: none; }
.type-options span { display: inline-block; padding: 11px 16px; border: 1px solid var(--line); color: var(--muted); cursor: pointer; font-size: 13px; transition: .2s ease; }
.type-options input:checked + span { color: var(--bg); background: var(--text); border-color: var(--text); }
.type-options span:hover { color: var(--text); border-color: var(--line-bright); }
.form-button { margin-left: auto; }

.research-lens { display: flex; justify-content: space-between; gap: 35px; margin: 10px 0 40px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.research-lens h3 { margin: 10px 0 7px; font-size: 19px; }
.research-lens p { max-width: 510px; margin-bottom: 12px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.inline-link { padding: 0; color: var(--accent-soft); border: 0; background: transparent; cursor: pointer; font-size: 11px; letter-spacing: .03em; }
.switch { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; flex: 0 0 auto; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch-track { position: relative; width: 45px; height: 23px; border: 1px solid var(--line-bright); border-radius: 20px; transition: .2s ease; }
.switch-track i { position: absolute; width: 15px; height: 15px; left: 3px; top: 3px; border-radius: 50%; background: var(--muted); transition: .2s ease; }
.switch input:checked + .switch-track { border-color: var(--accent); background: rgba(184,150,99,.12); }
.switch input:checked + .switch-track i { left: 25px; background: var(--accent-soft); }
.switch-label { color: var(--muted); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }

.assessment { display: none; grid-template-columns: 230px 1fr; gap: 7vw; }
.assessment.active { display: grid; }
.assessment-index { border-right: 1px solid var(--line); padding-right: 34px; }
.assessment-index ol { list-style: none; margin: 60px 0 0; padding: 0; }
.assessment-index li { position: relative; padding: 14px 0 14px 18px; color: #55544f; font-family: var(--mono); font-size: 10px; text-transform: uppercase; transition: color .25s ease; }
.assessment-index li:before { content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.assessment-index li.done { color: #8a7b65; }
.assessment-index li.active { color: var(--text); }

.question-stage { display: flex; flex-direction: column; min-width: 0; }
.question-topline { display: flex; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.question-copy { max-width: 920px; padding: 8vh 0 6vh; }
.question-copy h2 { margin: 18px 0 24px; font-size: clamp(48px, 6.3vw, 102px); line-height: .95; letter-spacing: -.055em; }
.question-copy p { max-width: 650px; color: var(--muted); font-size: 17px; line-height: 1.55; }

.slider-module { margin-top: auto; }
.slider-value-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 16px; }
.slider-value-row span { font-size: 16px; }
.slider-value-row output { color: var(--accent-soft); font-family: var(--mono); font-size: 32px; }
input[type="range"] { width: 100%; height: 2px; appearance: none; background: linear-gradient(to right, var(--accent) 50%, var(--line) 50%); outline: none; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 22px; height: 22px; border: 6px solid var(--text); border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 1px var(--line-bright); }
input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border: 6px solid var(--text); border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 1px var(--line-bright); }
.slider-scale { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 15px; color: #5f5e58; font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.slider-scale span:nth-child(n+2):nth-child(-n+4) { text-align: center; }
.slider-scale span:last-child { text-align: right; }
.question-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 55px; }
.text-button { padding: 12px 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.text-button:hover { color: var(--text); }

.context-drawer { margin-top: 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.context-drawer summary { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; cursor: pointer; list-style: none; color: #aaa8a0; font-size: 13px; }
.context-drawer summary::-webkit-details-marker { display: none; }
.context-drawer summary i { display: inline-block; margin-right: 10px; color: var(--accent); font-style: normal; transition: transform .2s ease; }
.context-drawer[open] summary i { transform: rotate(45deg); }
.context-drawer summary small { color: #5e5d57; font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.context-body { padding: 8px 0 24px; }
.context-body > label { display: block; margin-bottom: 10px; color: var(--text); font-size: 18px; }
.context-body textarea { width: 100%; resize: vertical; min-height: 105px; padding: 16px; color: var(--text); border: 1px solid var(--line); outline: 0; background: var(--surface); font-family: var(--sans); font-size: 14px; line-height: 1.55; }
.context-body textarea:focus { border-color: var(--line-bright); }
.context-body textarea::placeholder { color: #575650; }
.context-tools { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 12px; }
.prompt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.prompt-chips button { padding: 7px 9px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.prompt-chips button:hover { color: var(--text); border-color: var(--line-bright); }
.context-note { margin: 12px 0 0; color: #676660; font-family: var(--mono); font-size: 9px; line-height: 1.4; text-transform: uppercase; text-align: right; }
.partial-analysis { margin-top: 24px; padding: 24px; border: 1px solid rgba(184,150,99,.35); background: linear-gradient(145deg, rgba(184,150,99,.08), rgba(16,16,15,.9)); }
.partial-head { display: flex; justify-content: space-between; align-items: center; }
.partial-reading { max-width: 830px; margin: 20px 0 24px; font-size: 19px; line-height: 1.55; }
.partial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 20px; border-top: 1px solid rgba(184,150,99,.2); }
.partial-grid span { color: var(--muted); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.partial-grid p { margin: 8px 0 0; color: #aaa8a0; font-size: 13px; line-height: 1.5; }
.partial-connections { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.partial-connections span { padding: 8px 10px; border: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.interpret-button { display: flex; align-items: center; gap: 20px; padding: 10px 13px; border: 1px solid var(--line-bright); background: transparent; cursor: pointer; font-size: 11px; white-space: nowrap; }
.interpret-button:hover { background: var(--text); color: var(--bg); }
.interpret-button:disabled { opacity: .45; cursor: wait; }
.interpret-button i { color: var(--accent); font-style: normal; }
.ai-reading { margin-top: 22px; padding: 22px; border: 1px solid rgba(184,150,99,.35); background: linear-gradient(145deg, rgba(184,150,99,.08), rgba(16,16,15,.9)); }
.ai-reading-head, .ai-score-row { display: flex; justify-content: space-between; align-items: center; }
.confidence { color: var(--muted); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.ai-interpretation { max-width: 780px; margin: 18px 0 20px; font-size: 18px; line-height: 1.5; }
.ai-reading-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; padding-top: 18px; border-top: 1px solid rgba(184,150,99,.2); }
.ai-reading-grid span, .synthesis-points span { color: var(--muted); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.ai-reading-grid p { margin: 7px 0 0; color: #aaa8a0; font-size: 13px; line-height: 1.45; }
.ai-score-row { margin-top: 20px; padding-top: 15px; border-top: 1px solid rgba(184,150,99,.2); color: var(--muted); font-size: 11px; }
.ai-score-row strong { color: var(--text); font-family: var(--mono); font-weight: 400; }

.results { padding-top: 145px; }
.result-intro { display: grid; grid-template-columns: 1fr 210px; align-items: center; gap: 50px; padding-bottom: 50px; border-bottom: 1px solid var(--line); }
.result-intro h2 { margin: 24px 0 0; font-size: clamp(55px, 7vw, 105px); line-height: .92; letter-spacing: -.06em; }
.score-orbit { position: relative; width: 180px; height: 180px; }
.score-orbit svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.orbit-track, .orbit-progress { fill: none; stroke-width: 1.5; }
.orbit-track { stroke: var(--line); }
.orbit-progress { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 440; stroke-dashoffset: 440; transition: stroke-dashoffset 1.1s cubic-bezier(.2,.8,.2,1); }
.orbit-value { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; padding-top: 68px; }
.orbit-value strong { font-size: 35px; font-weight: 300; }
.orbit-value span { color: var(--muted); font-family: var(--mono); font-size: 10px; }

.result-grid { display: grid; grid-template-columns: 1.25fr .75fr; border-bottom: 1px solid var(--line); }
.profile-panel, .diagnosis-panel { padding: 50px 0; }
.profile-panel { padding-right: 7vw; border-right: 1px solid var(--line); }
.profile-bars { margin-top: 36px; }
.profile-row { display: grid; grid-template-columns: 150px 1fr 28px; align-items: center; gap: 18px; padding: 11px 0; }
.profile-row .name { color: #bbb9b1; font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.bar-track { height: 2px; background: var(--line); }
.bar-fill { height: 100%; width: 0; background: var(--text); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.profile-row.highlight .bar-fill { background: var(--accent); }
.profile-row .value { text-align: right; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.diagnosis-panel { display: grid; grid-template-columns: 1fr; padding-left: 5vw; }
.diagnosis-panel article + article { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--line); }
.diagnosis-panel h3 { margin: 12px 0; font-size: 30px; }
.diagnosis-panel p { color: var(--muted); line-height: 1.5; }

.blueprint { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; padding: 75px 0; border-bottom: 1px solid var(--line); }
.blueprint-heading h2 { max-width: 760px; margin-top: 24px; font-size: clamp(44px, 5vw, 76px); line-height: .98; letter-spacing: -.05em; }
.blueprint-content > p { max-width: 610px; color: #aaa8a0; font-size: 18px; line-height: 1.55; }
.experience-card { margin-top: 42px; padding: 25px; border: 1px solid var(--line); background: var(--surface); }
.experience-card h3 { margin: 18px 0 12px; font-size: 28px; }
.experience-card p { margin-bottom: 0; color: var(--muted); line-height: 1.5; }
.result-actions { display: flex; justify-content: space-between; align-items: center; padding-top: 45px; }

.evidence-synthesis { margin-top: 70px; padding: 55px 0; border-top: 1px solid var(--accent); border-bottom: 1px solid var(--line); }
.axis-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 8vw; margin-top: 40px; padding-bottom: 50px; }
.axis-hero h2 { max-width: 780px; margin: 18px 0 22px; font-size: clamp(45px, 5vw, 74px); line-height: .98; letter-spacing: -.05em; }
.axis-statement { max-width: 760px; color: var(--text); font-size: 23px; line-height: 1.4; }
.strategic-reading { align-self: end; max-width: 650px; margin: 0; color: #aaa8a0; font-size: 17px; line-height: 1.6; }
.axis-foundation { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.axis-foundation article { min-height: 150px; padding: 25px 30px 25px 0; }
.axis-foundation article:nth-child(even) { padding-left: 30px; border-left: 1px solid var(--line); }
.axis-foundation article:nth-child(n+3) { border-top: 1px solid var(--line); }
.axis-foundation span, .axis-dimensions span, .axis-footnotes span { color: var(--muted); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.axis-foundation p, .axis-dimensions p, .axis-footnotes p { margin: 10px 0 0; color: #aaa8a0; line-height: 1.52; }
.axis-activation { display: grid; grid-template-columns: .65fr 1.35fr; gap: 7vw; padding: 55px 0; border-bottom: 1px solid var(--line); }
.axis-activation h3 { max-width: 360px; margin: 15px 0 0; font-size: 34px; line-height: 1.08; }
.axis-dimensions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 30px; }
.axis-dimensions article { padding: 16px 0; border-top: 1px solid var(--line); }
.axis-footnotes { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding-top: 35px; }
.axis-footnotes article { padding-right: 25px; }

.territory-dialog { width: min(1050px, calc(100vw - 40px)); max-height: 88vh; padding: 0; color: var(--text); border: 1px solid var(--line-bright); background: #0b0b0a; box-shadow: 0 30px 100px rgba(0,0,0,.7); }
.territory-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(10px); }
.dialog-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; padding: 28px; border-bottom: 1px solid var(--line); background: #0b0b0a; }
.dialog-head h2 { margin: 10px 0 0; font-size: 38px; }
.dialog-head button { padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 30px; font-weight: 300; }
.dialog-intro { max-width: 720px; margin: 0; padding: 24px 28px; color: var(--muted); line-height: 1.5; }
.territory-list { padding: 0 28px 28px; }
.territory-item { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 25px 0; border-top: 1px solid var(--line); }
.territory-item h3 { margin: 7px 0 0; font-size: 23px; }
.territory-item .source-status { color: var(--accent); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.territory-item p { margin-bottom: 10px; color: #aaa8a0; line-height: 1.5; }
.territory-item small { color: #62615b; font-family: var(--mono); font-size: 8px; line-height: 1.5; text-transform: uppercase; }

@media (max-width: 900px) {
  .site-header, .site-footer { padding-left: 20px; padding-right: 20px; }
  .header-meta span:first-child { display: none; }
  .screen { padding-left: 24px; padding-right: 24px; }
  .landing h1 { margin-top: 12vh; }
  .landing-footer { grid-template-columns: 1fr; }
  .dimension-line { display: none; }
  .setup-grid { grid-template-columns: 1fr; gap: 25px; }
  .setup h2 { font-size: 58px; }
  .assessment.active { grid-template-columns: 1fr; }
  .assessment-index { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 20px; }
  .assessment-index ol { display: none; }
  .question-copy { padding: 7vh 0 5vh; }
  .question-copy h2 { font-size: 54px; }
  .result-intro { grid-template-columns: 1fr; }
  .score-orbit { width: 150px; height: 150px; }
  .orbit-value { padding-top: 55px; }
  .result-grid, .blueprint { grid-template-columns: 1fr; }
  .axis-hero, .axis-activation { grid-template-columns: 1fr; }
  .axis-foundation, .axis-dimensions, .axis-footnotes { grid-template-columns: 1fr; }
  .axis-foundation article:nth-child(even) { padding-left: 0; border-left: 0; }
  .axis-foundation article + article { border-top: 1px solid var(--line); }
  .profile-panel { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .diagnosis-panel { padding-left: 0; }
  .profile-row { grid-template-columns: 112px 1fr 28px; }
  .context-tools { align-items: stretch; flex-direction: column; }
  .interpret-button { justify-content: space-between; }
  .ai-reading-grid { grid-template-columns: 1fr; }
  .partial-grid { grid-template-columns: 1fr; }
  .territory-item { grid-template-columns: 1fr; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
