:root{
  --ink:#2d2d2d;
  --muted:#4c4c4c;
  --soft:#8a8a8a;
  --gap:28px;
  --content:860px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:'Lexend', Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-weight:300;
  color:var(--ink);
  background:#fff;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline}

/* Page grid: center content + bottom bar */
.wrap{
  min-height:100svh;
  display:grid;
  grid-template-rows: 1fr auto;
}

/* ===== Center block ===== */
.center{
  display:grid;
  place-items:center;
  padding:8vh 16px 0;
}
.stack{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:18px;
  text-align:center;
}
.hero-logo{ width:min(360px, 68vw); }
.contact-gif { width:100%; display:flex; justify-content:center; overflow:hidden; }
.contact-gif img { max-width:240px; width:100%; height:auto; display:block; border-radius:4px; transform:scale(1.22); transform-origin:center; }
.contacts{
  list-style:none; margin:0; padding:0;
  font-size:18px; line-height:1.9; color:var(--muted);
  letter-spacing:.01em;
}
.contacts a{ color:var(--ink); }

/* ===== Bottom bar ===== */
.bottom{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:end;
  column-gap:12px;
  padding:48px clamp(16px, 4vw, 48px);
}
/* left mark */
.wordmark{
  display:inline-grid;
  gap:2px;
  justify-items:start;
}
.wordmark .big{
  font-weight:700;
  letter-spacing:.08em;
  font-size:34px;
}
.wordmark .small{
  font-size:12px;
  letter-spacing:.28em;
  color:#707070;
}
/* center nav */
.nav{
  justify-self:center;
  display:flex;
  gap:36px;
  font-size:14px;
  font-weight:600;
  letter-spacing:.04em;
}
.nav a{ color:var(--ink); opacity:.9 }
.nav a.active{ text-decoration:underline; text-underline-offset:4px }
/* right tiny icon */
.mini{
  justify-self:end;
  width:28px; height:28px; opacity:.75;
}

/* ===== Responsive tweaks ===== */
@media (max-width:720px){
  .contacts{font-size:16px}
  .nav{gap:22px}
  .wordmark .big{font-size:26px}
  .bottom{padding:32px 16px}
}

/* Projects footer styles for consistency */
.custom-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  width: 100%;
  background: #fff;
  padding: 0 48px;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
  gap: 0;
  border-top: 1px solid #e6e6e6;
}
.footer-left-logo {
  position: absolute;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  width: 154px;
  height: 154px;
  object-fit: contain;
  opacity: 0.92;
  transition: opacity 0.2s, transform 0.2s;
  filter: brightness(0) saturate(100%);
}
.footer-right-icon {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  object-fit: contain;
  opacity: 0.92;
  transition: opacity 0.2s, transform 0.2s;
  filter: brightness(0) saturate(100%);
}
.footer-nav { display: flex; justify-content: center; align-items: center; width:100%; position: relative; z-index: 1; }
.footer-nav ul { list-style: none; display: flex; gap: 30px; padding: 0; margin: 0; }
.footer-nav a { text-decoration: none; color: #3c3c3c; font-size: 1rem; font-weight: 300; font-family: 'Lexend', sans-serif; transition: color 0.2s; padding: 5px 0; position: relative; }
.footer-nav a::before { content: ""; position: absolute; left: 50%; bottom: -2px; width: 0; height: 2px; background: #333; border-radius: 2px; transition: width 0.3s ease, left 0.3s ease; transform: translateX(-50%); }
.footer-nav a:hover::before { width: 100%; }
.footer-nav a:hover { color: #3c3c3c; }

/* Hide mobile nav elements by default (desktop) */
.menu-toggle, .mobile-drawer, .drawer-overlay { display:none; }

/* Mobile menu (match Projects mobile page) */
@media (max-width:700px){
  body.no-scroll{overflow:hidden;}
  /* Hide footer only on mobile */
  .custom-footer{display:none !important;}
  .menu-toggle{position:fixed;top:.85rem;right:.85rem;width:34px;height:34px;border:none;background:rgba(0,0,0,.45);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);border-radius:10px;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:0;cursor:pointer;z-index:120;transform:rotate(45deg);transform-origin:center center;box-shadow:0 2px 6px rgba(0,0,0,.28);transition:background .3s ease,box-shadow .3s ease;}
  .menu-toggle span{position:absolute;top:50%;left:50%;width:14px;height:2px;background:#fff;border-radius:2px;transition:background .3s ease;}
  .menu-toggle span:first-child{transform:translate(-50%,-50%) rotate(45deg);} 
  .menu-toggle span:last-child{transform:translate(-50%,-50%) rotate(-45deg);} 
  .menu-toggle:hover span,.menu-toggle:focus-visible span{background:#e2e2e2;}
  .drawer-overlay{position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:110;}
  .mobile-drawer{position:fixed;top:0;right:0;height:100vh;width:min(70%,320px);background:rgba(15,15,15,.92);backdrop-filter:blur(8px);box-shadow:-4px 0 24px -6px rgba(0,0,0,.5);transform:translateX(100%);transition:transform .45s cubic-bezier(.65,.05,.36,1);z-index:130;display:flex;align-items:flex-start;padding-top:6rem;padding-left:2rem;}
  .mobile-drawer.open{transform:translateX(0);}
  .mobile-links{display:flex;flex-direction:column;gap:1.75rem;}
  .mobile-links a{font-family:'Lexend',Arial,sans-serif;font-weight:300;font-size:1.25rem;color:#fff;text-decoration:none;letter-spacing:-0.01em;position:relative;}
  .mobile-links a:after{content:"";position:absolute;left:0;bottom:-4px;height:2px;width:0;background:linear-gradient(90deg, rgba(255,255,255,.25), #fff);transition:width .35s ease;}
  .mobile-links a:hover:after,.mobile-links a:focus-visible:after{width:100%;}
  .drawer-close{position:absolute;top:1rem;right:1rem;width:40px;height:40px;background:transparent;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;opacity:.85;transition:opacity .25s ease;}
  .drawer-close::before{content:"";width:10px;height:10px;border-top:2px solid #fff;border-right:2px solid #fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) rotate(45deg);}
  .drawer-close:hover,.drawer-close:focus-visible{opacity:1;}
  .drawer-close:focus-visible{outline:2px solid rgba(255,255,255,.6);outline-offset:2px;}
}
