/* Inside Africa Akwaaba — 30th Anniversary. Restructured UI */
:root{
  --stage:#2a0b11; --stage-2:#431420; --gold:#f2b134; --gold-d:#d98e0b;
  --red:#c1121f; --paper:#f7f5f0; --card:#fff; --text:#221a1a; --muted:#6b6159;
  --line:#e3dfd7; --cream:#fbf3e6;
  --display:'Fraunces',Georgia,serif; --body:'Inter',system-ui,sans-serif;
  --gut:clamp(16px,3.2vw,48px); --max:1440px; --head:72px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--head) + 12px)}
body{font-family:var(--body);color:var(--text);background:var(--paper);line-height:1.55;-webkit-font-smoothing:antialiased}
@media(max-width:960px){body{zoom:80% !important}}
img{max-width:100%;display:block}
a{color:inherit}
:focus-visible{outline:3px solid var(--gold);outline-offset:3px;border-radius:6px}
.wrap{max-width:var(--max);margin:0 auto;padding:0 var(--gut)}
.btn{display:inline-flex;align-items:center;gap:.6rem;font:600 1rem var(--body);text-decoration:none;border:0;cursor:pointer;border-radius:999px;padding:.9rem 1.7rem;background:var(--gold);color:#2a0b11;transition:transform .2s,background .2s}
.btn:hover{background:#ffc552;transform:translateY(-2px)}
.btn--sm{padding:.6rem 1.2rem;font-size:.9rem}
.btn--ghost{background:transparent;color:inherit;box-shadow:inset 0 0 0 1.5px currentColor}
.btn--ghost:hover{background:rgba(255,255,255,.1)}

/* Header */
.head{position:fixed;inset:0 0 auto 0;z-index:50;height:var(--head);display:flex;align-items:center;color:#fff;transition:background .3s,box-shadow .3s}
.head.scrolled{background:rgba(42,11,17,.94);backdrop-filter:blur(10px);box-shadow:0 8px 24px rgba(0,0,0,.25)}
.head .wrap{display:flex;align-items:center;gap:28px;width:100%}
.logo img{height:44px;width:auto}
.menu{display:flex;gap:26px;margin-left:auto}
.menu a{text-decoration:none;font-weight:500;font-size:.95rem;opacity:.85;padding:6px 0;border-bottom:2px solid transparent}
.menu a:hover,.menu a.active{opacity:1;border-color:var(--gold)}
.head-right{display:flex;align-items:center;gap:14px}
.lang-dropdown{position:relative}
.lang-dropdown-trigger{display:flex;align-items:center;gap:6px;background:rgba(255,255,255,.12);color:#fff;border:0;border-radius:999px;padding:8px 12px;cursor:pointer}
.lang-flag{width:22px;height:15px;border-radius:2px}
.lang-dropdown-menu{display:none;position:absolute;right:0;top:calc(100% + 8px);list-style:none;background:#fff;color:var(--text);border-radius:14px;padding:6px;min-width:160px;box-shadow:0 16px 40px rgba(0,0,0,.25)}
.lang-dropdown.open .lang-dropdown-menu{display:block}
.lang-option{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;cursor:pointer;font-size:.95rem}
.lang-option:hover,.lang-option.active{background:var(--cream)}

/* Hero */
.hero{position:relative;overflow:hidden;color:#fff;background:linear-gradient(90deg,rgba(42,11,17,.92) 0%,rgba(42,11,17,.72) 55%,rgba(42,11,17,.45) 100%),url('black-woman-red-roses-Illustration.jpg') center/cover no-repeat,var(--stage);padding:calc(var(--head) + 56px) 0 80px}
.hero::before{content:"";position:absolute;top:-10%;right:8%;width:60%;height:130%;background:conic-gradient(from 180deg at 50% 0,transparent 160deg,rgba(242,177,52,.22) 180deg,transparent 200deg);filter:blur(12px);pointer-events:none}
.hero .wrap{position:relative;display:grid;gap:48px;align-items:center}
@media(min-width:960px){.hero .wrap{grid-template-columns:1.15fr .85fr}}
.dates{font:500 1.1rem var(--display);color:var(--gold);margin-bottom:14px}
.hero h1{font:600 clamp(2.6rem,6.5vw,5.2rem)/1.02 var(--display);letter-spacing:-.025em;max-width:13ch}
.venue{display:flex;align-items:center;gap:8px;margin-top:22px;opacity:.9}
.count{display:flex;gap:12px;margin:34px 0}
.count div{min-width:76px;text-align:center;padding:14px 10px;border-radius:16px;background:rgba(255,255,255,.07);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
.count b{display:block;font:600 2rem/1 var(--display);font-variant-numeric:tabular-nums}
.count span{font-size:.75rem;opacity:.7}
.cta-row{display:flex;flex-wrap:wrap;gap:14px}
.hero-art{position:relative;justify-self:center;width:min(100%,500px)}
.arch{display:flex;align-items:center;justify-content:center;aspect-ratio:4/5;border-radius:999px 999px 28px 28px;overflow:hidden;background:linear-gradient(rgba(42,11,17,.5),rgba(42,11,17,.78)),url('Textiles-et-Tenues-IMG.jpg') center/cover no-repeat,radial-gradient(circle at 50% 42%,#6a1d2c,#2a0b11 70%);box-shadow:0 30px 60px rgba(0,0,0,.45),0 0 0 8px rgba(242,177,52,.22)}
.hero-30{width:82%;max-height:82%;height:auto;object-fit:contain;filter:drop-shadow(0 14px 32px rgba(0,0,0,.55))}

/* Programme */
.prog{padding-top:96px;padding-bottom:72px}
.sec-head{max-width:640px;margin-bottom:36px}
.sec-head h2,.band h2,.backers h2{font:600 clamp(2rem,4vw,3rem)/1.1 var(--display);letter-spacing:-.02em}
.sec-head p{color:var(--muted);margin-top:12px;font-size:1.05rem}
.tabs{display:inline-flex;padding:6px;border-radius:999px;background:#ece7dc;margin-bottom:36px;max-width:100%}
.tab{border:0;background:transparent;cursor:pointer;font:600 .95rem var(--body);color:var(--muted);padding:12px 22px;border-radius:999px;text-align:left}
.tab em{display:block;font-style:normal;font-weight:400;font-size:.8rem}
.tab[aria-selected=true]{background:var(--stage);color:#fff}
.grid{display:grid;gap:24px;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr))}
.card{display:flex;flex-direction:column;text-align:left;background:var(--card);border:0;border-radius:22px;overflow:hidden;cursor:pointer;font:inherit;color:inherit;box-shadow:0 1px 0 var(--line),0 14px 30px -14px rgba(42,11,17,.25);transition:transform .25s,box-shadow .25s}
.card:hover{transform:translateY(-6px);box-shadow:0 22px 40px -14px rgba(42,11,17,.4)}
.card-img{position:relative;aspect-ratio:4/5;overflow:hidden;background:var(--stage)}
.card-img img{position:absolute;inset:0;width:100%;height:100%}
.card-img .fg{object-fit:contain}
.card-img .bd{inset:-24px;width:calc(100% + 48px);height:calc(100% + 48px);object-fit:cover;filter:blur(22px) brightness(.65) saturate(1.2)}
.when{display:inline-flex;align-items:center;gap:7px;align-self:flex-start;font-weight:600;font-size:.85rem;color:#8a5a00;background:#fdf1d6;padding:5px 12px;border-radius:999px}
.card-body{padding:18px 20px 22px;display:flex;flex-direction:column;gap:8px;flex:1}
.card h3{font:600 1.3rem/1.2 var(--display)}
.card p{color:var(--muted);font-size:.92rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.more{margin-top:auto;padding-top:8px;font-weight:600;color:var(--red);font-size:.92rem}
.grid.g3{grid-template-columns:repeat(3,1fr)}
.grid.g4{grid-template-columns:repeat(4,1fr)}
.grid[hidden]{display:none}
@media(max-width:1000px){.grid.g4{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.grid.g3{grid-template-columns:1fr}}
@media(max-width:560px){.grid.g4{grid-template-columns:1fr}}

/* Tickets band */
.band{background:var(--stage);color:#fff;text-align:center;padding:84px 0}
.band p{max-width:600px;margin:16px auto 30px;opacity:.85;font-size:1.1rem}
/* Detail dialog */
dialog{border:0;padding:0;background:var(--paper);color:var(--text);width:min(1080px,100%);max-height:min(92vh,900px);margin:auto;border-radius:28px;overflow:hidden;box-shadow:0 40px 100px rgba(0,0,0,.5)}
dialog::backdrop{background:rgba(20,5,8,.78);backdrop-filter:blur(4px)}
dialog[open]{animation:pop .3s ease}
@keyframes pop{from{opacity:0;transform:translateY(24px) scale(.98)}}
.x{position:absolute;right:16px;top:16px;z-index:3;width:44px;height:44px;border-radius:50%;border:0;background:#fff;box-shadow:0 4px 14px rgba(0,0,0,.2);cursor:pointer;font-size:1.3rem}
.dl{display:grid;max-height:inherit}
.detail[hidden]{display:none}
.detail{display:grid;max-height:min(92vh,900px);overflow-y:auto}
@media(min-width:860px){.detail{grid-template-columns:360px 1fr;overflow:hidden}.d-body{overflow-y:auto;max-height:min(92vh,900px)}}
.d-fly{background:var(--cream);padding:24px;display:flex;align-items:center}
.d-fly img{width:100%;border-radius:12px;box-shadow:0 14px 34px rgba(0,0,0,.25);cursor:zoom-in}
.d-fly img.zoom{position:fixed;inset:0;z-index:9;width:100%;height:100%;object-fit:contain;background:rgba(20,5,8,.92);border-radius:0;cursor:zoom-out}
.d-body{padding:36px clamp(22px,4vw,48px) 32px}
.d-body h2{font:600 clamp(1.8rem,3.4vw,2.6rem)/1.1 var(--display);letter-spacing:-.02em;padding-right:40px}
.facts{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}
.facts>span{display:inline-flex;align-items:center;gap:8px;background:var(--cream);padding:8px 14px;border-radius:999px;font-size:.9rem;font-weight:500}
.desc{color:#41362f;font-size:1.05rem;max-width:62ch}
.d-body h4{font:600 1.2rem var(--display);margin:28px 0 12px}
.tl{list-style:none;border-left:2px solid var(--gold);margin-left:6px}
.tl li{position:relative;padding:0 0 16px 22px;display:grid;gap:2px}
.tl li::before{content:"";position:absolute;left:-7px;top:6px;width:12px;height:12px;border-radius:50%;background:var(--red);box-shadow:0 0 0 4px var(--paper)}
.tl b{font-size:.9rem;color:var(--red)}
.d-foot{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin-top:20px;padding-top:20px;border-top:1px solid var(--line)}
.d-foot .btn--ghost{color:var(--text)}
.vid{margin-top:4px;aspect-ratio:16/9;border-radius:16px;overflow:hidden}
.vid iframe{width:100%;height:100%;border:0}

/* Mobile ticket bar */
.mbar{display:none}
@media(max-width:820px){
  .menu,.head .btn{display:none}.head .wrap{justify-content:space-between}
  .hero .wrap{gap:32px}.hero-art{order:-1;width:min(72%,290px)}
  .count{gap:8px}.count div{min-width:0;flex:1}
  .mbar{display:block;position:fixed;inset:auto 0 0 0;z-index:40;padding:12px var(--gut) calc(12px + env(safe-area-inset-bottom));background:rgba(42,11,17,.96)}
  .mbar .btn{width:100%;justify-content:center}
    dialog{border-radius:0;max-width:100%;width:100%;margin:0;max-height:125vh;max-height:125dvh;height:125vh;height:125dvh}
  .detail{max-height:125vh;max-height:125dvh}
}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}


/* Sponsors & partners */
.backers{padding:80px 0;text-align:center}
.b-partners{background:#efe8da}
.sec-title{display:flex;align-items:center;gap:22px;justify-content:center}
.sec-title::before,.sec-title::after{content:"";height:1px;flex:1;max-width:140px;background:linear-gradient(90deg,transparent,var(--gold-d))}
.sec-title::after{transform:scaleX(-1)}
.sp-grid{display:grid;gap:24px;margin-top:40px;justify-content:center;grid-template-columns:repeat(auto-fit,minmax(240px,340px))}
.b-partners .sp-grid{grid-template-columns:repeat(auto-fit,minmax(200px,260px));gap:18px}
.sp{display:flex;flex-direction:column;align-items:center;gap:14px;padding:30px 24px 26px;background:#fff;border-radius:24px;box-shadow:0 1px 0 var(--line),0 18px 36px -18px rgba(42,11,17,.3);transition:transform .25s,box-shadow .25s}
.sp:hover{transform:translateY(-4px);box-shadow:0 24px 44px -18px rgba(42,11,17,.4)}
.sp-tag{font-weight:600;font-size:.8rem;color:var(--red);background:#fce8e9;padding:5px 14px;border-radius:999px}
.sp-logo{width:100%;height:130px;display:flex;align-items:center;justify-content:center}
.sp-logo img{max-width:80%;max-height:100%;object-fit:contain}
.sp h3{font:600 1.2rem/1.25 var(--display)}
.b-partners .sp{padding:22px 18px 20px;border-top-width:3px}
.b-partners .sp-logo{height:84px}
.b-partners .sp h3{font-size:1rem}

/* Footer */
footer{background:#1b070b;color:#fff;padding:56px 0 100px}
.foot-in{display:flex;flex-direction:column;align-items:center;gap:26px;text-align:center}
.foot-logo img{height:64px;width:auto}
footer .footer-credit{position:relative;padding-top:22px;display:flex;justify-content:center}
footer .footer-credit::before{content:"";position:absolute;top:0;left:50%;transform:translateX(-50%);width:48px;height:2px;border-radius:2px;background:linear-gradient(90deg,transparent,#25D366,transparent)}
footer .footer-credit a{display:inline-flex;align-items:center;gap:10px;padding:8px 8px 8px 18px;background:#fff;border:1px solid var(--line);border-radius:999px;box-shadow:0 4px 12px rgba(0,0,0,.2);color:#4a4a4a;font-size:.85rem;font-weight:500;letter-spacing:.02em;text-decoration:none}
footer .credit-label{font-family:var(--display);font-style:italic;color:var(--muted)}
footer .credit-phone{display:inline-flex;align-items:center;gap:8px;padding:7px 14px 7px 10px;border-radius:999px;background:#25D366;color:#fff;font-weight:600;font-variant-numeric:tabular-nums}
footer .credit-phone svg{width:16px;height:16px;flex:none}
footer .footer-credit a:focus-visible{outline:2px solid #25D366;outline-offset:3px}

/* Lock page scroll while the modal is open (no double scrolling) */
html.modal-open,html.modal-open body{overflow:hidden;overscroll-behavior:none}
dialog{overscroll-behavior:contain}
.detail,.d-body{overscroll-behavior:contain}

/* Sponsors & partners: 2 per row on mobile */
@media(max-width:820px){
  .sp-grid,.b-partners .sp-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .sp{padding:20px 12px 18px;gap:10px;border-radius:18px}
  .sp-logo,.b-partners .sp-logo{height:80px}
  .sp h3,.b-partners .sp h3{font-size:.95rem}
  .sp-tag{font-size:.7rem;padding:4px 10px;text-align:center}
  .sp-grid .sp:last-child:nth-child(odd){grid-column:1/-1;justify-self:center;width:calc(50% - 6px)}
}

/* Miss Inside Africa candidates — spotlight carousel */
.cands{padding:88px 0;color:#fff;background:radial-gradient(circle at 15% 20%,#5a1827,transparent 55%),radial-gradient(circle at 90% 90%,#3a101b,transparent 50%),var(--stage);overflow:hidden}
.cands .sec-head p{color:rgba(255,255,255,.7)}
.cs:focus-visible{outline-offset:12px}
.cs-stage{display:grid;gap:56px;align-items:center;grid-template-columns:minmax(0,400px) minmax(0,1fr);justify-content:center}
.cs-photo{position:relative;aspect-ratio:4/5;border-radius:999px 999px 28px 28px;overflow:hidden;background:var(--stage-2);box-shadow:0 30px 60px rgba(0,0,0,.5),0 0 0 8px rgba(242,177,52,.22);touch-action:pan-y;user-select:none}
.cs-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center top;opacity:0;transform:scale(1.1);transition:opacity .9s ease,transform 6s ease-out;-webkit-user-drag:none}
.cs-photo img.on{opacity:1;transform:scale(1)}
.cs-info{display:flex;flex-direction:column;align-items:flex-start;gap:16px;min-width:0}
.cs-num{display:flex;align-items:baseline;gap:6px}
.cs-num b{font:600 clamp(4.5rem,11vw,8.5rem)/.9 var(--display);color:transparent;-webkit-text-stroke:1.5px rgba(242,177,52,.6);font-variant-numeric:tabular-nums}
.cs-num small{font:500 1.1rem var(--display);color:rgba(255,255,255,.55)}
.cs-name{font:600 clamp(2rem,4.6vw,3.6rem)/1.05 var(--display);letter-spacing:-.02em}
.cs-rep{display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:1rem;color:var(--gold);background:rgba(242,177,52,.14);box-shadow:inset 0 0 0 1px rgba(242,177,52,.4);padding:8px 16px;border-radius:999px}
.cs-info.swap .cs-num b,.cs-info.swap .cs-name,.cs-info.swap .cs-rep{animation:csUp .7s cubic-bezier(.2,.7,.2,1) both}
.cs-info.swap .cs-name{animation-delay:.08s}.cs-info.swap .cs-rep{animation-delay:.16s}
@keyframes csUp{from{opacity:0;transform:translateY(22px)}}
.cs-bar{width:min(100%,360px);height:3px;border-radius:3px;background:rgba(255,255,255,.16);overflow:hidden;margin-top:8px}
.cs-bar i{display:block;height:100%;background:var(--gold);transform-origin:left;transform:scaleX(0)}
.cs-ctrl{display:flex;gap:10px}
.cs-ctrl button{width:48px;height:48px;border-radius:50%;border:0;cursor:pointer;font-size:1.3rem;line-height:1;color:#fff;background:rgba(255,255,255,.1);box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.28);transition:background .2s,color .2s,transform .2s}
.cs-ctrl button:hover{background:var(--gold);color:#2a0b11;transform:scale(1.06)}
.cs-ctrl #csPP{font-size:.8rem}
.cs-stage{grid-template-columns:minmax(0,380px) minmax(0,1fr) minmax(0,310px);gap:44px}
.cs-side{position:relative;align-self:stretch;min-height:0}
.cs-side-t{height:34px;font:500 1.05rem var(--display);color:var(--gold);display:flex;align-items:center;gap:12px}
.cs-side-t::after{content:"";height:1px;flex:1;background:linear-gradient(90deg,var(--gold-d),transparent)}
.cs-thumbs{position:absolute;inset:40px 0 0 0;display:flex;flex-direction:column;gap:10px;overflow-y:auto;padding:2px 6px 2px 2px;scrollbar-width:thin;scrollbar-color:rgba(242,177,52,.5) transparent;-webkit-mask-image:linear-gradient(#000 88%,transparent);mask-image:linear-gradient(#000 88%,transparent)}
.cs-q{flex:none;display:flex;align-items:center;gap:14px;width:100%;text-align:left;cursor:pointer;color:#fff;border:0;padding:8px 14px 8px 8px;border-radius:999px;background:rgba(255,255,255,.07);box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);font:inherit;animation:csIn .5s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--n)*55ms);transition:background .25s,transform .25s,box-shadow .25s}
.cs-q:hover{background:rgba(242,177,52,.16);box-shadow:inset 0 0 0 1.5px var(--gold);transform:translateX(-4px)}
.cs-q img{flex:none;width:60px;height:60px;border-radius:50%;object-fit:cover;object-position:center top;box-shadow:0 0 0 2px rgba(242,177,52,.55)}
.cs-q-t{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.cs-q-t b{font:600 .95rem/1.2 var(--body);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cs-q-t em{display:inline-flex;align-items:center;gap:5px;font-style:normal;font-size:.8rem;color:var(--gold)}
.cs-q small{font:600 .75rem var(--body);letter-spacing:.1em;color:rgba(255,255,255,.45)}
@keyframes csIn{from{opacity:0;transform:translateX(24px)}}
@media(max-width:1100px){
  .cs-stage{grid-template-columns:minmax(0,340px) minmax(0,1fr);gap:40px}
  .cs-side{grid-column:1/-1;position:static}
  .cs-thumbs{position:static;flex-direction:row;overflow-x:auto;overflow-y:hidden;padding:4px 2px 10px;-webkit-mask-image:none;mask-image:none}
  .cs-q{width:240px}
  .cs-q:hover{transform:translateY(-3px)}
}
@media(max-width:860px){
  .cands{padding:64px 0}
  .cs-stage{grid-template-columns:1fr;gap:28px;justify-items:center;text-align:center}
  .cs-photo{width:min(78%,320px)}
  .cs-info{align-items:center}
  .cs-side{width:100%}
  .cs-q{width:210px}
}

/* mobile: let the "Up next" row shrink to the screen so it can swipe sideways */
.cs-side,.cs-info{min-width:0}
@media(max-width:860px){
  .cs-stage{grid-template-columns:minmax(0,1fr)}
  .cs-side{width:100%;max-width:100%}
  .cs-thumbs{width:100%;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding-left:var(--gut);padding-right:var(--gut);scroll-padding:0 var(--gut)}
  .cs-q{scroll-snap-align:start}
}

/* candidate photo: straight-edged, tall portrait frame */
.cs-photo{aspect-ratio:3/4.2;border-radius:12px;box-shadow:0 30px 60px rgba(0,0,0,.5),0 0 0 6px rgba(242,177,52,.28)}

/* candidate photo: circular frame */
.cs-photo{aspect-ratio:1/1;border-radius:50%;box-shadow:0 30px 60px rgba(0,0,0,.5),0 0 0 8px rgba(242,177,52,.28)}
.cs-photo img{object-position:center 20%}