/* =========================================================
   EXPERIENCE SELECTOR (/)
   Two equal doors: the classic portfolio and AREF WORLD.
   Uses the tokens and fonts from styles.css. No script is needed
   for layout or motion; both choices are ordinary links.
   ========================================================= */
.sel{ min-height:100vh; min-height:100svh; display:grid; grid-template-rows:auto 1fr auto; background:var(--ink); overflow-x:hidden; }

/* top bar */
.sel__top{ display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:16px; padding:18px var(--pad); position:relative; z-index:5; }
.sel__brand{ margin:0; font-family:var(--display); font-weight:400; text-transform:uppercase; letter-spacing:.14em; font-size:clamp(13px,1.3vw,17px); color:var(--cream); line-height:1.2; }
.sel__tag{ margin:0; font-size:11px; letter-spacing:.34em; text-transform:uppercase; color:var(--emerald-lit); text-align:center; white-space:nowrap; }
.sel__top .lang{ justify-self:end; }

/* stage */
.sel__stage{ display:flex; min-height:0; position:relative; }
.sel__door{ position:relative; flex:1 1 0; min-width:0; display:flex; align-items:flex-end; overflow:hidden; color:var(--cream); isolation:isolate;
  transition:flex-grow .9s var(--ease); outline-offset:-6px; }
.sel__door + .sel__door{ border-left:1px solid rgba(239,233,221,.14); }
.sel__img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; transform:scale(1.04); transition:transform 1.4s var(--ease), filter .9s var(--ease); filter:saturate(.92) brightness(.82); }
.sel__door--classic .sel__img{ object-position:36% 30%; }
.sel__door--world .sel__img{ object-position:46% 58%; }
.sel__door::before{ content:""; position:absolute; inset:0; z-index:-1; transition:opacity .9s var(--ease);
  background:linear-gradient(180deg, rgba(5,5,5,.38) 0%, rgba(5,5,5,0) 30%, rgba(5,5,5,.2) 55%, rgba(5,5,5,.9) 100%); }
.sel__door--world::before{ background:linear-gradient(180deg, rgba(5,5,5,.3) 0%, rgba(5,5,5,.05) 32%, rgba(5,5,5,.4) 60%, rgba(5,5,5,.93) 100%); }

.sel__body{ width:100%; padding:clamp(24px,4.5vw,64px); display:grid; gap:clamp(8px,1.2vh,14px); }
.sel__idx{ font-family:var(--display); font-size:clamp(14px,1.4vw,18px); letter-spacing:.12em; color:var(--emerald-lit); }
.sel__name{ margin:0; font-family:var(--display); font-weight:400; text-transform:uppercase; line-height:.86; letter-spacing:-.01em; font-size:clamp(44px,7.4vw,128px); text-wrap:balance; }
.sel__sub{ margin:0; max-width:34ch; font-size:clamp(15px,1.35vw,19px); line-height:1.45; color:var(--cream-dim); }
.sel__cta{ margin-top:clamp(10px,1.8vh,20px); display:inline-flex; align-items:center; gap:12px; width:max-content; padding:13px 22px; border:1px solid rgba(239,233,221,.4); border-radius:2px;
  font-size:12px; letter-spacing:.2em; text-transform:uppercase; font-weight:600; transition:background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease); }
.sel__cta i{ font-style:normal; transition:transform .4s var(--ease); }

/* emphasis on the chosen side */
@media (hover:hover){
  .sel__stage:hover .sel__door:not(:hover) .sel__img{ filter:saturate(.6) brightness(.55); }
  .sel__door:hover{ flex-grow:1.22; }
}
.sel__door:hover .sel__img,.sel__door:focus-visible .sel__img{ transform:scale(1.09); filter:saturate(1) brightness(.95); }
.sel__door:hover .sel__cta,.sel__door:focus-visible .sel__cta{ background:var(--emerald-lit); border-color:var(--emerald-lit); color:var(--ink); }
.sel__door:hover .sel__cta i,.sel__door:focus-visible .sel__cta i{ transform:translateX(5px); }
.sel__door:focus-visible{ outline:2px solid var(--emerald-lit); }

/* entrance + slow drift */
@keyframes selRise{ from{ opacity:0; transform:translateY(26px); } to{ opacity:1; transform:none; } }
@keyframes selFade{ from{ opacity:0; } to{ opacity:1; } }
@keyframes selDrift{ from{ object-position:var(--from); } to{ object-position:var(--to); } }
.sel__top{ animation:selFade 1s var(--ease) both; }
.sel__door{ animation:selFade 1.2s var(--ease) both; }
.sel__door--world{ animation-delay:.14s; }
.sel__body > *{ animation:selRise .95s var(--ease) both; }
.sel__door--classic .sel__body > *:nth-child(1){ animation-delay:.25s; } .sel__door--classic .sel__body > *:nth-child(2){ animation-delay:.33s; }
.sel__door--classic .sel__body > *:nth-child(3){ animation-delay:.41s; } .sel__door--classic .sel__body > *:nth-child(4){ animation-delay:.49s; }
.sel__door--world .sel__body > *:nth-child(1){ animation-delay:.4s; } .sel__door--world .sel__body > *:nth-child(2){ animation-delay:.48s; }
.sel__door--world .sel__body > *:nth-child(3){ animation-delay:.56s; } .sel__door--world .sel__body > *:nth-child(4){ animation-delay:.64s; }
.sel__door--classic .sel__img{ --from:36% 26%; --to:39% 35%; animation:selDrift 26s ease-in-out infinite alternate; }
.sel__door--world .sel__img{ --from:40% 54%; --to:54% 62%; animation:selDrift 32s ease-in-out infinite alternate; }

/* footer */
.sel__foot{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px 20px; padding:14px var(--pad); font-size:12px; color:var(--muted); border-top:1px solid rgba(239,233,221,.08); }
.sel__foot nav{ display:flex; gap:20px; flex-wrap:wrap; }
.sel__foot a{ color:var(--cream-dim); transition:color .3s var(--ease); }
.sel__foot a:hover,.sel__foot a:focus-visible{ color:var(--cream); }

/* phones and narrow windows: stacked doors */
@media (max-width:760px){
  .sel__top{ grid-template-columns:1fr auto; row-gap:6px; padding:14px var(--pad); }
  .sel__tag{ grid-column:1 / -1; grid-row:2; text-align:left; letter-spacing:.26em; }
  .sel__stage{ flex-direction:column; }
  .sel__door{ min-height:38svh; }
  .sel__door + .sel__door{ border-left:0; border-top:1px solid rgba(239,233,221,.14); }
  .sel__door:hover{ flex-grow:1; }
  .sel__body{ padding:22px var(--pad) 24px; gap:8px; }
  .sel__name{ font-size:clamp(40px,13vw,72px); }
  .sel__cta{ padding:11px 18px; margin-top:8px; }
  .sel__door--classic .sel__img{ object-position:50% 24%; --from:50% 20%; --to:50% 28%; }
  .sel__foot{ justify-content:center; text-align:center; }
}
@media (max-height:560px) and (min-width:761px){
  .sel__name{ font-size:clamp(36px,9vh,72px); }
  .sel__sub{ display:none; }
}

/* visitors who ask for less motion get a still page */
@media (prefers-reduced-motion:reduce){
  .sel__top,.sel__door,.sel__body > *,.sel__img{ animation:none !important; }
  .sel__door,.sel__img,.sel__cta,.sel__cta i,.sel__door::before{ transition:none !important; }
  .sel__door:hover{ flex-grow:1; }
  .sel__door:hover .sel__img,.sel__door:focus-visible .sel__img{ transform:scale(1.04); }
}

/* small "change experience" link used in the classic footers */
.footer__legal a.footer__switch{ color:var(--emerald-lit); }
.footer__legal a.footer__switch:hover,.footer__legal a.footer__switch:focus-visible{ color:var(--cream); }
