/* ============================================================================
   GSCOE WEBSITE - assets/css/main.css
   Mobile-first, responsive, animated.  Theme colours come from theme.css.php
   (CSS variables) so the admin can restyle the entire site instantly.
   ============================================================================ */

/* ---------- reset & base ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:'Manrope','Segoe UI',system-ui,-apple-system,sans-serif;
  font-size:16px;line-height:1.65;color:var(--text);
  min-height:100vh;overflow-x:hidden;
  transition:background .4s ease,color .4s ease;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none;transition:color .2s}
ul,ol{list-style-position:inside}
button{font:inherit;cursor:pointer;border:none;background:none;color:inherit}
input,select,textarea{font:inherit;color:inherit}
::selection{background:var(--primary);color:#fff}
:focus-visible{outline:2px solid var(--primary);outline-offset:2px}

.container{width:min(1160px,100% - 2.5rem);margin-inline:auto}
.section{padding:4rem 0}
.section-soft{background:var(--bg-soft)}

/* ---------- typography ---------- */
h1,h2,h3,h4,h5,h6{font-family:'Sora','Manrope',system-ui,sans-serif;line-height:1.22;font-weight:700;letter-spacing:-.01em}
.h-display{font-size:clamp(1.9rem,5.2vw,3.4rem)}
.h-sec{font-size:clamp(1.5rem,3.6vw,2.2rem);margin-bottom:.6rem}
.lead{font-size:clamp(1.02rem,2.4vw,1.18rem);color:var(--text-muted);max-width:62ch}
.muted{color:var(--text-muted)}
.section-head{margin-bottom:2.2rem;max-width:720px}
.section-eyebrow{
  display:inline-flex;align-items:center;gap:.5rem;
  font-size:.78rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;
  color:var(--primary);margin-bottom:.7rem;
}
.section-eyebrow::before{content:"";width:26px;height:2px;background:var(--accent);border-radius:2px}
.section-head.center{margin-inline:auto;text-align:center}
.section-head.center .section-eyebrow{justify-content:center}
.section-head.center .section-eyebrow::before{display:none}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.55rem;
  padding:.78rem 1.5rem;border-radius:999px;font-weight:700;font-size:.95rem;
  transition:transform .25s cubic-bezier(.34,1.56,.64,1),box-shadow .25s,background .25s,color .25s;
  will-change:transform;
}
.btn .ic{width:18px;height:18px}
.btn-primary{background:var(--primary);color:#fff;box-shadow:0 8px 22px rgba(2,105,144,.28)}
.btn-primary:hover{background:var(--primary-strong);transform:translateY(-2px);box-shadow:0 12px 28px rgba(2,105,144,.36)}
.btn-ghost{border:1.6px solid var(--border);background:var(--card)}
.btn-ghost:hover{border-color:var(--primary);color:var(--primary);transform:translateY(-2px)}
.btn-sm{padding:.5rem 1rem;font-size:.86rem}

/* ---------- header / nav ---------- */
.site-header{
  position:sticky;top:0;z-index:100;
  transition:box-shadow .3s,background .3s;
}
.site-header.scrolled{box-shadow:var(--shadow)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem 0;min-height:66px}
.brand{display:flex;align-items:center;gap:.7rem;min-width:0}
.brand img{width:44px;height:44px;object-fit:contain;flex:none}
.brand-txt{min-width:0}
.brand-title{
  font-family:'Sora',sans-serif;font-weight:700;font-size:.98rem;line-height:1.15;
  color:var(--heading);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:46vw;
}
.brand-sub{font-size:.68rem;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:52vw}

.nav-desktop{display:none}
.nav-list{display:flex;align-items:center;gap:.2rem}
.nav-item{position:relative}
.nav-link{
  display:inline-flex;align-items:center;gap:.3rem;padding:.6rem .85rem;border-radius:10px;
  font-weight:600;font-size:.93rem;color:var(--text);position:relative;
}
.nav-link .ic{width:14px;height:14px;transition:transform .25s}
.nav-item:hover .nav-link,.nav-link.active{color:var(--primary);background:var(--primary-soft)}
.nav-item:hover .nav-link .ic{transform:rotate(180deg)}
.nav-link::after{
  content:"";position:absolute;left:.85rem;right:.85rem;bottom:.35rem;height:2px;border-radius:2px;
  background:var(--primary);transform:scaleX(0);transform-origin:left;transition:transform .3s;
}
.nav-link:hover::after,.nav-link.active::after{transform:scaleX(1)}
.dropdown-menu{
  position:absolute;top:calc(100% + 8px);left:0;min-width:230px;
  background:var(--card);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow);
  padding:.5rem;opacity:0;visibility:hidden;transform:translateY(8px);
  transition:opacity .22s,transform .22s,visibility .22s;z-index:120;
}
.nav-item:hover .dropdown-menu,.nav-item:focus-within .dropdown-menu{opacity:1;visibility:visible;transform:translateY(0)}
.dropdown-menu a{
  display:flex;align-items:center;gap:.6rem;padding:.6rem .8rem;border-radius:10px;
  font-size:.9rem;font-weight:600;color:var(--text);
}
.dropdown-menu a:hover{background:var(--primary-soft);color:var(--primary)}
.dropdown-menu a .ic{width:15px;height:15px;color:var(--primary);opacity:.75}

/* hamburger + drawer */
.nav-toggle{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;border:1.5px solid var(--border);color:var(--heading)}
.nav-toggle .ic{width:22px;height:22px}
.drawer-backdrop{position:fixed;inset:0;background:rgba(5,20,38,.5);backdrop-filter:blur(3px);z-index:200;opacity:0;visibility:hidden;transition:.3s}
.drawer-backdrop.open{opacity:1;visibility:visible}
.mobile-drawer{
  position:fixed;top:0;right:0;bottom:0;width:min(330px,88vw);z-index:210;
  background:var(--bg-soft);border-left:1px solid var(--border);
  transform:translateX(105%);transition:transform .38s cubic-bezier(.22,1,.36,1);
  display:flex;flex-direction:column;overflow-y:auto;padding:1.1rem 1.2rem 2rem;
}
.mobile-drawer.open{transform:translateX(0)}
.drawer-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}
.drawer-head span{font-weight:700;font-family:'Sora',sans-serif;color:var(--heading)}
.drawer-close{width:42px;height:42px;border-radius:12px;border:1.5px solid var(--border);display:inline-flex;align-items:center;justify-content:center}
.mnav-link{
  display:flex;align-items:center;justify-content:space-between;gap:.5rem;
  padding:.85rem .4rem;font-weight:700;color:var(--heading);border-bottom:1px solid var(--border);
  font-size:1rem;
}
.mnav-link .ic{width:16px;height:16px;transition:transform .25s;color:var(--text-muted)}
.mnav-link[aria-expanded="true"] .ic{transform:rotate(180deg)}
.mnav-sub{max-height:0;overflow:hidden;transition:max-height .35s ease}
.mnav-sub.open{max-height:420px}
.mnav-sub a{display:block;padding:.6rem .9rem;font-size:.93rem;color:var(--text-muted);border-radius:10px;font-weight:600}
.mnav-sub a:hover,.mnav-sub a.active{color:var(--primary);background:var(--primary-soft)}

/* ---------- hero slider ---------- */
.hero{position:relative;overflow:hidden;margin-top:-1px}
.hero-slide{
  position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity 1s ease,visibility 1s;
}
.hero-slide.active{opacity:1;visibility:visible;position:relative}
.hero-slide img{width:100%;height:clamp(420px,72vh,660px);object-fit:cover}
.hero-slide.active img{animation:kenburns 7s ease-out forwards}
@keyframes kenburns{from{transform:scale(1.08)}to{transform:scale(1)}}
.hero-overlay{
  position:absolute;inset:0;background:var(--hero-grad);
  display:flex;align-items:flex-end;
}
.hero-content{position:relative;width:100%;padding:0 0 3.2rem}
.hero-kicker{
  display:inline-flex;align-items:center;gap:.5rem;background:rgba(255,255,255,.16);
  backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.35);
  color:#fff;font-size:.75rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;
  padding:.4rem .9rem;border-radius:999px;margin-bottom:1rem;
}
.hero-title{
  color:#fff;font-size:clamp(1.7rem,5vw,3.2rem);max-width:21ch;
  text-shadow:0 2px 24px rgba(0,0,0,.35);
}
.hero-sub{color:#e4f1fb;max-width:56ch;margin:.8rem 0 1.5rem;font-size:clamp(.95rem,2.4vw,1.08rem)}
.hero-content .btn-row{display:flex;flex-wrap:wrap;gap:.8rem}
.hero .btn-ghost{color:#fff;border-color:rgba(255,255,255,.55)}
.hero-dots{position:absolute;bottom:1.1rem;right:1.4rem;display:flex;gap:.5rem;z-index:5}
.hero-dot{width:9px;height:9px;border-radius:999px;background:rgba(255,255,255,.45);transition:.3s;padding:0}
.hero-dot.active{width:26px;background:#fff}
.hero-arrow{
  position:absolute;top:50%;transform:translateY(-50%);z-index:5;
  width:44px;height:44px;border-radius:50%;display:none;align-items:center;justify-content:center;
  background:rgba(255,255,255,.18);backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.4);color:#fff;
  transition:.25s;
}
.hero-arrow:hover{background:rgba(255,255,255,.32)}
.hero-arrow .ic{width:20px;height:20px}
.hero-arrow.prev{left:1rem}
.hero-arrow.next{right:1rem}

/* ---------- stats strip ---------- */
.stats-band{padding:2rem 0}
.stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}
.stat-card{
  background:var(--card);border:1px solid var(--border);border-radius:18px;padding:1.4rem 1.2rem;
  text-align:center;transition:transform .3s,box-shadow .3s;position:relative;overflow:hidden;
}
.stat-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.stat-card::after{
  content:"";position:absolute;inset:auto -30% -60% auto;width:140px;height:140px;border-radius:50%;
  background:var(--primary-soft);opacity:.6;
}
.stat-num{font-family:'Sora',sans-serif;font-size:clamp(1.7rem,4.5vw,2.5rem);font-weight:800;color:var(--primary)}
.stat-label{font-size:.85rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em}

/* ---------- founder strip ---------- */
.founders{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}
.founder-cell{
  background:var(--card);border:1px solid var(--border);border-radius:18px;padding:1.3rem 1rem;
  text-align:center;transition:transform .3s;
}
.founder-cell:hover{transform:translateY(-3px)}
.founder-cell h6{font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--text-muted);margin-bottom:.8rem}
.founder-cell img{height:52px;object-fit:contain;margin:0 auto;filter:drop-shadow(0 2px 6px rgba(0,0,0,.08))}

/* ---------- cards: vision/mission/feature ---------- */
.grid-2{display:grid;gap:1.3rem}
.grid-3{display:grid;gap:1.3rem}
.feature-card{
  background:var(--card);border:1px solid var(--border);border-radius:20px;padding:1.6rem;
  transition:transform .3s,box-shadow .3s,border-color .3s;position:relative;overflow:hidden;
}
.feature-card:hover{transform:translateY(-5px);box-shadow:var(--shadow);border-color:var(--primary)}
.feature-ico{
  width:52px;height:52px;border-radius:16px;display:flex;align-items:center;justify-content:center;
  background:var(--primary-soft);color:var(--primary);margin-bottom:1rem;
  transition:transform .3s;
}
.feature-card:hover .feature-ico{transform:scale(1.1) rotate(-6deg)}
.feature-ico .ic{width:26px;height:26px}
.feature-card h3{font-size:1.12rem;margin-bottom:.5rem}
.feature-card p{font-size:.94rem;color:var(--text-muted)}

/* ---------- news / article cards ---------- */
.card-grid{display:grid;gap:1.3rem}
.news-card,.article-card{
  background:var(--card);border:1px solid var(--border);border-radius:20px;overflow:hidden;
  display:flex;flex-direction:column;transition:transform .32s,box-shadow .32s;
}
.news-card:hover,.article-card:hover{transform:translateY(-6px);box-shadow:var(--shadow)}
.card-cover{position:relative;overflow:hidden;aspect-ratio:16/9;background:var(--card-2)}
.card-cover img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease}
.news-card:hover .card-cover img,.article-card:hover .card-cover img{transform:scale(1.07)}
.card-cover-placeholder{
  width:100%;height:100%;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,var(--primary),var(--accent));color:#fff;
  font-family:'Sora',sans-serif;font-size:2rem;font-weight:800;letter-spacing:.04em;
}
.card-body{padding:1.15rem 1.25rem 1.35rem;display:flex;flex-direction:column;gap:.55rem;flex:1}
.card-meta{display:flex;align-items:center;gap:.6rem;font-size:.78rem;color:var(--text-muted);flex-wrap:wrap}
.card-meta .chip{
  background:var(--chip);color:var(--primary);font-weight:800;font-size:.7rem;
  text-transform:uppercase;letter-spacing:.08em;padding:.22rem .65rem;border-radius:999px;
}
.card-title{font-size:1.06rem;line-height:1.35}
.card-title a:hover{color:var(--primary)}
.card-excerpt{font-size:.9rem;color:var(--text-muted)}
.card-actions{margin-top:auto;padding-top:.4rem;display:flex;gap:.6rem;align-items:center;flex-wrap:wrap}
.link-more{display:inline-flex;align-items:center;gap:.4rem;font-weight:700;font-size:.88rem;color:var(--primary)}
.link-more .ic{width:15px;height:15px;transition:transform .25s}
.link-more:hover .ic{transform:translateX(4px)}

/* ---------- member cards (team / council) ---------- */
.member-card{
  background:var(--card);border:1px solid var(--border);border-radius:20px;padding:1.5rem 1.2rem;
  text-align:center;transition:transform .3s,box-shadow .3s;
}
.member-card:hover{transform:translateY(-5px);box-shadow:var(--shadow)}
.member-photo-wrap{width:150px;margin:0 auto .9rem;transition:transform .35s}
.member-card:hover .member-photo-wrap{transform:scale(1.05)}
.member-photo-wrap .photo-shape{border:3px solid var(--primary-soft)}
.member-card h4{font-size:1.02rem}
.member-role{color:var(--primary);font-weight:700;font-size:.86rem;margin-top:.15rem}
.member-org{color:var(--text-muted);font-size:.84rem}

/* ---------- equipment cards ---------- */
.equip-card{
  background:var(--card);border:1px solid var(--border);border-radius:20px;overflow:hidden;
  transition:transform .3s,box-shadow .3s;
}
.equip-card:hover{transform:translateY(-5px);box-shadow:var(--shadow)}
.equip-card .photo-shape{border-radius:0;aspect-ratio:4/3;width:100%}
.equip-body{padding:1rem 1.1rem 1.2rem}
.equip-body h3{font-size:1rem;margin-bottom:.3rem}
.equip-body p{font-size:.87rem;color:var(--text-muted)}

/* ---------- gallery ---------- */
.gallery-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.8rem}
.gallery-item{position:relative;border-radius:14px;overflow:hidden;cursor:zoom-in;background:var(--card-2)}
.gallery-item .photo-shape{border-radius:0;aspect-ratio:1/1;transition:transform .6s ease}
.gallery-item:hover .photo-shape{transform:scale(1.08)}
.gallery-item figcaption{
  position:absolute;inset:auto 0 0 0;padding:1.6rem .8rem .7rem;
  background:linear-gradient(transparent,rgba(3,16,30,.82));color:#fff;
  font-size:.78rem;font-weight:600;line-height:1.3;
  opacity:0;transform:translateY(8px);transition:.3s;
}
.gallery-item:hover figcaption{opacity:1;transform:translateY(0)}

/* lightbox */
.lightbox{
  position:fixed;inset:0;z-index:400;background:rgba(3,12,24,.92);backdrop-filter:blur(6px);
  display:flex;align-items:center;justify-content:center;flex-direction:column;padding:1rem;
  opacity:0;visibility:hidden;transition:.3s;
}
.lightbox.open{opacity:1;visibility:visible}
.lightbox img{max-width:92vw;max-height:78vh;object-fit:contain;border-radius:12px;box-shadow:0 24px 80px rgba(0,0,0,.5)}
.lightbox-cap{color:#cfe3f5;margin-top:1rem;font-size:.92rem;text-align:center;max-width:60ch}
.lb-btn{
  position:absolute;width:48px;height:48px;border-radius:50%;
  background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.3);color:#fff;
  display:flex;align-items:center;justify-content:center;transition:.25s;
}
.lb-btn:hover{background:rgba(255,255,255,.3)}
.lb-btn .ic{width:22px;height:22px}
.lb-prev{left:.8rem;top:50%;transform:translateY(-50%)}
.lb-next{right:.8rem;top:50%;transform:translateY(-50%)}
.lb-close{top:1rem;right:1rem}

/* ---------- logo marquee ---------- */
.logo-strip{
  overflow:hidden;position:relative;padding:1.2rem 0;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
}
.logo-track{display:flex;gap:2.4rem;width:max-content;animation:marquee 36s linear infinite}
.logo-strip:hover .logo-track{animation-play-state:paused}
@keyframes marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.logo-cell{
  width:130px;height:74px;flex:none;display:flex;align-items:center;justify-content:center;
  background:var(--card);border:1px solid var(--border);border-radius:14px;padding:.6rem;
  transition:transform .3s,border-color .3s;
}
.logo-cell:hover{transform:translateY(-4px) scale(1.05);border-color:var(--primary)}
.logo-cell img{max-height:100%;max-width:100%;object-fit:contain}

/* ---------- collaborators grid ---------- */
.collab-card{
  background:var(--card);border:1px solid var(--border);border-radius:20px;padding:1.6rem;
  display:flex;flex-direction:column;align-items:center;gap:.9rem;text-align:center;
  transition:transform .3s,box-shadow .3s;
}
.collab-card:hover{transform:translateY(-5px);box-shadow:var(--shadow)}
.collab-card img{height:64px;object-fit:contain}
.collab-card .btn{margin-top:auto}

/* ---------- simple content pages ---------- */
.page-hero{
  position:relative;overflow:hidden;padding:3.4rem 0 3rem;
  background:linear-gradient(135deg,var(--primary-soft),transparent 70%);
}
.page-hero h1{font-size:clamp(1.8rem,5vw,2.8rem)}
.page-hero .lead{margin-top:.6rem}
.page-hero .crumb{font-size:.8rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--primary);margin-bottom:.7rem;display:inline-flex;align-items:center;gap:.45rem}
.page-hero .crumb a:hover{text-decoration:underline}
.prose{max-width:760px}
.prose p{margin-bottom:1.15rem;font-size:1.01rem}
.prose h3{margin:1.8rem 0 .7rem;font-size:1.25rem}
.prose ul,.prose ol{margin:0 0 1.15rem 1.1rem;display:grid;gap:.45rem}
.prose li{margin-bottom:.2rem}
.chips{display:flex;flex-wrap:wrap;gap:.6rem}
.chip-item{
  background:var(--card);border:1px solid var(--border);border-radius:999px;
  padding:.5rem 1rem;font-size:.87rem;font-weight:600;transition:.25s;
}
.chip-item:hover{border-color:var(--primary);color:var(--primary);transform:translateY(-2px)}
.img-caption{font-size:.83rem;color:var(--text-muted);text-align:center;margin-top:.55rem}
.icon-bullets{display:grid;gap:.9rem}
.icon-bullet{display:flex;gap:.9rem;align-items:flex-start}
.icon-bullet .feature-ico{width:44px;height:44px;margin:0;flex:none;border-radius:13px}
.icon-bullet .feature-ico .ic{width:22px;height:22px}
.icon-bullet h4{font-size:1rem;margin-bottom:.15rem}
.icon-bullet p{font-size:.9rem;color:var(--text-muted)}

/* SDG cards */
.sdg-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}
.sdg-card{
  background:var(--card);border:1px solid var(--border);border-radius:18px;padding:1.2rem;
  display:flex;align-items:center;gap:1rem;transition:transform .3s;
}
.sdg-card:hover{transform:translateY(-4px)}
.sdg-card img{width:52px;height:52px;flex:none}
.sdg-card span{font-weight:700;font-size:.92rem}

/* downloads */
.dl-grid{display:grid;gap:.9rem}
.dl-item{
  display:flex;align-items:center;gap:1rem;background:var(--card);border:1px solid var(--border);
  border-radius:16px;padding:1rem 1.2rem;transition:transform .25s,box-shadow .25s;
}
.dl-item:hover{transform:translateX(6px);box-shadow:var(--shadow)}
.dl-ico{width:46px;height:46px;border-radius:13px;background:var(--primary-soft);color:var(--primary);display:flex;align-items:center;justify-content:center;flex:none}
.dl-ico .ic{width:22px;height:22px}
.dl-info{min-width:0;flex:1}
.dl-info h4{font-size:.95rem}
.dl-info span{font-size:.8rem;color:var(--text-muted)}
.dl-item .dl-btn{width:42px;height:42px;border-radius:50%;border:1.5px solid var(--border);display:flex;align-items:center;justify-content:center;color:var(--primary);flex:none;transition:.25s}
.dl-item:hover .dl-btn{background:var(--primary);color:#fff;border-color:var(--primary)}
.dl-btn .ic{width:18px;height:18px}

/* research team list */
.rteam-list{display:grid;gap:.8rem}
.rteam-item{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  background:var(--card);border:1px solid var(--border);border-radius:16px;padding:.95rem 1.2rem;
  transition:transform .25s;
}
.rteam-item:hover{transform:translateX(6px)}
.rteam-item h4{font-size:.98rem}
.rteam-item .link-more{flex:none}

/* publication list */
.pub-list{display:grid;gap:1rem;max-width:860px}
.pub-item{
  background:var(--card);border:1px solid var(--border);border-left:4px solid var(--primary);
  border-radius:14px;padding:1.05rem 1.25rem;font-size:.93rem;line-height:1.6;
  transition:transform .25s;
}
.pub-item:hover{transform:translateX(6px)}

/* contact */
.contact-grid{display:grid;gap:1.3rem}
.contact-card{
  background:var(--card);border:1px solid var(--border);border-radius:20px;padding:1.6rem;
  display:flex;gap:1.1rem;align-items:flex-start;transition:transform .3s;
}
.contact-card:hover{transform:translateY(-4px)}
.contact-card .feature-ico{margin:0;flex:none}
.contact-card h3{font-size:1.05rem;margin-bottom:.3rem}
.contact-card p,.contact-card a{font-size:.93rem}
.contact-card a:hover{color:var(--primary);text-decoration:underline}
.map-wrap{border-radius:20px;overflow:hidden;border:1px solid var(--border);box-shadow:var(--shadow)}
.map-wrap iframe{display:block;width:100%;height:380px;border:0}

/* ---------- ARTICLE PAGE layouts ---------- */
.article-hero{padding:3rem 0 1.6rem;text-align:center}
.article-hero .h-display{max-width:24ch;margin-inline:auto}
.article-meta{display:flex;align-items:center;justify-content:center;gap:.8rem;flex-wrap:wrap;margin-top:1rem;font-size:.86rem;color:var(--text-muted)}
.article-meta .dot{width:4px;height:4px;border-radius:50%;background:var(--text-muted);display:inline-block}
.article-wrap{padding-bottom:3rem}
.art-block-text p{margin-bottom:1.2rem}
.art-block-text{margin-bottom:1.6rem}
.art-block-image{margin:2rem auto}
.art-block-image img{width:100%;border-radius:16px;box-shadow:var(--shadow)}
.art-block-image figcaption{text-align:center;font-size:.84rem;color:var(--text-muted);margin-top:.6rem}

/* classic */
.art-classic .article-body{max-width:720px;margin-inline:auto}
.art-classic .article-hero h1{font-family:'Lora','Georgia',serif;font-weight:600}
.art-classic .art-block-text p{font-size:1.06rem;line-height:1.85}
.art-classic .art-block-image{max-width:640px}

/* magazine */
.art-magazine .article-body{max-width:760px;margin-inline:auto}
.art-magazine .article-hero h1{font-size:clamp(2rem,6vw,3.6rem);line-height:1.1}
.art-magazine .article-hero::after{content:"";display:block;width:64px;height:4px;background:var(--accent);margin:1.2rem auto 0;border-radius:4px}
.art-magazine .art-block-text:first-of-type p:first-of-type::first-letter{
  float:left;font-family:'Sora',serif;font-size:3.4em;line-height:.82;font-weight:800;
  color:var(--primary);padding:.06em .12em 0 0;
}
.art-magazine .art-block-image{max-width:920px}
.art-magazine .art-block-image figcaption{letter-spacing:.02em}

/* focus */
.art-focus .article-body{max-width:620px;margin-inline:auto}
.art-focus .article-hero h1{font-size:clamp(1.6rem,4.2vw,2.4rem);letter-spacing:.02em;font-weight:600}
.art-focus .article-hero .article-meta{text-transform:uppercase;letter-spacing:.14em;font-size:.75rem}
.art-focus .art-block-text p{font-size:1.05rem;line-height:1.95}
.art-focus .art-block-image{max-width:560px}
.art-focus .art-block-image figcaption{text-align:left;border-left:2px solid var(--accent);padding-left:.8rem}

/* bold */
.art-bold .article-hero{
  background:linear-gradient(135deg,#0b2b45,#0e7490);color:#fff;border-radius:26px;
  margin:1.2rem 0 0;padding:3.2rem 1.4rem;
}
.art-bold .article-hero h1,.art-bold .article-hero .article-meta{color:#fff}
.art-bold .article-body{max-width:700px;margin-inline:auto}
.art-bold .art-block-text p{font-size:1.04rem;line-height:1.85}
.art-bold .art-block-image{position:relative;z-index:1}
.art-bold .art-block-image::before{
  content:"";position:absolute;inset:0;border-radius:16px;border:3px solid var(--accent);
  transform:translate(10px,10px);z-index:-1;opacity:.55;
}

/* author card */
.author-card{
  max-width:720px;margin:2.5rem auto 0;background:var(--card);border:1px solid var(--border);
  border-radius:22px;padding:1.6rem;display:flex;gap:1.2rem;align-items:center;
}
.author-card .photo-shape{width:88px;height:88px;flex:none;object-fit:cover}
.author-avatar-fallback{
  width:88px;height:88px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,var(--primary),var(--accent));color:#fff;
  font-family:'Sora',sans-serif;font-weight:800;font-size:1.6rem;
}
.author-card h4{font-size:1.05rem}
.author-card .author-role{color:var(--primary);font-size:.85rem;font-weight:700}
.author-card .author-bio{font-size:.88rem;color:var(--text-muted);margin:.4rem 0}
.author-card .link-more{font-size:.83rem}

/* ---------- footer ---------- */
.site-footer{background:var(--bg-soft);border-top:1px solid var(--border);margin-top:4rem}
.footer-grid{display:grid;gap:2rem;padding:3rem 0 2rem}
.footer-brand img{width:56px;height:56px;object-fit:contain;margin-bottom:.9rem}
.footer-brand p{font-size:.88rem;color:var(--text-muted);max-width:34ch;margin-top:.4rem}
.footer-col h5{font-size:.8rem;letter-spacing:.12em;text-transform:uppercase;color:var(--text-muted);margin-bottom:1rem}
.footer-col ul{list-style:none;display:grid;gap:.55rem}
.footer-col a{font-size:.92rem;color:var(--text);display:inline-flex;align-items:center;gap:.45rem}
.footer-col a:hover{color:var(--primary)}
.footer-col a .ic{width:14px;height:14px;color:var(--primary);opacity:.7}
.footer-bottom{border-top:1px solid var(--border);padding:1.2rem 0;display:flex;flex-wrap:wrap;gap:.8rem;justify-content:space-between;font-size:.83rem;color:var(--text-muted)}
.footer-bottom a:hover{color:var(--primary)}

/* ---------- reveal animations ---------- */
.reveal{opacity:0;transform:translateY(26px);transition:opacity .7s ease,transform .7s cubic-bezier(.22,1,.36,1);transition-delay:var(--d,0s)}
.reveal.in{opacity:1;transform:none}
.reveal-left{opacity:0;transform:translateX(-30px);transition:.7s cubic-bezier(.22,1,.36,1);transition-delay:var(--d,0s)}
.reveal-left.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  .reveal,.reveal-left{opacity:1;transform:none;transition:none}
  .hero-slide.active img{animation:none}
  .logo-track{animation:none}
}

/* back to top */
.to-top{
  position:fixed;right:1.1rem;bottom:1.1rem;z-index:150;width:48px;height:48px;border-radius:50%;
  background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;
  box-shadow:0 10px 26px rgba(2,60,110,.4);opacity:0;visibility:hidden;transform:translateY(14px);
  transition:.35s;
}
.to-top.show{opacity:1;visibility:visible;transform:none}
.to-top:hover{background:var(--primary-strong)}
.to-top .ic{width:20px;height:20px}

/* ---------- responsive: tablet >= 640px ---------- */
@media (min-width:640px){
  .section{padding:5rem 0}
  .stats-grid{grid-template-columns:repeat(4,1fr)}
  .founders{grid-template-columns:repeat(4,1fr)}
  .gallery-grid{grid-template-columns:repeat(3,1fr)}
  .sdg-grid{grid-template-columns:repeat(3,1fr)}
  .grid-2{grid-template-columns:repeat(2,1fr)}
  .hero-arrow{display:flex}
  .contact-grid{grid-template-columns:repeat(2,1fr)}
  .card-grid.cols-2{grid-template-columns:repeat(2,1fr)}
  .card-grid.cols-3{grid-template-columns:repeat(2,1fr)}
}
/* ---------- responsive: desktop >= 900px ---------- */
@media (min-width:900px){
  .nav-desktop{display:block}
  .nav-toggle{display:none}
  .grid-3{grid-template-columns:repeat(3,1fr)}
  .card-grid.cols-3{grid-template-columns:repeat(3,1fr)}
  .gallery-grid{grid-template-columns:repeat(4,1fr)}
  .footer-grid{grid-template-columns:2.2fr 1fr 1fr 1.4fr}
  .hero-content{padding-bottom:4rem}
  .page-hero{padding:4.4rem 0 3.6rem}
}
@media (min-width:1200px){
  .gallery-grid{grid-template-columns:repeat(5,1fr)}
}
