/* Nepal School DocFest — merged layout
   Intro (country drawing itself) → map as navigation → experts who turn → your guides.
   Expert view replaces the home view via hash routing. */
:root {
  --paper: #ffffff;
  --paper-warm: #faf6ee;
  --ink: #1a1f2e;
  --ink-soft: #2d3142;
  --ink-muted: #6b7080;
  --line: #e9e2d6;
  --saffron: #e8773c;
  --saffron-deep: #c25a26;
  --crimson: #c8434d;
  --crimson-deep: #9c2f38;
  --himalaya: #2d4a5e;
  --moss: #5b6e3f;
  --shadow-sm: 0 2px 8px rgba(26,31,46,.06);
  --shadow-md: 0 8px 24px rgba(26,31,46,.10);
  --shadow-lg: 0 20px 50px rgba(26,31,46,.15);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --display: 'Fraunces', Georgia, serif;
  --body: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: 24px; }
.eyebrow { font-size: 10px; letter-spacing: .25em; text-transform: uppercase; font-weight: 800; color: var(--saffron-deep); }
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 15px 26px; background: var(--saffron); color: #fff; border: 0; border-radius: 100px; font-family: inherit; font-weight: 800; font-size: 12px; letter-spacing: .15em; text-transform: uppercase; cursor: pointer; text-decoration: none; box-shadow: 0 12px 32px rgba(232,119,60,.4); transition: all .35s var(--ease-out); }
.btn:hover { background: var(--saffron-deep); transform: translateY(-3px); color: #fff; }
.btn svg { width: 16px; height: 16px; }
.btn.muted { background: var(--paper-warm); color: var(--ink-muted); box-shadow: none; cursor: default; border: 1px solid var(--line); }
.btn.muted:hover { transform: none; background: var(--paper-warm); color: var(--ink-muted); }

/* ---------- intro ---------- */
#intro { position: fixed; inset: 0; z-index: 100; background: #fff; padding: 24px; transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
#intro.out { opacity: 0; transform: scale(1.04); pointer-events: none; }
.intro-stage { position: relative; width: 100%; height: 100%; border-radius: 14px; overflow: hidden; border: 1px solid rgba(26,31,46,.06);
  background: radial-gradient(ellipse at 75% 50%, rgba(232,119,60,.08), transparent 55%), radial-gradient(ellipse at 20% 80%, rgba(45,74,94,.06), transparent 55%), linear-gradient(180deg,#fdfaf5,#f7f1e8); }
.intro-topo { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(26,31,46,.18); pointer-events: none; }
.intro-map { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; display: flex; align-items: center; justify-content: center; }
.intro-map svg { width: 92%; height: auto; max-height: 92%; overflow: visible; filter: drop-shadow(0 20px 50px rgba(232,119,60,.18)); }
.intro-map .outline { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 7900; stroke-dashoffset: 7900; animation: draw 3s cubic-bezier(.5,0,.3,1) .4s forwards; }
.intro-map .fill { fill: var(--saffron); opacity: 0; animation: fadeTo .9s ease 3s forwards; }
.intro-map .pin { opacity: 0; animation: fadeUp .5s var(--ease-out) var(--d) forwards; }
.intro-map .pin circle { fill: #fff; stroke: var(--crimson); stroke-width: 3; }
.intro-map .pin text { font-family: var(--display); font-size: 22px; font-weight: 600; fill: var(--ink); text-anchor: middle; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeTo { to { opacity: .10; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.intro-skip { position: absolute; top: 28px; right: 30px; z-index: 10; background: rgba(255,255,255,.7); backdrop-filter: blur(14px); color: var(--ink-soft); border: 1px solid rgba(26,31,46,.08); padding: 9px 18px; border-radius: 100px; cursor: pointer; font-family: inherit; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; box-shadow: var(--shadow-sm); animation: fadeIn .8s var(--ease-out) .2s backwards; }
.intro-skip:hover { background: var(--ink); color: #fff; }
.intro-skip svg { width: 13px; height: 13px; }
.intro-eyebrow { position: absolute; top: 36px; left: 50px; z-index: 5; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 10px; letter-spacing: .25em; text-transform: uppercase; font-weight: 800; padding: 9px 18px; background: rgba(255,255,255,.85); border: 1px solid rgba(26,31,46,.08); border-radius: 100px; box-shadow: var(--shadow-sm); animation: fadeUp 1s var(--ease-out) .4s backwards; }
.intro-eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 8px var(--saffron); }
.intro-content { position: absolute; top: 50%; left: 50px; transform: translateY(-50%); z-index: 5; max-width: 42%; }
.intro-heading { font-family: var(--display); font-size: clamp(3rem, 8vw, 6.5rem); font-weight: 300; line-height: .88; letter-spacing: -.04em; margin: 0 0 24px; animation: fadeUp 1s var(--ease-out) .6s backwards; }
.intro-heading em { color: var(--saffron); font-weight: 600; font-style: italic; }
.intro-line { width: 60px; height: 3px; background: var(--saffron); border-radius: 2px; margin-bottom: 24px; transform-origin: left; animation: lineX .8s var(--ease-out) .9s backwards; }
@keyframes lineX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.intro-lead { font-size: clamp(.95rem, 1.15vw, 1.05rem); line-height: 1.6; color: var(--ink-soft); margin: 0 0 32px; max-width: 400px; animation: fadeUp 1s var(--ease-out) 1s backwards; }
.intro-content .btn { animation: fadeUp 1s var(--ease-out) 1.2s backwards; }
.intro-footer { position: absolute; bottom: 28px; left: 50px; right: 50px; z-index: 5; display: flex; align-items: center; gap: 18px; animation: fadeUp 1s var(--ease-out) 1.4s backwards; }
.intro-footer i { flex: 1; height: 1px; background: rgba(26,31,46,.15); }
.intro-footer span { color: var(--ink-muted); font-size: 10px; letter-spacing: .25em; text-transform: uppercase; font-weight: 700; white-space: nowrap; }
@media (max-width: 760px) {
  .intro-map { position: static; width: 100%; height: 42%; align-items: flex-end; }
  .intro-content { position: static; transform: none; max-width: none; padding: 24px 26px; }
  .intro-eyebrow { left: 26px; top: 24px; }
  .intro-footer { display: none; }
}
@media (prefers-reduced-motion: reduce) { .intro-map .outline { animation: none; stroke-dashoffset: 0; } .intro-map .pin, .intro-map .fill { animation: none; opacity: 1; } .intro-map .fill { opacity: .1; } }

/* ---------- top bar ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.brand i { width: 28px; height: 28px; border-radius: 50%; background: var(--crimson); position: relative; }
.brand i::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.bar nav { display: flex; gap: 22px; font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.bar nav a { text-decoration: none; color: var(--ink-muted); }
.bar nav a:hover { color: var(--saffron-deep); }
@media (max-width: 600px) { .bar nav { display: none; } }

/* ---------- map ---------- */
.map-section { padding-block: 10px 40px; }
.map-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.map-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.02em; }
.map-head h2 em { color: var(--saffron); font-style: italic; font-weight: 600; }
.map-head p { margin: 6px 0 0; color: var(--ink-muted); max-width: 52ch; }
.map-nav { display: inline-flex; gap: 4px; background: rgba(255,255,255,.92); padding: 5px; border-radius: 100px; box-shadow: var(--shadow-md); border: 1px solid rgba(0,0,0,.05); }
.map-nav button { background: transparent; border: 0; padding: 9px 16px; border-radius: 100px; font-family: inherit; font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); cursor: pointer; transition: all .3s var(--ease-out); }
.map-nav button:hover { background: rgba(45,74,94,.08); }
.map-nav button[aria-pressed="true"] { color: #fff; background: var(--ink); }
.map-nav button[data-mode="political"][aria-pressed="true"] { background: var(--himalaya); }
.map-nav button[data-mode="physical"][aria-pressed="true"] { background: var(--moss); }
.map-nav button[data-mode="roads"][aria-pressed="true"] { background: var(--saffron); }
.map-stage { position: relative; width: 100%; aspect-ratio: 4957 / 2840; max-width: 100%; margin-top: 10px; }
.map-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 32px rgba(26,31,46,.10)); transition: opacity .45s ease; }
.marker { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; color: var(--crimson); z-index: 5; animation: markerDrop .7s var(--ease-spring) backwards; animation-delay: var(--d); }
@keyframes markerDrop { from { opacity: 0; transform: translate(-50%, -130%) scale(.6); } to { opacity: 1; transform: translate(-50%, -100%) scale(1); } }
.marker .box { border: 0; border-radius: 12px; background: var(--crimson); color: #fff; font-family: inherit; font-weight: 700; font-size: clamp(8px, 1.1vw, 12px); padding: .55em 1.1em; cursor: pointer; white-space: nowrap; box-shadow: 0 4px 14px rgba(200,67,77,.4); transition: all .35s var(--ease-spring); display: flex; align-items: center; gap: .6em; text-decoration: none; }
.marker .box img { width: 2.2em; height: 2.2em; border-radius: 50%; object-fit: cover; object-position: top; background: #fff; border: 2px solid rgba(255,255,255,.8); position: static; filter: none; }
.marker .box:hover { transform: translateY(-4px) scale(1.06); box-shadow: 0 14px 30px rgba(0,0,0,.28); background: var(--crimson-deep); }
.marker .pointer { width: 2px; height: 18px; background: linear-gradient(to bottom, currentColor 70%, transparent); position: relative; }
.marker .pointer::after { content: ""; position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); width: 8px; height: 8px; background: currentColor; border-radius: 50%; box-shadow: 0 0 0 4px rgba(255,255,255,.6); }
@media (max-width: 640px) { .marker .box span { display: none; } .marker .box { padding: 3px; border-radius: 50%; } .marker .box img { width: 26px; height: 26px; } .marker .pointer { height: 10px; } }

/* ---------- experts row ---------- */
section { padding-block: 44px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.sec-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.02em; }
.sec-head h2 em { color: var(--saffron); font-style: italic; font-weight: 600; }
.sec-head p { margin: 6px 0 0; color: var(--ink-muted); max-width: 60ch; }
.experts { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
@media (max-width: 1000px) { .experts { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 620px) { .experts { grid-template-columns: repeat(2, 1fr); } }
.expert { position: relative; display: block; text-decoration: none; border-radius: 16px; overflow: hidden; background: var(--paper-warm); border: 1px solid var(--line); transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s; }
.expert .ph { aspect-ratio: 3 / 4; max-width: 100%; position: relative; overflow: hidden; background: linear-gradient(180deg, transparent 50%, #efe6d8); }
.expert img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: opacity .35s ease, transform .5s ease; }
.expert img.pro { opacity: 0; transform: scale(1.06); }
.expert:hover, .expert:focus-visible { transform: translateY(-8px) scale(1.04); box-shadow: var(--shadow-lg); border-color: var(--crimson); z-index: 2; }
.expert:hover img.front, .expert:focus-visible img.front { opacity: 0; }
.expert:hover img.pro, .expert:focus-visible img.pro { opacity: 1; transform: none; }
.expert .cap { padding: 12px 12px 14px; }
.expert .cat { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--crimson); line-height: 1.1; }
.expert .nm { font-weight: 700; font-size: .85rem; margin-top: 4px; }
.expert .pl { font-size: .78rem; color: var(--ink-muted); }
@media (prefers-reduced-motion: reduce) { .expert, .expert img, .marker { transition: none; animation: none; } }

/* ---------- guides ---------- */
.guides { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; background: var(--paper-warm); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
@media (max-width: 860px) { .guides { grid-template-columns: 1fr; } }
.guides img { border-radius: 12px; display: block; width: 100%; height: auto; box-shadow: var(--shadow-md); }
.guides h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -.02em; margin-bottom: 12px; }
.guides h2 em { color: var(--saffron); font-style: italic; font-weight: 600; }
.guides p { margin: 0 0 22px; color: var(--ink-soft); max-width: 44ch; }

footer { border-top: 1px solid var(--line); margin-top: 20px; padding-block: 28px 40px; font-size: .9rem; color: var(--ink-muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--saffron-deep); text-decoration: none; }

/* ---------- expert view ---------- */
.ex-head { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: end; padding-block: 12px 24px; border-bottom: 3px solid var(--crimson); }
@media (max-width: 560px) { .ex-head { grid-template-columns: 1fr; } }
.ex-head .pic { width: 200px; max-width: 100%; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--paper-warm); border: 1px solid var(--line); }
.ex-head .pic img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ex-head h1 { font-family: var(--display); font-weight: 300; font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.03em; }
.ex-head h1 em { color: var(--crimson); font-style: italic; font-weight: 600; }
.ex-head .who { font-size: 1.2rem; font-weight: 700; margin-top: 8px; }
.ex-head .where { color: var(--ink-muted); }
.back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink-muted); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-block: 20px 8px; }
.back:hover { color: var(--saffron-deep); }
.ex-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; padding-block: 30px; }
@media (max-width: 860px) { .ex-body { grid-template-columns: 1fr; } }
.player { position: sticky; top: 16px; align-self: start; }
.screen { aspect-ratio: 16 / 9; max-width: 100%; border-radius: 14px; overflow: hidden; background: var(--ink); color: #fff; display: grid; place-items: center; text-align: center; padding: 20px; box-shadow: var(--shadow-lg); }
.screen iframe { width: 100%; height: 100%; border: 0; display: block; }
.screen .pend { display: grid; gap: 8px; justify-items: center; }
.screen .pend .play { width: 64px; height: 64px; border-radius: 50%; background: var(--saffron); display: grid; place-items: center; }
.screen .pend .play::after { content: ""; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }
.screen .pend small { opacity: .7; }
.now { margin-top: 14px; font-weight: 700; }
.now span { display: block; font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: var(--saffron-deep); margin-bottom: 2px; }
.qs { display: grid; gap: 8px; align-content: start; }
.qs h2 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; margin-bottom: 6px; }
.q { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.q .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-warm); font-weight: 800; font-size: .85rem; color: var(--crimson); }
.q:hover { border-color: var(--crimson); transform: translateX(3px); }
.q[aria-current="true"] { border-color: var(--crimson); background: #fbeeef; }
.q[aria-current="true"] .n { background: var(--crimson); color: #fff; }
.q.stage .n { background: var(--saffron); color: #fff; border-radius: 8px; font-size: .62rem; letter-spacing: .05em; }
.nextrow { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-block: 22px 40px; }
.nextrow a { text-decoration: none; font-weight: 700; color: var(--ink-muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.nextrow a:hover { color: var(--saffron-deep); }
.nextrow b { display: block; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: 0; text-transform: none; margin-top: 4px; }

/* opening activity card on the expert page */
.activity{display:grid;gap:4px;padding:18px 20px;border-radius:16px;background:#FFF1E4;border:1px solid #F3D9C2;text-decoration:none;color:var(--ink);margin-bottom:14px;transition:transform .3s var(--ease-out),box-shadow .3s}
.activity strong{font-family:var(--display);font-weight:600;font-size:1.4rem}
.activity span:not(.eyebrow){color:var(--ink-soft);font-size:.92rem}
.activity em{font-style:normal;font-weight:800;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--saffron-deep);margin-top:6px}
.activity:hover{transform:translateY(-3px);box-shadow:var(--shadow-md)}
.activity.soon{background:var(--paper-warm);border-color:var(--line);opacity:.8}
