/* Shared night palette. Individual project identities retain their own colors. */
:root{--bg:#010304;--world:#010304;--ink:#839bbb;--muted:#778dab;--general-heading:#91a9c9;--surface:#03070c;--raised:#07101a;--edge:#1c2b3e;--violet:#ae83e8;--coral:#e4917d}
body{background:var(--world);color:var(--ink)}
body:not(.project-page) :is(h1,h2,h3,h4){color:var(--general-heading)}
body:not(.project-page) :is(.hero>p,.hero-bottom>p,.about p,.feature p,.notice p,.resource-note,.journal-preview p,.journal-entry>p,.development-context p,.account-state p,.consult-intro,.consult-aside p,.privacy-panel p,.privacy-summary,.form-help,.consult-form label,.consult-form legend,.next-steps,.poem-verses,.poem-subtitle,.poem-byline,.poem-signature,.book-description>p,.author-copy p,.writing-intro>p,.poetry-entry>div>p){color:var(--ink)}
body:not(.project-page) :is(.project-body,.repo-card,.directory-entry):is(.honeytrace-theme,.luna-theme,.strainless-theme,.violet-theme,.coral-theme) :is(h2,h3){color:var(--identity)}
body:not(.project-page) .project :is(h2,h3){color:var(--identity)}
body:not(.project-page) .accent{color:var(--lime)}
body:not(.project-page) :is(.hero:before,.detail-hero:before){background:linear-gradient(90deg,#010304fa 0%,#010304d9 52%,#01030455 100%)}
body:not(.project-page) :is(.about,.feature,.notice,.account-state,.demo,.conversation,.footer,.consult-main,.consult-card,.privacy-panel,.admin-lead,.admin-panel){background:#03070cf5;border-color:var(--edge)}
body:not(.project-page) .about{background:#010304ed}
body:not(.project-page) :is(.consult-form input:not([type=checkbox]),.consult-form textarea,.consult-form select,.admin-controls input,.admin-controls select,.directory-search input){background:#040a12;color:var(--ink);border-color:#30445f}
body:not(.project-page) :is(.consult-form input,.consult-form textarea)::placeholder{color:#7187a7}
body:not(.project-page) :is(.brand,.footer,.breadcrumbs,.account-email,th,td,.directory-search label){color:var(--ink)}
body:not(.project-page) .mark{color:#051008}
body:not(.project-page) :is(.principles span,.tag,.resource-type){color:var(--muted)}
body:not(.project-page) .outline{background:#030810;color:var(--general-heading);border-color:#405a7a}
body:not(.project-page) .outline:hover{background:#0c1828;color:#a8c0df}
.honeytrace-theme{--world:#010403;--surface:#020b07;--raised:#071a11}
.luna-theme{--world:#01020a;--surface:#03091b;--raised:#08172f}
.strainless-theme{--world:#060500;--surface:#0d0b02;--raised:#1e1906}
.violet-theme{--identity:var(--violet);--identity-soft:#cdb6ed;--identity-rgb:174,131,232;--world:#030106;--surface:#0b0613;--raised:#1c102e;--edge:#49305f;--copy:#b4a0c9}
.coral-theme{--identity:var(--coral);--identity-soft:#edb8aa;--identity-rgb:228,145,125;--world:#060201;--surface:#130805;--raised:#2d1510;--edge:#604035;--copy:#c3a39a}
:is(.honeytrace-theme,.luna-theme,.strainless-theme,.violet-theme,.coral-theme).project-page{background:var(--world)}
.project-page .hero:before,.project-page .detail-hero:before{background:linear-gradient(90deg,var(--world) 0%,transparent 100%)}
#digital-rain{opacity:.46;mask-image:linear-gradient(#000 0px,#000 580px,#0002 1050px)}
.writing-page{--paper:#91a9c9}
.writing-page .book-title-panel{background:#07101c;color:#91a9c9;border-color:#334963;box-shadow:12px 12px 0 #02060c}
.writing-page .excerpt-section{background:#030811;border-color:#24364d}
.writing-page :is(.book-feature,.poetry-entry,.author-section){border-color:#24364d}
.writing-page :is(.book-contents li,.excerpt-section blockquote){color:#91a9c9}

/* General reading surfaces use blue copy; project-branded sections keep their identity. */
body:not(.project-page){background:#010304}
body:not(.project-page) :is(.story-grid p,.journal-intro p,.journal-entry p,.consult-hero p,.consult-card p,.consult-side p,.consult-side li,.consent-row,.directory-entry p,.faq details p,.measurement-banner,.measurement-banner button:last-child){color:var(--ink)}
body:not(.project-page) :is(.story-grid .resource-note,.journal-preview time,.journal-entry time,.journal-facts dt,.book-contents span,.form-field label small,#search-status){color:var(--muted)}
body:not(.project-page) :is(.studio-story,.journal-preview,.journal-entry,.development-context,.directory-entry,.faq details,.privacy-summary,.measurement-banner){background:#03070cf5;border-color:var(--edge)}
body.consultation-page :is(.nav,.footer){background:#010304f5}
body:not(.project-page) .faq summary{color:var(--general-heading)}
body:not(.project-page) #page-search{background:#040a12;color:var(--ink);border-color:#30445f}
body:not(.project-page) .measurement-banner button:first-of-type{background:#a3b8d3;border-color:#a3b8d3;color:#07101b}

/* A native disclosure works with mouse, touch, keyboard, and without JavaScript. */
.nav{position:relative;z-index:30;display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:24px;min-height:96px;height:auto;padding:22px 0;background:#010304f5;border-color:#1c2b3e}
.brand{flex-shrink:0;gap:14px;letter-spacing:.025em}
.brand small{color:#7187a7}
.header-actions{display:flex;align-items:center;gap:28px;margin-left:auto}
.nav-contact{display:inline-flex;align-items:center;gap:16px;min-height:44px;font-size:14px;color:var(--ink);white-space:nowrap}
.nav-contact:hover{color:var(--lime)}
.site-menu{position:relative}
.site-menu>summary.menu-toggle{display:flex;align-items:center;gap:25px;min-height:46px;min-width:116px;padding:12px 18px;background:#07101b;border:1px solid #31445e;color:#91a9c9;font:14px 'Space Mono',monospace;cursor:pointer;list-style:none;border-radius:5px;user-select:none}
.site-menu>summary::-webkit-details-marker{display:none}
.menu-chevron{width:8px;height:8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .18s}
.site-menu[open] .menu-chevron{transform:translateY(2px) rotate(225deg)}
.site-menu[open]>summary{border-color:#688bb7;background:#0a1523}
.site-menu:not([open])>#site-navigation{display:none}
.site-menu[open]>#site-navigation{display:grid;grid-template-columns:1.1fr 1fr 1fr;position:absolute;top:calc(100% + 14px);right:0;width:min(720px,calc(100vw - 48px));padding:26px;gap:24px;background:#050a12;border:1px solid #2e4059;border-radius:8px;box-shadow:0 24px 70px #000c;margin:0;z-index:50}
.menu-group{display:flex;flex-direction:column;align-items:stretch;min-width:0;gap:4px}
.menu-group-label{font:10px/1.5 'Space Mono',monospace;letter-spacing:.13em;text-transform:uppercase;color:#7187a7;padding:0 10px 10px}
#site-navigation .menu-group a{display:flex;align-items:center;min-height:44px;padding:10px;border:0;border-radius:4px;font-size:14px;line-height:1.45;color:#91a9c9;white-space:normal;text-decoration:none}
#site-navigation .menu-group a.honeytrace-link{color:#3ed477}
#site-navigation .menu-group a.luna-link{color:#91b8ff}
#site-navigation .menu-group a.strainless-link{color:#f5d34e}
#site-navigation .menu-group a.violet-link{color:var(--violet)}
#site-navigation .menu-group a.coral-link{color:var(--coral)}
#site-navigation .menu-group a:is(:hover,[aria-current=page]){background:#101c2b;border:0;box-shadow:inset 2px 0 0 currentColor}
#site-navigation a[aria-current=page]{font-weight:600}
:is(.site-menu>summary,.nav-contact,.project-filters button,.clear-search,.back-to-top):focus-visible{outline:2px solid #a0b8db;outline-offset:5px}
.project-page .site-menu>summary{color:var(--identity-soft);border-color:var(--edge);background:var(--surface)}

/* Small aids that help visitors find a project and keep their place. */
.project-discovery{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:-5px 0 28px}
.project-filters{display:flex;flex-wrap:wrap;gap:9px}
.project-filters button,.clear-search{min-height:44px;padding:10px 17px;border:1px solid #30445f;border-radius:4px;background:#040a12;color:#839bbb;cursor:pointer;font-size:13px}
.project-filters button:hover,.clear-search:hover{background:#0b1827;border-color:#55779e}
.project-filters button[aria-pressed=true]{background:#14253b;border-color:#7192bc;color:#a6bddc}
.filter-status{font:11px/1.6 'Space Mono',monospace;color:#778dab;white-space:nowrap;margin:0}
.projects>[hidden],.directory-entry[hidden],.clear-search[hidden]{display:none!important}
.projects{align-items:stretch}
.projects .project{border-radius:6px;transition:border-color .18s,transform .18s,box-shadow .18s}
.projects .project:hover{transform:translateY(-5px)}
.projects .project:focus-visible{outline:2px solid var(--identity);outline-offset:6px}
.clear-search{margin:12px 0 0}
.footer{align-items:center;flex-wrap:wrap;gap:18px 28px;padding-bottom:85px}
.footer-links{flex-wrap:wrap}
.back-to-top{min-height:44px;display:inline-flex;align-items:center;color:#839bbb;white-space:nowrap}
.back-to-top:hover{color:#a6bddc}
.motion-toggle{background:#040a12ed;border-color:#30445f;color:#839bbb;border-radius:4px;min-height:44px;font-size:11px}
.motion-toggle:hover{border-color:#7192bc}
section[id],h2[id],h3[id]{scroll-margin-top:24px}
@media(max-width:760px){
 .nav{min-height:82px;padding:16px 0;gap:14px}
 .brand{font-size:13px;gap:10px}.brand small{font-size:8px;letter-spacing:1px}.mark{width:36px;height:36px;font-size:20px}
 .header-actions{gap:10px}.nav-contact{display:none}
 .site-menu>summary.menu-toggle{min-width:88px;min-height:44px;padding:10px 12px;gap:15px;font-size:12px}
 .site-menu[open]>#site-navigation{width:min(420px,calc(100vw - 32px));grid-template-columns:1fr 1fr;right:0;padding:20px;gap:20px 14px;max-height:calc(100dvh - 110px);overflow-y:auto}
 .menu-group:last-child{grid-column:1/-1;border-top:1px solid #1c2b3e;padding-top:16px}
 .menu-group:last-child a{display:inline-flex}
 .project-discovery{align-items:flex-start;flex-direction:column;gap:12px}
 .project-filters{gap:7px}.project-filters button{padding:10px 13px}
 #digital-rain{opacity:.3}.footer{align-items:flex-start;gap:18px}
}
@media(prefers-reduced-motion:reduce){.projects .project:hover{transform:none}.menu-chevron{transition:none}html{scroll-behavior:auto}}

.skip{z-index:100}
@media(max-width:480px){.brand small{display:none}.brand{font-size:12px}.site-menu[open]>#site-navigation{width:88vw}.nav{gap:10px}}

/* PropertyIQ / Arbitrage-AI: two new identities, with honest launch states. */
.violet-theme .art{background-image:linear-gradient(135deg,#130a20,#08040f);background-size:auto}
.violet-theme .art:after{border-radius:0;transform:rotate(45deg);right:-125px;top:-145px}
.coral-theme .art{background-image:linear-gradient(145deg,#24100d,#0d0503);background-size:auto}
.coral-theme .art:after{border-radius:80px 0 80px 0;transform:rotate(-22deg);right:-130px;top:-135px}
.projects{grid-template-columns:repeat(6,minmax(0,1fr))}
.projects>.project{grid-column:span 2;min-width:0}
.projects>.new-project{grid-column:span 3}
.project-overview{display:flex;flex-direction:column;flex:1;min-width:0}
.project-overview:focus-visible{outline:2px solid var(--identity-soft);outline-offset:-5px}
.new-project .art .big{font-size:clamp(65px,7vw,105px)}
.project-card-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:18px 28px 24px;border-top:1px solid var(--edge)}
.project-card-actions a{font-size:13px;color:var(--identity-soft);min-height:44px;display:inline-flex;align-items:center;gap:8px;text-decoration:underline;text-underline-offset:4px}
.launch-placeholder,.new-application .btn.launch-placeholder{border:1px dashed var(--edge);background:var(--raised);color:var(--copy);padding:12px 16px;min-height:44px;border-radius:4px;font:13px/1.4 'Space Grotesk',Arial,sans-serif;box-shadow:none;opacity:1;cursor:not-allowed}
.launch-placeholder:hover,.new-application .btn.launch-placeholder:hover{background:var(--raised);border-color:var(--edge);color:var(--copy);box-shadow:none;transform:none}
.new-application .detail-grid h1{font-size:clamp(42px,5.1vw,76px);overflow-wrap:anywhere}
.new-application .detail-grid .launch-help{font-size:13px;line-height:1.6;max-width:500px;margin:14px 0 0;color:var(--copy)}
.project-status{display:flex;gap:9px;flex-wrap:wrap;margin:25px 0 0}
.project-status span{font:11px/1.5 'Space Mono',monospace;padding:7px 10px;border:1px solid var(--edge);border-radius:4px;color:var(--identity-soft)}
.project-availability{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-block:1px solid var(--edge);gap:28px;padding:28px 0}
.project-availability>div{display:flex;flex-direction:column;gap:11px}
.availability-label{font:10px/1.5 'Space Mono',monospace;letter-spacing:.08em;color:var(--copy)}
.project-availability strong{font-size:17px;font-weight:500;color:var(--identity-soft)}
.updates-pending{display:flex;align-items:center;gap:35px;justify-content:space-between;background:var(--surface);border:1px solid var(--edge);border-left:3px solid var(--identity);padding:34px;border-radius:6px}
.updates-pending h3{font-size:30px;line-height:1.2;margin:20px 0 15px;color:var(--identity-soft)}
.updates-pending p{max-width:690px;line-height:1.8;color:var(--copy);margin:0}
.update-label{font:11px 'Space Mono',monospace;color:var(--identity);text-transform:uppercase;letter-spacing:.1em}
.text-action{color:var(--identity-soft);font-size:14px;text-decoration:underline;text-underline-offset:5px;min-height:44px;display:inline-flex;align-items:center;gap:10px;flex-shrink:0}
.update-legend{display:flex;flex-wrap:wrap;gap:14px;margin:28px 0 32px}
.update-legend span{padding:12px 16px;border:1px solid #30445f;border-radius:4px;font-size:13px;color:var(--ink);background:#040a12}
@media(min-width:851px) and (max-width:1100px){.projects>.project{grid-column:span 3}.project-card-actions{padding-inline:22px}.updates-pending{flex-direction:column;align-items:flex-start}}
@media(max-width:850px){.projects{grid-template-columns:1fr}.projects>.project,.projects>.new-project{grid-column:auto}.project-card-actions{padding-inline:28px}.project-availability{grid-template-columns:1fr;gap:24px}.updates-pending{padding:26px;flex-direction:column;align-items:flex-start}.new-application .detail-grid h1{font-size:clamp(40px,10vw,68px)}}
.new-application .resource-actions .btn{gap:10px}

.repo-grid>.strainless-code{grid-column:1/-1}

/* Evidence-based development notes; keep unmerged work distinct. */
.development-intro{max-width:850px;margin-bottom:30px}
.development-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.development-card{min-width:0;display:flex;flex-direction:column;padding:28px;background:var(--surface);border:1px solid var(--edge);border-top:3px solid var(--identity);border-radius:6px}
.development-meta{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px}
.development-meta .update-label{line-height:1.6}
.development-status{font-size:12px;line-height:1.6;color:var(--copy)}
.development-card h3,.development-boundary h3{font-size:25px;line-height:1.3;color:var(--identity-soft);margin:20px 0 12px}
.development-card p,.development-boundary p{line-height:1.8;color:var(--copy);margin:0 0 18px}
.development-card .text-action{margin-top:auto;align-self:flex-start}
.development-boundary{margin-top:24px;padding:28px;border:1px dashed var(--edge);border-radius:6px;background:var(--raised)}
.development-boundary h3:first-child{margin-top:0}
.development-source-note{font-size:13px;line-height:1.8;color:var(--copy);max-width:880px;margin:24px 0 0}
@media(max-width:760px){.development-grid{grid-template-columns:1fr}.development-card,.development-boundary{padding:24px}.development-card h3,.development-boundary h3{font-size:23px}}
