/* Cellosophy look: "Atlas" direction (teal, cream, bright blocks). */
:root {
  --bg: #fbf6ea; --paper: #fffdf5; --ink: #17302f; --muted: #4a6a66; --rule: #e0d6bd;
  --deep: #17302f; --teal: #1f6f78; --teal2: #1a5a62;
  --accent: #b5441f; --mustard: #f8d675; --coral: #f1a98f; --link: #a23c19;
  --observed: #2f7d55; --inferred: #a8701a; --modeled: #3e63a8;
  --sA:#f8d675; --sB:#9fd3c7; --sC:#f1a98f; --sD:#a9c4ee; --sE:#c9e29a; --sF:#e6b8dc; --sG:#f5c08a; --sH:#bfe0e6;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--link); }
.wrap, main, .top .in, footer .in { max-width: 60rem; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
main.narrow { max-width: 40rem; }
.top { background: var(--deep); }
.top .in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1.2rem; padding-top: 12px; padding-bottom: 12px; }
.brand { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--mustard); font-size: 1.15rem; }
.top nav { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; font-size: .9rem; }
.top nav a { color: #cfe5df; text-decoration: none; }
.top nav a:hover { color: #fff; text-decoration: underline; }
main { padding-top: 1.6rem; padding-bottom: 3rem; }
h1 { font: 800 2.3rem/1.15 system-ui, sans-serif; letter-spacing: -.015em; text-wrap: balance; margin: .2rem 0 .7rem; }
h2 { font: 700 1.3rem/1.3 system-ui, sans-serif; margin: 2.2rem 0 .5rem; }
.kicker { font: 700 .75rem/1 system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin: 0; }
.meta, .need { font-size: .88rem; line-height: 1.5; color: var(--muted); margin: .3rem 0; }
.badge { display: inline-block; padding: .05rem .55rem; border-radius: 99px; border: 2px solid var(--rule); background: var(--paper); font-weight: 700; font-size: .8rem; text-transform: capitalize; }
.badge-draft { border-color: #e3a92d; background: #fdf0c8; }
.badge-final { border-color: var(--observed); color: var(--observed); }
.prose { font-family: Georgia, "Iowan Old Style", "Times New Roman", serif; }
.prose p, .prose li { max-width: 40rem; }
.prose p { margin: 0 0 1rem; }
.prose > p:first-child { font-size: 1.14rem; }
.prose h2 { border-top: 3px solid var(--mustard); padding-top: .6rem; }
.ev { font: 700 .65rem/1 system-ui, sans-serif; letter-spacing: .05em; text-transform: uppercase; padding: .15rem .35rem; border-radius: 4px; border: 1.5px solid currentColor; vertical-align: .1em; }
.ev-observed { color: var(--observed); } .ev-inferred { color: var(--inferred); } .ev-modeled { color: var(--modeled); }
.fig { margin: 1.8rem 0; }
.fig img { display: block; width: 100%; height: auto; border-radius: 12px; border: 3px solid var(--deep); background: #efe9da; }
.fig figcaption { font: .84rem/1.5 system-ui, sans-serif; color: var(--muted); margin-top: .5rem; }
.fig-link { margin: .3rem 0 0; }
.fig-placeholder { display: grid; place-items: center; gap: .3rem; min-height: 11rem; border: 3px dashed var(--teal); border-radius: 12px; color: var(--muted); background: var(--paper); text-align: center; padding: 1rem; }
.goon { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem 2rem; margin-top: 2.4rem; border-top: 3px solid var(--deep); font-size: .92rem; line-height: 1.45; }
.goon h2 { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.goon p { margin: .25rem 0; }
.soon { color: var(--muted); font-size: .8em; }
.refs ol { font-size: .86rem; line-height: 1.5; padding-left: 1.2rem; overflow-wrap: anywhere; }
.refs li { margin-bottom: .4rem; }
.review { margin-top: 2rem; font-size: .84rem; line-height: 1.5; color: var(--muted); border: 2px dashed var(--rule); padding: .6rem .9rem; border-radius: 10px; }
dl dt { font-weight: 700; margin-top: 1rem; } dl dd { margin: .1rem 0 0; max-width: 40rem; }
/* home */
.hero { background: linear-gradient(var(--teal), var(--teal2)); color: #fff; padding: 40px 0 0; overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 26px; align-items: center; }
@media (max-width: 760px) { .hero .grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: 3.6rem; line-height: 1; font-weight: 800; margin: 0 0 .6rem; }
.hero .lead { font-size: 1.05rem; color: #e6f3ef; }
.hero .lead p { margin: 0 0 .8rem; }
.btn { display: inline-block; background: var(--mustard); color: var(--deep); font-weight: 700; padding: .6rem 1.1rem; border-radius: 99px; text-decoration: none; margin: .4rem .5rem .4rem 0; }
.btn.alt { background: transparent; color: #fff; border: 2px solid var(--mustard); padding: calc(.6rem - 2px) calc(1.1rem - 2px); }
.banner { margin: 0 0 28px; }
.banner figcaption { font-size: .82rem; line-height: 1.5; color: #cfe5df; margin-top: 14px; }
.banner figcaption a { color: var(--mustard); }
.wave { display: block; width: 100%; height: 36px; background: var(--bg); clip-path: ellipse(60% 100% at 50% 100%); margin-top: -1px; }
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 18px; margin: 26px 0; }
.door { display: block; text-decoration: none; color: var(--deep); border-radius: 16px; padding: 20px; border: 3px solid var(--deep); }
.door:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--deep); }
.door.c { background: var(--mustard); } .door.p { background: var(--coral); }
.door h2 { margin: 0 0 .2rem; font-size: 1.5rem; } .door p { margin: 0; font-size: .97rem; }
.feat { display: flex; gap: 16px; align-items: center; background: var(--paper); border: 3px solid var(--deep); border-radius: 16px; padding: 16px 18px; font-size: 16px; text-decoration: none; color: var(--deep); }
.feat:hover { box-shadow: 4px 4px 0 var(--deep); }
.tagdraft { background: var(--observed); color: #fff; border-radius: 99px; font-size: 12px; font-weight: 700; padding: .2rem .6rem; white-space: nowrap; }
.strands-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 10px; }
.chip { border-radius: 12px; padding: 10px 12px; color: var(--deep); display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 600; }
.chip b { font-size: 1.5rem; width: 1.6rem; }
.chip a { color: inherit; text-decoration: none; }
[data-s="A"] { --sc: var(--sA); } [data-s="B"] { --sc: var(--sB); } [data-s="C"] { --sc: var(--sC); } [data-s="D"] { --sc: var(--sD); }
[data-s="E"] { --sc: var(--sE); } [data-s="F"] { --sc: var(--sF); } [data-s="G"] { --sc: var(--sG); } [data-s="H"] { --sc: var(--sH); }
.chip { background: var(--sc); }
.draftnote { margin: 30px 0; font-size: 14px; color: var(--muted); background: #eee5cf; border-radius: 10px; padding: 10px 14px; }
/* concept map */
.strand h2 { display: flex; align-items: center; gap: .6rem; border-bottom: 3px solid var(--sc, var(--rule)); padding-bottom: .3rem; }
.strand h2 .L { background: var(--sc, var(--rule)); border-radius: 8px; width: 2rem; text-align: center; }
.strand ul { list-style: none; padding: 0; font-size: .96rem; line-height: 1.5; }
.strand li { padding: .15rem 0; }
footer { background: var(--deep); color: #cfe5df; margin-top: 0; }
footer .in { padding-top: 18px; padding-bottom: 30px; font-size: .84rem; line-height: 1.6; }
footer a { color: var(--mustard); }

/* live figure page */
.explore { max-width: 60rem; }
.explore .intro p, .explore .intro li { max-width: 40rem; }
.stage { margin: 1.4rem 0 2rem; }
.stage iframe { display: block; width: 100%; height: 900px; border: 3px solid var(--deep); border-radius: 16px; box-shadow: 6px 6px 0 var(--deep); background: #ece8dd; }
.stage .stage-link { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: .84rem; line-height: 1.5; color: var(--muted); margin: 1.3rem 0 0; }
/* live figure page: figure is wide, text sits in a centred reading column under and above it */
.explore > .kicker, .explore > h1, .explore .intro > :not(.stage) { max-width: 40rem; margin-left: auto; margin-right: auto; }
.explore .intro p, .explore .intro li { max-width: 40rem; }
.explore .stage .stage-link { max-width: 40rem; margin-left: auto; margin-right: auto; }
/* reading pages: one 40rem text column, centred; figures and the go-on panel stretch 3rem past it on each side */
@media (min-width: 50rem) { .concept .fig, .concept .goon { margin-left: -3rem; margin-right: -3rem; } }
.concept .prose { margin-top: 1.8rem; }
.concept .need { margin-bottom: .2rem; }

/* home hero: live figure over a still picture */
.live { position: relative; aspect-ratio: 480 / 380; border-radius: 16px; border: 3px solid var(--deep); box-shadow: 6px 6px 0 var(--deep); overflow: hidden; background: #ece9df; }
.live .still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.live-frame { position: absolute; left: 0; top: 0; width: 700px; height: 555px; overflow: hidden; transform-origin: 0 0; opacity: 0; background: #ece9df; transition: opacity .8s; }
.live-frame.on { opacity: 1; }
.live-frame iframe { position: absolute; left: -250px; top: -77px; width: 1200px; height: 800px; border: 0; pointer-events: none; background: transparent; color-scheme: light; }
.live-link { position: absolute; inset: 0; }

.hero .tagline{font-family:Georgia,"Times New Roman",serif;font-style:italic;font-size:1.35rem;margin:.2rem 0 1rem;color:var(--teal)}
.essay .prose blockquote{border-left:3px solid var(--mustard);margin:1.6rem 0;padding:.2rem 0 .2rem 1.1rem;font-style:italic}
.refs li:target{background:#f8d67555}
.stage.tall iframe{height:700px}@media (max-width:760px){.stage.tall iframe{height:1060px}}
.pl-still{display:block;margin:1.4rem 0;border:3px solid var(--deep);border-radius:16px;box-shadow:6px 6px 0 var(--deep);overflow:hidden;text-decoration:none;color:var(--ink);background:#f3ead2}.pl-still img{display:block;width:100%;height:auto}.pl-still span{display:block;padding:.6rem .9rem;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:.9rem;color:var(--link)}
.breakout{width:min(62rem,calc(100vw - 2rem));position:relative;left:50%;transform:translateX(-50%);margin:1.6rem 0 2rem}.breakout iframe{display:block;width:100%;height:700px;border:3px solid var(--deep);border-radius:16px;box-shadow:6px 6px 0 var(--deep);background:#f3ead2}.breakout .stage-link{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:.84rem;color:var(--muted);margin:1.1rem auto 0;max-width:40rem}@media (max-width:760px){.breakout iframe{height:1060px}}

.strand-path{list-style:none;padding:0;margin:1.6rem 0 2.4rem;display:grid;grid-template-columns:repeat(4,1fr);gap:14px 22px;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
.strand-path li{position:relative;display:block}
.strand-path a{display:block;height:100%;box-sizing:border-box;background:var(--sc);color:var(--deep);text-decoration:none;border:2px solid var(--deep);border-radius:12px;padding:.7rem .8rem .75rem;box-shadow:3px 3px 0 var(--deep);transition:transform .12s,box-shadow .12s}
.strand-path a:hover{transform:translate(-1px,-1px);box-shadow:4px 4px 0 var(--deep)}
.strand-path b{display:inline-grid;place-items:center;width:1.7rem;height:1.7rem;margin-right:.5rem;border-radius:50%;background:var(--deep);color:#fff;font-size:.9rem}
.strand-path .nm{font-weight:700;font-size:.95rem;line-height:1.2}
.strand-path .q{display:block;margin:.4rem 0 0;font-size:.8rem;line-height:1.3;opacity:.8}
.strand-path li:not(:nth-child(4n))::after{content:"\2192";position:absolute;right:-19px;top:1.15rem;color:var(--muted);font-size:1rem}
@media (max-width:720px){.strand-path{grid-template-columns:repeat(2,1fr);gap:12px 16px}.strand-path li::after{display:none}}
.strand-body{display:grid;grid-template-columns:1fr 14rem;gap:1.2rem;align-items:start}
.strand-art{grid-column:2;grid-row:1;width:100%;height:auto;border:3px solid var(--deep);border-radius:12px;box-shadow:4px 4px 0 var(--deep)}
.strand-body ul{grid-column:1;grid-row:1}
@media (max-width:620px){.strand-body{grid-template-columns:1fr}.strand-art{grid-column:1;grid-row:1}.strand-body ul{grid-row:2}}
.essay-list{list-style:none;padding:0}.essay-list li{padding:1rem 0;border-bottom:1px solid var(--rule)}.essay-list a{color:var(--link)}.essay-list p{margin:.3rem 0 0}
.refsearch{margin:1.2rem 0;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:.9rem}
.refsearch label{display:block;margin-bottom:.3rem;color:var(--muted)}
.refsearch input{width:100%;font:inherit;font-size:1rem;padding:.55rem .8rem;border:2.5px solid var(--deep);border-radius:12px;background:#fffdf5}
.refsearch #count{display:block;margin-top:.3rem;color:var(--muted)}
.refs li[hidden]{display:none}
.method{max-width:42rem;margin:1.6rem 0 2rem}.method p{font-family:Georgia,"Times New Roman",serif;font-size:1.08rem;line-height:1.6}

/* Phones: keep figure text readable by letting wide figures scroll sideways inside their own box */
@media (max-width: 640px) {
  .fig { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .fig img[src$=".svg"] { width: 620px; max-width: none; }
  .fig figcaption { position: sticky; left: 0; max-width: calc(100vw - 32px); }
}

.top nav a.subbtn { background: var(--mustard); color: var(--deep); font-weight: 700; padding: .15rem .8rem; border-radius: 99px; }
.top nav a.subbtn:hover { color: var(--deep); text-decoration: none; filter: brightness(1.06); }

.brand { display: inline-flex; align-items: center; gap: .55rem; }
.brand img { display: block; }
