/* aeon.css — shared ÆON design system, forked from aeonlab-v10
 * Warm editorial palette · Instrument Serif display · Geist body · Geist Mono micro-labels
 * Used by the agent-stack hub + component deep-dive pages.
 */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500;600&family=Geist+Mono:wght@300;400&display=swap');

:root{
  --bg:#f2efe8; --text:#1a1815; --dim:#6b645a; --micro:#6a6253;
  --border:rgba(0,0,0,0.07); --scrim:rgba(242,239,232,0.88); --node:#ffffff;
}
*{ margin:0; padding:0; box-sizing:border-box; }
html{ -webkit-font-smoothing:antialiased; scroll-behavior:smooth; }
body{ background:var(--bg); color:var(--text); font-family:'Geist',sans-serif; transition:background .6s ease,color .6s ease; }

/* palette toggle */
.palette-toggle{ position:fixed; top:24px; right:32px; z-index:100; display:flex; gap:10px; opacity:0; animation:fadeIn 1s ease 1.5s forwards; }
.pal-btn{ width:14px; height:14px; border-radius:50%; cursor:pointer; transition:all .3s ease; border:1.5px solid transparent; }
.pal-btn:hover{ transform:scale(1.3); }
.pal-btn.active{ transform:scale(1.2); border-color:currentColor; }
.pal-btn[data-pal="cream"]{ background:#d8d4cc; color:#a09a90; }
.pal-btn[data-pal="dark"]{ background:#1c1a18; color:#504838; }
.pal-btn[data-pal="ocean"]{ background:#5b8def; color:#3a6cd0; }
.pal-btn[data-pal="jade"]{ background:#3caf91; color:#2a8a70; }
.pal-btn[data-pal="ember"]{ background:#a54832; color:#803828; }

/* hero */
.hero{ position:relative; height:100vh; min-height:560px; overflow:hidden; }
.hero.short{ height:62vh; min-height:420px; }
#c{ position:absolute; top:0; left:0; width:100%; height:100%; pointer-events:none; z-index:0; }
.hero-content{ position:absolute; left:0; right:0; bottom:11%; z-index:12; display:flex; flex-direction:column; align-items:center; pointer-events:none; text-align:center; }
.hero-text{ opacity:0; animation:fadeUp 1s ease 1.2s forwards; max-width:620px; padding:0 48px 8px; position:relative; }
.hero-text::before{ content:''; position:absolute; top:-24px; left:-70px; right:-70px; bottom:-20px; background:radial-gradient(ellipse, var(--scrim) 30%, transparent 75%); z-index:-1; }
.eyebrow{ font-family:'Geist Mono',monospace; font-size:11px; letter-spacing:.28em; text-transform:uppercase; color:var(--micro); margin-bottom:18px; transition:color .5s ease; }
.hero-text h1{ font-family:'Instrument Serif',serif; font-size:clamp(34px,5vw,62px); font-weight:400; line-height:1.08; margin-bottom:16px; transition:color .5s ease; }
.hero-text p{ font-size:15px; line-height:1.7; font-weight:300; color:var(--dim); max-width:460px; margin:0 auto; transition:color .5s ease; }
.scroll-hint{ position:absolute; bottom:30px; left:50%; transform:translateX(-50%); z-index:10; font-family:'Geist Mono',monospace; font-size:11px; letter-spacing:.15em; text-transform:uppercase; color:var(--micro); opacity:0; animation:fadeIn 1s ease 2.2s forwards; transition:color .5s ease; }
.scroll-hint span{ display:block; margin-top:8px; text-align:center; animation:bob 2s ease-in-out infinite; }

/* sections */
section{ position:relative; padding:110px 48px; max-width:1080px; margin:0 auto; }
.label{ font-family:'Geist Mono',monospace; font-size:11px; letter-spacing:.22em; text-transform:uppercase; color:var(--micro); margin-bottom:8px; transition:color .5s ease; }
.label .num{ color:var(--text); opacity:.5; margin-right:14px; }
.lede{ font-family:'Instrument Serif',serif; font-size:clamp(28px,4vw,46px); font-weight:400; line-height:1.18; max-width:780px; margin-bottom:48px; transition:color .5s ease; }
.lede em{ font-style:italic; }
.prose{ font-size:15px; line-height:1.85; font-weight:300; color:var(--dim); max-width:660px; }
.prose strong{ color:var(--text); font-weight:500; }
.prose p{ margin-bottom:18px; }

/* editorial movement rows */
.movement{ display:grid; grid-template-columns:200px 1fr; gap:40px; padding:36px 0; border-top:1px solid var(--border); opacity:0; transform:translateY(24px); transition:opacity .7s ease,transform .7s ease,border-color .5s ease; }
.movement.visible{ opacity:1; transform:translateY(0); }
.movement:last-child{ border-bottom:1px solid var(--border); }
.movement .m-head h3{ font-family:'Instrument Serif',serif; font-size:28px; font-weight:400; line-height:1.2; margin-bottom:6px; transition:color .5s ease; }
.movement .m-head .m-sub{ font-family:'Geist Mono',monospace; font-size:10px; letter-spacing:.14em; text-transform:uppercase; color:var(--micro); transition:color .5s ease; }
.movement .m-body p{ font-size:15px; line-height:1.8; font-weight:300; color:var(--dim); max-width:560px; margin-bottom:16px; transition:color .5s ease; }
.tags{ display:flex; flex-wrap:wrap; gap:8px 18px; }
.tags span,.tags a{ font-size:13px; color:var(--text); position:relative; padding-left:16px; text-decoration:none; transition:color .5s ease; }
.tags a{ border-bottom:1px solid transparent; }
.tags a:hover{ border-bottom-color:var(--micro); }
.tags span::before,.tags a::before{ content:''; position:absolute; left:0; top:8px; width:5px; height:5px; border-radius:50%; background:var(--micro); transition:background .5s ease; }

/* the loop */
.loop-band{ border-top:1px solid var(--border); padding-top:52px; transition:border-color .5s ease; }
.loop{ display:flex; align-items:center; justify-content:space-between; gap:8px; margin:8px 0 60px; flex-wrap:wrap; }
.loop .step{ flex:1; min-width:110px; text-align:center; opacity:0; transform:translateY(20px); transition:opacity .6s ease,transform .6s ease; }
.loop.visible .step{ opacity:1; transform:translateY(0); }
.loop .step:nth-child(4){ transition-delay:.08s; } .loop .step:nth-child(6){ transition-delay:.16s; }
.loop .step:nth-child(8){ transition-delay:.24s; } .loop .step:nth-child(10){ transition-delay:.32s; }
.loop .n{ font-family:'Instrument Serif',serif; font-size:34px; line-height:1; color:var(--text); margin-bottom:10px; position:relative; display:inline-block; transition:color .5s ease; }
.loop .n::after{ content:''; position:absolute; inset:-10px; border-radius:50%; border:1px solid var(--border); animation:pulse 3s ease-in-out infinite; }
.loop .step:nth-child(4) .n::after{ animation-delay:.6s; } .loop .step:nth-child(6) .n::after{ animation-delay:1.2s; }
.loop .step:nth-child(8) .n::after{ animation-delay:1.8s; } .loop .step:nth-child(10) .n::after{ animation-delay:2.4s; }
.loop .step .nm{ font-family:'Geist Mono',monospace; font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--dim); transition:color .5s ease; }
.loop .arrow{ color:var(--micro); font-size:18px; opacity:.6; }

.compare{ display:grid; grid-template-columns:1fr 1fr; gap:1px; background:var(--border); border:1px solid var(--border); transition:background .5s ease,border-color .5s ease; }
.compare>div{ background:var(--bg); padding:30px 32px; transition:background .5s ease; }
.compare .who{ font-family:'Geist Mono',monospace; font-size:10px; letter-spacing:.16em; text-transform:uppercase; color:var(--micro); margin-bottom:12px; transition:color .5s ease; }
.compare .seq{ font-family:'Instrument Serif',serif; font-size:21px; font-weight:400; line-height:1.4; margin-bottom:12px; transition:color .5s ease; }
.compare .at{ font-size:14px; line-height:1.7; font-weight:300; color:var(--dim); transition:color .5s ease; }

/* pull quote */
.pull{ padding:100px 48px; max-width:900px; margin:0 auto; text-align:center; border-top:1px solid var(--border); transition:border-color .5s ease; }
.pull blockquote{ font-family:'Instrument Serif',serif; font-style:italic; font-size:clamp(24px,3.4vw,38px); font-weight:400; line-height:1.32; transition:color .5s ease; }
.pull cite{ display:block; margin-top:24px; font-family:'Geist Mono',monospace; font-size:11px; letter-spacing:.14em; text-transform:uppercase; font-style:normal; color:var(--micro); transition:color .5s ease; }

/* ===== system diagram (SVG) ===== */
.diagram-wrap{ border-top:1px solid var(--border); padding-top:48px; transition:border-color .5s ease; }
.diagram{ width:100%; height:auto; display:block; }
.diagram .band-label{ font-family:'Geist Mono',sans-serif; font-size:13px; letter-spacing:3px; text-transform:uppercase; fill:var(--micro); }
.diagram .edge{ fill:none; stroke:var(--micro); stroke-width:1; opacity:.5; }
.diagram .edge.loopline{ stroke-dasharray:3 5; opacity:.7; }
.diagram .node rect{ fill:var(--node); stroke:var(--border); stroke-width:1; transition:stroke .25s ease, transform .25s ease; }
.diagram .node .nlabel{ font-family:'Instrument Serif',serif; font-size:21px; fill:var(--text); }
.diagram .node .nsub{ font-family:'Geist Mono',sans-serif; font-size:10px; letter-spacing:1.2px; text-transform:uppercase; fill:var(--micro); }
.diagram a{ cursor:pointer; }
.diagram a:hover rect{ stroke:var(--text); }
.diagram a:hover .nlabel{ text-decoration:underline; }
.diagram .dot{ fill:var(--micro); }

/* ===== component deep-dive page ===== */
.doc{ max-width:760px; margin:0 auto; padding:64px 48px 40px; }
.doc-nav{ font-family:'Geist Mono',monospace; font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--micro); text-decoration:none; display:inline-block; margin-bottom:48px; transition:color .3s ease; }
.doc-nav:hover{ color:var(--text); }
.doc-kicker{ font-family:'Geist Mono',monospace; font-size:11px; letter-spacing:.22em; text-transform:uppercase; color:var(--micro); margin-bottom:14px; }
.doc h1{ font-family:'Instrument Serif',serif; font-size:clamp(40px,6vw,68px); font-weight:400; line-height:1.05; margin-bottom:18px; }
.doc .standfirst{ font-family:'Instrument Serif',serif; font-style:italic; font-size:clamp(19px,2.4vw,24px); line-height:1.45; color:var(--dim); margin-bottom:8px; }
.doc h2{ font-family:'Instrument Serif',serif; font-size:30px; font-weight:400; margin:56px 0 16px; }
.doc-section{ border-top:1px solid var(--border); padding-top:14px; transition:border-color .5s ease; }
.why{ background:transparent; border-left:2px solid var(--text); padding:6px 0 6px 24px; margin:28px 0; }
.why .why-label{ font-family:'Geist Mono',monospace; font-size:10px; letter-spacing:.16em; text-transform:uppercase; color:var(--micro); margin-bottom:8px; }
.why p{ font-family:'Instrument Serif',serif; font-size:22px; line-height:1.45; color:var(--text); }
.specs{ margin:24px 0; }
.specs .row{ display:grid; grid-template-columns:160px 1fr; gap:24px; padding:14px 0; border-bottom:1px solid var(--border); font-size:14px; transition:border-color .5s ease; }
.specs .row .k{ font-family:'Geist Mono',monospace; font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--micro); padding-top:2px; }
.specs .row .v{ color:var(--text); font-weight:300; line-height:1.6; }
.specs .row .v strong{ font-weight:500; }
.related{ display:flex; flex-wrap:wrap; gap:12px; margin-top:16px; }
.related a{ font-family:'Geist Mono',monospace; font-size:12px; letter-spacing:.06em; color:var(--text); text-decoration:none; border:1px solid var(--border); border-radius:999px; padding:8px 16px; transition:border-color .3s ease; }
.related a:hover{ border-color:var(--text); }

footer{ padding:44px 48px; display:flex; justify-content:space-between; align-items:center; max-width:1080px; margin:0 auto; font-family:'Geist Mono',monospace; font-size:11px; letter-spacing:.1em; color:var(--micro); border-top:1px solid var(--border); transition:color .5s ease,border-color .5s ease; }
footer a{ color:inherit; text-decoration:none; } footer a:hover{ color:var(--text); }

@keyframes fadeIn{ from{opacity:0;} to{opacity:1;} }
@keyframes fadeUp{ from{opacity:0;transform:translateY(20px);} to{opacity:1;transform:translateY(0);} }
@keyframes bob{ 0%,100%{transform:translateY(0);} 50%{transform:translateY(4px);} }
@keyframes pulse{ 0%,100%{transform:scale(1);opacity:.5;} 50%{transform:scale(1.25);opacity:0;} }

@media (max-width:768px){
  section{ padding:72px 24px; }
  .movement{ grid-template-columns:1fr; gap:16px; }
  .loop{ gap:14px; } .loop .arrow{ display:none; } .loop .step{ min-width:40%; }
  .compare{ grid-template-columns:1fr; }
  .specs .row{ grid-template-columns:1fr; gap:4px; }
  .doc{ padding:48px 24px 32px; }
  .palette-toggle{ top:16px; right:18px; }
}
