/**
 * Voice Codex Page Styles
 * Deep Self - Voice Self Protocol
 * 
 * Page-specific styles for voice-codex.html
 */

body {
    font-family: var(--font-family);
    font-weight: 400;
    line-height: 1.7;
    color: var(--cream);
    background-color: var(--black);
    -webkit-font-smoothing: antialiased;
    padding-top: var(--header-height);
}

/* ===== ACCESS GATE ===== */
.access-gate {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.15) 0%, rgba(167, 139, 250, 0.1) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(244, 114, 182, 0.3);
    padding: 1rem 2rem;
    z-index: 999;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1rem;
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
}

.access-gate.unlocked {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.access-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--pink);
    font-family: var(--font-family);
}

.access-input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--grey-dark);
    padding: 0.5rem 1rem;
    color: var(--cream);
    font-family: var(--font-family);
    font-size: 0.875rem;
    width: 200px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.access-input:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 20px rgba(244, 114, 182, 0.2);
}

.access-input::placeholder { color: var(--grey); }

.access-button {
    background: var(--pink);
    border: none;
    padding: 0.5rem 1.5rem;
    color: var(--black);
    font-family: var(--font-family);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.access-button:hover {
    background: var(--rose);
    box-shadow: 0 0 30px rgba(244, 114, 182, 0.4);
}

/* ===== REDACTION EFFECTS ===== */
.redact-bar {
    background: var(--cream);
    color: var(--cream);
    padding: 0 0.25rem;
    user-select: none;
}

.redact-blur {
    filter: blur(4px);
    user-select: none;
    transition: filter 0.5s ease;
}

.redact-blur-heavy {
    filter: blur(8px);
    user-select: none;
    opacity: 0.7;
}

.redact-pixel {
    filter: blur(3px) contrast(100);
    user-select: none;
    opacity: 0.8;
}

.redact-strike {
    text-decoration: line-through;
    text-decoration-color: var(--rose);
    text-decoration-thickness: 2px;
    opacity: 0.6;
}

.redact-glass {
    background: rgba(244, 114, 182, 0.1);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(244, 114, 182, 0.2);
    padding: 1rem;
    border-radius: 4px;
}

.redact-scramble {
    font-family: var(--font-family);
    letter-spacing: 0.2em;
    opacity: 0.5;
}

.redact-fade {
    opacity: 0.15;
    user-select: none;
}

/* ===== UNLOCKED STATE ===== */
body.unlocked .redact-bar {
    background: transparent;
    color: inherit;
}

body.unlocked .redact-blur,
body.unlocked .redact-blur-heavy,
body.unlocked .redact-pixel {
    filter: none;
    opacity: 1;
}

body.unlocked .redact-strike {
    text-decoration: none;
    opacity: 1;
}

body.unlocked .redact-glass {
    background: transparent;
    backdrop-filter: none;
    border: none;
    padding: 0;
}

body.unlocked .redact-scramble {
    letter-spacing: normal;
    opacity: 1;
}

body.unlocked .redact-fade {
    opacity: 1;
}

body.unlocked .locked-only { display: none; }
body.unlocked .unlocked-only { display: block; }

.locked-only { display: block; }
.unlocked-only { display: none; }

/* ===== HERO ===== */
.hero {
    padding: 6rem 2rem 6rem var(--left-offset);
    text-align: left;
    position: relative;
    border-bottom: 1px solid var(--grey-dark);
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(244, 114, 182, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0;
    position: relative;
}

.hero-badge {
    display: inline-block;
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(244, 114, 182, 0.4);
    background: rgba(244, 114, 182, 0.1);
    color: var(--pink);
    font-family: var(--font-family);
    margin-bottom: 2rem;
}

.hero-title {
    font-family: var(--font-family);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    color: var(--cream);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title em {
    font-style: normal;
    color: var(--pink);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--cream);
    opacity: 0.8;
    max-width: 700px;
    margin: 0;
    line-height: 1.7;
}

/* ===== SECTIONS ===== */
.section {
    padding: 5rem 2rem 5rem var(--left-offset);
    border-bottom: 1px solid var(--grey-dark);
}

.section-dark { background: var(--black); }
.section-charcoal { background: var(--charcoal); }

.section-container {
    max-width: 1000px;
    margin: 0;
}

.section-header {
    text-align: left;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(244, 114, 182, 0.4);
    background: rgba(244, 114, 182, 0.08);
    color: var(--pink);
    font-family: var(--font-family);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-family);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 400;
    color: var(--cream);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--grey);
    line-height: 1.8;
    max-width: 700px;
    margin: 0;
}

/* ===== WHAT MAKES VOICE DIFFERENT ===== */
.difference-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.difference-card {
    background: var(--charcoal);
    border: 1px solid var(--grey-dark);
    padding: 2rem;
    text-align: left;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.difference-card--public { border-color: rgba(0, 245, 160, 0.3); }
.difference-card--document { border-color: rgba(167, 139, 250, 0.3); }
.difference-card--voice {
    border-color: rgba(244, 114, 182, 0.5);
    background: rgba(244, 114, 182, 0.05);
}

.difference-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.difference-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.difference-title--public { color: var(--green); }
.difference-title--document { color: var(--violet); }
.difference-title--voice { color: var(--pink); }

.difference-type {
    font-size: 0.75rem;
    color: var(--grey);
    margin-bottom: 1rem;
}

.difference-desc {
    font-size: 0.875rem;
    color: var(--cream);
    opacity: 0.8;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.difference-note {
    font-size: 0.75rem;
    color: var(--grey);
    font-style: normal;
}

.difference-insight {
    background: rgba(244, 114, 182, 0.1);
    border: 1px solid rgba(244, 114, 182, 0.3);
    padding: 1.5rem;
    border-radius: 4px;
    text-align: left;
}

.difference-insight p {
    font-size: 0.9375rem;
    color: var(--cream);
    line-height: 1.8;
}

.difference-insight strong { color: var(--pink); }
.difference-insight em { color: var(--rose); font-style: normal; }

@media (max-width: 768px) {
    html, body { overflow-x: hidden; }
    img, svg, video, pre { max-width: 100%; }
    .difference-grid { grid-template-columns: 1fr; }
    .transmission-score { flex-wrap: wrap; }
}

/* ===== PHASE FLOW ===== */
.phase-list {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.phase-item {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.phase-1 { background: rgba(139, 92, 246, 0.3); color: #A78BFA; }
.phase-2 { background: rgba(168, 85, 247, 0.3); color: #C084FC; }
.phase-3 { background: rgba(217, 70, 239, 0.3); color: #E879F9; }
.phase-4 { background: rgba(236, 72, 153, 0.3); color: #F472B6; }
.phase-5 { background: rgba(244, 63, 94, 0.3); color: #FB7185; }
.phase-6 { background: rgba(239, 68, 68, 0.3); color: #F87171; }
.phase-7 { background: rgba(249, 115, 22, 0.3); color: #FB923C; }

/* ===== FLOW DIAGRAM ===== */
.flow-diagram {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.flow-step {
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: 0.875rem;
    text-align: left;
    max-width: 500px;
    width: 100%;
}

.flow-step--input {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: var(--violet);
}

.flow-step--process {
    background: rgba(244, 114, 182, 0.15);
    border: 1px solid rgba(244, 114, 182, 0.3);
    color: var(--cream);
}

.flow-step--output {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.3), rgba(239, 68, 68, 0.3));
    border: 1px solid rgba(249, 115, 22, 0.5);
    color: var(--cream);
    font-weight: 600;
}

.flow-arrow {
    font-size: 1.5rem;
    color: var(--grey);
}

.flow-layers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    width: 100%;
    max-width: 700px;
}

.flow-layer {
    padding: 0.75rem;
    border-radius: 4px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
}

.flow-layer--origin { background: rgba(251, 191, 36, 0.2); border: 1px solid rgba(251, 191, 36, 0.4); color: #FBBF24; }
.flow-layer--authority { background: rgba(249, 115, 22, 0.2); border: 1px solid rgba(249, 115, 22, 0.4); color: #FB923C; }
.flow-layer--practice { background: rgba(251, 113, 133, 0.2); border: 1px solid rgba(251, 113, 133, 0.4); color: #FB7185; }
.flow-layer--reception { background: rgba(244, 114, 182, 0.2); border: 1px solid rgba(244, 114, 182, 0.4); color: #F472B6; }

/* ===== FOUR LAYERS ===== */
.layers-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.layer-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 4px;
    border-left: 4px solid;
    background: var(--charcoal);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.layer-card:hover {
    transform: translateX(8px);
}

.layer-card--origin { border-color: #FBBF24; background: rgba(251, 191, 36, 0.05); }
.layer-card--authority { border-color: #FB923C; background: rgba(249, 115, 22, 0.05); }
.layer-card--practice { border-color: #FB7185; background: rgba(251, 113, 133, 0.05); }
.layer-card--reception { border-color: #F472B6; background: rgba(244, 114, 182, 0.05); }

.layer-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.layer-number--origin { background: #FBBF24; color: var(--black); }
.layer-number--authority { background: #FB923C; color: var(--black); }
.layer-number--practice { background: #FB7185; color: var(--black); }
.layer-number--reception { background: #F472B6; color: var(--black); }

.layer-content { flex-grow: 1; }

.layer-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.layer-roles {
    font-size: 0.8125rem;
    color: var(--grey);
    margin-bottom: 0.5rem;
}

.layer-desc {
    font-size: 0.875rem;
    color: var(--cream);
    opacity: 0.8;
}

.layer-characteristic {
    font-size: 0.8125rem;
    color: var(--cream);
    opacity: 0.7;
    font-style: normal;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--grey-dark);
}

.layers-flow {
    text-align: left;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(244, 114, 182, 0.05);
    border-radius: 4px;
}

.layers-flow-text {
    font-size: 0.875rem;
    color: var(--grey);
    font-family: var(--font-family);
}

.layers-flow-label {
    font-size: 0.75rem;
    color: var(--pink);
    margin-top: 0.5rem;
}

/* ===== CHARACTER MAP ===== */
.character-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.character-structure {
    background: var(--charcoal);
    border: 1px solid rgba(167, 139, 250, 0.3);
    padding: 1.5rem;
    border-radius: 4px;
}

.character-structure-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--violet);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.sic-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sic-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    font-size: 0.8125rem;
}

.sic-num {
    width: 24px;
    height: 24px;
    background: var(--violet);
    color: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    font-size: 0.6875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.sic-label {
    font-weight: 600;
    color: var(--cream);
    width: 90px;
}

.sic-question {
    color: var(--grey);
    font-size: 0.75rem;
}

.character-example {
    background: var(--charcoal);
    border: 1px solid rgba(251, 191, 36, 0.3);
    padding: 1.5rem;
    border-radius: 4px;
}

.character-example-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.character-example-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #FBBF24;
}

.character-example-layer {
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    background: rgba(251, 191, 36, 0.2);
    color: #FBBF24;
    border-radius: 4px;
    text-transform: uppercase;
}

.character-meta {
    font-size: 0.75rem;
    color: var(--grey);
    margin-bottom: 1rem;
}

.character-positions {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-height: 280px;
    overflow-y: auto;
}

.character-position {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0.375rem 0.5rem;
    background: rgba(251, 191, 36, 0.05);
    border-radius: 4px;
    font-size: 0.75rem;
}

.position-sic { color: var(--grey); }
.position-text { color: var(--cream); flex-grow: 1; margin: 0 0.5rem; }
.position-code {
    font-family: var(--font-family);
    font-size: 0.6875rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: 2px;
    color: #FBBF24;
}

@media (max-width: 900px) {
    .character-grid { grid-template-columns: 1fr; }
}

/* ===== CHARACTER RULES ===== */
.character-rules {
    margin-top: 2rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 4px;
}

.character-rules-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 0.5rem;
}

.character-rules-subtitle {
    font-size: 0.75rem;
    color: var(--grey);
    margin-bottom: 1rem;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.rule-card {
    background: var(--charcoal);
    border: 1px solid var(--grey-dark);
    padding: 1rem;
    border-radius: 4px;
}

.rule-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.rule-label--always { color: var(--green); }
.rule-label--never { color: var(--red); }
.rule-label--pressure { color: #FB923C; }
.rule-label--protects { color: var(--violet); }

.rule-text {
    font-size: 0.8125rem;
    color: var(--cream);
    opacity: 0.8;
}

@media (max-width: 600px) {
    .rules-grid { grid-template-columns: 1fr; }
}

/* ===== RELATIONSHIP ALGEBRA ===== */
.algebra-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1rem;
}

.algebra-item {
    padding: 1rem 1.5rem;
    border-radius: 4px;
    text-align: left;
    min-width: 100px;
}

.algebra-item--contradiction { background: rgba(239, 68, 68, 0.2); border: 1px solid rgba(239, 68, 68, 0.4); }
.algebra-item--tension { background: rgba(249, 115, 22, 0.2); border: 1px solid rgba(249, 115, 22, 0.4); }
.algebra-item--alignment { background: rgba(34, 197, 94, 0.2); border: 1px solid rgba(34, 197, 94, 0.4); }
.algebra-item--echo { background: rgba(59, 130, 246, 0.2); border: 1px solid rgba(59, 130, 246, 0.4); }
.algebra-item--dependency { background: rgba(168, 85, 247, 0.2); border: 1px solid rgba(168, 85, 247, 0.4); }
.algebra-item--silence { background: rgba(107, 114, 128, 0.2); border: 1px solid rgba(107, 114, 128, 0.4); }
.algebra-item--blindspot { background: rgba(234, 179, 8, 0.2); border: 1px solid rgba(234, 179, 8, 0.4); }

.algebra-symbol {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.algebra-symbol--contradiction { color: #F87171; }
.algebra-symbol--tension { color: #FB923C; }
.algebra-symbol--alignment { color: #4ADE80; }
.algebra-symbol--echo { color: #60A5FA; }
.algebra-symbol--dependency { color: #C084FC; }
.algebra-symbol--silence { color: #9CA3AF; }
.algebra-symbol--blindspot { color: #FACC15; }

.algebra-name {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cream);
}

/* ===== TRANSMISSION MATRICES ===== */
.transmission-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.transmission-card {
    background: var(--charcoal);
    border: 1px solid var(--grey-dark);
    padding: 1.5rem;
    border-radius: 4px;
}

.transmission-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.transmission-route {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.transmission-from, .transmission-to {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--cream);
}

.transmission-arrow { color: var(--grey); }

.transmission-name {
    font-size: 0.625rem;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--grey);
    text-transform: uppercase;
}

.transmission-score {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.transmission-score-label {
    font-size: 0.6875rem;
    color: var(--grey);
}

.transmission-score-value {
    font-size: 1rem;
    font-weight: 700;
}

.transmission-score-value--high { color: var(--green); }
.transmission-score-value--medium { color: #FACC15; }
.transmission-score-value--low { color: var(--red); }

.transmission-pattern {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.pattern-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.pattern-num {
    font-size: 0.625rem;
    color: var(--grey);
}

.pattern-symbol {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 1rem;
}

.pattern-symbol--contradiction { background: rgba(239, 68, 68, 0.2); }
.pattern-symbol--tension { background: rgba(249, 115, 22, 0.2); }
.pattern-symbol--alignment { background: rgba(34, 197, 94, 0.2); }
.pattern-symbol--echo { background: rgba(59, 130, 246, 0.2); }
.pattern-symbol--silence { background: rgba(107, 114, 128, 0.2); }
.pattern-symbol--blindspot { background: rgba(234, 179, 8, 0.2); }

.transmission-diagnosis {
    font-size: 0.875rem;
    color: var(--cream);
    opacity: 0.8;
    font-style: normal;
}

.transmission-verdict {
    margin-top: 2rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 1.5rem;
    border-radius: 4px;
}

.verdict-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 0.5rem;
}

.verdict-text {
    font-size: 0.9375rem;
    color: var(--cream);
    opacity: 0.9;
    line-height: 1.7;
}

/* ===== VERTICAL READ ===== */
.vertical-read-question {
    background: rgba(167, 139, 250, 0.15);
    border: 1px solid rgba(167, 139, 250, 0.3);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.vertical-question-num {
    width: 36px;
    height: 36px;
    background: var(--violet);
    color: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    font-weight: 700;
    flex-shrink: 0;
}

.vertical-question-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--cream);
}

.vertical-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.vertical-responses {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vertical-responses-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 0.5rem;
}

.vertical-response {
    padding: 1rem;
    border-radius: 4px;
    border-left: 3px solid;
}

.vertical-response--origin { background: rgba(251, 191, 36, 0.1); border-color: #FBBF24; }
.vertical-response--authority { background: rgba(249, 115, 22, 0.1); border-color: #FB923C; }
.vertical-response--practice { background: rgba(251, 113, 133, 0.1); border-color: #FB7185; }
.vertical-response--reception { background: rgba(244, 114, 182, 0.1); border-color: #F472B6; }

.response-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.response-layer {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--cream);
}

.response-code {
    font-family: var(--font-family);
    font-size: 0.6875rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: 2px;
}

.response-says {
    font-size: 0.875rem;
    color: var(--cream);
    opacity: 0.9;
}

.response-voice {
    font-size: 0.6875rem;
    color: var(--grey);
    margin-top: 0.25rem;
}

.vertical-matrix-container {
    display: flex;
    flex-direction: column;
}

.vertical-matrix-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 0.75rem;
}

.vertical-matrix {
    border-collapse: collapse;
    width: 100%;
}

.vertical-matrix th {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--grey);
    padding: 0.5rem;
    text-align: left;
}

.vertical-matrix td {
    width: 48px;
    height: 48px;
    text-align: left;
    font-size: 1.25rem;
    border: 1px solid var(--grey-dark);
}

.vertical-matrix .row-label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--grey);
    text-align: right;
    padding-right: 0.5rem;
    width: auto;
    border: none;
}

.vertical-diagnosis {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 4px;
}

.vertical-diagnosis-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #FBBF24;
    margin-bottom: 0.25rem;
}

.vertical-diagnosis-text {
    font-size: 0.8125rem;
    color: var(--cream);
    opacity: 0.9;
}

@media (max-width: 900px) {
    .vertical-content { grid-template-columns: 1fr; }
}

/* ===== VOICE CODEX OUTPUT ===== */
.output-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.output-card {
    padding: 1rem;
    border-radius: 4px;
    border-left: 3px solid;
}

.output-card--characters { background: rgba(251, 191, 36, 0.1); border-color: #FBBF24; }
.output-card--transmissions { background: rgba(249, 115, 22, 0.1); border-color: #FB923C; }
.output-card--verticals { background: rgba(251, 113, 133, 0.1); border-color: #FB7185; }
.output-card--patterns { background: rgba(239, 68, 68, 0.1); border-color: #F87171; }
.output-card--protections { background: rgba(168, 85, 247, 0.1); border-color: #A855F7; }
.output-card--blindspots { background: rgba(139, 92, 246, 0.1); border-color: #8B5CF6; }
.output-card--knowledge { background: rgba(99, 102, 241, 0.1); border-color: #6366F1; }
.output-card--unsaid { background: rgba(107, 114, 128, 0.1); border-color: #6B7280; }

.output-title {
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.output-title--characters { color: #FBBF24; }
.output-title--transmissions { color: #FB923C; }
.output-title--verticals { color: #FB7185; }
.output-title--patterns { color: #F87171; }
.output-title--protections { color: #A855F7; }
.output-title--blindspots { color: #8B5CF6; }
.output-title--knowledge { color: #6366F1; }
.output-title--unsaid { color: #6B7280; }

.output-desc {
    font-size: 0.75rem;
    color: var(--cream);
    opacity: 0.7;
}

@media (max-width: 600px) {
    .output-grid { grid-template-columns: 1fr; }
}

/* ===== THREAD ARCHITECTURE ===== */
.thread-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.thread-column {
    background: var(--charcoal);
    border-radius: 4px;
    padding: 1.5rem;
}

.thread-column-title {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.thread-column-title--extraction { color: var(--violet); }
.thread-column-title--socialization { color: #FB923C; }

.thread-code {
    font-family: var(--font-family);
    font-size: 0.75rem;
    line-height: 1.8;
}

.thread-comment { color: var(--grey); }
.thread-project { color: var(--cream); }
.thread-indent { color: var(--grey); opacity: 0.6; }

@media (max-width: 768px) {
    .thread-grid { grid-template-columns: 1fr; }
}

/* ===== TOPOLOGY ===== */
.topology-container {
    background: rgba(107, 114, 128, 0.1);
    border-radius: 4px;
    padding: 2rem;
    position: relative;
    min-height: 400px;
}

.topology-node {
    position: absolute;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.topology-node--origin {
    width: 80px;
    height: 80px;
    background: #FBBF24;
    color: var(--black);
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6875rem;
}

.topology-node--authority {
    width: 80px;
    height: 80px;
    background: #FB923C;
    color: var(--black);
    top: 130px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6875rem;
}

.topology-node--practice-a {
    width: 64px;
    height: 64px;
    background: #FB7185;
    color: var(--black);
    top: 240px;
    left: 30%;
    transform: translateX(-50%);
    font-size: 0.625rem;
}

.topology-node--practice-b {
    width: 64px;
    height: 64px;
    background: #FB7185;
    color: var(--black);
    top: 240px;
    left: 70%;
    transform: translateX(-50%);
    font-size: 0.625rem;
}

.topology-node--reception {
    width: 64px;
    height: 64px;
    background: #F472B6;
    color: var(--black);
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.625rem;
}

.topology-code {
    font-family: var(--font-family);
    font-size: 0.5rem;
    margin-top: 2px;
    opacity: 0.8;
}

.topology-gap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30, 30, 30, 0.9);
    border: 2px dashed var(--grey-dark);
    padding: 1rem;
    border-radius: 4px;
    text-align: left;
}

.topology-gap-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--cream);
}

.topology-gap-label {
    font-size: 0.625rem;
    color: var(--grey);
}

.topology-legend {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.6875rem;
}

.topology-legend-title {
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 0.5rem;
}

.topology-legend-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--grey);
}

.topology-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.topology-legend-dot--origin { background: #FBBF24; }
.topology-legend-dot--authority { background: #FB923C; }
.topology-legend-dot--practice { background: #FB7185; }
.topology-legend-dot--reception { background: #F472B6; }

/* ===== TRIANGULATION ===== */
.triangulation {
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.8), rgba(67, 56, 202, 0.8));
    padding: 3rem 2rem;
    border-radius: 4px;
    text-align: left;
}

.triangulation-title {
    font-family: var(--font-family);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--cream);
    margin-bottom: 0.5rem;
}

.triangulation-subtitle {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.triangulation-flow {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.triangulation-codex {
    padding: 1rem 1.5rem;
    border-radius: 4px;
    text-align: left;
    min-width: 140px;
}

.triangulation-codex--public {
    background: rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.5);
}

.triangulation-codex--document {
    background: rgba(34, 197, 94, 0.3);
    border: 1px solid rgba(34, 197, 94, 0.5);
}

.triangulation-codex--voice {
    background: rgba(168, 85, 247, 0.3);
    border: 1px solid rgba(168, 85, 247, 0.5);
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}

.triangulation-codex--living {
    background: var(--cream);
    color: var(--black);
    box-shadow: 0 4px 30px rgba(255, 255, 255, 0.3);
    min-width: 160px;
}

.triangulation-codex-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.triangulation-codex-name {
    font-size: 0.875rem;
    font-weight: 700;
}

.triangulation-codex-desc {
    font-size: 0.6875rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

.triangulation-plus {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.triangulation-equals {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.triangulation-insight {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.triangulation-insight strong { color: var(--cream); }

/* ===== CRYPTIC END ===== */
.cryptic-section {
    padding: 4rem 2rem;
    text-align: left;
    background: linear-gradient(180deg, var(--black) 0%, rgba(244, 114, 182, 0.05) 100%);
}

.cryptic-text {
    font-family: var(--font-family);
    font-size: 1.25rem;
    font-style: normal;
    color: var(--pink);
    opacity: 0.6;
    max-width: 700px;
    margin: 0;
    line-height: 1.8;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--black);
    padding: 3rem 2rem 3rem var(--left-offset);
    border-top: 1px solid var(--grey-dark);
    text-align: left;
}

.footer-logo {
    height: 32px;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.footer-tagline {
    font-size: 0.75rem;
    color: var(--grey);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--grey-dark);
}

/* ===== SELECTION ===== */
::selection {
    background: var(--pink);
    color: var(--black);
}
