:root {
  --psych-gold: #e4c777;
  --psych-cream: #f3f0e5;
  --psych-mint: #72d9aa;
  --psych-violet: #a79ce8;
  --psych-rose: #dc8c91;
  --psych-blue: #83a8e8;
  --psych-line: rgba(222, 195, 116, 0.15);
  --psych-panel: rgba(13, 16, 12, 0.88);
}

.psychology-page { background: #060805; color: var(--psych-cream); }
.psychology-page .workspace { min-width: 0; }
.psychology-scroll { padding: 48px clamp(22px, 3vw, 54px) 70px; }

.psychology-actions { gap: 10px; }
.psychology-actions label {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(220, 199, 128, 0.14);
  border-radius: 11px;
  background: rgba(9, 12, 9, 0.72);
}
.psychology-actions label > span { color: #7f827a; font: 400 8px/1 "DM Mono", monospace; letter-spacing: .13em; text-transform: uppercase; }
.psychology-actions select { max-width: 155px; border: 0; outline: 0; color: #d9d8ce; background: transparent; font: 500 10px/1.2 "DM Mono", monospace; }
.psychology-actions option { background: #10130f; }
.evidence-badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid rgba(112, 215, 169, .18); border-radius: 999px; color: #78cba3; font: 400 7px/1 "DM Mono", monospace; letter-spacing: .09em; text-transform: uppercase; }
.evidence-badge i { width: 4px; height: 4px; border-radius: 50%; background: #79e1ad; box-shadow: 0 0 9px #79e1ad; }

.psychology-hero {
  position: relative;
  display: grid;
  min-height: 320px;
  grid-template-columns: minmax(0, 1fr) 225px;
  align-items: center;
  margin-bottom: 24px;
  padding: 32px clamp(8px, 3vw, 34px);
  overflow: hidden;
}
.psychology-hero::before { position: absolute; top: 51%; right: 2%; width: 46%; height: 1px; content: ""; background: linear-gradient(90deg, transparent, rgba(167, 156, 232, .18), rgba(225, 195, 110, .24), transparent); box-shadow: 0 0 50px rgba(167, 156, 232, .08); }
.psychology-hero-copy { position: relative; z-index: 1; max-width: 850px; }
.psychology-hero-copy h1 { max-width: 790px; margin: 18px 0 22px; color: #f2f0e7; font: 600 clamp(42px, 5.2vw, 76px)/.96 "Plus Jakarta Sans", sans-serif; letter-spacing: -.065em; }
.psychology-hero-copy h1 em { display: block; color: var(--psych-gold); font-style: normal; }
.psychology-hero-copy > p:last-child { max-width: 740px; color: #8e9289; font-size: 14px; line-height: 1.8; }

.mind-orbit { position: relative; display: grid; width: 202px; aspect-ratio: 1; place-items: center; justify-self: end; }
.mind-orbit::before { position: absolute; inset: 9%; border-radius: 50%; content: ""; background: radial-gradient(circle, rgba(166, 154, 230, .12), transparent 66%); box-shadow: 0 0 95px rgba(166, 154, 230, .08); }
.mind-ring { position: absolute; border: 1px solid rgba(218, 190, 105, .25); border-radius: 50%; }
.mind-ring-a { inset: 7%; transform: rotate(25deg) scaleY(.52); animation: mind-orbit-a 15s linear infinite; }
.mind-ring-b { inset: 1%; border-color: rgba(169, 157, 232, .28); transform: rotate(-50deg) scaleY(.36); animation: mind-orbit-b 20s linear infinite; }
.mind-pulse { position: absolute; width: 63%; aspect-ratio: 1; border: 1px solid rgba(113, 217, 170, .13); border-radius: 50%; animation: mind-breathe 5.5s ease-in-out infinite; }
.mind-core { position: relative; z-index: 2; display: flex; width: 118px; aspect-ratio: 1; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(225, 199, 121, .2); border-radius: 50%; background: radial-gradient(circle at 50% 34%, rgba(170, 158, 229, .13), rgba(8, 11, 8, .95) 68%); box-shadow: inset 0 0 30px rgba(217, 188, 102, .05), 0 0 38px rgba(161, 149, 225, .07); }
.mind-core small, .mind-core span { color: #777c72; font: 400 7px/1.2 "DM Mono", monospace; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.mind-core strong { margin: 6px 0 5px; color: #e6ce88; font: 500 29px/1 "DM Mono", monospace; }
.mind-core span { max-width: 82px; color: #82c8a3; }

.psychology-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 22px; overflow: hidden; border: 1px solid var(--psych-line); border-radius: 18px; background: linear-gradient(130deg, rgba(21, 23, 17, .87), rgba(8, 11, 8, .89)); box-shadow: 0 22px 70px rgba(0, 0, 0, .2); }
.psychology-metrics article { min-width: 0; padding: 22px 20px 20px; border-right: 1px solid rgba(224, 199, 119, .1); }
.psychology-metrics article:last-child { border-right: 0; }
.psychology-metrics span, .psychology-metrics small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psychology-metrics span { color: #6f746b; font: 400 8px/1.2 "DM Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.psychology-metrics strong { display: block; margin: 13px 0 8px; color: #eae7dc; font: 500 clamp(20px, 2vw, 29px)/1 "DM Mono", monospace; letter-spacing: -.06em; }
.psychology-metrics small { color: #696e66; font-size: 8px; }

.psychology-panel { border: 1px solid var(--psych-line); border-radius: 20px; background: linear-gradient(145deg, rgba(18, 21, 16, .91), rgba(8, 11, 8, .93)); box-shadow: 0 24px 80px rgba(0, 0, 0, .2), inset 0 1px rgba(255, 255, 255, .015); }
.psychology-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 24px 25px 18px; }
.psychology-panel h2 { margin: 7px 0 0; font: 600 19px/1.2 "Plus Jakarta Sans", sans-serif; letter-spacing: -.04em; }
.panel-kicker { margin: 0; color: #77796d; font: 400 8px/1.2 "DM Mono", monospace; letter-spacing: .15em; text-transform: uppercase; }
.sample-mark, .method-pill { display: inline-flex; padding: 6px 8px; border: 1px solid rgba(112, 215, 169, .18); border-radius: 999px; color: #79c89f; font: 400 7px/1 "DM Mono", monospace; text-transform: uppercase; }
.method-pill { border-color: rgba(221, 195, 116, .16); color: #9b906c; }

.psychology-primary-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(300px, .68fr); gap: 22px; margin-bottom: 22px; }
.signal-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(221, 195, 116, .09); }
.signal-card { position: relative; min-height: 145px; padding: 22px 24px 20px 31px; border-right: 1px solid rgba(221, 195, 116, .08); border-bottom: 1px solid rgba(221, 195, 116, .08); }
.signal-card:nth-child(2n) { border-right: 0; }
.signal-card::before { position: absolute; top: 27px; left: 18px; width: 5px; height: 5px; border-radius: 50%; content: ""; background: #9e936d; box-shadow: 0 0 8px rgba(158, 147, 109, .4); }
.signal-card.is-clear::before { background: var(--psych-mint); box-shadow: 0 0 9px rgba(114, 217, 170, .5); }
.signal-card.is-attention::before { background: var(--psych-rose); box-shadow: 0 0 9px rgba(220, 140, 145, .5); }
.signal-card span { color: #696e65; font: 400 7px/1.2 "DM Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.signal-card strong { display: block; margin: 9px 0 7px; color: #d9d7cd; font-size: 12px; line-height: 1.4; }
.signal-card p { margin: 0; color: #747a71; font-size: 9px; line-height: 1.65; }
.signal-card small { display: block; margin-top: 11px; color: #595f57; font: 400 7px/1 "DM Mono", monospace; }

.coverage-list { padding: 2px 24px 8px; }
.coverage-list > div { margin-bottom: 17px; }
.coverage-list span { display: flex; justify-content: space-between; margin-bottom: 8px; }
.coverage-list small { color: #747970; font-size: 8px; }
.coverage-list strong { color: #cac8be; font: 500 9px/1 "DM Mono", monospace; }
.coverage-list i { display: block; height: 3px; overflow: hidden; border-radius: 999px; background: rgba(220, 200, 128, .07); }
.coverage-list b { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #756db4, #72cfa3, #d4ba70); box-shadow: 0 0 10px rgba(166, 154, 229, .2); transition: width .7s cubic-bezier(.2,.8,.2,1); }
.coverage-panel footer { display: flex; align-items: baseline; gap: 10px; padding: 17px 24px 22px; border-top: 1px solid rgba(221, 195, 116, .08); }
.coverage-panel footer strong { color: #e4cb84; font: 500 23px/1 "DM Mono", monospace; }
.coverage-panel footer span { color: #676c64; font-size: 8px; }

.cohort-panel { margin-bottom: 22px; overflow: hidden; }
.cohort-table { border-top: 1px solid rgba(221, 195, 116, .1); }
.cohort-head, .cohort-row { display: grid; grid-template-columns: 1.1fr .5fr .72fr .88fr .9fr .65fr; align-items: center; gap: 17px; padding: 0 25px; }
.cohort-head { min-height: 47px; color: #5f655d; font: 400 7px/1 "DM Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.cohort-row { min-height: 67px; border-top: 1px solid rgba(221, 195, 116, .07); color: #9d9e95; font: 400 9px/1.3 "DM Mono", monospace; }
.cohort-row strong { color: #dcd9ce; font: 500 11px/1.2 "DM Mono", monospace; }
.cohort-state small { display: block; margin-top: 4px; color: #62685f; font-size: 7px; }
.evidence-state { justify-self: start; padding: 5px 7px; border: 1px solid rgba(210, 188, 121, .15); border-radius: 999px; color: #8d897b; font-size: 7px; text-transform: uppercase; }
.evidence-state.is-measured { border-color: rgba(113, 223, 166, .2); color: #78c99d; }
.evidence-state.is-forming { border-color: rgba(167, 156, 232, .24); color: #aaa1df; }

.dimensions-panel { margin-bottom: 22px; overflow: hidden; }
.dimension-tabs { display: flex; gap: 7px; padding: 0 25px 18px; overflow-x: auto; }
.dimension-tabs button { min-height: 34px; padding: 0 12px; border: 1px solid rgba(222, 195, 116, .11); border-radius: 999px; color: #73786f; background: rgba(255, 255, 255, .012); cursor: pointer; font: 400 8px/1 "DM Mono", monospace; white-space: nowrap; }
.dimension-tabs button.is-active { border-color: rgba(224, 199, 119, .3); color: #e0c77f; background: rgba(222, 195, 116, .06); }
.dimension-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(221, 195, 116, .1); }
.band-card { min-width: 0; padding: 24px; border-right: 1px solid rgba(221, 195, 116, .08); }
.band-card:last-child { border-right: 0; }
.band-card > span { color: #6e736a; font: 400 7px/1 "DM Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.band-card h3 { margin: 8px 0 20px; color: #dddacf; font: 600 15px/1.25 "Plus Jakarta Sans", sans-serif; }
.band-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.band-stats span { padding: 10px 7px; border: 1px solid rgba(221, 195, 116, .08); border-radius: 9px; background: rgba(255,255,255,.012); }
.band-stats small, .band-stats strong { display: block; }
.band-stats small { color: #5f645d; font-size: 6px; text-transform: uppercase; }
.band-stats strong { margin-top: 6px; color: #c7c4ba; font: 500 10px/1 "DM Mono", monospace; }
.band-card footer { display: flex; justify-content: space-between; margin-top: 15px; color: #676c64; font-size: 8px; }
.band-card footer b { color: #989488; font: 500 8px/1 "DM Mono", monospace; text-transform: uppercase; }

.psychology-secondary-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 22px; }
.transition-list { padding: 0 24px 24px; }
.transition-row { display: grid; grid-template-columns: 1.15fr .35fr .65fr .55fr; align-items: center; gap: 18px; min-height: 58px; border-top: 1px solid rgba(221, 195, 116, .08); color: #858980; font: 400 9px/1.3 "DM Mono", monospace; }
.transition-flow { display: flex; align-items: center; gap: 10px; }
.transition-flow strong { color: #d3d0c6; font-size: 10px; }
.transition-flow i { width: 24px; height: 1px; background: linear-gradient(90deg, #6d649f, #d0b567); }
.transition-row > strong { color: #c4c1b7; font: 500 10px/1 "DM Mono", monospace; }

.ritual-panel { position: relative; display: flex; min-height: 340px; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 28px; overflow: hidden; }
.ritual-panel::before { position: absolute; inset: 0; content: ""; background: radial-gradient(circle at 70% 25%, rgba(166, 154, 229, .12), transparent 38%); }
.ritual-panel > * { position: relative; z-index: 1; }
.ritual-panel h2 { max-width: 350px; margin: 10px 0 12px; font-size: 25px; line-height: 1.05; }
.ritual-panel > p:not(.panel-kicker) { max-width: 410px; margin: 0; color: #7a7f76; font-size: 10px; line-height: 1.7; }
.ritual-panel a { margin-top: 22px; padding: 12px 15px; border: 1px solid rgba(224, 199, 119, .2); border-radius: 10px; color: #dbc27a; text-decoration: none; font: 400 8px/1 "DM Mono", monospace; text-transform: uppercase; }
.ritual-orbit { position: absolute; top: 22px; right: 25px; width: 130px; aspect-ratio: 1; }
.ritual-orbit i, .ritual-orbit b { position: absolute; inset: 12%; border: 1px solid rgba(167, 156, 232, .25); border-radius: 50%; transform: rotate(36deg) scaleY(.42); animation: mind-orbit-a 18s linear infinite; }
.ritual-orbit b { inset: 2%; border-color: rgba(225, 198, 117, .19); transform: rotate(-38deg) scaleY(.52); animation: mind-orbit-b 22s linear infinite; }
.ritual-orbit span { position: absolute; inset: 44%; border-radius: 50%; background: var(--psych-gold); box-shadow: 0 0 18px rgba(228, 199, 119, .55); }

.psychology-loading, .psychology-empty { display: flex; min-height: 145px; align-items: center; justify-content: center; gap: 10px; color: #747970; font: 400 9px/1.5 "DM Mono", monospace; text-align: center; }
.psychology-loading span { width: 7px; height: 7px; border: 1px solid #9e8bc2; border-radius: 50%; animation: psychology-pulse 1.4s ease-in-out infinite; }
.psychology-footnote { display: flex; align-items: flex-start; gap: 12px; margin: 24px 2px 0; color: #5f645c; font: 400 8px/1.6 "DM Mono", monospace; }
.psychology-footnote span { width: 5px; height: 5px; flex: 0 0 auto; margin-top: 4px; border-radius: 50%; background: #9c8dc8; box-shadow: 0 0 8px rgba(156, 141, 200, .45); }

@keyframes mind-orbit-a { to { transform: rotate(385deg) scaleY(.52); } }
@keyframes mind-orbit-b { to { transform: rotate(-410deg) scaleY(.36); } }
@keyframes mind-breathe { 50% { transform: scale(1.09); opacity: .45; box-shadow: 0 0 30px rgba(113, 217, 170, .1); } }
@keyframes psychology-pulse { 50% { transform: scale(1.6); box-shadow: 0 0 12px rgba(167, 156, 232, .6); } }

@media (max-width: 1250px) {
  .psychology-metrics { grid-template-columns: repeat(3, 1fr); }
  .psychology-metrics article:nth-child(3) { border-right: 0; }
  .psychology-metrics article:nth-child(-n+3) { border-bottom: 1px solid rgba(224, 199, 119, .1); }
  .psychology-primary-grid { grid-template-columns: 1fr; }
  .coverage-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
}

@media (max-width: 900px) {
  .psychology-actions .evidence-badge { display: none; }
  .psychology-hero { min-height: 270px; grid-template-columns: 1fr 160px; }
  .mind-orbit { width: 150px; }
  .mind-core { width: 94px; }
  .psychology-secondary-grid { grid-template-columns: 1fr; }
  .cohort-table { overflow-x: auto; }
  .cohort-head, .cohort-row { min-width: 760px; }
}

@media (max-width: 680px) {
  .psychology-scroll { padding: 27px 15px 55px; }
  .psychology-actions { width: 100%; }
  .psychology-actions label { min-width: 0; flex: 1; justify-content: space-between; }
  .psychology-actions select { width: 100%; }
  .psychology-hero { display: block; min-height: 420px; padding: 20px 4px; }
  .psychology-hero-copy h1 { font-size: 47px; }
  .mind-orbit { width: 135px; margin-top: 28px; justify-self: start; }
  .mind-core { width: 84px; }
  .psychology-metrics { grid-template-columns: 1fr 1fr; }
  .psychology-metrics article:nth-child(n) { border-right: 1px solid rgba(224,199,119,.1); border-bottom: 1px solid rgba(224,199,119,.1); }
  .psychology-metrics article:nth-child(2n) { border-right: 0; }
  .psychology-metrics article:nth-child(n+5) { border-bottom: 0; }
  .signal-grid, .coverage-list, .dimension-grid { grid-template-columns: 1fr; }
  .signal-card, .band-card { border-right: 0; }
  .transition-row { grid-template-columns: 1fr .35fr .55fr; }
  .transition-row > span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mind-ring, .mind-pulse, .ritual-orbit i, .ritual-orbit b, .psychology-loading span { animation: none !important; }
}
