/* ==========================================================================
   EMINETIC — SHARED SHELL (header, mobile menu, footer, buttons, CTA)
   Master reference: index.html. Used by every page except index.html and
   projects.html (those two carry the same rules inline with their own
   animation system). All selectors are scoped to .site-header / .mobile-menu /
   .site-footer / .em-cta so they never collide with page-level CSS.
   ========================================================================== */
:root{
  --em-bg:#050505;
  --em-lime:#E9FF7B;
  --em-lime-top:#F5FFD8;
  --em-lime-bottom:#D7FF72;
  --em-ink:#0a0f00;                         /* text on lime: contrast ≈ 17:1 */
  --em-text:#F5F5F0;
  --em-muted:rgba(255,255,255,.72);
  --em-faint:rgba(255,255,255,.55);
  --em-border:rgba(255,255,255,.08);
  --em-border-hover:rgba(255,255,255,.14);
  --em-glass:rgba(18,18,18,.72);
  --em-ease:cubic-bezier(.22,1,.36,1);
  --em-display:'Manrope','Inter',sans-serif;
  --em-body:'Inter',sans-serif;
  --em-container:1600px;
  --em-pad-x:96px;
}
@media (max-width:1440px){ :root{ --em-pad-x:72px; } }
@media (max-width:1024px){ :root{ --em-pad-x:40px; } }
@media (max-width:640px){ :root{ --em-pad-x:24px; } }

html{ overflow-x:hidden; }
@supports (overflow:clip){ html, body{ overflow-x:clip; } }

/* ---------------------------------------------------------------- BUTTONS */
.site-header .btn, .mobile-menu .btn, .em-cta .btn, .em-page .btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  height:56px; padding:0 30px; border-radius:999px;
  font-family:var(--em-body); font-size:15px; font-weight:600; line-height:1; white-space:nowrap;
  text-decoration:none; border:1px solid transparent; cursor:pointer;
  transition: transform .35s var(--em-ease), box-shadow .35s var(--em-ease), background .35s var(--em-ease), border-color .35s var(--em-ease), color .35s var(--em-ease);
}
.site-header .btn-lime, .mobile-menu .btn-lime, .em-cta .btn-lime, .em-page .btn-lime{
  background:linear-gradient(180deg,var(--em-lime-top),var(--em-lime-bottom));
  color:var(--em-ink);
  box-shadow:0 14px 40px rgba(233,255,123,.18), 0 4px 14px rgba(0,0,0,.4);
}
.site-header .btn-lime:hover, .em-cta .btn-lime:hover, .em-page .btn-lime:hover{ transform:translateY(-4px); box-shadow:0 22px 55px rgba(233,255,123,.3), 0 6px 18px rgba(0,0,0,.45); }
.site-header .btn-glass, .em-cta .btn-glass, .em-page .btn-glass{
  background:var(--em-glass);
  -webkit-backdrop-filter:blur(26px); backdrop-filter:blur(26px);
  color:var(--em-text); border-color:var(--em-border-hover);
  box-shadow:0 12px 40px rgba(0,0,0,.28);
}
.site-header .btn-glass:hover, .em-cta .btn-glass:hover, .em-page .btn-glass:hover{ transform:translateY(-4px); border-color:rgba(233,255,123,.35); background:rgba(255,255,255,.06); color:#fff; }
.site-header .btn:focus-visible, .mobile-menu a:focus-visible, .em-cta .btn:focus-visible, .em-page .btn:focus-visible,
.site-footer a:focus-visible, .site-header a:focus-visible, .nav-burger:focus-visible{
  outline:2px solid var(--em-lime); outline-offset:3px; border-radius:999px;
}
.em-arrow{ display:inline-block; transition:transform .35s var(--em-ease); }
.btn:hover .em-arrow{ transform:translateX(5px); }

/* ---------------------------------------------------------------- HEADER / NAV */
.em-header-space{ height:124px; }
.site-header{
  position:fixed; top:24px; left:0; right:0; z-index:100;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 var(--em-pad-x);
  font-family:var(--em-body);
  animation: emNavIn 1s var(--em-ease) .05s both;
}
@keyframes emNavIn{ from{ opacity:0; transform:translateY(-24px); } to{ opacity:1; transform:none; } }
.site-header .logo{ display:flex; align-items:center; justify-content:center; height:100px; flex-shrink:0; overflow:visible; text-decoration:none; }
.site-header .nav-logo-img{ display:block; width:300px; height:auto; max-width:none; }
.site-header .nav-capsule{
  position:relative; height:68px; padding:0 10px; border-radius:999px;
  background:rgba(18,18,18,.78); -webkit-backdrop-filter:blur(24px); backdrop-filter:blur(24px);
  border:1px solid var(--em-border);
  box-shadow:0 18px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
  display:flex; align-items:center;
}
.site-header .nav-capsule ul{ display:flex; align-items:center; gap:38px; padding:0 26px; margin:0; list-style:none; }
.site-header .nav-link{ position:relative; font-size:15px; font-weight:500; color:rgba(255,255,255,.82); padding:8px 2px; text-decoration:none; transition:color .25s var(--em-ease); }
.site-header .nav-link:hover, .site-header .nav-link.active{ color:#fff; }
.site-header .nav-dot{
  position:absolute; left:50%; bottom:-10px; transform:translateX(-50%);
  width:6px; height:6px; border-radius:50%; background:var(--em-lime); box-shadow:0 0 12px rgba(233,255,123,.8);
  animation: emDot 2.8s ease-in-out infinite;
}
@keyframes emDot{ 0%,100%{ opacity:.55; } 50%{ opacity:1; } }
.site-header .nav-cta{ display:flex; align-items:center; gap:12px; }
.site-header .nav-burger{ display:none; flex-direction:column; gap:5px; background:none; border:none; padding:10px; cursor:pointer; }
.site-header .nav-burger span{ width:22px; height:2px; background:#fff; border-radius:2px; transition:.3s; }
.site-header .nav-burger[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.site-header .nav-burger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.site-header .nav-burger[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* same fit rules as index.html */
@media (max-width:1400px){
  .site-header .nav-logo-img{ width:220px; }
  .site-header .nav-capsule ul{ gap:26px; padding:0 20px; }
  .site-header .nav-cta .btn{ height:50px; padding:0 22px; }
}
@media (max-width:1280px){ .site-header .nav-cta .btn-glass{ display:none; } }
@media (max-width:1180px){
  .site-header{ top:16px; }
  .site-header .nav-capsule, .site-header .nav-cta{ display:none; }
  .site-header .nav-burger{ display:flex; position:relative; z-index:160; }
  .em-header-space{ height:116px; }
}
@media (max-width:420px){ .site-header .nav-logo-img{ width:min(300px, calc(100vw - 110px)); } }

/* ---------------------------------------------------------------- MOBILE MENU */
.mobile-menu{
  position:fixed; top:0; right:-100%; width:min(340px,88vw); height:100vh; height:100dvh; overflow-y:auto;
  background:rgba(10,10,10,.97); -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px);
  border-left:1px solid var(--em-border);
  z-index:150; padding:100px 36px 40px; display:flex; flex-direction:column; gap:22px;
  font-family:var(--em-body);
  transition:right .5s var(--em-ease), visibility .5s;
  visibility:hidden;
}
.mobile-menu.is-open{ right:0; visibility:visible; transition:right .5s var(--em-ease), visibility 0s; }
.mobile-menu a{ font-size:18px; font-weight:500; color:var(--em-text); text-decoration:none; }
.mobile-menu a[aria-current="page"]{ color:var(--em-lime); }
.mobile-menu .btn{ color:var(--em-ink); margin-top:24px; }

/* ---------------------------------------------------------------- FOOTER (master) */
.site-footer{
  position:relative; z-index:2;
  padding-top:120px; padding-bottom:36px; margin-top:60px;
  background:linear-gradient(180deg, transparent, rgba(0,0,0,.4));
  border-top:1px solid var(--em-border);
  font-family:var(--em-body); color:var(--em-text);
}
.site-footer .section-grid{ max-width:var(--em-container); margin:0 auto; padding:0 var(--em-pad-x); position:relative; }
.site-footer .footer-grid{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr 1fr 1.2fr; gap:40px; padding-bottom:60px; }
.site-footer .footer-col h2.footer-h{ margin:0 0 20px; font-size:14px; font-weight:700; color:#fff; font-family:inherit; letter-spacing:0; line-height:1.3; }
.site-footer .footer-col a{ display:block; font-size:15px; color:var(--em-muted); margin-bottom:14px; width:fit-content; text-decoration:none; transition:color .25s; }
.site-footer .footer-col a:hover{ color:var(--em-lime); }
.site-footer .footer-brand p{ font-size:14px; color:var(--em-muted); line-height:1.6; max-width:300px; margin:18px 0 22px; }
.site-footer .footer-static{ display:block; font-size:15px; color:var(--em-muted); }
.site-footer .footer-logo{ display:flex; align-items:center; justify-content:flex-start; width:320px; height:100px; overflow:visible; }
.site-footer .footer-logo-img{ display:block; width:320px; height:auto; max-width:none; }
.site-footer .social-icons{ display:flex; align-items:center; gap:28px; }
.site-footer .social-icon{ display:inline-flex; color:rgba(255,255,255,.75); margin:0; width:auto; }
.site-footer .social-icon:hover{ color:var(--em-lime); }
.site-footer .social-icon svg{ width:32px; height:32px; display:block; }
.site-footer .footer-bottom{
  max-width:var(--em-container); margin:0 auto; padding:24px var(--em-pad-x) 0;
  border-top:1px solid var(--em-border);
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  font-size:13px; color:rgba(255,255,255,.4);
}
.site-footer .footer-legal{ display:flex; gap:24px; }
.site-footer .footer-legal a{ color:rgba(255,255,255,.4); text-decoration:none; }
.site-footer .footer-legal a:hover{ color:#fff; }
@media (max-width:1100px){ .site-footer .footer-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:640px){
  .site-footer .footer-grid{ grid-template-columns:1fr 1fr; }
  .site-footer .footer-brand{ grid-column:1 / -1; }
  .site-footer .footer-logo, .site-footer .footer-logo-img{ width:min(320px,100%); height:auto; }
  .site-footer .footer-col{ min-width:0; }
  .site-footer .footer-col a{ overflow-wrap:anywhere; }
}

/* ---------------------------------------------------------------- CTA (site-wide closing section) */
.em-cta{ position:relative; padding:40px 0 20px; font-family:var(--em-body); }
.em-cta-card{
  position:relative; overflow:hidden; isolation:isolate;
  max-width:1100px; margin:0 auto;
  padding:clamp(48px,7vw,88px) clamp(24px,6vw,72px);
  border-radius:40px; text-align:center;
  background:linear-gradient(135deg, rgba(24,24,18,.92), rgba(8,8,8,.96));
  border:1px solid var(--em-border);
  box-shadow:0 40px 100px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05);
}
.em-cta-card::before{
  content:''; position:absolute; z-index:-1; width:620px; height:620px; top:-300px; right:-180px; border-radius:50%;
  background:radial-gradient(circle, rgba(233,255,123,.16), transparent 65%); pointer-events:none;
}
.em-cta-card::after{
  content:''; position:absolute; z-index:-1; width:480px; height:480px; bottom:-300px; left:-160px; border-radius:50%;
  background:radial-gradient(circle, rgba(143,184,255,.08), transparent 65%); pointer-events:none;
}
.em-cta-kicker{
  display:inline-flex; align-items:center; gap:12px;
  font-size:12px; font-weight:600; letter-spacing:4px; text-transform:uppercase; color:rgba(255,255,255,.66);
}
.em-cta-kicker::before{ content:''; width:6px; height:6px; border-radius:50%; background:var(--em-lime); box-shadow:0 0 14px rgba(233,255,123,.85); }
.em-cta h2{
  margin:22px auto 0; max-width:820px;
  font:800 clamp(34px,5vw,64px) / 1.02 var(--em-display); letter-spacing:-.04em; color:#fff;
}
.em-cta h2 em{ font-style:normal; background:linear-gradient(180deg,var(--em-lime-top),var(--em-lime-bottom)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.em-cta p{ margin:20px auto 0; max-width:600px; font-size:18px; line-height:1.7; color:var(--em-muted); }
.em-cta-primary{ margin-top:38px; display:flex; justify-content:center; }
.em-cta-primary .btn{ height:60px; padding:0 34px; font-size:16px; min-width:240px; }
.em-cta-links{
  margin:30px auto 0; padding-top:30px; max-width:760px;
  border-top:1px solid var(--em-border);
  display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:12px;
}
.em-cta-links .btn{ width:100%; font-size:14px; padding:0 18px; }
.em-cta-links-label{ grid-column:1 / -1; font-size:12px; letter-spacing:2px; text-transform:uppercase; color:var(--em-faint); margin-bottom:6px; }
@media (max-width:760px){
  .em-cta-links{ grid-template-columns:1fr; }
  .em-cta-primary .btn{ width:100%; min-width:0; }
  .em-cta-card{ border-radius:30px; }
}

@media (prefers-reduced-motion:reduce){
  .site-header, .site-header .nav-dot{ animation:none; }
  .site-header .btn, .em-cta .btn, .mobile-menu{ transition:none; }
}

/* close button inside the mobile menu */
.mobile-menu .menu-close{
  position:absolute; top:26px; right:24px; width:44px; height:44px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.04); border:1px solid var(--em-border); color:#fff; font-size:20px; line-height:1; cursor:pointer;
}
.mobile-menu .menu-close:hover{ border-color:var(--em-border-hover); }
.mobile-menu .menu-close:focus-visible{ outline:2px solid var(--em-lime); outline-offset:3px; }
