/* ═══════════════════════════════════════════════════════
   feliciahaliman.com — public site styles
   ═══════════════════════════════════════════════════════ */

*{margin:0;padding:0;box-sizing:border-box;}
:root{
  --bg:#FBF8F5;
  --white:#FFFFFF;
  --black:#1A1814;
  --gold:#B8902A;
  --gold2:#D4AF6A;
  --rose:#C9916A;
  --blush:#F5EDE8;
  --pink:#E8C5B8;
  --muted:#8A857F;
  --border:rgba(180,140,100,0.12);
  --border2:rgba(180,140,100,0.22);
  --pad-x:5rem;
  --ink:#1A1814;
  --nav-bg:rgba(251,248,245,.94);
}
html{scroll-behavior:smooth;}
section[id]{scroll-margin-top:90px;}
body{font-family:'Inter',sans-serif;background:var(--bg);color:var(--black);overflow-x:hidden;font-variant-numeric:lining-nums;}
h1,h2,h3,.st-n,.top-n,.hero-stat-n,.scopus-stat-n,.about-img-badge .n{font-variant-numeric:lining-nums;}
img{max-width:100%;}

/* ── CUSTOM CURSOR (mouse only) ── */
#cur,#cur-r{display:none;}
@media (pointer:fine){
  body.has-cursor{cursor:none;}
  body.has-cursor a,body.has-cursor button{cursor:none;}
  body.has-cursor #cur{display:block;width:5px;height:5px;background:var(--gold);border-radius:50%;position:fixed;pointer-events:none;z-index:9999;transform:translate(-50%,-50%);}
  body.has-cursor #cur-r{display:block;width:28px;height:28px;border:1px solid rgba(184,144,42,.45);border-radius:50%;position:fixed;pointer-events:none;z-index:9998;transform:translate(-50%,-50%);transition:width .3s,height .3s,border-color .3s;}
  body.hov #cur-r{width:44px;height:44px;border-color:rgba(184,144,42,.7);}
}

/* ── TOP NAV ──
   Scoped to #nav so other <nav> elements (e.g. the footer menu) are not
   pinned to the top of the screen. That was the "stacked menu" bug. */
#nav{position:fixed;top:0;left:0;right:0;z-index:500;padding:1rem var(--pad-x);display:flex;justify-content:space-between;align-items:center;gap:2rem;transition:all .5s cubic-bezier(.16,1,.3,1);}
#nav.solid{background:var(--nav-bg);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);padding:.6rem var(--pad-x);border-bottom:1px solid var(--border);}
.nav-logo img{height:84px;width:auto;display:block;transition:height .4s,filter .4s;filter:brightness(0) invert(1) drop-shadow(0 1px 6px rgba(0,0,0,.35));}
#nav.solid .nav-logo img{filter:none;mix-blend-mode:multiply;}
#nav.solid .nav-logo img{height:64px;}
.nav-links{display:flex;gap:2.1rem;list-style:none;align-items:center;}
.nav-links a{text-decoration:none;color:rgba(255,255,255,.75);font-size:.7rem;font-weight:400;letter-spacing:.14em;text-transform:uppercase;position:relative;transition:color .3s;white-space:nowrap;}
#nav.solid .nav-links a{color:var(--muted);}
.nav-links > li > a::after{content:'';position:absolute;bottom:-3px;left:0;width:0;height:1px;background:var(--gold);transition:width .4s ease;}
.nav-links > li > a:hover::after{width:100%;}
.nav-links a:hover{color:var(--gold)!important;}
.nav-cta{font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;text-decoration:none;color:rgba(255,255,255,.75);border-bottom:1px solid rgba(255,255,255,.3);padding-bottom:2px;transition:all .3s;white-space:nowrap;}
#nav.solid .nav-cta{color:var(--black);border-color:var(--gold);}
.nav-cta:hover{color:var(--gold)!important;}

/* dropdown */
.nav-dropdown{position:relative;}
.dropdown-menu{display:none;position:absolute;top:calc(100% + 1rem);left:50%;transform:translateX(-50%);background:rgba(251,248,245,.98);backdrop-filter:blur(20px);border:1px solid var(--border);min-width:210px;padding:.5rem 0;list-style:none;box-shadow:0 8px 32px rgba(0,0,0,.08);}
.dropdown-menu::before{content:'';position:absolute;left:0;right:0;top:-1rem;height:1rem;} /* keeps hover alive across the gap */
.dropdown-menu li a{display:block;padding:.65rem 1.25rem;font-size:.68rem;letter-spacing:.1em;color:var(--muted)!important;border-left:2px solid transparent;transition:all .25s;}
.dropdown-menu li a:hover{color:var(--gold)!important;border-left-color:var(--gold);background:rgba(184,144,42,.04);}
.nav-dropdown:hover .dropdown-menu,.nav-dropdown:focus-within .dropdown-menu{display:block;animation:ddFade .2s ease;}
@keyframes ddFade{from{opacity:0;transform:translateX(-50%) translateY(-6px);}to{opacity:1;transform:translateX(-50%) translateY(0);}}

/* ── HERO ── */
#hero{height:100vh;height:100svh;min-height:620px;position:relative;display:flex;align-items:flex-end;overflow:hidden;}
.hero-img{position:absolute;inset:0;background-position:center;background-size:cover;transform:scale(1.06);will-change:transform;}
.hero-ov{position:absolute;inset:0;background:linear-gradient(to top,rgba(26,24,20,.9) 0%,rgba(26,24,20,.5) 40%,rgba(26,24,20,.25) 100%);}
.hero-ov2{position:absolute;inset:0;background:linear-gradient(105deg,rgba(201,145,106,.08) 0%,transparent 60%);}
.hero-inner{position:relative;z-index:2;padding:0 var(--pad-x) 5.5rem;width:100%;}
.hero-tag{display:inline-flex;align-items:center;gap:.75rem;font-size:.63rem;letter-spacing:.28em;text-transform:uppercase;color:rgba(255,255,255,.55);margin-bottom:1.75rem;opacity:0;animation:fUp .8s .2s forwards;}
.hero-tag-dot{width:5px;height:5px;border-radius:50%;background:var(--gold2);animation:pulse 2.5s infinite;}
@keyframes pulse{0%,100%{box-shadow:0 0 0 0 rgba(212,175,106,.5);}50%{box-shadow:0 0 0 8px rgba(212,175,106,0);}}
h1.hn{font-family:'Cormorant Garamond',serif;font-size:clamp(3.5rem,10vw,9rem);font-weight:300;line-height:.95;margin-bottom:2.5rem;}
.hn-word{display:inline-block;overflow:hidden;vertical-align:bottom;}
.hn-word span{display:inline-block;color:white;opacity:0;transform:translateY(105%);animation:wUp .9s cubic-bezier(.16,1,.3,1) forwards;}
.hn-word.gold span{color:var(--gold2);font-style:italic;}
.hn-word:nth-child(1) span{animation-delay:.4s;}
.hn-word:nth-child(2) span{animation-delay:.56s;}
.hero-row{display:flex;align-items:flex-end;justify-content:space-between;gap:2rem;opacity:0;animation:fUp .8s .9s forwards;}
.hero-left p{font-size:.9rem;color:rgba(255,255,255,.65);line-height:1.9;max-width:420px;margin-bottom:1.5rem;}
.hero-pills{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:2rem;}
.pill{padding:.24rem .72rem;font-size:.67rem;letter-spacing:.05em;color:rgba(255,255,255,.6);border:1px solid rgba(255,255,255,.15);transition:all .3s;}
.pill:hover{border-color:var(--gold2);color:var(--gold2);}
.hero-btns{display:flex;gap:1rem;flex-wrap:wrap;}
.btn-fill{padding:.72rem 1.9rem;background:var(--gold2);color:#fff;font-size:.7rem;font-weight:500;letter-spacing:.12em;text-transform:uppercase;text-decoration:none;transition:all .4s;position:relative;overflow:hidden;}
.btn-fill::before{content:'';position:absolute;inset:0;background:rgba(255,255,255,.15);transform:translateX(-101%);transition:transform .4s ease;}
.btn-fill:hover::before{transform:translateX(0);}
.btn-line{padding:.72rem 1.9rem;background:transparent;color:rgba(255,255,255,.75);font-size:.7rem;font-weight:500;letter-spacing:.12em;text-transform:uppercase;text-decoration:none;border:1px solid rgba(255,255,255,.25);transition:all .3s;}
.btn-line:hover{border-color:var(--gold2);color:var(--gold2);}
.hero-right{text-align:right;}
.hero-stat-n{font-family:'Cormorant Garamond',serif;font-size:4.5rem;font-weight:300;color:rgba(255,255,255,.35);line-height:1;}
.hero-stat-l{font-size:.6rem;letter-spacing:.2em;color:rgba(255,255,255,.45);text-transform:uppercase;}

/* social icon buttons (hero / contact / footer) */
.socials{display:flex;gap:.65rem;}
.hero-right .socials{justify-content:flex-end;margin-bottom:1.5rem;}
.soc{width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;transition:all .4s;padding:9px;}
.soc:hover{border-color:var(--gold2);transform:translateY(-3px);}
.soc img{width:16px;height:16px;object-fit:contain;filter:brightness(0) invert(1);opacity:.8;}
.soc:hover img{opacity:1;}

/* ── TICKER ── */
.ticker{background:var(--white);border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:.8rem 0;overflow:hidden;}
.ticker-track{display:flex;width:max-content;animation:tick 32s linear infinite;}
.ticker-item{white-space:nowrap;padding:0 2rem;font-size:.62rem;letter-spacing:.22em;text-transform:uppercase;color:var(--muted);display:flex;align-items:center;gap:2rem;}
.ticker-item::after{content:'✦';color:var(--gold2);font-size:.5rem;}
@keyframes tick{from{transform:translateX(0);}to{transform:translateX(-50%);}}

/* ── SECTION BASE ── */
.section{padding:7rem var(--pad-x);}
.s-label{font-size:.62rem;letter-spacing:.3em;text-transform:uppercase;color:var(--gold);margin-bottom:.7rem;}
.s-title{font-family:'Cormorant Garamond',serif;font-size:clamp(2rem,3.5vw,2.8rem);font-weight:400;color:var(--black);margin-bottom:.75rem;line-height:1.15;}
.s-line{width:38px;height:1px;background:var(--gold);margin-bottom:3rem;}
.empty-note{text-align:center;padding:3rem;color:var(--muted);font-size:.9rem;grid-column:1/-1;}

/* ── REVEAL ON SCROLL ── */
.rv{opacity:0;transform:translateY(32px);transition:opacity .9s cubic-bezier(.16,1,.3,1),transform .9s cubic-bezier(.16,1,.3,1);}
.rvl{opacity:0;transform:translateX(-44px);transition:opacity .9s cubic-bezier(.16,1,.3,1),transform .9s cubic-bezier(.16,1,.3,1);}
.rv.on,.rvl.on{opacity:1;transform:none;}
.d1{transition-delay:.08s!important;}.d2{transition-delay:.16s!important;}.d3{transition-delay:.24s!important;}
.d4{transition-delay:.32s!important;}.d5{transition-delay:.4s!important;}.d6{transition-delay:.48s!important;}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  .rv,.rvl,.ti{opacity:1!important;transform:none!important;transition:none!important;}
  .hero-img{transform:none!important;}
  .hero-tag,.hero-row,.hn-word span{opacity:1!important;transform:none!important;animation:none!important;}
  .ticker-track{animation:none;}
}

/* ── PROFILE ── */
#profile{background:var(--blush);padding:5rem var(--pad-x);display:grid;grid-template-columns:1fr 1fr;gap:5rem;align-items:center;}
.photo-wrap{position:relative;}
.photo-preview{width:100%;height:560px;position:relative;overflow:hidden;}
.photo-preview img{width:100%;height:100%;object-fit:cover;object-position:center top;display:block;transition:transform 1.2s ease;}
.photo-preview:hover img{transform:scale(1.04);}
.photo-deco{position:absolute;top:-14px;left:-14px;right:14px;bottom:14px;border:1px solid rgba(212,175,106,.3);pointer-events:none;z-index:-1;}
.photo-right p{font-size:.9rem;color:var(--muted);line-height:1.9;margin-bottom:1.25rem;}
.quote{font-family:'Cormorant Garamond',serif;font-size:1.4rem;font-weight:400;font-style:italic;color:var(--rose);line-height:1.6;border-left:2px solid var(--pink);padding-left:1.5rem;margin-top:2rem;}

/* ── ABOUT ── */
#about{background:var(--white);display:grid;grid-template-columns:1fr 1fr;min-height:680px;}
.about-img{position:relative;overflow:hidden;}
.about-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform 1.2s ease;}
.about-img:hover img{transform:scale(1.04);}
.about-img-badge{position:absolute;bottom:2.5rem;left:2.5rem;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);padding:1.25rem 1.75rem;border-left:2px solid var(--gold);max-width:calc(100% - 5rem);}
.about-img-badge .n{font-family:'Cormorant Garamond',serif;font-size:2.4rem;font-weight:300;color:var(--gold);line-height:1;}
.about-img-badge .l{font-size:.72rem;color:var(--muted);margin-top:.2rem;}
.about-body{padding:7rem var(--pad-x) 7rem 5rem;display:flex;flex-direction:column;justify-content:center;}
.about-body p{font-size:.9rem;color:var(--muted);line-height:1.95;margin-bottom:1.25rem;}
.stat-grid{display:flex;flex-wrap:wrap;margin-top:2.5rem;padding:1px 0 0 1px;}
.st{flex:1 1 150px;background:var(--white);padding:1.5rem;position:relative;overflow:hidden;border:1px solid var(--border);margin:-1px 0 0 -1px;}
.st::after{content:'';position:absolute;left:0;bottom:0;height:2px;width:0;background:var(--gold);transition:width .5s ease;}
.st:hover::after{width:100%;}
.st-n{font-family:'Cormorant Garamond',serif;font-size:2.2rem;font-weight:300;color:var(--gold);line-height:1;}
.st-l{font-size:.7rem;color:var(--muted);margin-top:.3rem;}

/* ── ARTICLES (news layout + Top 5) ── */
#articles{background:var(--bg);}
.articles-head{display:flex;justify-content:space-between;align-items:flex-end;flex-wrap:wrap;gap:1.5rem;margin-bottom:2.5rem;}
.articles-head .s-line{margin-bottom:0;}
.search-form{display:flex;gap:.5rem;align-items:center;}
.search-form input{padding:.55rem 1rem;border:1px solid var(--border2);font-size:.82rem;outline:none;font-family:inherit;min-width:220px;background:var(--white);color:var(--black);transition:border .2s;}
.search-form input:focus{border-color:var(--gold);}
.search-form button,.search-form a{padding:.55rem 1rem;font-size:.78rem;font-family:inherit;text-decoration:none;}
.search-form button{background:var(--gold);color:white;border:none;cursor:pointer;}
.search-form a{border:1px solid var(--border2);color:var(--muted);}
.search-note{font-size:.82rem;color:var(--muted);margin-bottom:1.5rem;}
.news-layout{display:grid;grid-template-columns:1fr 320px;gap:3rem;align-items:start;}
.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem 1.5rem;}
.news-card{display:block;text-decoration:none;color:inherit;}
.news-thumb{aspect-ratio:16/10;overflow:hidden;background:var(--blush);position:relative;}
.news-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .7s cubic-bezier(.16,1,.3,1);}
.news-card:hover .news-thumb img{transform:scale(1.06);}
.news-thumb-empty{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-family:'Cormorant Garamond',serif;font-size:2.4rem;color:var(--gold2);background:linear-gradient(135deg,var(--blush),#efe2d8);}
.news-cat{font-size:.6rem;letter-spacing:.18em;text-transform:uppercase;color:var(--gold);margin:.85rem 0 .35rem;}
.news-title{font-family:'Cormorant Garamond',serif;font-size:1.18rem;font-weight:500;line-height:1.3;color:var(--black);transition:color .3s;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.news-card:hover .news-title{color:var(--gold);}
.news-date{font-size:.7rem;color:var(--muted);margin-top:.4rem;}
.top-box{background:var(--ink);color:white;padding:1.75rem 1.5rem;position:sticky;top:7rem;}
.top-box h3{font-family:'Cormorant Garamond',serif;font-weight:400;font-size:1.5rem;color:var(--gold2);padding-bottom:.85rem;margin-bottom:.25rem;border-bottom:1px solid rgba(255,255,255,.15);}
.top-item{display:grid;grid-template-columns:44px 1fr;gap:.75rem;align-items:center;padding:1rem 0;border-bottom:1px solid rgba(255,255,255,.08);text-decoration:none;color:inherit;}
.top-item:last-child{border-bottom:none;}
.top-n{font-family:'Cormorant Garamond',serif;font-size:2.8rem;font-weight:300;line-height:1;color:rgba(212,175,106,.55);text-align:center;transition:color .3s;}
.top-t{font-size:.84rem;line-height:1.45;color:rgba(255,255,255,.85);transition:color .3s;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.top-item:hover .top-n,.top-item:hover .top-t{color:var(--gold2);}
.pager{display:flex;justify-content:center;gap:.5rem;margin-top:3rem;grid-column:1/-1;}
.pager a{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border:1px solid var(--border2);font-size:.78rem;color:var(--muted);background:var(--white);text-decoration:none;transition:all .3s;}
.pager a.on,.pager a:hover{border-color:var(--gold);color:var(--gold);background:rgba(184,144,42,.08);}

/* ── EXPERIENCE ── */
#experience{background:var(--white);}
.exp-layout{display:grid;grid-template-columns:260px 1fr;gap:7rem;}
.exp-sticky{position:sticky;top:7rem;align-self:start;}
.exp-sticky p{font-size:.88rem;color:var(--muted);line-height:1.9;}
.tl{border-left:1px solid var(--border2);padding-left:3rem;}
.ti{margin-bottom:3rem;position:relative;opacity:0;transform:translateX(20px);transition:opacity .7s ease,transform .7s ease;}
.ti.on{opacity:1;transform:none;}
.ti::before{content:'';position:absolute;left:-3.35rem;top:.45rem;width:8px;height:8px;border-radius:50%;border:1px solid var(--gold);background:var(--white);transition:background .3s,box-shadow .3s;}
.ti:hover::before{background:var(--gold);box-shadow:0 0 10px rgba(184,144,42,.3);}
.ti-date{font-size:.65rem;color:var(--gold);letter-spacing:.1em;margin-bottom:.3rem;}
.ti-role{font-family:'Cormorant Garamond',serif;font-size:1.25rem;font-weight:500;color:var(--black);}
.ti-co{font-size:.78rem;color:var(--rose);margin:.25rem 0 .65rem;}
.ti-desc{font-size:.84rem;color:var(--muted);line-height:1.85;}
.ti-desc ul{list-style:none;}
.ti-desc li{padding-left:.9rem;position:relative;margin-bottom:.25rem;}
.ti-desc li::before{content:'›';position:absolute;left:0;color:var(--gold);}

/* ── EDUCATION ── */
#education{background:var(--bg);}
.edu-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.5rem;}
.edu-card{background:var(--white);border:1px solid var(--border);border-top:2px solid var(--gold);padding:2rem;transition:box-shadow .3s,transform .3s;}
.edu-card:hover{box-shadow:0 10px 30px rgba(0,0,0,.05);transform:translateY(-3px);}
.edu-tag{font-size:.6rem;letter-spacing:.2em;text-transform:uppercase;color:var(--gold);margin-bottom:.75rem;}
.edu-deg{font-family:'Cormorant Garamond',serif;font-size:1.35rem;color:var(--black);font-weight:500;line-height:1.3;margin-bottom:.4rem;}
.edu-sch{font-size:.82rem;color:var(--rose);}
.edu-yr{font-size:.72rem;color:var(--muted);margin-top:.2rem;}
.edu-note{font-size:.8rem;color:var(--muted);line-height:1.75;margin-top:1rem;padding-top:1rem;border-top:1px solid var(--border);}

/* ── SKILLS (plain text, LinkedIn style) ── */
#skills{background:var(--blush);}
.skills-text{font-size:1.05rem;line-height:2;color:var(--black);max-width:900px;}

/* ── ACADEMIC WORK ── */
#research{background:var(--white);}
.res-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.5rem;}
.rc{position:relative;overflow:hidden;min-height:340px;display:flex;flex-direction:column;justify-content:flex-end;padding:2.5rem;border:1px solid var(--border);transition:border-color .4s;}
.rc:hover{border-color:rgba(184,144,42,.3);}
.rc-bg{position:absolute;inset:0;background-size:cover;background-position:center;transition:transform .8s cubic-bezier(.16,1,.3,1);filter:brightness(.45) saturate(.75);}
.rc:hover .rc-bg{transform:scale(1.06);filter:brightness(.55) saturate(.9);}
.rc-ov{position:absolute;inset:0;background:linear-gradient(to top,rgba(255,255,255,.97) 28%,rgba(255,255,255,.72) 60%,rgba(255,255,255,.2) 100%);}
.rc-content{position:relative;z-index:1;}
.rc-type{font-size:.58rem;letter-spacing:.2em;text-transform:uppercase;color:var(--gold);margin-bottom:.65rem;}
.rc-title{font-family:'Cormorant Garamond',serif;font-size:1.2rem;font-weight:400;color:var(--black);margin-bottom:.7rem;line-height:1.4;}
.rc-desc{font-size:.8rem;color:var(--muted);line-height:1.85;}
.rc-year{font-size:.68rem;color:var(--gold);margin-top:.8rem;}
@media (hover:hover){
  .rc-desc{max-height:0;overflow:hidden;opacity:0;transition:max-height .5s,opacity .4s;}
  .rc:hover .rc-desc{max-height:160px;opacity:1;}
}

/* ── JOURNALS + SCOPUS ── */
#journals{background:var(--blush);}
.journals-layout{display:grid;grid-template-columns:1fr 1fr;gap:4rem;}
.journal-section-title{font-family:'Cormorant Garamond',serif;font-size:1.5rem;font-weight:400;color:var(--black);margin-bottom:.5rem;}
.journal-section-sub{font-size:.8rem;color:var(--muted);margin-bottom:1.75rem;line-height:1.7;}
.journal-list{display:flex;flex-direction:column;gap:1rem;}
.journal-card{background:var(--white);padding:1.5rem;border-left:3px solid var(--gold);transition:transform .3s,box-shadow .3s;}
.journal-card:hover{transform:translateX(4px);box-shadow:0 4px 20px rgba(0,0,0,.06);}
.journal-card-type{font-size:.6rem;letter-spacing:.2em;text-transform:uppercase;color:var(--gold);margin-bottom:.4rem;}
.journal-card-title{font-family:'Cormorant Garamond',serif;font-size:1.1rem;color:var(--black);font-weight:500;margin-bottom:.35rem;line-height:1.35;text-decoration:none;display:block;}
.journal-card-title:hover{color:var(--gold);}
.journal-card-meta{font-size:.74rem;color:var(--muted);}
.journal-card-actions{display:flex;gap:.5rem;margin-top:.85rem;flex-wrap:wrap;}
.jbtn{padding:.3rem .8rem;font-size:.64rem;letter-spacing:.08em;text-transform:uppercase;border:1px solid var(--border2);color:var(--muted);background:transparent;font-family:inherit;transition:all .3s;text-decoration:none;display:inline-block;}
.jbtn:hover{border-color:var(--gold);color:var(--gold);}
.jbtn.primary{border-color:var(--gold);color:var(--gold);}
.jbtn.primary:hover{background:var(--gold);color:white;}
.jbtn.disabled{opacity:.5;pointer-events:none;}
.scopus-box{background:var(--ink);padding:2.5rem;position:relative;overflow:hidden;display:flex;flex-direction:column;}
.scopus-box::before{content:'';position:absolute;top:-60px;right:-60px;width:200px;height:200px;border-radius:50%;background:radial-gradient(circle,rgba(212,175,106,.08),transparent 70%);}
.scopus-logo{font-family:'Cormorant Garamond',serif;font-size:1.8rem;font-weight:300;color:var(--gold2);margin-bottom:.4rem;letter-spacing:.05em;}
.scopus-tag{font-size:.6rem;letter-spacing:.2em;text-transform:uppercase;color:rgba(255,255,255,.4);margin-bottom:1.5rem;}
.scopus-desc{font-size:.85rem;color:rgba(255,255,255,.6);line-height:1.85;}
.scopus-stats{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:rgba(255,255,255,.08);margin-top:1.5rem;}
.scopus-stat{background:var(--ink);padding:1rem;}
.scopus-stat-n{font-family:'Cormorant Garamond',serif;font-size:1.8rem;font-weight:300;color:var(--gold2);line-height:1;}
.scopus-stat-l{font-size:.64rem;color:rgba(255,255,255,.45);margin-top:.2rem;}
.scopus-empty{margin-top:1.5rem;padding-top:1.25rem;border-top:1px solid rgba(255,255,255,.08);font-size:.8rem;color:rgba(255,255,255,.45);font-style:italic;}
.scopus-list{list-style:none;margin-top:1.5rem;border-top:1px solid rgba(255,255,255,.08);}
.scopus-list li{padding:.85rem 0;border-bottom:1px solid rgba(255,255,255,.08);}
.scopus-list a{color:rgba(255,255,255,.85);text-decoration:none;font-family:'Cormorant Garamond',serif;font-size:1.05rem;line-height:1.35;display:block;transition:color .3s;}
.scopus-list a:hover{color:var(--gold2);}
.scopus-list small{display:block;font-size:.68rem;color:rgba(255,255,255,.4);margin-top:.2rem;font-family:'Inter',sans-serif;}
.scopus-link{display:inline-flex;align-items:center;gap:.6rem;margin-top:2rem;align-self:flex-start;padding:.75rem 1.75rem;border:1px solid rgba(212,175,106,.45);color:var(--gold2);text-decoration:none;font-size:.72rem;font-weight:500;letter-spacing:.1em;text-transform:uppercase;transition:all .4s;}
.scopus-link:hover{background:rgba(212,175,106,.1);}
.scopus-link svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:1.5;}

/* ── GALLERY ── */
#gallery{background:var(--white);}
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-auto-rows:240px;grid-auto-flow:dense;gap:1rem;}
.gallery-item{position:relative;overflow:hidden;display:block;border:0;padding:0;background:var(--blush);cursor:pointer;text-align:left;font:inherit;}
.gallery-item.wide{grid-column:span 2;}
.gallery-item.tall{grid-row:span 2;}
.gallery-item img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .7s cubic-bezier(.16,1,.3,1);}
.gallery-item:hover img{transform:scale(1.07);}
.gallery-item-info{position:absolute;inset:auto 0 0 0;padding:2.5rem 1.25rem 1.1rem;background:linear-gradient(to top,rgba(15,13,10,.8),transparent);opacity:0;transform:translateY(8px);transition:all .4s;}
.gallery-item:hover .gallery-item-info,.gallery-item:focus-visible .gallery-item-info{opacity:1;transform:none;}
.gallery-item-title{font-family:'Cormorant Garamond',serif;font-size:1.05rem;color:white;font-weight:400;line-height:1.3;}
.gallery-item-tag{font-size:.6rem;letter-spacing:.15em;text-transform:uppercase;color:var(--gold2);margin-top:.25rem;}
.lightbox{position:fixed;inset:0;background:rgba(10,8,6,.95);z-index:1000;display:none;flex-direction:column;align-items:center;justify-content:center;gap:1rem;padding:1rem;}
.lightbox.open{display:flex;}
.lightbox img{max-width:92vw;max-height:80vh;object-fit:contain;}
.lightbox p{color:rgba(255,255,255,.75);font-size:.85rem;text-align:center;max-width:700px;}
.lightbox-close{position:absolute;top:1.5rem;right:1.5rem;width:42px;height:42px;border:1px solid rgba(255,255,255,.25);border-radius:50%;background:none;color:white;font-size:1.1rem;cursor:pointer;transition:all .3s;}
.lightbox-close:hover{border-color:var(--gold2);color:var(--gold2);}

/* ── CONTACT ── */
#contact{position:relative;overflow:hidden;background:var(--ink);}
.contact-bg{position:absolute;inset:0;background-position:center;background-size:cover;opacity:.12;}
.contact-body{position:relative;z-index:1;padding:7rem var(--pad-x);display:grid;grid-template-columns:1fr 1fr;gap:5rem;align-items:start;max-width:1300px;margin:0 auto;}
.contact-left .s-label{color:var(--gold2);}
.contact-left .s-title{color:white;}
.contact-left .s-line{background:var(--gold2);}
.contact-left p{color:rgba(255,255,255,.65);font-size:.9rem;line-height:1.95;margin-bottom:2rem;}
.contact-email{display:inline-block;font-family:'Cormorant Garamond',serif;font-size:1.5rem;color:white;text-decoration:none;padding-bottom:.35rem;border-bottom:1px solid rgba(212,175,106,.4);margin-bottom:1.5rem;transition:color .3s,border-color .3s;word-break:break-all;}
.contact-email:hover{color:var(--gold2);border-color:var(--gold2);}
.contact-meta{font-size:.82rem;color:rgba(255,255,255,.55);line-height:1.9;margin-bottom:2rem;}
.contact-meta a{color:inherit;text-decoration:none;}
.contact-form label{display:block;font-size:.66rem;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.55);margin-bottom:.35rem;}
.contact-form .row2{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;}
.contact-form .fgc{margin-bottom:.9rem;}
.cfc{width:100%;padding:.68rem .85rem;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.15);color:white;font-size:.86rem;outline:none;font-family:inherit;transition:border .3s;}
.cfc:focus{border-color:var(--gold2);}
textarea.cfc{resize:vertical;}
.cf-submit{padding:.8rem 2rem;background:var(--gold2);color:white;border:none;font-size:.76rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;cursor:pointer;font-family:inherit;transition:background .3s;}
.cf-submit:hover{background:var(--gold);}
.cf-alert{padding:1rem 1.25rem;font-size:.85rem;margin-bottom:1.25rem;border-radius:4px;}
.cf-alert.ok{background:rgba(16,185,129,.12);border:1px solid rgba(16,185,129,.3);color:#6EE7B7;}
.cf-alert.err{background:rgba(192,57,43,.12);border:1px solid rgba(192,57,43,.3);color:#FCA5A5;}

/* ── FOOTER ── */
footer{background:#0f0d0a;position:relative;overflow:hidden;padding:2.5rem var(--pad-x) 1.5rem;}
.footer-art{position:absolute;inset:0;pointer-events:none;}
.footer-art::before{content:'';position:absolute;top:0;left:-100%;right:-100%;height:2px;background:linear-gradient(90deg,transparent 0%,var(--rose) 20%,var(--gold2) 40%,var(--gold) 60%,var(--gold2) 80%,transparent 100%);animation:flineSweep 3.5s linear infinite;}
@keyframes flineSweep{0%{transform:translateX(-50%);}100%{transform:translateX(50%);}}
.fblob{position:absolute;border-radius:50%;animation:fBlobPulse 9s ease-in-out infinite;}
.fblob.b1{top:-120px;right:-80px;width:380px;height:380px;background:radial-gradient(circle,rgba(212,175,106,.07) 0%,transparent 70%);}
.fblob.b2{bottom:-100px;left:-60px;width:320px;height:320px;background:radial-gradient(circle,rgba(201,145,106,.06) 0%,transparent 70%);animation-direction:reverse;}
.fring{position:absolute;border-radius:50%;border:1px solid rgba(212,175,106,.07);}
.fring.r1{top:-60px;right:-60px;width:260px;height:260px;}
.fring.r2{top:-20px;right:-20px;width:160px;height:160px;}
@keyframes fBlobPulse{0%,100%{transform:scale(1);}50%{transform:scale(1.12);}}
.footer-main{position:relative;z-index:1;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:2rem;margin-bottom:1.25rem;}
.footer-left{display:flex;flex-direction:column;gap:.8rem;}
.footer-tagline{font-family:'Cormorant Garamond',serif;font-size:1rem;font-weight:300;font-style:italic;color:rgba(255,255,255,.6);line-height:1.5;max-width:260px;}
.footer-left .soc{width:34px;height:34px;padding:8px;}
.footer-left .soc img{width:14px;height:14px;opacity:.55;}
.footer-logo img{height:60px;width:auto;filter:brightness(0) invert(1);opacity:.6;display:block;}
.footer-menu{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.4rem 1.25rem;max-width:360px;margin-left:auto;}
.footer-menu a{font-size:.64rem;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.45);text-decoration:none;transition:color .3s;}
.footer-menu a:hover{color:var(--gold2);}
.footer-bottom{position:relative;z-index:1;padding-top:1.5rem;border-top:1px solid rgba(255,255,255,.06);display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem;}
.footer-copy{font-size:.62rem;color:rgba(255,255,255,.35);line-height:1.8;max-width:600px;}
.footer-r{font-size:.62rem;color:rgba(255,255,255,.25);letter-spacing:.1em;}

/* ── KEYFRAMES ── */
@keyframes fUp{from{opacity:0;transform:translateY(22px);}to{opacity:1;transform:none;}}
@keyframes wUp{from{opacity:0;transform:translateY(105%);}to{opacity:1;transform:none;}}

/* ── RESPONSIVE ── */
@media (max-width:1280px){
  :root{--pad-x:3rem;}
  .nav-links{gap:1.4rem;}
  .news-layout{grid-template-columns:1fr 280px;gap:2rem;}
  .news-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:1080px){
  /* Mobile/tablet: top bar = logo + contact button; sections live in the bottom tab bar */
  .nav-links{display:none;}
  #nav{padding:.6rem var(--pad-x);padding-top:calc(.6rem + env(safe-area-inset-top));}
  #nav.solid{padding:.45rem var(--pad-x);padding-top:calc(.45rem + env(safe-area-inset-top));}
  .nav-cta{padding:.5rem .95rem;border:1px solid rgba(255,255,255,.4);border-radius:999px;font-size:.62rem;}
  #nav.solid .nav-cta{border-color:var(--gold);background:var(--gold);color:white;}
  #nav.solid .nav-cta:hover{color:white!important;}
  .lightbox{padding-bottom:calc(1rem + 68px);}
}
@media (max-width:960px){
  :root{--pad-x:1.5rem;}
  .nav-logo img{height:60px;}
  #nav.solid .nav-logo img{height:52px;}
  .section{padding:5rem var(--pad-x);}
  .hero-inner{padding-bottom:4rem;}
  .hero-row{flex-direction:column;gap:2rem;align-items:flex-start;}
  .hero-right{text-align:left;}
  .hero-right .socials{justify-content:flex-start;}
  #profile{grid-template-columns:1fr;padding:4rem var(--pad-x);gap:3rem;}
  .photo-preview{height:440px;}
  #about{grid-template-columns:1fr;}
  .about-img{min-height:380px;}
  .about-body{padding:4rem var(--pad-x);}
  .news-layout{grid-template-columns:1fr;}
  .top-box{position:static;}
  .exp-layout{grid-template-columns:1fr;gap:2.5rem;}
  .exp-sticky{position:static;}
  .tl{padding-left:2rem;}
  .ti::before{left:-2.35rem;}
  .res-grid,.journals-layout{grid-template-columns:1fr;}
  .gallery-grid{grid-template-columns:repeat(2,1fr);grid-auto-rows:180px;}
  .contact-body{grid-template-columns:1fr;padding:5rem var(--pad-x);gap:3rem;}
  footer{padding:3rem var(--pad-x) 2rem;}
  .footer-main{grid-template-columns:1fr;text-align:center;gap:1.5rem;}
  .footer-left{align-items:center;}
  .footer-logo img{margin:0 auto;}
  .footer-menu{justify-content:center;margin:0 auto;}
  .footer-bottom{flex-direction:column;text-align:center;}
}
@media (max-width:600px){
  h1.hn{margin-bottom:1.5rem;}
  .hero-inner{padding-bottom:3rem;}
  .hero-left p{font-size:.86rem;}
  .hero-btns a{flex:1;text-align:center;padding:.85rem 1rem;}
  .hero-stat-n{font-size:3.2rem;}
  .photo-preview{height:380px;}
  .about-img{min-height:300px;}
  .section{padding:4rem var(--pad-x);}
  .s-line{margin-bottom:2rem;}
  section[id]{scroll-margin-top:64px;}
  /* News-app list: first story big, the rest as compact rows */
  .news-grid{gap:0;}
  .news-card{padding-bottom:1.25rem;margin-bottom:1.25rem;border-bottom:1px solid var(--border);}
  .news-card:first-child .news-title{font-size:1.4rem;}
  .news-card:not(:first-child){display:grid;grid-template-columns:112px 1fr;grid-template-rows:auto auto 1fr;column-gap:1rem;}
  .news-card:not(:first-child) .news-thumb{grid-row:1 / span 3;aspect-ratio:1;border-radius:10px;}
  .news-card:not(:first-child) .news-cat{margin-top:0;}
  .news-card:not(:first-child) .news-title{font-size:1.05rem;-webkit-line-clamp:3;}
  .news-card:first-child .news-thumb{border-radius:14px;}
  .news-thumb-empty{font-size:1.8rem;}
  .top-box{border-radius:16px;margin-top:.5rem;}
  .tl{padding-left:1.5rem;}
  .ti::before{left:-1.85rem;}
  .ti{margin-bottom:2.25rem;}
  .rc{min-height:280px;padding:1.75rem;}
  .scopus-box{padding:1.75rem;}
  .journal-card{padding:1.25rem;}
  .gallery-grid{gap:.6rem;grid-auto-rows:150px;}
  .gallery-item-info{opacity:1;transform:none;padding:2rem .75rem .65rem;}
  .gallery-item-title{font-size:.9rem;}
  .gallery-item-tag{display:none;}
  .contact-body{padding:4rem var(--pad-x);}
  .cfc{font-size:16px;} /* stops iOS zooming into inputs */
  .search-form input{font-size:16px;}
  .skills-text{font-size:.95rem;}
  .news-grid{grid-template-columns:1fr;}
  .search-form{width:100%;}
  .search-form input{min-width:0;flex:1;}
  .gallery-item.wide{grid-column:span 1;}
  .contact-form .row2{grid-template-columns:1fr;}
  .about-img-badge{left:1.25rem;bottom:1.25rem;max-width:calc(100% - 2.5rem);}
}

/* ── THEME TOGGLE ── */
.theme-toggle{width:34px;height:34px;border-radius:50%;border:1px solid rgba(255,255,255,.3);background:none;cursor:pointer;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.8);transition:all .3s;flex-shrink:0;}
#nav.solid .theme-toggle{border-color:var(--border2);color:var(--muted);}
.theme-toggle:hover{border-color:var(--gold)!important;color:var(--gold)!important;}
.theme-toggle svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;}
.theme-toggle .i-sun,[data-theme=dark] .theme-toggle .i-moon{display:none;}
[data-theme=dark] .theme-toggle .i-sun{display:block;}
.nav-right{display:flex;align-items:center;gap:1rem;}

/* ── DARK MODE ── */
[data-theme=dark]{
  --bg:#13110E;--white:#1A1815;--black:#EEE8DE;--blush:#1E1A15;--pink:#5A4636;
  --muted:#A39B8F;--border:rgba(212,175,106,.12);--border2:rgba(212,175,106,.2);
  --gold:#D4AF6A;--gold2:#E0C184;--rose:#D9A27D;
  --ink:#0C0B09;--nav-bg:rgba(19,17,14,.92);
  color-scheme:dark;
}
[data-theme=dark] #nav.solid .nav-logo img{mix-blend-mode:normal;filter:brightness(0) invert(1);opacity:.85;}
[data-theme=dark] #nav.solid .nav-cta{color:var(--black);}
[data-theme=dark] .dropdown-menu{background:rgba(26,24,21,.98);}
[data-theme=dark] .sk-ov,[data-theme=dark] .rc-ov{background:linear-gradient(to top,rgba(26,24,21,.97) 28%,rgba(26,24,21,.75) 60%,rgba(26,24,21,.25) 100%);}
[data-theme=dark] .news-thumb-empty{background:linear-gradient(135deg,#1E1A15,#2A231A);}
[data-theme=dark] .about-img-badge{background:rgba(26,24,21,.92);}
[data-theme=dark] .photo-preview img,[data-theme=dark] .about-img img{filter:brightness(.92);}
[data-theme=dark] .scopus-box,[data-theme=dark] .top-box{border:1px solid rgba(212,175,106,.14);}
[data-theme=dark] footer{background:#0A0908;}
@media (max-width:1080px){[data-theme=dark] #nav.menu-open{background:var(--bg);}}
