/* ==========================================================
   Ordinary People. Extraordinary Lives. Shared styles
   Every page links to this one file. Change a colour or a
   font size here and the whole site updates.
   ========================================================== */

:root{
  --bg:#F5F2ED;
  --bg-2:#ECE7DF;
  --bg-3:#DFD8CC;
  --ink:#1F1611;
  --ink-2:#5B4E45;
  --ink-3:#6E6258;
  --brand:#5E241F;        /* dark reddy brown: buttons, links */
  --brand-deep:#431A17;   /* dark sections */
  --brand-black:#2A100E;  /* darkest sections */
  --accent:#BD7230;       /* warm orange accent: use sparingly */
  --accent-soft:#E3A66B;  /* orange for use on dark backgrounds */
  --line:rgba(31,22,17,.14);
  --nav-h:52px;
  --radius:28px;
  --ease:cubic-bezier(.2,.7,.2,1);
}

*{box-sizing:border-box}
[hidden]{display:none !important}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  padding-top:var(--nav-h);
  background:var(--bg);
  color:var(--ink);
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Helvetica,Arial,sans-serif;
  font-size:17px;
  line-height:1.47;
  letter-spacing:-.011em;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body.lock{overflow:hidden}
h1,h2,h3,h4,p,ul{margin:0}
a{color:inherit}
img{max-width:100%;display:block}
button,input{font:inherit;color:inherit}
[id]{scroll-margin-top:calc(var(--nav-h) + 12px)}
:focus-visible{outline:2px solid var(--brand);outline-offset:3px;border-radius:4px}
.dark :focus-visible{outline-color:var(--bg)}

/* ---------- Layout ---------- */
.container{max-width:1080px;margin:0 auto;padding:0 24px}
.container.mid{max-width:1160px}
.container.wide{max-width:1320px}
.section{padding:clamp(80px,12vw,150px) 0}
.section.tight{padding:clamp(56px,8vw,96px) 0}
.center{text-align:center}
.bg-2{background:var(--bg-2)}

/* ---------- Type ---------- */
.display{font-size:clamp(2.8rem,8vw,6.25rem);line-height:1.02;font-weight:600;letter-spacing:-.045em}
.h1{font-size:clamp(2.4rem,6vw,4.5rem);line-height:1.05;font-weight:600;letter-spacing:-.04em}
.h2{font-size:clamp(2rem,4.6vw,3.5rem);line-height:1.08;font-weight:600;letter-spacing:-.035em}
.h3{font-size:clamp(1.35rem,2.3vw,1.8rem);line-height:1.15;font-weight:600;letter-spacing:-.025em}
.lede{font-size:clamp(1.15rem,1.9vw,1.5rem);line-height:1.4;color:var(--ink-2);letter-spacing:-.015em;max-width:32em}
.center .lede{margin-inline:auto}
.small{font-size:.875rem;color:var(--ink-2)}
.muted{color:var(--ink-2)}
.accent{color:var(--brand)}
.faint{color:var(--ink-3)}
.stack > * + *{margin-top:20px}

.dark,.darker{color:var(--bg)}
.dark{background:var(--brand-deep)}
.darker{background:var(--brand-black)}
.dark .lede,.dark .muted,.darker .lede,.darker .muted{color:rgba(245,242,237,.72)}
.dark .accent,.darker .accent{color:#E3A66B}
.dark .faint,.darker .faint{color:rgba(245,242,237,.5)}

/* ---------- Buttons and links ---------- */
.btn{
  display:inline-block;padding:13px 24px;border-radius:980px;border:1px solid var(--brand);
  background:var(--brand);color:var(--bg);font-size:1rem;font-weight:500;letter-spacing:-.01em;
  text-decoration:none;cursor:pointer;transition:background .25s,border-color .25s,color .25s;
}
.btn:hover{background:var(--brand-deep);border-color:var(--brand-deep)}
.btn.ghost{background:transparent;color:var(--brand)}
.btn.ghost:hover{background:var(--brand);color:var(--bg)}
.btn.sm{padding:8px 16px;font-size:.875rem}
.btn.done{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.dark .btn,.darker .btn{background:var(--bg);border-color:var(--bg);color:var(--brand-deep)}
.dark .btn:hover,.darker .btn:hover{background:#fff;border-color:#fff}
.dark .btn.ghost,.darker .btn.ghost{background:transparent;color:var(--bg);border-color:rgba(245,242,237,.5)}
.dark .btn.ghost:hover,.darker .btn.ghost:hover{background:var(--bg);color:var(--brand-deep)}
.link{color:var(--brand);text-decoration:none;font-weight:500;white-space:nowrap}
.link::after{content:"\203A";display:inline-block;margin-left:.3em;transition:transform .25s var(--ease)}
.link:hover::after{transform:translateX(3px)}
.link:hover{text-decoration:underline;text-underline-offset:4px}
.dark .link,.darker .link{color:var(--bg)}
.actions{display:flex;gap:22px;align-items:center;flex-wrap:wrap}
.center .actions{justify-content:center}

/* ---------- Navigation ---------- */
.nav{
  position:fixed;inset:0 0 auto 0;height:var(--nav-h);z-index:100;
  background:rgba(245,242,237,.78);
  -webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);
  border-bottom:1px solid transparent;transition:border-color .3s;
}
.nav.scrolled{border-bottom-color:var(--line)}
.nav-inner{max-width:1320px;margin:0 auto;height:100%;padding:0 24px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{font-size:15px;font-weight:600;letter-spacing:-.02em;text-decoration:none;color:var(--brand);white-space:nowrap}
.nav-links{display:flex;gap:28px;list-style:none;padding:0}
.nav-links a{font-size:13.5px;text-decoration:none;opacity:.75;transition:opacity .2s,color .2s}
.nav-links a:hover{opacity:1}
.nav-links a[aria-current="page"]{opacity:1;color:var(--brand)}
.soon{display:inline-block;position:relative;top:-8px;margin-left:-9px;padding:2px 8px;border-radius:980px;background:var(--bg-2);color:var(--ink-2);font-size:.66rem;font-weight:600;letter-spacing:.02em;transform:rotate(-8deg);box-shadow:0 1px 3px rgba(31,22,17,.18)}
.menu a .soon{font-size:.62rem;top:-19px;margin-left:-15px}
.nav-right{display:flex;align-items:center;gap:14px}
.menu-btn{display:none;width:36px;height:36px;background:none;border:0;padding:0;cursor:pointer;position:relative}
.menu-btn span{position:absolute;left:9px;right:9px;height:1.5px;background:var(--ink);transition:transform .3s var(--ease),top .3s var(--ease)}
.menu-btn span:nth-child(1){top:14px}
.menu-btn span:nth-child(2){top:21px}
.menu-btn[aria-expanded="true"] span:nth-child(1){top:17.5px;transform:rotate(45deg)}
.menu-btn[aria-expanded="true"] span:nth-child(2){top:17.5px;transform:rotate(-45deg)}
.menu{
  position:fixed;inset:var(--nav-h) 0 0 0;z-index:99;padding:28px 24px;
  background:rgba(245,242,237,.97);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);
  display:flex;flex-direction:column;
  opacity:0;visibility:hidden;transform:translateY(-8px);
  transition:opacity .3s,transform .3s var(--ease),visibility .3s;
}
.menu.open{opacity:1;visibility:visible;transform:none}
.menu a{font-size:2rem;font-weight:600;letter-spacing:-.03em;text-decoration:none;padding:12px 0;border-bottom:1px solid var(--line)}

/* ---------- Scroll motion ---------- */
.js .reveal{opacity:0;transform:translateY(28px);transition:opacity 1s var(--ease),transform 1s var(--ease);transition-delay:var(--d,0s)}
.js .reveal.in{opacity:1;transform:none}
.scale-in{transform:scale(calc(.88 + var(--p,1) * .12));transform-origin:center top;will-change:transform}
.words{font-size:clamp(1.8rem,4.4vw,3.4rem);line-height:1.18;font-weight:600;letter-spacing:-.035em;max-width:20em}
.words span{opacity:.2;transition:opacity .3s}
.words span.on{opacity:1}

/* ---------- Hero ---------- */
.hero{position:relative;overflow:hidden;min-height:calc(100vh - var(--nav-h));min-height:calc(100svh - var(--nav-h));display:flex;align-items:center;justify-content:center;text-align:center;padding:48px 0 96px}
.hero .container{position:relative;z-index:1}
.hero-bg{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.hero-bg img,.hero-bg video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:scale(1.02);opacity:var(--hero-bg-opacity,.46);filter:blur(.5px) saturate(1.12)}
.hero-bg::after{content:"";position:absolute;inset:0;background:radial-gradient(120% 90% at 50% 28%,transparent 25%,var(--bg) 96%)}

/* ---------- "From Accra to Paro": an optional photo, always tinted brown ---------- */
#mapCta{position:relative;overflow:hidden}
#mapCta .container{position:relative;z-index:1}
.cta-bg{position:absolute;inset:0;z-index:0}
.cta-bg img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cta-bg.has-image::after{content:"";position:absolute;inset:0;background:var(--brand-deep);mix-blend-mode:multiply;opacity:.85}
.hero .display{font-weight:700}
.hero .display .l1{color:var(--ink-3)}
.hero .display .l2{color:var(--brand)}
.hero .lede{margin:28px auto 0}
.hero .actions{margin-top:36px;justify-content:center}
.page-head{padding:clamp(72px,10vw,130px) 0 clamp(36px,5vw,64px)}
.page-head .lede{margin-top:20px}

/* ---------- Placeholder imagery (swap for real photos) ---------- */
.ph{
  position:relative;border-radius:22px;overflow:hidden;
  background:radial-gradient(100% 70% at 25% 10%,rgba(255,255,255,.2),transparent 60%),var(--t,#5E241F);
}
.t1{--t:#5E241F}.t2{--t:#BD7230}.t3{--t:#9A7B62}.t4{--t:#341412}.t5{--t:#D8CBBB}.t6{--t:#7A3B32}

/* ---------- Video ---------- */
.video{position:relative;aspect-ratio:16/9;border-radius:24px;overflow:hidden;background:var(--brand-black)}
.video .poster{
  position:absolute;inset:0;background-size:cover;background-position:center;
  background-image:radial-gradient(90% 80% at 30% 20%,rgba(255,255,255,.14),transparent 60%),linear-gradient(135deg,#7A3530,#2A100E);
}
.video .play{
  position:absolute;left:50%;top:50%;width:84px;height:84px;border-radius:50%;border:0;padding:0;
  transform:translate(-50%,-50%);background:rgba(245,242,237,.94);display:grid;place-items:center;cursor:pointer;
  transition:transform .3s var(--ease);
}
.video .play:hover{transform:translate(-50%,-50%) scale(1.07)}
.video .play svg{width:28px;height:28px;margin-left:4px;fill:var(--brand)}
.video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.video-links{display:flex;gap:28px;justify-content:center;flex-wrap:wrap;margin-top:32px}

/* ---------- Tiles (home: three ways in) ---------- */
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.tile{
  border-radius:var(--radius);padding:40px 36px 36px;min-height:460px;display:flex;flex-direction:column;
  justify-content:space-between;text-decoration:none;overflow:hidden;transition:transform .5s var(--ease);
}
.tile:hover,.js .tile.reveal.in:hover{transform:scale(1.012)}
.tile.a{background:var(--brand-deep);color:var(--bg)}
.tile.b{background:var(--bg-2)}
.tile.c{background:var(--brand);color:var(--bg)}
.tile p{margin-top:14px;font-size:1.1rem;line-height:1.4;opacity:.8;max-width:16em}
.tile-foot{display:flex;justify-content:space-between;align-items:flex-end}
.tile-foot svg{width:96px;height:96px;opacity:.85}
.tile .link{color:inherit}

/* ---------- Cards, rails, grids ---------- */
.rail-head{display:flex;justify-content:space-between;align-items:baseline;gap:16px;flex-wrap:wrap;margin-bottom:36px}
.rail{
  display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;
  padding:4px max(24px,calc((100vw - 1080px)/2)) 32px;scroll-padding-inline:max(24px,calc((100vw - 1080px)/2));
  scrollbar-width:none;
}
.rail::-webkit-scrollbar{display:none}
.rail .card{flex:0 0 min(78vw,340px);scroll-snap-align:start}
.card{display:block;text-decoration:none;transition:transform .25s var(--ease)}
.card:hover{transform:translateY(-3px)}
.card:hover .ph{box-shadow:0 14px 26px -16px rgba(31,22,17,.4)}
.card .ph{aspect-ratio:4/5}
.card .ph{position:relative}
.card-dek{position:absolute;inset:0;display:flex;align-items:flex-end;padding:20px;
  background:linear-gradient(180deg,rgba(31,22,17,0) 8%,rgba(31,22,17,.55) 48%,rgba(31,22,17,.92) 100%);
  opacity:0;transition:opacity .3s var(--ease)}
.card-dek p{margin:0;color:#F5F2ED;font-weight:700;letter-spacing:-.015em;line-height:1.18;max-width:74%;
  /* shorter summaries render bigger, longer ones smaller, so both fill roughly the same space */
  font-size:clamp(1.1rem, calc(2.1rem - var(--dek-len,70) * 0.012rem), 2.1rem)}
.card:hover .card-dek,.card:focus-visible .card-dek{opacity:1}
.card h3{font-size:1.25rem;font-weight:600;letter-spacing:-.02em;line-height:1.25;margin:16px 0 8px;transition:color .2s}
.card:hover h3{color:var(--brand)}
.meta{display:flex;gap:12px;font-size:.85rem;color:var(--ink-2)}
.meta span + span{padding-left:12px;border-left:1px solid var(--line)}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:48px 24px}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:44px 22px}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:48px}
.seg{display:inline-flex;flex-wrap:wrap;background:var(--bg-2);border-radius:980px;padding:4px;gap:2px}
.seg button{border:0;background:transparent;padding:8px 18px;border-radius:980px;font-size:.9rem;cursor:pointer;color:var(--ink-2);transition:background .2s,color .2s}
.seg button:hover{color:var(--ink)}
.seg button.active{background:var(--bg);color:var(--ink);box-shadow:0 1px 3px rgba(31,22,17,.14)}

/* ---------- Search: an icon that expands into a rounded search bar ---------- */
.search{position:relative;display:flex;align-items:center;flex:none}
.search-toggle{flex:none;display:flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;
  background:none;border:0;border-radius:50%;color:var(--ink-2);cursor:pointer;transition:color .2s}
.search-toggle svg{width:19px;height:19px}
.search-toggle:hover{color:var(--brand)}
.search-input{
  width:0;min-width:0;padding:9px 0;margin-right:0;border:1px solid transparent;border-radius:980px;
  background:#fff;font-size:.8125rem;color:var(--ink);opacity:0;order:-1;overflow:hidden;text-overflow:ellipsis;
  transition:width .3s var(--ease),opacity .2s var(--ease),padding .3s var(--ease),margin .3s var(--ease),border-color .2s;
}
.search-input::placeholder{color:var(--ink-3)}
.search:hover .search-input,.search:focus-within .search-input{
  width:260px;padding:9px 14px;opacity:1;margin-right:8px;border-color:var(--line);
}
.search-results{position:absolute;top:calc(100% + 8px);right:0;width:280px;max-width:calc(100vw - 48px);
  background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;z-index:20;
  box-shadow:0 20px 44px -18px rgba(31,22,17,.5)}
.search-results a{display:block;padding:12px 16px;text-decoration:none;color:inherit;border-top:1px solid var(--line)}
.search-results a:first-child{border-top:0}
.search-results a strong{display:block;font-size:.92rem;font-weight:600;letter-spacing:-.01em;line-height:1.3}
.search-results a span{display:block;font-size:.8rem;color:var(--ink-2);margin-top:2px}
.search-results a:hover,.search-results a.on{background:var(--bg-2)}
.search-results .search-empty{margin:0;padding:14px 16px;font-size:.88rem;color:var(--ink-2)}
@media (max-width:640px){
  .search:hover .search-input,.search:focus-within .search-input{width:230px;font-size:.75rem}
}

/* ---------- Listen ---------- */
.player{border-radius:var(--radius);padding:clamp(32px,5vw,64px)}
.player iframe{display:block;width:100%;height:352px;border:0;border-radius:20px}
.player .actions{margin-top:28px}
.eps{list-style:none;padding:0}
.ep{display:grid;grid-template-columns:1fr auto;gap:20px;align-items:center;padding:24px 0;border-top:1px solid var(--line)}
.ep:last-child{border-bottom:1px solid var(--line)}
.ep h3{font-size:1.2rem;font-weight:600;letter-spacing:-.02em;line-height:1.25}
.ep .side{display:flex;align-items:center;gap:20px;font-size:.875rem;color:var(--ink-2)}
.round{width:44px;height:44px;border-radius:50%;border:1px solid var(--line);display:grid;place-items:center;transition:background .2s,border-color .2s}
.round svg{width:14px;height:14px;fill:var(--brand);margin-left:2px;transition:fill .2s}
.ep:hover .round{background:var(--brand);border-color:var(--brand)}
.ep:hover .round svg{fill:var(--bg)}

/* ---------- Shop ---------- */
.feature{display:grid;grid-template-columns:1.1fr 1fr;background:var(--bg-2);border-radius:var(--radius);overflow:hidden;margin-bottom:96px}
.feature .ph{border-radius:0;min-height:520px}
.feature-copy{padding:clamp(32px,5vw,72px);display:flex;flex-direction:column;justify-content:center;gap:16px}
.product .ph{aspect-ratio:1/1}
.product h3{font-size:1.05rem;font-weight:600;letter-spacing:-.015em;margin:16px 0 2px}
.product .price{color:var(--ink-2);font-size:.95rem;margin-bottom:6px}
.product p{font-size:.875rem;color:var(--ink-2);margin-bottom:14px}

/* ---------- About / Submit ---------- */
.split{display:grid;grid-template-columns:1fr 1.4fr;gap:clamp(32px,7vw,96px);align-items:start}
.split p{font-size:1.15rem;line-height:1.55;color:var(--ink-2)}
.split p + p{margin-top:20px}
.cols-3{display:grid;grid-template-columns:repeat(3,1fr);gap:48px}
.cols-3 h3{margin-bottom:12px}
.cols-3 p{color:var(--ink-2)}
.dark .cols-3 p{color:rgba(245,242,237,.72)}
.field{display:flex;gap:8px;width:100%;max-width:440px}
.field input{
  flex:1;min-width:0;padding:13px 20px;border-radius:980px;border:1px solid var(--line);
  background:rgba(255,255,255,.55);font-size:1rem;color:var(--ink);
}
.field input::placeholder{color:var(--ink-2);opacity:1}
.field input:focus{outline:2px solid var(--brand);outline-offset:1px;border-color:transparent}
.center .field{margin-inline:auto}
.form-note{min-height:1.5em;margin-top:12px;font-size:.9rem;color:var(--brand)}
.dark .form-note{color:#E3A66B}
.form-note.bad{color:#B3261E}
.dark .form-note.bad,.darker .form-note.bad{color:#FF8A80}

/* ---------- Map page ---------- */
body.immersive{overflow:hidden;height:100vh;height:100svh}
.map-stage{position:relative;height:calc(100vh - var(--nav-h));height:calc(100svh - var(--nav-h))}
#map{position:absolute;inset:0;background:#E6E0D6}
#map .maplibregl-canvas{filter:sepia(.3) saturate(.85) hue-rotate(-8deg)}
.map-fallback{padding:40px;color:var(--ink-2)}
.map-panel{
  position:absolute;top:20px;left:20px;bottom:20px;width:min(380px,calc(100% - 40px));z-index:20;overflow:auto;
  padding:28px;border-radius:24px;background:rgba(245,242,237,.88);
  -webkit-backdrop-filter:blur(24px) saturate(160%);backdrop-filter:blur(24px) saturate(160%);
  box-shadow:0 24px 64px -24px rgba(31,22,17,.4);
}
.map-panel h2{font-size:1.8rem;font-weight:600;letter-spacing:-.03em;line-height:1.1;margin-bottom:10px}
.map-panel > p{color:var(--ink-2);font-size:.98rem;margin-bottom:20px}
.map-panel ul{list-style:none;padding:0}
.map-panel li{border-top:1px solid var(--line)}
.map-panel li:last-child{border-bottom:1px solid var(--line)}
.country{
  width:100%;display:flex;justify-content:space-between;align-items:center;padding:14px 0;
  background:none;border:0;cursor:pointer;text-align:left;font-size:1rem;transition:color .2s;
}
.country:hover{color:var(--brand)}
.country span:last-child{color:var(--ink-3);font-size:.9rem}
.back{background:none;border:0;padding:0;margin-top:22px;color:var(--brand);font-weight:500;cursor:pointer}
.back::before{content:"\2039";margin-right:.4em}
.maplibregl-ctrl-attrib{font-size:11px}

/* ---------- Footer ---------- */
.footer{background:var(--bg-2);padding:72px 0 32px;font-size:.8125rem;color:var(--ink-2)}
.foot-top{display:flex;justify-content:space-between;gap:32px;flex-wrap:wrap;align-items:flex-start;padding-bottom:48px;border-bottom:1px solid var(--line)}
.foot-top .h3{color:var(--ink);margin-bottom:6px}
.foot-top p{font-size:1rem}
.foot-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:32px;padding:40px 0}
.foot-grid h4{font-size:.8125rem;font-weight:600;color:var(--ink);margin-bottom:12px}
.foot-grid ul{list-style:none;padding:0}
.foot-grid li + li{margin-top:8px}
.foot-grid a{text-decoration:none}
.foot-grid a:hover{color:var(--brand);text-decoration:underline}
.foot-bottom{padding-top:24px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
body.immersive .footer{display:none}

/* ---------- Responsive ---------- */
@media (max-width:900px){
  .nav-links{display:none}
  .menu-btn{display:block}
  .tiles{grid-template-columns:1fr}
  .tile{min-height:340px}
  .grid-3{grid-template-columns:repeat(2,1fr)}
  .grid-4{grid-template-columns:repeat(2,1fr)}
  .split,.cols-3,.feature{grid-template-columns:1fr}
  .feature .ph{min-height:340px}
  .foot-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  body{font-size:16px}
  .nav-inner{padding:0 16px;gap:12px}
  .brand{font-size:13px}
  .container{padding:0 20px}
  .grid-3{grid-template-columns:1fr}
  .ep{grid-template-columns:1fr}
  .map-panel{top:auto;left:12px;right:12px;bottom:32px;width:auto;max-height:44%;padding:20px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition:none !important;animation:none !important}
  .js .reveal{opacity:1;transform:none}
  .scale-in{transform:none}
  .words span{opacity:1}
}

/* ---------- Map accents ---------- */
#map .maplibregl-canvas{filter:grayscale(.55) sepia(.3) contrast(1.02)}

/* ---------- Join button and application form ---------- */
.nav-cta{white-space:nowrap}
.menu .menu-join{margin-top:28px;text-align:center;font-size:1rem;font-weight:500;letter-spacing:-.01em;padding:14px 24px;border:1px solid var(--brand)}
.apply form{display:grid;gap:18px}
.apply label{display:block;font-size:.875rem;font-weight:500;margin-bottom:6px}
.apply input,.apply textarea{width:100%;padding:13px 16px;border-radius:14px;border:1px solid var(--line);background:rgba(255,255,255,.55);font:inherit;font-size:1rem;color:var(--ink)}
.apply textarea{min-height:150px;resize:vertical;line-height:1.5}
.apply input:focus,.apply textarea:focus{outline:2px solid var(--brand);outline-offset:1px;border-color:transparent}
@media (max-width:640px){.nav-cta{display:none}}

/* ---------- Photos, empty states ---------- */
.ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.empty{color:var(--ink-2);font-size:1.05rem;padding:24px 0;grid-column:1/-1}
.ep .empty{padding:32px 0}

/* ---------- Single story page ---------- */
.crumb{display:inline-block;margin-bottom:28px;font-size:.9rem;color:var(--ink-2);text-decoration:none}
.crumb:hover{color:var(--brand)}
.story-head{padding-top:clamp(48px,7vw,96px);padding-bottom:32px}
.story-head h1{max-width:16em}
.story-head .lede{margin-top:20px}
.story-head .meta{margin-top:24px;flex-wrap:wrap;row-gap:6px}
.story-media{margin-top:16px}
.story-media .video,.hero-photo{border-radius:24px}
.hero-photo{width:100%;aspect-ratio:16/9;max-height:72vh;object-fit:cover;background:var(--bg-2)}
/* A vertical (portrait) cover photo would otherwise be badly cropped by the rule above, or show
   empty colour either side of it if just centred within the same full-width box. Instead it
   keeps the same height the box would have had, but the box itself narrows to meet the image —
   no crop, no background showing beyond the photo's own edges. Set in render.js once the image's
   real dimensions are known. */
.hero-photo.portrait{width:auto;max-width:100%;aspect-ratio:auto;object-fit:contain;display:block;margin:0 auto;background:none}
.story-listen{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:40px}

/* ---------- Video: "Sound on" button (shown while autoplaying muted) ---------- */
.video .sound{position:absolute;left:16px;bottom:64px;z-index:3;display:flex;align-items:center;gap:8px;padding:9px 16px 9px 12px;border:0;border-radius:980px;background:rgba(245,242,237,.94);color:var(--brand);font-size:.875rem;font-weight:500;cursor:pointer;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);transition:transform .2s var(--ease)}
.video .sound:hover{transform:scale(1.04)}
.video .sound svg{width:18px;height:18px}

/* ---------- Article body: newspaper columns, photos and pull quotes ---------- */
.article{padding-top:56px;padding-bottom:88px}
.article-body{font-size:1.1rem;line-height:1.7;letter-spacing:-.006em}
.article.cols .article-body{column-count:2;column-gap:64px;column-rule:1px solid var(--line);-webkit-hyphens:auto;hyphens:auto}
.story-listen{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:40px}
.article-body > :first-child{margin-top:0}
.article-body p{margin:0 0 1.2em}
.article-body strong{font-weight:600}
.article-body em{font-style:italic}
.article-body a{color:var(--brand);text-underline-offset:3px}
.article-body h2{font-size:1.5rem;font-weight:600;letter-spacing:-.03em;line-height:1.2;margin:1.7em 0 .55em;-webkit-column-break-after:avoid;break-after:avoid}
.article-body figure{margin:2.2em 0}
.article-body figure img{width:100%;border-radius:16px;background:var(--bg-2)}
.article-body figcaption{font-size:.85rem;color:var(--ink-2);margin-top:10px;line-height:1.4}
.article-body blockquote.pull{margin:2.2em 0;padding:0;font-size:clamp(1.7rem,3.3vw,2.7rem);font-weight:700;line-height:1.15;letter-spacing:-.035em;color:var(--brand);-webkit-hyphens:none;hyphens:none}
.article.cols .article-body figure.wide,.article.cols .article-body blockquote.pull{column-span:all}
.article.cols .article-body blockquote.pull{max-width:860px}
.article.cols .article-body figure.col{-webkit-column-break-inside:avoid;break-inside:avoid}
@media (max-width:900px){.article.cols .article-body{column-count:1}}

/* Inside the admin preview, links and the menu must not navigate away */
.preview-mode .nav a,.preview-mode .menu a,.preview-mode .footer a,.preview-mode .crumb{pointer-events:none}

/* ---------- Map: dots and story points that levitate ---------- */
.spot{position:relative;width:24px;height:24px;padding:0;border:0;background:none;cursor:pointer;display:block}
.spot .dot{position:absolute;inset:3px;border-radius:50%;background:var(--brand);border:3px solid var(--bg);box-shadow:0 2px 6px rgba(31,22,17,.4);transition:transform .3s var(--ease),box-shadow .3s var(--ease)}
.spot .shade{position:absolute;left:50%;bottom:1px;width:16px;height:6px;margin-left:-8px;border-radius:50%;background:rgba(31,22,17,.45);filter:blur(2.5px);opacity:.55;transition:transform .3s var(--ease),opacity .3s var(--ease)}
.spot.country .dot{background:var(--accent)}
.spot:hover .dot,.spot.hot .dot{transform:translateY(-10px) scale(1.2);box-shadow:0 0 0 7px rgba(94,36,31,.16),0 14px 18px -6px rgba(31,22,17,.5)}
.spot.country:hover .dot,.spot.country.hot .dot{box-shadow:0 0 0 7px rgba(189,114,48,.22),0 14px 18px -6px rgba(31,22,17,.5)}
.spot:hover .shade,.spot.hot .shade{transform:scale(.55);opacity:.25}
.spot.hot .dot{animation:bob 1.6s ease-in-out infinite}
@keyframes bob{0%,100%{transform:translateY(-10px) scale(1.2)}50%{transform:translateY(-14px) scale(1.2)}}
.spot:focus-visible{outline:none}
.spot:focus-visible .dot{box-shadow:0 0 0 3px var(--bg),0 0 0 5px var(--brand)}
.spot.country{transition:opacity .4s var(--ease)}
#map.in-country .spot.country,#map.zoomed-in .spot.country{opacity:0;pointer-events:none}

/* preview card over a point */
.spot-pop{z-index:15}   /* above map pins so the card stays legible, below .map-panel so it never covers the sidebar */
.spot-pop.hover{pointer-events:none}
.spot-pop .maplibregl-popup-content{padding:0;border-radius:18px;overflow:hidden;background:var(--bg);box-shadow:0 24px 50px -18px rgba(31,22,17,.55),0 0 0 1px rgba(31,22,17,.06)}
.spot-pop .maplibregl-popup-tip{display:none}
.spot-card{width:290px;animation:popIn .26s var(--ease)}
@keyframes popIn{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:none}}
.spot-photo.ph{width:100%;height:160px;border-radius:0}
/* A vertical (portrait) photo: the card narrows to meet the photo's own width at that same
   132px height (with a small minimum so the text below never gets too cramped — a little crop
   on a very narrow photo beats leaving a bare gap either side of it). The exact width is set in
   map.js once the image's real dimensions are known. */
.spot-card.portrait{width:auto}
.spot-card.portrait .spot-photo{width:auto;height:260px;background:none}
.spot-card.portrait .spot-photo img{position:static;width:100%;height:100%;object-fit:cover;display:block}
.spot-text{padding:14px 16px 16px;text-align:left}
.spot-text strong{display:block;font-size:1.02rem;font-weight:600;letter-spacing:-.02em;line-height:1.25}
.spot-text span{display:block;font-size:.85rem;color:var(--ink-2);margin-top:2px}
.spot-link{display:inline-block;margin-top:12px;font-size:.875rem;font-weight:500;color:var(--brand);text-decoration:none}
.spot-link::after{content:"\203A";margin-left:.3em}
.spot-link:hover{text-decoration:underline;text-underline-offset:4px}

/* side panel: countries and story cards */
.map-panel ul.stories li,.map-panel ul.stories li:last-child{border:0}
.map-panel ul.stories{display:grid;gap:6px;margin:0 -8px}
.map-panel ul.countries .country{transition:color .2s,padding .25s var(--ease)}
.map-panel ul.countries .country:hover{padding-left:6px}
.story-card{display:flex;gap:14px;align-items:center;padding:10px;border-radius:16px;text-decoration:none;color:inherit;position:relative;
  transition:transform .3s var(--ease),box-shadow .3s var(--ease),background .3s var(--ease)}
.story-card .thumb.ph{width:64px;height:64px;border-radius:12px;flex:none}
.story-card .txt{min-width:0}
.story-card strong{display:block;font-weight:600;letter-spacing:-.015em;line-height:1.3;margin-bottom:4px;transition:color .2s}
.story-card .meta{flex-wrap:wrap;row-gap:2px}
.story-card .meta.who{
  margin-top:3px;flex-wrap:nowrap;overflow:hidden;
  /* shrinks the interviewee/location line to fit one line rather than wrapping onto a second;
     --who-len (their combined character count, set in map.js) only starts pulling the size
     down past a normal-length name+place — a short one stays at full size */
  font-size:clamp(.6125rem, calc(.85rem - max(0, var(--who-len,20) - 24) * .013rem), .85rem);
}
.story-card .meta.who span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.story-card .meta.formats{margin-top:4px;color:var(--ink-3)}
.story-card:hover,.story-card.hot,.story-card:focus-visible{transform:translateY(-3px);background:rgba(255,255,255,.66);
  box-shadow:0 14px 30px -14px rgba(94,36,31,.6),0 0 0 1px rgba(94,36,31,.12),0 0 24px -6px rgba(94,36,31,.28)}
.story-card:hover strong,.story-card.hot strong{color:var(--brand)}
.story-card.active{box-shadow:0 0 0 2px var(--brand),0 14px 30px -14px rgba(94,36,31,.6);background:rgba(255,255,255,.75)}
.story-card:focus-visible{outline:none}
@media (prefers-reduced-motion:reduce){.spot.hot .dot{animation:none !important}.spot-card{animation:none !important}}

/* ---------- Stories on top of each other: one dot that fans out into a circle on hover ---------- */
.cluster{width:24px;height:24px}
.cluster.open{z-index:10}
.cluster .halo{position:absolute;left:12px;top:12px;width:var(--d,120px);height:var(--d,120px);margin:calc(var(--d,120px) / -2) 0 0 calc(var(--d,120px) / -2);
  border-radius:50%;background:rgba(245,242,237,.66);border:1px solid rgba(94,36,31,.18);box-shadow:0 22px 44px -20px rgba(31,22,17,.5);
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
  opacity:0;transform:scale(.4);pointer-events:none;transition:opacity .25s var(--ease),transform .4s var(--ease)}
.cluster.open .halo{opacity:1;transform:scale(1);pointer-events:auto}
.cluster .core{position:absolute;left:0;top:0;z-index:1}
.cluster .count{position:absolute;right:-7px;top:-9px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--bg);color:var(--brand);
  font-size:11px;font-weight:600;line-height:18px;text-align:center;box-shadow:0 1px 4px rgba(31,22,17,.4);pointer-events:none;transition:opacity .2s}
.cluster.open .count{opacity:0}
.cluster .member{position:absolute;left:0;top:0;z-index:2;visibility:hidden;opacity:0;transform:translate(0,0) scale(.3);
  transition:transform .3s var(--ease),opacity .2s var(--ease),visibility 0s .3s}
.cluster.open .member{visibility:visible;opacity:1;transform:translate(var(--x,0),var(--y,0)) scale(1);
  transition:transform .4s var(--ease) calc(var(--i,0) * 30ms),opacity .25s var(--ease) calc(var(--i,0) * 30ms),visibility 0s 0s}
@media (prefers-reduced-motion:reduce){.cluster .member,.cluster.open .member,.cluster .halo{transition:none !important}}

/* ---------- The glow put on the Creator login link by "Show me where" (see site.js) ---------- */
.find-hl{background:var(--brand);color:#F5F2ED !important;padding:5px 14px;margin:-5px 0 -5px -14px;border-radius:980px;text-decoration:none !important;
  animation:findGlow 1.2s ease-in-out 4}
@keyframes findGlow{0%,100%{box-shadow:0 0 0 0 rgba(94,36,31,.5)}50%{box-shadow:0 0 0 12px rgba(94,36,31,0)}}
@media (prefers-reduced-motion:reduce){.find-hl{animation:none;box-shadow:0 0 0 4px rgba(94,36,31,.25)}}

/* Text for search engines and screen readers that is not drawn on screen */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ==========================================================
   Phones: fit every screen, no sideways scrolling
   ========================================================== */
.foot-top > *{min-width:0}
@media (max-width:640px){
  .foot-top > div{flex:1 1 100%}
}

/* Safety net: long words and unbroken links wrap instead of pushing the page wider */
h1,h2,h3,h4,p,li,a,strong,blockquote,figcaption{overflow-wrap:break-word}
body{overflow-x:clip}

@media (max-width:640px){
  /* calmer spacing between sections on a small screen */
  .section{padding:64px 0}
  .section.tight{padding:48px 0}
  .page-head{padding:44px 0 28px}
  .story-head{padding-top:36px}

  /* headings scale with the screen so the longest word always fits */
  .display{font-size:min(2.8rem,12.4vw)}
  .h1{font-size:min(2.4rem,10.6vw)}
  .h2{font-size:min(2rem,9vw)}
  .words{font-size:1.55rem;line-height:1.22}
  .lede{font-size:1.1rem}

  /* home: the three "ways in" tiles */
  .tile{min-height:240px;padding:30px 26px 26px}
  .tile p{font-size:1rem}
  .tile-foot svg{width:64px;height:64px}

  /* story cards in grids: a wider crop so the page is not one long column of tall blocks */
  .grid-3 .card .ph,.grid-4 .card .ph{aspect-ratio:4/3}
  .grid-3{gap:36px}
  .card h3{font-size:1.15rem;margin-top:12px}
  .meta{flex-wrap:wrap;row-gap:4px}
  .card-dek{display:none}  /* the hover summary needs a mouse; on phones it covered the photo after a tap */

  /* stories toolbar: filters and search sit neatly, and typing does not zoom the page */
  .toolbar{margin-bottom:32px;gap:10px}
  .seg button{padding:8px 14px}
  .search-input{font-size:16px}
  .search:hover .search-input,.search:focus-within .search-input{width:min(240px,calc(100vw - 96px));font-size:16px}

  /* listen: duration and play button stay beside each episode */
  .ep{grid-template-columns:1fr auto;gap:14px;padding:20px 0}
  .ep h3{font-size:1.05rem}
  .ep .side{gap:12px}
  .round{width:40px;height:40px}

  /* video */
  .video{border-radius:18px}
  .video .play{width:64px;height:64px}
  .video .play svg{width:22px;height:22px}
  .video .sound{left:12px;bottom:12px;padding:7px 12px 7px 10px;font-size:.8rem}
  .video-links{gap:18px 24px;margin-top:24px}

  /* single story */
  .article{padding-top:36px;padding-bottom:64px}
  .article-body{font-size:1.05rem;line-height:1.65}
  .article-body blockquote.pull{font-size:1.6rem}
  .story-media .video,.hero-photo{border-radius:18px}
  .hero-photo{max-height:60vh}

  /* map: the country panel is a tidy sheet at the bottom */
  .map-panel{padding:18px 18px 8px;border-radius:20px;max-height:46%}
  .map-panel h2{font-size:1.4rem;margin-bottom:6px}
  .map-panel > p{font-size:.9rem;margin-bottom:12px}
  .country{padding:12px 0}
  .spot-card{width:min(260px,calc(100vw - 48px))}
  .spot-photo.ph{height:130px}

  /* listen player card */
  .player{padding:28px 22px}
  .player iframe{height:232px}

  /* footer */
  .footer{padding:52px 0 28px}
  .foot-top{padding-bottom:36px}
  .foot-grid{padding:32px 0;gap:28px 20px}
  .foot-grid > div:first-child{grid-column:1/-1}
  .foot-bottom{flex-direction:column;gap:6px}

  /* menu */
  .menu a{font-size:1.75rem}
}

/* Search box: no browser-blue clear cross, and one tidy brand-coloured ring when typing */
.search-input::-webkit-search-cancel-button,.search-input::-webkit-search-decoration{-webkit-appearance:none;appearance:none}
.search-input:focus,.search-input:focus-visible{outline:none;border-color:var(--brand)}
/* "Soon" tag in the phone menu sits clear of the word instead of covering its last letter */
.menu a .soon{margin-left:8px;top:-14px}

/* ==========================================================
   Phones, round two: map button, story date, lighter buttons and boxes
   ========================================================== */
.phone-only{display:none}
.panel-btn{display:none}

@media (max-width:640px){
  .wide-only{display:none}
  .phone-only{display:inline}

  /* ---- Map: a round button in the bottom corner opens a small floating list ---- */
  .panel-btn{
    display:grid;place-items:center;position:absolute;left:16px;bottom:calc(22px + env(safe-area-inset-bottom));z-index:21;
    width:52px;height:52px;padding:0;border:0;border-radius:50%;cursor:pointer;
    background:var(--brand);color:var(--bg);
    box-shadow:0 10px 24px -8px rgba(31,22,17,.55),0 0 0 1px rgba(255,255,255,.08) inset;
    transition:transform .25s var(--ease),background .25s;
  }
  .panel-btn:active{transform:scale(.94)}
  .panel-btn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;grid-area:1/1;transition:opacity .2s,transform .3s var(--ease)}
  .panel-btn .i-close{opacity:0;transform:rotate(-45deg)}
  .panel-open .panel-btn{background:var(--brand-deep)}
  .panel-open .panel-btn .i-open{opacity:0;transform:rotate(45deg)}
  .panel-open .panel-btn .i-close{opacity:1;transform:none}

  .map-panel{
    top:auto;right:auto;left:16px;bottom:calc(86px + env(safe-area-inset-bottom));
    width:min(290px,calc(100vw - 32px));max-height:min(50vh,400px);
    padding:16px 16px 8px;border-radius:18px;
    box-shadow:0 18px 44px -16px rgba(31,22,17,.5);
    opacity:0;visibility:hidden;transform:translateY(10px) scale(.96);transform-origin:bottom left;
    transition:opacity .22s var(--ease),transform .3s var(--ease),visibility 0s .3s;
  }
  .panel-open .map-panel{opacity:1;visibility:visible;transform:none;transition:opacity .22s var(--ease),transform .3s var(--ease),visibility 0s}
  .map-panel h2{font-size:1.05rem;letter-spacing:-.02em;margin-bottom:8px}
  .map-panel > p{font-size:.85rem;margin-bottom:10px}
  .map-panel > p.panel-intro{display:none}
  .country{padding:11px 2px;font-size:.95rem}
  .country span:last-child{font-size:.82rem}
  .map-panel ul.stories{gap:2px;margin:0 -6px}
  .story-card{gap:12px;padding:8px}
  .story-card .thumb.ph{width:48px;height:48px;border-radius:10px}
  .story-card strong{font-size:.92rem}
  .back{margin:14px 0 8px;font-size:.9rem}
  .map-panel{max-height:min(50vh,400px)}
  .maplibregl-ctrl-top-right{margin-top:4px}

  /* ---- Story page: the date on its own line, with no separator ---- */
  .story-head .meta span.meta-date{flex-basis:100%;padding-left:0;border-left:0;color:var(--ink-3)}

  /* ---- Lighter buttons and boxes so pages breathe ---- */
  .btn{padding:10px 20px;font-size:.94rem}
  .btn.sm{padding:7px 14px;font-size:.82rem}
  .actions{gap:16px}
  .hero .actions{margin-top:28px}
  .field{gap:6px}
  .field input{padding:10px 16px;font-size:16px}   /* 16px stops iPhones zooming in when you tap the box */
  .field .btn{padding:10px 18px}
  .apply form{gap:14px}
  .apply label{font-size:.82rem;margin-bottom:5px}
  .apply input,.apply textarea{padding:10px 14px;border-radius:12px;font-size:16px}
  .apply textarea{min-height:120px}
  .seg{padding:3px}
  .seg button{padding:7px 12px;font-size:.85rem}
  .ph{border-radius:16px}
  .tile{border-radius:22px}
  .player{border-radius:22px}
  .player .actions{margin-top:22px;gap:10px}
  .round{width:36px;height:36px}
  .round svg{width:12px;height:12px}
  .video .play{width:56px;height:56px}
  .video .play svg{width:20px;height:20px}
  .menu .menu-join{padding:12px 20px;font-size:.95rem}
  .story-listen{gap:8px;margin-bottom:28px}
  .story-listen .btn{padding:8px 16px;font-size:.85rem}
}

/* Home title on phones: always two lines, "Ordinary people." over "Extraordinary lives."
   Sized from the screen width so the longer line fits, with room to spare for iPhone's own font */
@media (max-width:640px){
  .hero .display{font-size:min(2.8rem,calc((100vw - 40px) / 9.3));line-height:1.06}
  .hero .display .l1,.hero .display .l2{white-space:nowrap}
}
