/* ORVIA — paired ivory and nocturnal forest themes. */
html{color-scheme:light}
.header-actions{display:flex;align-items:center;gap:24px;flex-shrink:0}
.theme-toggle{width:36px;height:36px;flex:0 0 36px;padding:9px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;background:transparent;color:var(--gold);transition:background .25s,border-color .25s,transform .25s}
.theme-toggle:hover{background:#e9e7dd;border-color:var(--gold);transform:rotate(12deg)}
.theme-toggle svg{width:16px;height:16px;grid-area:1/1;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.theme-toggle .theme-sun{display:none}
.hero-heart-light,.hero-heart-dark{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.hero-heart-dark{display:none}

html[data-theme="dark"]{color-scheme:dark;--paper:#111a17;--ink:#eeeade;--muted:#a7b2a5;--gold:#d0b57a;--line:#344239;--dark:#1b2822}
html[data-theme="dark"] ::selection{background:#bba26a;color:#101a15}
html[data-theme="dark"] .skip-link{background:#d0b57a;color:#111a17}
html[data-theme="dark"] .theme-toggle{border-color:#465246;background:#1a2720}
html[data-theme="dark"] .theme-toggle:hover{background:#2b392e;border-color:#c5ab72}
html[data-theme="dark"] .theme-toggle .theme-sun{display:block}
html[data-theme="dark"] .theme-toggle .theme-moon{display:none}
html[data-theme="dark"] .desktop-nav{color:#b9c2b4}
html[data-theme="dark"] .header-cta{color:#e0e2d4}
html[data-theme="dark"] .mobile-nav{background:#152019;box-shadow:0 20px 35px #070d0950}
html[data-theme="dark"] .hero h1 em{color:#d0b57a}
html[data-theme="dark"] .hero-heart-light{display:none}
html[data-theme="dark"] .hero-heart-dark{display:block;mix-blend-mode:normal;mask-image:radial-gradient(ellipse at 50% 50%,#000 44%,#000 62%,transparent 86%)}
html[data-theme="dark"] .heart-image-wrap{mix-blend-mode:normal}
html[data-theme="dark"] .orbit{border-color:#ba9d5b3d}
html[data-theme="dark"] .anatomy-label{color:#ccb583}
html[data-theme="dark"] .anatomy-label b{color:#a4af9d}
html[data-theme="dark"] .anatomy-label i{background:#bea66b65}
html[data-theme="dark"] .anatomy-label i:before{background:#d2b877;box-shadow:0 0 0 5px #d2b87712}
html[data-theme="dark"] .art-caption{color:#9ca88e}
html[data-theme="dark"] .status-dot{background:#b4c48e;box-shadow:0 0 0 3px #b4c48e12}
html[data-theme="dark"] .status-version{border-color:#46533e}
html[data-theme="dark"] .scroll-circle{border-color:#536047}
html[data-theme="dark"] .hero-signature{color:#a0ac93}
html[data-theme="dark"] .hero-signature svg{stroke:#c8ad70}
html[data-theme="dark"] .primary{background:#d2bb87;border-color:#d2bb87;color:#162119;box-shadow:0 4px 16px #00000012}
html[data-theme="dark"] .primary:hover{background:#e2d0a5;border-color:#e2d0a5;box-shadow:0 5px 20px #00000025}
html[data-theme="dark"] .inline-link{border-color:#58634e}
html[data-theme="dark"] .inline-link:hover{border-color:#c7ad74}

/* Biological schematics retain their gold forms against quieter dark surfaces. */
html[data-theme="dark"] .science-explorer{background:#152019}
html[data-theme="dark"] .scale-tabs{background:#1c2921}
html[data-theme="dark"] .scale-tabs button{color:#a7b29c}
html[data-theme="dark"] .scale-tabs button>span:first-child{color:#8b9a7e}
html[data-theme="dark"] .scale-tabs button.active{background:#152019;color:#eeeade}
html[data-theme="dark"] .science-visual{background:#1b2821}
html[data-theme="dark"] .visual-grid{opacity:.45;background-image:linear-gradient(#a4bc8d20 1px,transparent 1px),linear-gradient(90deg,#a4bc8d20 1px,transparent 1px)}
html[data-theme="dark"] .visual-coordinate{color:#9bab8c}
html[data-theme="dark"] .svg-label{fill:#d1bd8e}
html[data-theme="dark"] #cavity stop:first-child{stop-color:#1c2922}
html[data-theme="dark"] #cavity stop:last-child{stop-color:#354337}
html[data-theme="dark"] #heart-gold stop:first-child{stop-color:#d7c28f}
html[data-theme="dark"] #heart-gold stop:last-child{stop-color:#9e8048}
html[data-theme="dark"] #myosin-diagram .myosin-shape>circle{fill:#26382b;stroke:#d4b575}
html[data-theme="dark"] #myosin-diagram .ligand-dot{fill:#efd396}
html[data-theme="dark"] .geometry-toggle{background:#0f1913;border:1px solid #3e4e3b}
html[data-theme="dark"] .geometry-toggle button{color:#a5b09a}
html[data-theme="dark"] .geometry-toggle button.active{background:#48533c;color:#f1e3be;box-shadow:0 1px 6px #0002}
html[data-theme="dark"] .schematic-note{color:#a4af98}
html[data-theme="dark"] .science-insight{border-color:#b99e63}

/* The experiment remains an illuminated instrument panel within the dark page. */
html[data-theme="dark"] .experiment{border-top:1px solid #344238;border-bottom:1px solid #344238}
html[data-theme="dark"] .experiment .section-kicker{color:#bdc5b4;border-color:#91a17d42}
html[data-theme="dark"] .experiment-heading h2 em{color:#d4bc86}
html[data-theme="dark"] .experiment-heading>p{color:#b4c0ac}
html[data-theme="dark"] .experiment-copy>p{color:#bac5b1}
html[data-theme="dark"] .experiment-copy .eyebrow{color:#d0b57a}
html[data-theme="dark"] .molecule-viewer{background:#111e18;border-color:#58664b80}
html[data-theme="dark"] .viewer-top .micro-label,html[data-theme="dark"] .structure-id{color:#bdc9ae}
html[data-theme="dark"] .structure-id{border-color:#75816666}
html[data-theme="dark"] .dark-segment{background:#0b140fe8}
html[data-theme="dark"] .segmented button{color:#b6c2aa}
html[data-theme="dark"] .segmented button.active{background:#3f5037;color:#f1eedb}
html[data-theme="dark"] .reset-view{background:#0e1a13;color:#ced7bf;border-color:#7b8a6266}
html[data-theme="dark"] .equation-strip>p,html[data-theme="dark"] .equation-strip .micro-label{color:#b8c2aa}
html[data-theme="dark"] .equation-strip>p>span{color:#a1b091}
html[data-theme="dark"] .structure-provenance{color:#a9b59c}
html[data-theme="dark"] .structure-provenance a{color:#d4dcc7}

/* A calm surface hierarchy makes the proposed execution sequence readable. */
html[data-theme="dark"] .chain-explorer{background:#152019}
html[data-theme="dark"] .chain-topline>span,html[data-theme="dark"] .play-button{color:#bac4aa}
html[data-theme="dark"] .chain-steps:before{background:#45513e}
html[data-theme="dark"] .chain-steps small{color:#97a484}
html[data-theme="dark"] .chain-node{background:#18251c;border-color:#4c5942}
html[data-theme="dark"] .chain-node svg{stroke:#b7c3a0}
html[data-theme="dark"] .chain-steps button.active .chain-node{background:#c8b27e;border-color:#c8b27e;box-shadow:0 0 0 6px #c8b27e0c}
html[data-theme="dark"] .chain-steps button.active .chain-node svg{stroke:#25331f}
html[data-theme="dark"] .chain-steps button:hover .chain-node{border-color:#d0b57a}
html[data-theme="dark"] .chain-panel{background:#1e2c22}
html[data-theme="dark"] .chain-artifact{border-color:#3f4b36}
html[data-theme="dark"] .chain-artifact>.micro-label{color:#b2bea0}
html[data-theme="dark"] .artifact-orbit{border-color:#8d9a6f65}
html[data-theme="dark"] .artifact-orbit:after{background:#d0b57a;box-shadow:0 0 0 5px #d0b57a14}
html[data-theme="dark"] .artifact-core{background:#2b3b2a;border-color:#7e8c63;box-shadow:5px 6px 0 #0d180f66}
html[data-theme="dark"] .artifact-core svg{stroke:#d3b97d}
html[data-theme="dark"] .artifact-tag{background:#263626;border-color:#60714e;color:#e0e4cf;box-shadow:0 3px 8px #00000020}
html[data-theme="dark"] .chain-note>span{color:#a4b38f}
html[data-theme="dark"] .chain-note b{color:#d5dec8}
html[data-theme="dark"] .chain-note p{color:#adb89f}

html[data-theme="dark"] .roadmap-stamp{color:#a5b094}
html[data-theme="dark"] .roadmap-stamp b{color:#c5ceb7}
html[data-theme="dark"] .milestone-number{color:#9eac8c}
html[data-theme="dark"] .milestone-status{color:#acb89a}
html[data-theme="dark"] .milestone-status.available{color:#bfcea4}
html[data-theme="dark"] .milestone-status.progress{color:#ddbf7e}
html[data-theme="dark"] .detail-plus{border-color:#5f6c4e;color:#c3cdaa}
html[data-theme="dark"] .acceptance{color:#b4c0a3;border-color:#baa16a}
html[data-theme="dark"] .roadmap-boundary{color:#a4b293}
html[data-theme="dark"] .evidence-card{background:#15221a}
html[data-theme="dark"] .evidence-card:hover{background:#213024;border-color:#8c8c63}
html[data-theme="dark"] .evidence-top{color:#aeba9a}
html[data-theme="dark"] .evidence-top>span:last-child{color:#d3bc83}
html[data-theme="dark"] .paper-art{opacity:.95}
html[data-theme="dark"] .art-wave i{border-color:#c4aa70}
html[data-theme="dark"] .art-dots svg{stroke:#c2a86e;fill:#c7af79}
html[data-theme="dark"] .art-hex svg{stroke:#c7af79}
html[data-theme="dark"] .evidence-source{color:#b2be9d}
html[data-theme="dark"] .closing-orbit,html[data-theme="dark"] .closing-orbit:after{border-color:#b8bd8f14}
html[data-theme="dark"] .site-footer{background:#0d1611;border-color:#344238}
html[data-theme="dark"] .footer-brand span{color:#a2af92;border-color:#44513a}
html[data-theme="dark"] .footer-top>div{color:#bec8ae}
html[data-theme="dark"] .footer-top a:hover{color:#d0b57a}
html[data-theme="dark"] .footer-bottom{border-color:#344238}
html[data-theme="dark"] .footer-bottom p{color:#a6b295}
html[data-theme="dark"] .footer-bottom button{color:#c4cdaf}

@media(max-width:1100px){.site-header{gap:18px}.header-actions{gap:16px}.desktop-nav{gap:19px}}
@media(max-width:800px){.header-actions{margin-left:auto;gap:14px}.header-actions .header-cta{margin-left:0}}
@media(max-width:560px){.site-header{gap:12px}.header-actions{gap:12px}.header-actions .menu-toggle{flex:0 0 30px;width:30px;padding:5px}.theme-toggle{width:34px;height:34px;flex-basis:34px;padding:8px}.header-actions .header-cta{font-size:8px}.header-actions .header-cta span{margin-left:5px}.brand{gap:7px}}
@media(max-width:380px){.header-actions{gap:14px}.header-actions .header-cta{display:none}.site-header{gap:10px}.header-actions .menu-toggle{width:32px;flex-basis:32px}}
@media(prefers-reduced-motion:reduce){.theme-toggle{transition:none}.theme-toggle:hover{transform:none}}
/* Blend the photographic backdrop into the page while retaining gold highlights. */
html[data-theme="dark"] .heart-image-wrap{mix-blend-mode:lighten}
/* Pausing motion also reveals content immediately, without scroll transitions. */
html.motion-paused .reveal{transition:none!important;opacity:1!important;transform:none!important}
