@font-face{font-family:CormorantGaramond;src:url('fonts/CormorantGaramond.woff2') format('woff2');font-style:normal;font-weight:300 700;font-display:swap}
@font-face{font-family:Manrope;src:url('fonts/Manrope.woff2') format('woff2');font-style:normal;font-weight:200 800;font-display:swap}
.desktop-brand,.sidebar-close,.menu-scrim,.search-toggle{display:none}
.map-canvas{position:relative;min-width:0}

/* Narrative atlas: the two 14M palettes share one composition. */
body.narrative-atlas{--rule:color-mix(in srgb,var(--ink) 18%,transparent);--gold:#dfc795;background-image:url('paper.svg');font-size:1rem}
body.narrative-atlas .sidebar{background-image:radial-gradient(ellipse at 30% 0%,#d1dca214,transparent 58%),linear-gradient(180deg,#00000008,#00000030);padding-top:2.5rem;border-right-color:#e4cf9338}
body.narrative-atlas .brand{font-size:1.75rem;font-weight:500;line-height:1.12;letter-spacing:.015em}
body.narrative-atlas .brand img{width:95px;margin:0 0 1.8rem;opacity:.95}
body.narrative-atlas .brand-sub{font-size:1.05rem;line-height:1.4;margin:1.1rem 0 1.9rem;color:#e0d5b9}
body.narrative-atlas .sidebar nav{border-top-color:#dacb9b80}
body.narrative-atlas .sidebar nav a{position:relative;font-family:var(--font-heading);font-weight:500;font-size:1.13rem;line-height:1.35;padding:.85rem 0;color:#f5efd9}
body.narrative-atlas .sidebar nav a:hover{color:#f3d9a0;text-decoration:none}
body.narrative-atlas .sidebar nav a[aria-current]{background:linear-gradient(90deg,#d9c18a2e,transparent);color:#fff3ce}
body.narrative-atlas .sidebar nav>a[aria-current]{margin-inline:-20px;padding-inline:20px;max-width:calc(100% + 40px)}
body.narrative-atlas .sidebar nav a[aria-current]:before{content:"";position:absolute;left:0;top:.75rem;bottom:.75rem;width:3px;background:var(--gold)}
body.narrative-atlas .nav-item>a[aria-current]{padding-left:.6rem}
body.narrative-atlas .sidebar .home-link{margin-bottom:.55rem}
body.narrative-atlas .sidebar-decoration{background:url('sidebar-ornament.svg') bottom center/100% auto no-repeat;min-height:220px;opacity:.65}

body.narrative-atlas .topbar{background:var(--paper) url('paper.svg');min-height:72px;padding:.9rem 2rem;gap:1.2rem}
body.narrative-atlas .desktop-brand{display:flex;align-items:center;gap:.8rem;margin-right:auto;font-family:var(--font-heading);font-size:1.23rem;font-weight:600;line-height:1.15;max-width:23rem;min-width:0}
.desktop-brand .icon{color:var(--primary);width:1.9rem;height:1.9rem}.desktop-brand span{min-width:0}
body.narrative-atlas .quick-nav{margin-right:0;gap:1.25rem;font-size:.85rem}
body.narrative-atlas .quick-nav a{padding:.35rem 0;border-bottom:1px solid transparent}
body.narrative-atlas .quick-nav a:hover{border-color:var(--accent);text-decoration:none}
body.narrative-atlas .search{border-color:var(--rule)}
body.narrative-atlas .search input{width:115px;font-size:.85rem}
body.narrative-atlas .search button{min-width:36px;min-height:36px}
body.narrative-atlas .languages{gap:.15rem;flex-wrap:wrap;max-width:10rem}
body.narrative-atlas .languages a{display:grid;place-items:center;min-height:36px;min-width:34px;font-size:.75rem;letter-spacing:.06em}

body.narrative-atlas .hero{min-height:440px;padding:3.5rem clamp(2rem,4vw,4.5rem) 4.5rem}
body.narrative-atlas .hero:after{content:"";position:absolute;inset:auto 0 0;height:86px;background:linear-gradient(transparent,var(--paper));pointer-events:none}
body.narrative-atlas .hero-art{opacity:1;background-image:linear-gradient(90deg,#061b16b8,#061b1600),url('atlas-landscape.svg')}
body.narrative-atlas .hero-copy{position:relative;z-index:1;max-width:760px;border-left:1px solid #e8d7a975;padding-left:1.8rem}
body.narrative-atlas .hero h1{font-size:clamp(2.6rem,4.2vw,4.7rem);font-weight:500;line-height:1.02;letter-spacing:.015em;max-width:680px;text-shadow:0 2px 20px #0005;text-transform:uppercase}
.hero-translation{font-family:var(--font-heading);letter-spacing:.035em;text-transform:uppercase;opacity:.9;font-size:1.1rem;line-height:1.4}
body.narrative-atlas .hero-copy>p:not(.hero-translation){font-family:var(--font-heading);font-size:1.4rem;line-height:1.4;max-width:620px}
body.narrative-atlas .eyebrow{font-size:.75rem;letter-spacing:.17em;color:#e8d4a0}
body.narrative-atlas .button.pale{gap:1.75rem;background:color-mix(in srgb,var(--primary) 55%,transparent);border-color:#e8d4a0;box-shadow:0 3px 18px #0002;font-family:var(--font-heading);font-size:1.05rem;padding:.45rem 1rem}
body.narrative-atlas .button.pale span{font-family:Arial,sans-serif;font-size:1.5rem;line-height:1}
body.narrative-atlas .button:hover{filter:brightness(1.1);text-decoration:none}

body.narrative-atlas .map-section{position:relative;background:var(--paper) url('paper.svg');border-block:1px solid var(--rule);grid-template-columns:29% 71%}
body.narrative-atlas .map-intro{padding:2rem 2.2rem;display:flex;flex-direction:column;justify-content:center;position:relative;z-index:1;background:url('atlas-contours.svg') left bottom/360px auto no-repeat}
body.narrative-atlas .map-intro h2{font-size:clamp(2rem,2.4vw,2.7rem);font-weight:600;line-height:1.05}
body.narrative-atlas .map-intro .eyebrow{color:var(--primary);letter-spacing:.12em;margin-bottom:.75rem}
body.narrative-atlas .map-intro p{font-size:.88rem;line-height:1.65}
body.narrative-atlas .map-intro small{font-size:.75rem;opacity:.75}
body.narrative-atlas .map-stat{display:flex;gap:.75rem;align-items:center;border-top:1px solid var(--rule);margin-top:1.1rem;padding-top:.85rem}
body.narrative-atlas .map-stat strong{font-family:var(--font-heading);font-size:2rem;font-weight:500;line-height:1}
body.narrative-atlas .map-stat span{font-size:.72rem;max-width:15ch;line-height:1.4}
body.narrative-atlas .map-canvas:after{content:"";position:absolute;inset:0 auto 0 0;width:35px;background:linear-gradient(90deg,var(--paper),transparent);pointer-events:none;z-index:450}
body.narrative-atlas .map-north{position:absolute;left:1.2rem;bottom:2.5rem;z-index:450;display:grid;justify-items:center;gap:.2rem;font:600 .7rem var(--font-body);color:var(--primary);pointer-events:none;text-shadow:0 1px 3px var(--paper)}
body.narrative-atlas .map-north svg{width:18px;height:24px;filter:drop-shadow(0 1px 2px #fff8)}
.map-pin{background:transparent;border:0;filter:drop-shadow(0 3px 4px #172a2055)}.map-pin svg{display:block;width:100%;height:100%}
.leaflet-control-zoom{border:1px solid #c4b383!important;box-shadow:0 3px 12px #172a2022!important}.leaflet-control-zoom a{background:#faf4e3!important;color:#163b28!important}
.leaflet-popup-content-wrapper{border-radius:5px!important;background:#faf5e8!important;box-shadow:0 5px 25px #172a2030!important}.leaflet-popup-content{font-family:var(--font-body)}
.leaflet-control-scale-line{border-color:#314a32!important;color:#213e2c!important;background:#fbf4dfb8!important;text-shadow:none!important;font-size:11px}

body.narrative-atlas .section-kicker{display:block;font:500 .68rem/1.5 var(--font-body);letter-spacing:.16em;text-transform:uppercase;color:var(--primary);margin-bottom:.35rem}
body.narrative-atlas .section-title h2,body.narrative-atlas .project-list h2{font-size:2.2rem;font-weight:600;line-height:1.05}
body.narrative-atlas .entries{padding:2.5rem clamp(1.5rem,3vw,3rem) 3rem}
body.narrative-atlas .entries>.section-title{align-items:flex-end;margin-bottom:1.75rem}
body.narrative-atlas .archive-link{font-size:.8rem;display:flex;align-items:center;gap:.8rem;padding:.6rem 0;border-bottom:1px solid var(--accent)}
body.narrative-atlas .archive-link span{font-size:1.35rem;line-height:1}
body.narrative-atlas .entry-grid{gap:0;position:relative;border-left:1px solid color-mix(in srgb,var(--primary) 40%,transparent);margin-left:.35rem}
body.narrative-atlas .entry-card{position:relative;isolation:isolate;display:flex;min-height:255px;margin:0 0 0 1.25rem;overflow:visible;background:var(--paper);border:0;border-bottom:1px solid var(--rule)}
body.narrative-atlas .entry-card+.entry-card{margin-top:1px}
body.narrative-atlas .entry-card:before{content:"";position:absolute;left:-1.6rem;top:2.1rem;width:10px;height:10px;border:1px solid var(--primary);border-radius:50%;background:var(--paper);z-index:2}
body.narrative-atlas .entry-card .cover{position:absolute;inset:0;border-radius:0;background:var(--primary);z-index:-1}
body.narrative-atlas .entry-card .cover img{width:100%;height:100%;min-height:0;object-fit:cover;object-position:70% center}
body.narrative-atlas .card-copy{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;width:100%;padding:1.65rem 47% 1.65rem 1.6rem;background:linear-gradient(90deg,var(--paper) 0%,var(--paper) 26%,color-mix(in srgb,var(--paper) 95%,transparent) 39%,color-mix(in srgb,var(--paper) 70%,transparent) 51%,transparent 73%)}
body.narrative-atlas .chapter-number{font-family:var(--font-heading);font-size:1.3rem;line-height:1;margin-bottom:.7rem;letter-spacing:.05em}
body.narrative-atlas .card-copy small{font-size:.65rem;line-height:1.7;letter-spacing:.07em;text-transform:uppercase;opacity:.8}
body.narrative-atlas .card-copy h3{font-size:clamp(1.8rem,2.5vw,2.6rem);font-weight:500;line-height:1.05;text-transform:uppercase;letter-spacing:.015em;margin:.4rem 0 .65rem}
body.narrative-atlas .card-copy h3 a:after{content:"";position:absolute;inset:0;z-index:3}
body.narrative-atlas .card-copy h3 a:hover{text-decoration:none}
body.narrative-atlas .entry-card:focus-within{outline:2px solid var(--accent);outline-offset:3px;z-index:3}
body.narrative-atlas .card-copy p{font-size:.85rem;line-height:1.7;margin-bottom:.75rem;max-width:43ch}
body.narrative-atlas .card-ending{display:flex;align-items:center;justify-content:space-between;gap:1rem;width:100%;margin-top:auto}
body.narrative-atlas .chapter-arrow{font:1.8rem/1 var(--font-heading);color:var(--primary);transition:transform .2s}
body.narrative-atlas .entry-card:hover .chapter-arrow{transform:translateX(6px)}
body.narrative-atlas .demo-tag{font-size:.65rem;line-height:1.4;padding:.1rem .5rem}
body.narrative-atlas .entry-card[data-category="3d"]{background:var(--primary);color:#f8efd8}
body.narrative-atlas .entry-card[data-category="3d"] .card-copy{background:linear-gradient(90deg,var(--primary) 0%,var(--primary) 26%,color-mix(in srgb,var(--primary) 95%,transparent) 39%,color-mix(in srgb,var(--primary) 70%,transparent) 51%,transparent 73%)}
body.narrative-atlas .entry-card[data-category="3d"] .cover img{width:72%;margin-left:auto;object-fit:contain}
body.narrative-atlas .entry-card[data-category="3d"] .chapter-arrow{color:var(--gold)}
body.narrative-atlas .pagination:has(a:only-child){display:none}
body.narrative-atlas .pagination a{display:grid;place-items:center;min-width:44px;min-height:44px}
body.narrative-atlas .subcategories .button{background:transparent;color:var(--primary);border-color:var(--rule);border-radius:0;font-size:.85rem}

body.narrative-atlas .featured-layout{grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);padding:2.5rem clamp(1.5rem,3vw,3rem) 3rem;gap:2.5rem;background:color-mix(in srgb,var(--primary) 5%,var(--paper));border-block:1px solid var(--rule)}
body.narrative-atlas .feature,body.narrative-atlas .project-list{background:transparent;border:0;border-radius:0;padding:0;box-shadow:none}
body.narrative-atlas .feature .section-title{margin-bottom:1.5rem}
body.narrative-atlas .feature .section-title>span .icon{width:2rem;height:2rem;color:var(--primary)}
body.narrative-atlas .feature .embedded{margin:0}
body.narrative-atlas .feature .model-shell{height:350px;border:1px solid var(--rule);border-radius:3px}
body.narrative-atlas .feature h3{font-size:1.6rem;line-height:1.2;margin:1.2rem 0 0}
body.narrative-atlas .project-list{border-left:1px solid var(--rule);padding-left:2rem}
body.narrative-atlas .project-list h2{margin-bottom:1.35rem}
body.narrative-atlas .project-list>a{display:grid;grid-template-columns:1.6rem 1.35rem minmax(0,1fr) 1rem;gap:.7rem;font-family:var(--font-heading);font-size:1.25rem;line-height:1.25;padding:1rem 0;border-color:var(--rule)}
body.narrative-atlas .project-list>a .icon{width:1.25rem;height:1.25rem;color:var(--primary)}
body.narrative-atlas .project-number{font-size:.9rem;color:var(--primary);font-variant-numeric:tabular-nums}
body.narrative-atlas .project-arrow{font-size:1rem;color:var(--primary)}

body.narrative-atlas .post{max-width:1100px;padding-top:3rem;padding-bottom:4rem}
body.narrative-atlas .post-heading{padding-bottom:2rem;border-bottom:1px solid var(--rule)}
body.narrative-atlas .post-heading .breadcrumbs{font-size:.78rem;color:var(--primary);margin-bottom:1.7rem}
body.narrative-atlas .post h1{font-size:clamp(2.5rem,4.3vw,4.8rem);font-weight:500;line-height:1.05;max-width:20ch;margin-top:1.1rem}
body.narrative-atlas .post-heading time{font-size:.75rem;letter-spacing:.08em}
body.narrative-atlas .post-cover{margin:2rem 0}
body.narrative-atlas .post-cover img{width:100%;max-height:560px;object-fit:cover}
body.narrative-atlas .post h2{font-weight:600;font-size:2.2rem}
body.narrative-atlas .prose{font-size:1.03rem;line-height:1.9;max-width:70ch}
body.narrative-atlas .prose>p:first-child{font-family:var(--font-heading);font-size:1.5rem;line-height:1.6}
body.narrative-atlas .gallery{gap:1.5rem}
body.narrative-atlas .gallery img{border:5px solid color-mix(in srgb,var(--paper) 60%,white);box-shadow:0 4px 16px #163b2817}
body.narrative-atlas .gallery figcaption{font-size:.8rem}
body.narrative-atlas .site footer{border:0;padding:2rem clamp(1.5rem,3vw,3rem);font-size:.75rem}
body.narrative-atlas .site footer>span{font-family:var(--font-heading);font-size:1.1rem}

.sidebar-close{position:absolute;right:10px;top:10px;background:transparent;color:inherit;border:0;width:44px;height:44px;cursor:pointer}
.menu-scrim{border:0;background:#06180f80;position:fixed;inset:0;z-index:1090;cursor:pointer}
@media(max-width:1300px){body.narrative-atlas .quick-nav{display:none}}
@media(min-width:781px) and (max-width:1050px){
 body.narrative-atlas .map-section{grid-template-columns:35% 65%}
 body.narrative-atlas .map-intro{padding:1.5rem}
 body.narrative-atlas .featured-layout{gap:1.5rem;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}
 body.narrative-atlas .project-list{padding-left:1.25rem}
 body.narrative-atlas .project-list>a{grid-template-columns:1.2rem minmax(0,1fr) .8rem;font-size:1.1rem}
 body.narrative-atlas .project-list>a .icon{display:none}
 body.narrative-atlas .card-copy{padding-right:35%}
}
@media(max-width:780px){
 .sidebar-close{display:grid;place-items:center}.menu-open .menu-scrim{display:block}
 body.menu-open{overflow:hidden}
 body.narrative-atlas .desktop-brand{display:none}
 body.narrative-atlas .topbar{padding:.6rem .8rem;gap:.35rem;min-height:66px}
 body.narrative-atlas .mobile-brand{font-family:var(--font-heading);font-size:1.1rem;font-weight:600;padding-inline:.35rem;flex-basis:100px}
 body.narrative-atlas .languages{max-width:90px;gap:0}
 body.narrative-atlas .languages a{min-width:30px;min-height:44px;font-size:.7rem}
 body.narrative-atlas.search-ready .search-toggle{display:grid;place-items:center;width:40px;height:44px;border:0;background:transparent;color:inherit}
 body.narrative-atlas.search-ready .search:not(.search-open){display:none}
 body.narrative-atlas .search{margin-top:.25rem}
 body.narrative-atlas .search input{font-size:1rem;min-height:42px;width:100%}
 body.narrative-atlas .hero{padding:2.7rem 1.3rem 4rem;min-height:410px}
 body.narrative-atlas .hero-copy{padding-left:1rem}
 body.narrative-atlas .hero h1{font-size:clamp(2.3rem,9vw,3.8rem);line-height:1.03}
 body.narrative-atlas .hero-copy>p:not(.hero-translation){font-size:1.25rem}
 body.narrative-atlas .hero .eyebrow{font-size:.65rem;line-height:1.7;letter-spacing:.12em}
 .hero-translation{font-size:.95rem}
 body.narrative-atlas .map-section{display:block}
 body.narrative-atlas .map-intro{padding:1.3rem 1.5rem}
 body.narrative-atlas .map-intro h2{font-size:2rem;margin-bottom:.4rem}
 body.narrative-atlas .map-intro p{max-width:45ch;margin-bottom:0;font-size:.82rem}
 body.narrative-atlas .map-intro small{display:none}
 body.narrative-atlas .map-stat{margin-top:.8rem;padding-top:.65rem;gap:.5rem}
 body.narrative-atlas .map-stat strong{font-size:1.5rem}
 body.narrative-atlas .map-stat span{max-width:none}
 body.narrative-atlas .map-canvas:after{display:none}
 body.narrative-atlas .entries{padding:1.75rem 1rem 2rem}
 body.narrative-atlas .entries>.section-title{gap:1rem;margin-bottom:1.2rem}
 body.narrative-atlas .section-title h2,body.narrative-atlas .project-list h2{font-size:1.85rem}
 body.narrative-atlas .section-kicker{font-size:.58rem;letter-spacing:.1em}
 body.narrative-atlas .archive-link{font-size:.7rem;gap:.4rem;max-width:100px;line-height:1.4}
 body.narrative-atlas .entry-card{margin-left:.8rem;min-height:240px;display:flex}
 body.narrative-atlas .entry-card:before{left:-1.14rem;top:1.6rem;width:9px;height:9px}
 body.narrative-atlas .card-copy{padding:1.3rem 24% 1.3rem .8rem;background:linear-gradient(90deg,var(--paper) 0%,color-mix(in srgb,var(--paper) 97%,transparent) 33%,color-mix(in srgb,var(--paper) 80%,transparent) 57%,transparent 100%)}
 body.narrative-atlas .entry-card[data-category="3d"] .card-copy{background:linear-gradient(90deg,var(--primary) 0%,color-mix(in srgb,var(--primary) 97%,transparent) 33%,color-mix(in srgb,var(--primary) 80%,transparent) 57%,transparent 100%)}
 body.narrative-atlas .entry-card .cover img{height:100%;min-height:0;object-position:75% center}
 body.narrative-atlas .entry-card[data-category="3d"] .cover img{width:100%;object-position:80% center;opacity:.65}
 body.narrative-atlas .chapter-number{font-size:1.1rem;margin-bottom:.5rem}
 body.narrative-atlas .card-copy h3{font-size:1.75rem;line-height:1.05}
 body.narrative-atlas .card-copy p{display:block;font-size:.78rem;line-height:1.65;margin-bottom:.7rem}
 body.narrative-atlas .card-copy small{font-size:.58rem;letter-spacing:.035em}
 body.narrative-atlas .featured-layout{padding:1.75rem 1.25rem 2rem;gap:2rem;grid-template-columns:minmax(0,1fr)}
 body.narrative-atlas .feature .model-shell{height:320px;min-height:280px}
 body.narrative-atlas .project-list{border-left:0;border-top:1px solid var(--rule);padding:1.5rem 0 0}
 body.narrative-atlas .project-list>a{font-size:1.2rem;min-height:60px}
 body.narrative-atlas .post{padding:1.75rem 1.25rem 3rem}
 body.narrative-atlas .post h1{font-size:clamp(2.3rem,9vw,3.5rem)}
 body.narrative-atlas .post-heading{padding-bottom:1.5rem}
 body.narrative-atlas .prose{font-size:1rem;line-height:1.85}
 body.narrative-atlas .prose>p:first-child{font-size:1.35rem}
 body.narrative-atlas .site footer{display:flex;align-items:flex-start;gap:1rem;font-size:.7rem}
 body.narrative-atlas .site footer>span{max-width:65%;font-size:1rem}
}
@media(prefers-reduced-motion:reduce){body.narrative-atlas .chapter-arrow{transition:none}}
