:root{
  --ink:#f4efe7; --muted:#bdb5a9; --bg:#0b0d0e; --panel:#121516; --panel2:#171b1d;
  --line:#2a3032; --gold:#f0c35b; --rust:#b45b3e; --green:#5fbf8f; --blue:#76a9d6;
  --max:1440px;
}
*{box-sizing:border-box} html{scroll-behavior:smooth} body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5}
button,a{font:inherit}.hero,.experience,.meaning,.case-study,.timeline-section,.closing{max-width:var(--max);margin:0 auto;padding:clamp(48px,8vw,110px) clamp(22px,5vw,80px)}
.hero{min-height:96vh;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.hero:after{content:"";position:absolute;width:720px;height:720px;border:1px solid #202526;border-radius:50%;right:-250px;top:80px;box-shadow:0 0 120px rgba(240,195,91,.05) inset}.hero__eyebrow,.section-kicker{font-size:.72rem;letter-spacing:.24em;font-weight:800;color:var(--gold)}
h1{font-size:clamp(3rem,8vw,7.4rem);line-height:.92;letter-spacing:-.055em;max-width:1100px;margin:18px 0 28px}h1 em{font-style:normal;color:var(--gold)}.hero__dek{font-size:clamp(1.1rem,2vw,1.55rem);color:var(--muted);max-width:760px}.cta{margin-top:34px;width:max-content;border:1px solid var(--gold);background:transparent;color:var(--ink);padding:15px 22px;border-radius:999px;cursor:pointer;transition:.25s}.cta:hover{background:var(--gold);color:#111}.hero__meta{display:flex;flex-wrap:wrap;gap:20px 32px;margin-top:65px;padding-top:22px;border-top:1px solid var(--line);color:#ddd}.hero__meta span{font-size:.9rem}.hero__note{color:#747b7e;font-size:.78rem;max-width:780px;margin-top:14px}
.experience__header{display:flex;justify-content:space-between;gap:24px;align-items:end;margin-bottom:28px}.experience h2,.meaning h2,.timeline-section h2,.closing h2{font-size:clamp(2.2rem,5vw,4.8rem);line-height:1.02;letter-spacing:-.04em;margin:10px 0}.mode-toggle{display:flex;border:1px solid var(--line);padding:4px;border-radius:999px;background:#0f1213}.mode-toggle__btn{border:0;background:transparent;color:var(--muted);padding:10px 15px;border-radius:999px;cursor:pointer}.mode-toggle__btn.is-active{background:var(--ink);color:#101112}.experience__grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px}.map-card,.detail-panel{background:var(--panel);border:1px solid var(--line);border-radius:22px}.map-toolbar{display:flex;justify-content:space-between;gap:20px;padding:16px 18px;border-bottom:1px solid var(--line)}.legend{display:flex;flex-wrap:wrap;gap:16px;font-size:.76rem;color:var(--muted)}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px}.dot--origin{background:var(--gold)}.dot--holdings{background:var(--blue)}.dot--return{background:var(--green)}.text-button{background:transparent;border:0;color:var(--muted);cursor:pointer}.map-shell{position:relative;aspect-ratio:1.94/1;min-height:460px;overflow:hidden}.map-shell svg{width:100%;height:100%;display:block}.continents path{fill:#161a1b;stroke:#2e3537;stroke-width:1.2}.route{fill:none;stroke-width:1.7;opacity:.55;stroke-dasharray:6 7;animation:dash 12s linear infinite}.route--dispersal{stroke:#698aa4}.route--restitution{stroke:var(--green)}@keyframes dash{to{stroke-dashoffset:-160}}.node{cursor:pointer}.node circle{stroke:#0a0b0c;stroke-width:2;transition:.2s}.node:hover circle,.node:focus circle{transform:scale(1.2);transform-origin:center}.node text{fill:#d7d2ca;font-size:12px;pointer-events:none}.origin-halo{fill:url(#originGlow)}.origin-dot{fill:var(--gold);filter:url(#softGlow)}.map-stat{position:absolute;left:18px;bottom:18px;background:rgba(8,10,10,.78);backdrop-filter:blur(10px);border:1px solid var(--line);padding:11px 14px;border-radius:12px;display:flex;flex-direction:column;gap:2px}.map-stat__label{font-size:.62rem;letter-spacing:.18em;color:#788084}.map-stat strong{font-size:.86rem}.detail-panel{min-height:100%;padding:24px;position:relative}.detail-panel__number{font-size:.7rem;color:var(--gold);letter-spacing:.18em}.detail-panel h3{font-size:1.55rem;line-height:1.1;margin:10px 0 12px}.detail-panel p{color:var(--muted)}.detail-panel__close{position:absolute;top:13px;right:15px;border:0;background:transparent;color:var(--muted);font-size:1.6rem;cursor:pointer}.detail-panel__country{font-size:.68rem;letter-spacing:.18em;color:var(--gold);text-transform:uppercase}.metric-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:24px 0}.metric-grid div{background:var(--panel2);border:1px solid var(--line);padding:13px;border-radius:12px}.metric-grid span{display:block;font-size:.68rem;color:#8f9799}.metric-grid strong{display:block;font-size:1.5rem;margin-top:4px}.detail-panel__status{font-size:.93rem}.detail-panel__source{margin-top:28px;padding-top:16px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;font-size:.78rem}.detail-panel__source span{color:#777}.detail-panel__source a{color:var(--gold);text-decoration:none}
.meaning{padding-top:130px}.section-intro{color:var(--muted);font-size:1.08rem;max-width:700px}.status-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:40px}.status-cards article,.case-card{border:1px solid var(--line);background:linear-gradient(180deg,#121516,#0d0f10);border-radius:18px;padding:24px}.status-cards article>span{font-size:.68rem;color:var(--gold);letter-spacing:.18em}.status-cards h3{margin:35px 0 8px;font-size:1.2rem}.status-cards p{color:var(--muted);font-size:.9rem}
.case-study__grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.case-card{padding:32px}.case-card__place{font-size:.7rem;letter-spacing:.18em;color:var(--gold);text-transform:uppercase}.case-card>strong{display:block;font-size:clamp(4rem,8vw,8rem);line-height:.95;margin-top:24px}.case-card h3{font-weight:500;color:#d8d2c8;margin:6px 0 30px}.split-line{display:grid;grid-template-columns:1fr 1fr;gap:8px}.split-line span{border-top:1px solid var(--line);padding-top:14px;color:var(--muted);font-size:.86rem}.split-line b{color:var(--ink);font-size:1.15rem}
.timeline{margin-top:42px;border-top:1px solid var(--line)}.timeline__item{display:grid;grid-template-columns:130px 1fr;gap:25px;padding:24px 0;border-bottom:1px solid var(--line)}.timeline__year{color:var(--gold);font-weight:800}.timeline__item h3{margin:0 0 5px}.timeline__item p{margin:0;color:var(--muted)}
.closing{display:grid;grid-template-columns:.8fr 1.2fr;gap:70px;align-items:center;min-height:72vh}.closing__globe{aspect-ratio:1;border:1px solid #2d3537;border-radius:50%;position:relative;background:radial-gradient(circle at 42% 48%,rgba(240,195,91,.16),transparent 22%),radial-gradient(circle at 65% 42%,rgba(95,191,143,.12),transparent 30%)}.closing__globe:before,.closing__globe:after{content:"";position:absolute;inset:18%;border:1px solid #273032;border-radius:50%}.closing__globe:after{inset:38% 8%;border-radius:50%}.closing h2{font-size:clamp(2.1rem,4vw,4rem)}.closing h2 em{font-style:normal;color:var(--gold)}.closing p{color:var(--muted);max-width:700px}footer{max-width:var(--max);margin:0 auto;padding:24px clamp(22px,5vw,80px) 44px;border-top:1px solid var(--line);display:flex;justify-content:space-between;color:#6f7779;font-size:.78rem}
@media(max-width:980px){.experience__grid{grid-template-columns:1fr}.detail-panel{min-height:250px}.status-cards{grid-template-columns:1fr 1fr}.closing{grid-template-columns:1fr}.closing__globe{max-width:480px}.map-shell{min-height:400px}}
@media(max-width:640px){.hero{min-height:auto;padding-top:110px;padding-bottom:80px}.hero__meta{gap:10px 18px}.experience__header{align-items:start;flex-direction:column}.map-toolbar{align-items:start;flex-direction:column}.map-shell{min-height:340px;aspect-ratio:auto}.legend{max-width:290px}.status-cards,.case-study__grid,.split-line{grid-template-columns:1fr}.timeline__item{grid-template-columns:74px 1fr}.closing{gap:34px}.closing__globe{max-width:340px}footer{flex-direction:column;gap:8px}.node text{display:none}}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .route.is-intro{animation:none;stroke-dasharray:none!important;stroke-dashoffset:0!important}
  .node.is-intro{animation:none;opacity:1!important}
  .cta,.node circle{transition:none}
}

/* v0.2 — real geography */
.map-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.map-control{width:34px;height:34px;border:1px solid var(--line);border-radius:9px;background:#101415;color:var(--ink);cursor:pointer;font-size:1.15rem;line-height:1}.map-control:hover,.map-control:focus-visible{border-color:#566064;background:#171b1d}.map-shell{touch-action:pan-y}.map-shell.is-dragging{cursor:grabbing}.map-shell svg{cursor:grab}.map-shell.is-dragging svg{cursor:grabbing}.graticule-line{stroke:#1c2224;stroke-width:.65;vector-effect:non-scaling-stroke}.country-shape{fill:#15191a;stroke:#343b3d;stroke-width:.7;vector-effect:non-scaling-stroke;transition:fill .25s,stroke .25s}.country-shape--active{fill:#1a2227;stroke:#4b5d65}.country-shape--nigeria{fill:#332b19;stroke:#9d843e}.route{vector-effect:non-scaling-stroke;animation-delay:var(--delay,0s)}.node-dot{fill:var(--blue);stroke:#080a0a;stroke-width:2;vector-effect:non-scaling-stroke}.route--restitution~*{}.node.is-selected .node-dot{stroke:var(--gold);stroke-width:3}.node-label{fill:#d7d2ca;font-size:11px;paint-order:stroke;stroke:#0b0d0e;stroke-width:3px;stroke-linejoin:round}.origin-label{fill:var(--gold);font-size:13px;font-weight:800;paint-order:stroke;stroke:#0b0d0e;stroke-width:3px}.mode-toggle__btn[data-mode="restitution"].is-active{background:var(--green);color:#07110c}.mode-toggle__btn[data-mode="restitution"].is-active~*{}.experience:has(.mode-toggle__btn[data-mode="restitution"].is-active) .node-dot{fill:var(--green)}.experience:has(.mode-toggle__btn[data-mode="restitution"].is-active) .country-shape--active{fill:#15231d;stroke:#456d59}
@media(max-width:640px){.map-actions{width:100%;justify-content:flex-start}.map-control{width:40px;height:40px}.country-shape{stroke-width:.55}.node-label{font-size:10px}}


/* v0.3 — dense-cluster label system */
.node-label{transition:opacity .18s ease;}
.node-label.is-hidden{opacity:0;}
.node.is-selected .node-label{opacity:1;font-weight:800;fill:var(--gold);}
.text-button#focusEurope{border:1px solid var(--line);border-radius:9px;padding:8px 10px;color:#b9c1c3;}
.text-button#focusEurope:hover,.text-button#focusEurope:focus-visible{border-color:#667276;color:var(--ink);background:#15191a;}
@media(max-width:640px){
  .node-label{display:none}
  .node.is-selected .node-label{display:block;font-size:10px}
  .text-button#focusEurope{min-height:40px}
}

/* v0.4 country intelligence */
.country-shape { cursor: pointer; transition: fill .18s ease, stroke .18s ease, opacity .18s ease; }
.country-shape:focus { outline: none; stroke: #f0c35b; stroke-width: 2.2; }
.country-shape.is-selected-country { fill: rgba(240,195,91,.22); stroke: #f0c35b; stroke-width: 1.6; }
.country-panel { position: relative; }
.country-panel h3 { margin: .45rem 0 1.1rem; font-size: clamp(1.55rem, 3vw, 2.35rem); line-height: 1.05; }
.country-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
.country-institutions { display: grid; gap: .55rem; margin-top: 1.2rem; }
.country-inst-btn { width:100%; text-align:left; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.035); color:inherit; border-radius:10px; padding:.72rem .78rem; cursor:pointer; display:flex; justify-content:space-between; gap:.8rem; align-items:center; }
.country-inst-btn:hover,.country-inst-btn:focus-visible { border-color:rgba(240,195,91,.65); background:rgba(240,195,91,.07); outline:none; }
.country-inst-btn span { min-width:0; }
.country-inst-btn small { display:block; color:var(--muted); margin-top:.16rem; }
.country-inst-btn strong { color:#f0c35b; white-space:nowrap; }
.country-note { color:var(--muted); font-size:.72rem; line-height:1.45; margin-top:1rem; }
@media (max-width:720px){ .country-metrics{grid-template-columns:1fr 1fr;} .country-inst-btn{align-items:flex-start;} }

/* v0.5 — cinematic dispersal */
.experience__grid{grid-template-columns:minmax(0,1fr);position:relative}
.map-card{min-width:0}
.detail-panel{position:absolute;right:18px;top:18px;bottom:18px;width:min(360px,34vw);z-index:8;box-shadow:0 24px 70px rgba(0,0,0,.45);transform:translateX(calc(100% + 42px));opacity:0;pointer-events:none;transition:transform .32s ease,opacity .25s ease}
.experience__grid.has-detail .detail-panel{transform:translateX(0);opacity:1;pointer-events:auto}
.map-shell{aspect-ratio:2.15/1;min-height:520px}
.route{opacity:.78;stroke-width:2.15;stroke-dasharray:none;stroke-dashoffset:0}
.route.is-intro{stroke-dasharray:var(--route-length);stroke-dashoffset:var(--route-length);animation:routeReveal 1.05s cubic-bezier(.2,.75,.25,1) forwards;animation-delay:var(--intro-delay)}
@keyframes routeReveal{to{stroke-dashoffset:0}}
.node.is-intro{opacity:0;animation:nodeReveal .45s ease forwards;animation-delay:calc(var(--intro-delay) + .82s)}
@keyframes nodeReveal{to{opacity:1}}
.node-label--major{font-weight:700;fill:#f2eee7}
.node-value{fill:#8eaec4;font-size:9px;pointer-events:none}
.node.is-intro .node-value{opacity:.92}
.origin-dot{animation:originPulse 1.8s ease-in-out infinite}
@keyframes originPulse{50%{filter:url(#softGlow);opacity:.72}}
.map-stat{min-width:260px}
@media(max-width:900px){.detail-panel{width:min(420px,82vw)}}
@media(max-width:640px){.map-shell{min-height:460px;aspect-ratio:auto}.detail-panel{position:fixed;left:12px;right:12px;bottom:12px;top:auto;width:auto;max-height:70vh;overflow:auto;transform:translateY(calc(100% + 30px))}.experience__grid.has-detail .detail-panel{transform:translateY(0)}}

/* v0.5.1 — explicit user animation override */
.experience.force-motion .route.is-intro{
  stroke-dasharray:var(--route-length)!important;
  stroke-dashoffset:var(--route-length)!important;
  animation:routeReveal 1.05s cubic-bezier(.2,.75,.25,1) forwards!important;
  animation-delay:var(--intro-delay)!important;
}
.experience.force-motion .node.is-intro{
  opacity:0!important;
  animation:nodeReveal .45s ease forwards!important;
  animation-delay:calc(var(--intro-delay) + .82s)!important;
}
.motion-note{font-size:.72rem;color:var(--muted);margin-left:auto}

/* v0.6.2 — collision-aware cartographic labels */
.node-label{
  font-size:10.5px;
  font-weight:650;
  paint-order:stroke;
  stroke:#0b0f10;
  stroke-width:3px;
  stroke-linejoin:round;
  letter-spacing:.01em;
}
.node-label--major{
  font-size:11.5px;
  font-weight:800;
}
.node-value{
  font-size:8.5px;
  fill:#9eb2c3;
  paint-order:stroke;
  stroke:#0b0f10;
  stroke-width:2.5px;
  stroke-linejoin:round;
}
.node-label.is-hidden,
.node-value.is-hidden{
  opacity:0!important;
  pointer-events:none!important;
}
.node-label,.node-value{
  transition:opacity .18s ease;
}
@media(max-width:760px){
  .node-label{font-size:9px}
  .node-label--major{font-size:10px}
  .node-value{display:none}
}

/* v0.8.0 — Google Maps geographic explorer */
.google-map-shell{position:relative;min-height:620px;background:#0b0f10;border-top:1px solid var(--line)}
.google-map{width:100%;height:620px}
.map-context{padding:18px 20px 22px;border-top:1px solid var(--line);background:#0d1214}
.map-context__crumb{font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--gold);font-weight:800;margin-bottom:8px}
.map-context__header{display:flex;justify-content:space-between;gap:24px;align-items:flex-start}
.map-context__header h3{margin:0;color:var(--ink);font-size:22px}.map-context__header p{margin:6px 0 0;color:var(--muted);max-width:720px;line-height:1.55}
.institution-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:9px;margin-top:14px}
.tp-inst-row{border:1px solid rgba(255,255,255,.12);border-radius:11px;background:#101618;color:var(--ink);padding:11px 12px;display:flex;gap:12px;justify-content:space-between;text-align:left;cursor:pointer}
.tp-inst-row:hover,.tp-inst-row:focus-visible{border-color:#6f95b0;outline:none}.tp-inst-row span{min-width:0}.tp-inst-row strong{display:block;font-size:12px}.tp-inst-row small{display:block;color:var(--muted);font-size:9px;margin-top:4px}.tp-inst-row b{color:#94bdd8;font-size:13px}
.tp-map-pin{font-family:Inter,system-ui,sans-serif;background:#101719;border:1px solid rgba(255,255,255,.18);color:#f4f0e9;border-radius:999px;padding:7px 10px;box-shadow:0 5px 20px rgba(0,0,0,.28);white-space:nowrap;display:flex;gap:7px;align-items:center}.tp-map-pin strong{font-size:10px}.tp-map-pin span{font-size:9px;color:#9fb6c7}
.tp-map-pin--palace{background:#17130b;border-color:#e7b94d;color:#f1c55d;font-weight:800}.tp-map-pin--country{background:#0d161b;border-color:#567890}.tp-map-pin--institution{background:#0b151b;border-color:#6b9fc2}
.map-status{position:absolute;left:16px;bottom:16px;z-index:5;background:rgba(7,11,13,.88);border:1px solid rgba(255,255,255,.15);border-radius:10px;padding:9px 12px;backdrop-filter:blur(12px);max-width:min(460px,80%)}.map-status span{display:block;color:var(--muted);font-size:8px;letter-spacing:.14em;margin-bottom:4px}.map-status strong{font-size:11px;color:var(--ink)}
.map-zoom-readout{font-size:10px;color:var(--muted);padding:7px 9px;border:1px solid var(--line);border-radius:8px}.tp-map-error{height:620px;display:grid;place-content:center;text-align:center;gap:8px;color:var(--ink);padding:32px}.tp-map-error span{color:var(--muted);max-width:520px}
.experience__grid{grid-template-columns:minmax(0,1fr)!important}.detail-panel{display:none!important}
@media(max-width:760px){.google-map-shell,.google-map,.tp-map-error{height:520px;min-height:520px}.map-context__header{flex-direction:column}.institution-list{grid-template-columns:1fr}.tp-map-pin{padding:6px 8px}.tp-map-pin strong{font-size:9px}}

/* v0.8.2 — restored Trainpower intelligence */
.google-map{filter:saturate(.78) contrast(1.03)}
.country-strip{
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:13px 0 2px;
  scrollbar-width:thin;
}
.tp-country-chip{
  appearance:none;
  flex:0 0 auto;
  min-width:150px;
  border:1px solid rgba(133,169,194,.28);
  border-radius:12px;
  background:#0d1519;
  color:#f2eee7;
  padding:10px 12px;
  text-align:left;
  cursor:pointer;
}
.tp-country-chip:hover,
.tp-country-chip:focus-visible{
  border-color:#75a9ca;
  background:#101d23;
  outline:none;
}
.tp-country-chip strong{
  display:block;
  font-size:11px;
}
.tp-country-chip span{
  display:block;
  margin-top:4px;
  color:#8fa4b2;
  font-size:9px;
}
.map-context__actions{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}
.tp-route-tracer{
  width:14px;
  height:14px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.9);
  box-shadow:0 0 0 5px rgba(121,188,235,.18),0 0 22px rgba(121,188,235,.9);
  background:#79bceb;
}
.tp-route-tracer--restitution{
  background:#72d5a6;
  box-shadow:0 0 0 5px rgba(114,213,166,.18),0 0 22px rgba(114,213,166,.9);
}
.tp-map-dot{
  width:10px;height:10px;border-radius:50%;
  background:#79bceb;border:2px solid #071014;
}
@media(max-width:760px){
  .country-strip{padding-top:10px}
  .tp-country-chip{min-width:135px}
}

/* v0.8.3 — sequential trace visibility */
.tp-route-tracer{
  width:16px;
  height:16px;
  border-radius:50%;
  background:#ffffff;
  border:3px solid #216fa8;
  box-shadow:0 0 0 5px rgba(33,111,168,.22),0 0 24px rgba(33,111,168,.9);
}
.tp-route-tracer--restitution{
  border-color:#269968;
  box-shadow:0 0 0 5px rgba(38,153,104,.22),0 0 24px rgba(38,153,104,.9);
}
.tp-map-pin{
  appearance:none;
  cursor:pointer;
}
.tp-map-pin--country{
  border-color:#296f9f;
  background:#0d1720;
}
.tp-map-pin--country:hover,
.tp-map-pin--institution:hover,
.tp-map-pin--palace:hover{
  transform:translateY(-1px);
  border-color:#e2ad35;
}

/* v0.8.6 — institution intelligence */
.tp-inst-row{
  align-items:stretch;
}
.tp-inst-row__body{
  display:flex;
  flex-direction:column;
  min-width:0;
  gap:3px;
}
.tp-inst-row__body strong{
  font-size:12px;
}
.tp-inst-row__body small{
  color:var(--muted);
  font-size:9px;
}
.tp-inst-row__body em{
  font-style:normal;
  color:#b7c2c8;
  font-size:9px;
  line-height:1.4;
  margin-top:5px;
  max-width:520px;
}
.tp-inst-row__body i{
  font-style:normal;
  color:#d4a83f;
  font-size:9px;
  margin-top:5px;
}
.tp-inst-row__metric{
  flex:0 0 auto;
  min-width:88px;
  text-align:right;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  gap:2px;
}
.tp-inst-row__metric b{
  color:#89b9da;
  font-size:19px;
  line-height:1;
}
.tp-inst-row__metric small{
  color:var(--muted);
  font-size:8px;
  white-space:nowrap;
}
.intel-record{
  margin-top:16px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  background:#0b1114;
  padding:18px;
}
.intel-record__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  padding-bottom:14px;
  border-bottom:1px solid rgba(255,255,255,.09);
}
.intel-record__eyebrow{
  color:#d8aa3b;
  font-size:9px;
  letter-spacing:.14em;
  font-weight:800;
}
.intel-record__top strong{
  font-size:14px;
  color:#91bdd9;
}
.intel-record__grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px 20px;
  padding-top:15px;
}
.intel-record__grid span{
  display:block;
  color:#8fa1aa;
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:5px;
}
.intel-record__grid p{
  margin:0;
  color:#e4e0d9;
  font-size:11px;
  line-height:1.55;
}
.intel-record__wide{
  grid-column:1/-1;
}
.intel-record__source{
  display:inline-block;
  margin-top:15px;
  color:#d5aa42;
  text-decoration:none;
  font-size:10px;
}
.intel-record__source:hover{text-decoration:underline}
@media(max-width:700px){
  .intel-record__grid{grid-template-columns:1fr}
  .intel-record__wide{grid-column:auto}
  .tp-inst-row__metric{min-width:72px}
}

/* v0.8.7 — restitution intelligence */
.tp-map-pin--restitution-country{
  background:#0b1a14;
  border-color:#269968;
  color:#eff7f2;
}
.tp-map-pin--restitution-country span{color:#81c7a7}
.tp-country-chip--restitution{
  border-color:rgba(38,153,104,.45);
  background:#0c1712;
}
.tp-country-chip--restitution:hover,
.tp-country-chip--restitution:focus-visible{
  border-color:#43b47d;
  background:#102018;
}
.mode-toggle__btn[data-map-mode="restitution"].is-active{
  box-shadow:inset 0 0 0 1px rgba(38,153,104,.45);
}

/* v0.8.8 — mobile map experience */
.mobile-sheet-handle{display:none}

@media(max-width:760px){
  body{overflow-x:hidden}
  .experience{padding-left:0!important;padding-right:0!important}
  .experience__header{padding:30px 18px 16px!important;display:block!important}
  .experience__header h2{font-size:clamp(44px,13vw,64px)!important;line-height:.96!important;max-width:92%!important;margin-bottom:20px!important}
  .mode-toggle{width:100%;max-width:420px;display:grid!important;grid-template-columns:1fr 1fr}
  .mode-toggle__btn{min-height:52px;font-size:18px!important}

  .experience__grid{display:block!important}
  .map-card{border-radius:0!important;border-left:0!important;border-right:0!important}

  .map-toolbar{padding:14px 16px!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important}
  .legend{display:flex!important;flex-wrap:wrap!important;gap:10px 16px!important;font-size:11px!important}
  .map-actions{display:flex!important;gap:14px!important;align-items:center!important;flex-wrap:wrap!important}
  .map-actions .text-button{font-size:15px!important;min-height:44px}
  .map-zoom-readout{display:none!important}

  .google-map-shell{height:68svh!important;min-height:68svh!important}
  .google-map{height:68svh!important}

  .map-status{left:12px!important;right:12px!important;bottom:14px!important;max-width:none!important;padding:12px 14px!important;border-radius:12px!important}
  .map-status strong{font-size:14px!important;line-height:1.4!important}

  .map-context{
    position:relative;
    z-index:8;
    margin-top:-22px;
    border-radius:22px 22px 0 0!important;
    padding:12px 16px 22px!important;
    max-height:190px;
    overflow:hidden;
    transition:max-height .25s ease;
    box-shadow:0 -12px 28px rgba(0,0,0,.25);
  }
  .map-context.is-expanded{max-height:820px;overflow:auto}

  .mobile-sheet-handle{display:flex;width:100%;height:28px;border:0;background:transparent;align-items:center;justify-content:center;padding:0}
  .mobile-sheet-handle span{width:46px;height:5px;border-radius:999px;background:rgba(255,255,255,.22);display:block}

  .map-context__header{display:block!important}
  .map-context__header h3{font-size:24px!important;line-height:1.08!important}
  .map-context__header p{font-size:13px!important;line-height:1.45!important}
  .map-context__crumb{font-size:9px!important}

  .country-strip{padding-bottom:6px!important}
  .tp-country-chip{min-width:165px!important;min-height:68px}
  .institution-list{display:block!important}
  .tp-inst-row{width:100%;margin-bottom:10px;min-height:86px;padding:13px 14px!important}
  .tp-inst-row__body strong{font-size:14px!important}
  .tp-inst-row__body em{font-size:11px!important}
  .tp-inst-row__metric b{font-size:18px!important}

  .intel-record{padding:15px!important}
  .intel-record__grid{display:block!important}
  .intel-record__grid>div{margin-bottom:14px}

  .tp-map-pin{transform:scale(.88);transform-origin:center;max-width:180px;white-space:normal!important;text-align:center}
  .tp-map-pin strong{font-size:9px!important}
  .tp-map-pin span{font-size:8px!important}
}

/* v0.8.9 — full-bleed mobile + separated intelligence/trace actions */
html,body{
  background:#080b0d!important;
}

@media(max-width:760px){
  html,body,main{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    background:#080b0d!important;
  }

  main{overflow-x:hidden!important}

  .hero,
  .experience,
  .meaning{
    width:100%!important;
    max-width:none!important;
    margin-left:0!important;
    margin-right:0!important;
    box-sizing:border-box!important;
  }

  .hero{
    padding-left:20px!important;
    padding-right:20px!important;
  }

  .experience{
    background:#080b0d!important;
  }

  .map-card,
  .google-map-shell,
  .map-context{
    width:100%!important;
    max-width:none!important;
    margin-left:0!important;
    margin-right:0!important;
  }

  .map-card{
    background:#080b0d!important;
  }

  #routeOverviewBtn{
    border:1px solid rgba(215,169,58,.58)!important;
    border-radius:999px!important;
    padding:10px 15px!important;
    color:#e6bd58!important;
  }

  .intel-record{
    scroll-margin-top:18px;
  }
}

/* v0.9.0 — guided mobile journey */
@media(max-width:760px){
  body.mobile-map-view .experience__header{
    display:none!important;
  }

  body.mobile-map-view .map-toolbar{
    position:relative;
    z-index:4;
  }

  body.mobile-map-view .google-map-shell,
  body.mobile-map-view .google-map{
    height:82svh!important;
    min-height:82svh!important;
  }

  /* While tracing, keep the chooser compact and attached to the map. */
  body.mobile-map-view .map-context{
    max-height:240px;
    margin-top:-24px;
  }

  body.mobile-map-view .map-context.is-expanded{
    max-height:56svh;
  }

  /* Institution selection becomes an intelligence screen, not another map loop. */
  body.mobile-intelligence-view .experience__header,
  body.mobile-intelligence-view .map-toolbar,
  body.mobile-intelligence-view .google-map-shell{
    display:none!important;
  }

  body.mobile-intelligence-view .map-card{
    border:0!important;
  }

  body.mobile-intelligence-view .map-context{
    margin-top:0!important;
    max-height:none!important;
    min-height:100svh;
    overflow:visible!important;
    border-radius:0!important;
    padding:22px 20px 56px!important;
    background:#0b0f10!important;
  }

  body.mobile-intelligence-view .mobile-sheet-handle{
    display:none!important;
  }

  body.mobile-intelligence-view .country-strip,
  body.mobile-intelligence-view .institution-list{
    display:none!important;
  }

  body.mobile-intelligence-view .map-context__crumb{
    margin-top:4px!important;
    color:#d8aa43!important;
    letter-spacing:.13em;
  }

  body.mobile-intelligence-view .map-context__header h3{
    font-size:clamp(30px,9vw,42px)!important;
    margin-top:12px!important;
  }

  body.mobile-intelligence-view .map-context__header p{
    font-size:16px!important;
    line-height:1.55!important;
  }

  body.mobile-intelligence-view .map-context__actions{
    display:flex!important;
    flex-wrap:wrap;
    gap:10px;
    margin:18px 0 10px!important;
  }

  .back-to-trace{
    border:1px solid #d8aa43!important;
    border-radius:999px!important;
    padding:11px 16px!important;
    color:#f0c45b!important;
    font-weight:700!important;
  }

  body.mobile-intelligence-view .intel-record{
    display:block;
    margin-top:18px!important;
    border-top:1px solid rgba(255,255,255,.12);
    padding-top:20px!important;
  }
}

/* v0.9.2 — iframe-aware mobile journey navigation */
@media(max-width:760px){
  body.journey-started .hero{
    display:none!important;
  }

  body.journey-started.mobile-map-view .experience{
    padding-top:0!important;
    margin-top:0!important;
  }

  body.journey-started.mobile-map-view .experience__header{
    display:none!important;
  }

  body.journey-started.mobile-map-view .map-card{
    margin-top:0!important;
  }

  body.journey-started.mobile-map-view .google-map-shell{
    scroll-margin-top:0!important;
  }
}

/* v0.9.3 — reliable self-contained mobile viewport */
@media(max-width:760px){
  html,body{
    background:#080b0d!important;
  }

  body.journey-started{
    overflow-y:auto!important;
  }

  body.journey-started .hero{
    display:none!important;
  }

  body.journey-started .experience{
    min-height:100svh!important;
    padding:0!important;
    margin:0!important;
    background:#080b0d!important;
  }

  body.journey-started.mobile-map-view .experience__header{
    display:none!important;
  }

  body.journey-started.mobile-map-view .map-toolbar{
    padding-top:10px!important;
  }

  body.journey-started.mobile-map-view .google-map-shell,
  body.journey-started.mobile-map-view .google-map{
    height:78svh!important;
    min-height:78svh!important;
  }
}

/* v0.9.4 — CTA hit-target fix */
.hero::after{
  pointer-events:none!important;
  z-index:0!important;
}
.hero > *{
  position:relative;
  z-index:2;
}
#enterExperience.cta{
  position:relative!important;
  z-index:20!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:12px!important;
  min-height:54px!important;
  text-decoration:none!important;
  pointer-events:auto!important;
  touch-action:manipulation!important;
  -webkit-tap-highlight-color:rgba(240,195,91,.22);
  user-select:none;
}
#enterExperience.cta:hover,
#enterExperience.cta:focus-visible,
#enterExperience.cta:active{
  background:var(--gold)!important;
  color:#111!important;
  outline:none!important;
}
#enterExperience.cta:focus-visible{
  box-shadow:0 0 0 4px rgba(240,195,91,.22)!important;
}
@media(max-width:760px){
  #enterExperience.cta{
    width:min(100%,380px)!important;
    min-height:62px!important;
    font-size:20px!important;
  }
  #enterExperience.cta:active{
    transform:scale(.985);
  }
}

/* v0.9.5 — restitution-map institution action */
#routeOverviewBtn.is-disabled,
#routeOverviewBtn:disabled{
  opacity:.48!important;
  cursor:not-allowed!important;
  border-color:rgba(255,255,255,.18)!important;
  color:#8d979c!important;
  background:transparent!important;
}
#routeOverviewBtn:not(:disabled){
  border-color:rgba(38,153,104,.72)!important;
  color:#79d7aa!important;
}

/* v0.9.6 — single-focus mobile states */

/* Restitution map view: show map only, hide institution intelligence entirely. */
@media(max-width:760px){
  body.mobile-restitution-map-view .experience__header{
    display:none!important;
  }

  body.mobile-restitution-map-view .map-toolbar{
    display:flex!important;
    padding:10px 12px!important;
    background:#0b0f10!important;
    border-bottom:1px solid rgba(255,255,255,.08);
  }

  body.mobile-restitution-map-view .legend,
  body.mobile-restitution-map-view #showCountriesBtn,
  body.mobile-restitution-map-view #backCountriesBtn,
  body.mobile-restitution-map-view .map-zoom-readout{
    display:none!important;
  }

  body.mobile-restitution-map-view .map-actions{
    width:100%;
    display:flex!important;
    justify-content:flex-start!important;
  }

  body.mobile-restitution-map-view .back-to-intelligence{
    display:inline-flex!important;
    min-height:44px;
    padding:10px 14px!important;
    border:1px solid rgba(38,153,104,.55)!important;
    border-radius:999px!important;
    color:#79d7aa!important;
    font-weight:700!important;
  }

  body.mobile-restitution-map-view .google-map-shell,
  body.mobile-restitution-map-view .google-map{
    display:block!important;
    height:84svh!important;
    min-height:84svh!important;
  }

  body.mobile-restitution-map-view .map-context{
    display:none!important;
  }

  body.mobile-restitution-map-view .map-status{
    left:12px!important;
    right:12px!important;
    bottom:14px!important;
    padding:11px 13px!important;
    border-radius:12px!important;
    max-height:none!important;
  }

  body.mobile-restitution-map-view .map-status strong{
    font-size:13px!important;
    line-height:1.35!important;
  }

  /* Institution intelligence view: keep only intelligence, no map fragments. */
  body.mobile-intelligence-view .google-map-shell,
  body.mobile-intelligence-view .map-toolbar{
    display:none!important;
  }

  body.mobile-intelligence-view .map-context{
    min-height:100svh!important;
    padding:24px 20px 60px!important;
  }

  body.mobile-intelligence-view .map-context__actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
  }

  body.mobile-intelligence-view #backToTraceBtn,
  body.mobile-intelligence-view #routeOverviewBtn,
  body.mobile-intelligence-view #evidenceLink{
    width:100%!important;
    min-height:52px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
    border-radius:999px!important;
  }

  body.mobile-intelligence-view .map-context__header h3{
    font-size:clamp(28px,8vw,38px)!important;
    line-height:1.08!important;
  }

  body.mobile-intelligence-view .map-context__header p{
    font-size:15px!important;
    line-height:1.5!important;
  }

  body.mobile-intelligence-view .intel-record{
    border-radius:16px!important;
    padding:18px!important;
  }

  body.mobile-intelligence-view .intel-record__top{
    display:block!important;
  }

  body.mobile-intelligence-view .intel-record__top strong{
    display:block;
    margin-top:8px;
    font-size:18px!important;
  }
}

/* v0.9.7 — true full-screen restitution map on phones */
.mobile-restitution-badge{
  display:none;
}

@media(max-width:760px){
  body.mobile-restitution-map-view{
    overflow:hidden!important;
    height:100svh!important;
    min-height:100svh!important;
    background:#080b0d!important;
  }

  body.mobile-restitution-map-view main{
    height:100svh!important;
    min-height:100svh!important;
    overflow:hidden!important;
    background:#080b0d!important;
  }

  body.mobile-restitution-map-view .hero,
  body.mobile-restitution-map-view .experience__header,
  body.mobile-restitution-map-view .map-context,
  body.mobile-restitution-map-view .meaning,
  body.mobile-restitution-map-view footer{
    display:none!important;
  }

  body.mobile-restitution-map-view .experience,
  body.mobile-restitution-map-view .experience__grid,
  body.mobile-restitution-map-view .map-card,
  body.mobile-restitution-map-view .google-map-shell{
    width:100%!important;
    height:100svh!important;
    min-height:100svh!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    overflow:hidden!important;
    background:#080b0d!important;
  }

  body.mobile-restitution-map-view .google-map{
    width:100%!important;
    height:100svh!important;
    min-height:100svh!important;
  }

  body.mobile-restitution-map-view .map-toolbar{
    position:absolute!important;
    top:12px!important;
    left:12px!important;
    right:auto!important;
    z-index:40!important;
    width:auto!important;
    display:block!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
  }

  body.mobile-restitution-map-view .map-actions{
    width:auto!important;
    display:block!important;
  }

  body.mobile-restitution-map-view .back-to-intelligence{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:46px!important;
    padding:11px 15px!important;
    border:1px solid rgba(38,153,104,.72)!important;
    border-radius:999px!important;
    background:rgba(8,11,13,.92)!important;
    color:#82dfb2!important;
    font-size:14px!important;
    font-weight:800!important;
    backdrop-filter:blur(10px);
  }

  body.mobile-restitution-map-view .legend,
  body.mobile-restitution-map-view #showCountriesBtn,
  body.mobile-restitution-map-view #backCountriesBtn,
  body.mobile-restitution-map-view .map-zoom-readout{
    display:none!important;
  }

  body.mobile-restitution-map-view .map-status{
    position:absolute!important;
    left:12px!important;
    right:12px!important;
    bottom:16px!important;
    z-index:35!important;
    max-width:none!important;
    padding:10px 12px!important;
    border-radius:12px!important;
    background:rgba(8,11,13,.88)!important;
    backdrop-filter:blur(10px);
  }

  body.mobile-restitution-map-view .map-status span{
    display:none!important;
  }

  body.mobile-restitution-map-view .map-status strong{
    display:block!important;
    font-size:12px!important;
    line-height:1.35!important;
    font-weight:700!important;
  }

  body.mobile-restitution-map-view .mobile-restitution-badge{
    display:block!important;
    position:absolute!important;
    top:70px!important;
    left:12px!important;
    z-index:38!important;
    padding:8px 11px!important;
    border-radius:999px!important;
    background:rgba(38,153,104,.92)!important;
    color:#fff!important;
    font-size:12px!important;
    font-weight:800!important;
    box-shadow:0 6px 18px rgba(0,0,0,.22);
  }

  body.mobile-restitution-map-view .mobile-restitution-badge[hidden]{
    display:none!important;
  }
}


/* v1.0.3 — mobile map breathing room */
@media(max-width:760px){
  .google-map-shell{
    overflow:hidden!important;
  }

  .map-status{
    left:12px!important;
    right:auto!important;
    bottom:12px!important;
    width:auto!important;
    max-width:min(72vw, 260px)!important;
    padding:8px 10px!important;
    border-radius:10px!important;
    background:rgba(8,11,13,.90)!important;
    box-shadow:0 6px 18px rgba(0,0,0,.22)!important;
    backdrop-filter:blur(10px);
    transition:opacity .22s ease, transform .22s ease!important;
  }

  .map-status span{
    display:none!important;
  }

  .map-status strong{
    display:block!important;
    font-size:11px!important;
    line-height:1.35!important;
    font-weight:750!important;
    letter-spacing:0!important;
  }

  .map-status.is-complete{
    max-width:210px!important;
  }

  .map-status.is-faded{
    opacity:0!important;
    transform:translateY(5px)!important;
    pointer-events:none!important;
  }

  body:not(.mobile-intelligence-view):not(.mobile-restitution-map-view) .map-context{
    margin-top:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
}

/* Hide Netlify's injected preview/toolbar badge when exposed in the app DOM. */
netlify-toolbar,
#netlify-toolbar,
.netlify-toolbar,
[data-netlify-toolbar],
[data-netlify-badge],
iframe[title*="Netlify"],
iframe[src*="netlify"][style*="position: fixed"]{
  display:none!important;
  visibility:hidden!important;
}


/* v1.0.4 — provenance reveal */
#institutionInsight{
  scroll-margin-top:32px;
}

#institutionInsight.is-revealed{
  animation:institutionInsightReveal .35s ease-out;
}

@keyframes institutionInsightReveal{
  from{opacity:.55;transform:translateY(8px);}
  to{opacity:1;transform:translateY(0);}
}
