/* bydd.css — shared styles for all pages
   ----------------------------------------
   Header · Nav · Hamburger · Menu Overlay · Logo · Footer · Responsive
*/


/* ── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── CSS VARIABLES ──────────────────────────────────────── */
:root {
  --bg: #fffbf1;
  --fg: #000;
  --muted: #777;
  --inset: 6vw;
  --nav-gap: 26px;
}

/* ── BASE STYLES ────────────────────────────────────────── */
html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { min-height: 100vh; display: flex; flex-direction: column; }

/* ── HEADER ─────────────────────────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg);
  padding: 28px var(--inset) 18px;
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
header.header--hidden { transform: translateY(-100%); }

/* ── NAV ────────────────────────────────────────────────── */
.nav-wrap { display: flex; align-items: center; justify-content: space-between; }
.nav-about { font-size: 13px; font-weight: 400; text-decoration: none; color: var(--fg); letter-spacing: 0.01em; text-transform: lowercase; transition: opacity 0.18s ease; }
.nav-about:hover { opacity: 0.55; }

/* ── HAMBURGER ──────────────────────────────────────────── */
.menu-btn { background: none; border: none; cursor: pointer; padding: 6px 0 6px 8px; display: flex; flex-direction: column; gap: 5px; width: 44px; align-items: flex-end; }
.menu-btn span { display: block; height: 1.5px; background: var(--fg); transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease; }
.menu-btn span:nth-child(1) { width: 24px; }
.menu-btn span:nth-child(2) { width: 16px; }
.menu-btn span:nth-child(3) { width: 24px; }
.menu-btn.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); width: 24px; }
.menu-btn.is-open span:nth-child(2) { opacity: 0; width: 24px; }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); width: 24px; }

/* ── MENU OVERLAY ───────────────────────────────────────── */
.menu-overlay { position: fixed; inset: 0; z-index: 99; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.menu-overlay.is-open { opacity: 1; pointer-events: all; }
.menu-nav ul { list-style: none; text-align: center; display: flex; flex-direction: column; gap: 28px; }
.menu-nav a { font-size: 28px; font-weight: 300; text-decoration: none; color: var(--fg); letter-spacing: 0.06em; text-transform: lowercase; transition: opacity 0.18s ease; display: inline-block; }
.menu-nav a:hover { opacity: 0.4; }
.menu-nav a.active { border-bottom: 1.5px solid var(--fg); padding-bottom: 3px; }
.menu-nav ul li { opacity: 0; transform: translateY(10px); transition: opacity 0.32s ease, transform 0.32s ease; }
.menu-overlay.is-open .menu-nav ul li { opacity: 1; transform: translateY(0); }
.menu-overlay.is-open .menu-nav ul li:nth-child(1) { transition-delay: 0.04s; }
.menu-overlay.is-open .menu-nav ul li:nth-child(2) { transition-delay: 0.09s; }
.menu-overlay.is-open .menu-nav ul li:nth-child(3) { transition-delay: 0.14s; }
.menu-overlay.is-open .menu-nav ul li:nth-child(4) { transition-delay: 0.19s; }
.menu-overlay.is-open .menu-nav ul li:nth-child(5) { transition-delay: 0.24s; }
.menu-overlay.is-open .menu-nav ul li:nth-child(6) { transition-delay: 0.29s; }
.menu-overlay.is-open .menu-nav ul li:nth-child(7) { transition-delay: 0.34s; }
.menu-overlay.is-open .menu-nav ul li:nth-child(8) { transition-delay: 0.39s; }

/* ── MENU SOCIAL ────────────────────────────────────────── */
.menu-social { margin-top: 48px; display: flex; gap: 20px; justify-content: center; opacity: 0; transition: opacity 0.3s ease 0.44s; }
.menu-overlay.is-open .menu-social { opacity: 1; }
.menu-social a { color: var(--fg); display: inline-flex; align-items: center; justify-content: center; transition: opacity 0.18s ease; }
.menu-social a:hover { opacity: 0.45; }
.menu-social svg { width: 20px; height: 20px; }

/* ── LOGO ───────────────────────────────────────────────── */
.logo { display: flex; justify-content: center; align-items: center; text-decoration: none; }
.logo img { height: 133px; width: auto; display: block; max-width: 520px; object-fit: contain; }

/* ── FOOTER ─────────────────────────────────────────────── */
footer { position: relative; z-index: 2; background: var(--bg); padding: 56px var(--inset) 64px; text-align: center; border-top: 1px solid rgba(0,0,0,0.06); }
.footer-name { font-size: 22px; font-weight: 600; margin-bottom: 14px; letter-spacing: 0.01em; }
.footer-links { display: flex; justify-content: center; gap: 22px; margin-bottom: 14px; }
.footer-links a { font-size: 13px; color: var(--fg); text-decoration: none; transition: opacity 0.18s ease; }
.footer-links a:hover { opacity: 0.55; }
.footer-contact { font-size: 12px; color: var(--fg); font-style: italic; letter-spacing: 0.02em; }
.footer-contact a { color: var(--fg); text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-social { margin-top: 18px; display: flex; justify-content: center; gap: 18px; }
.footer-social a { color: var(--fg); display: inline-flex; align-items: center; justify-content: center; transition: opacity 0.18s ease; }
.footer-social a:hover { opacity: 0.55; }
.footer-social svg { width: 22px; height: 22px; }
.footer-handle { margin-top: 10px; font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.footer-archive { margin-top: 12px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); opacity: 0.6; }

/* ── BACK BUTTON ────────────────────────────────────────── */
.back-btn { display: inline-flex; align-items: center; gap: 7px; padding: 28px var(--inset) 0; text-decoration: none; color: var(--muted); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; transition: color 0.18s ease; }
.back-btn:hover { color: var(--fg); }
.back-btn svg { transition: transform 0.18s ease; }
.back-btn:hover svg { transform: translateX(-3px); }
/* Project detail pages: back-btn sits inside .project-content which already has padding */
.project-content .back-btn { padding: 0; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --inset: 4vw; }
  .logo img { height: 90px; }
}
@media (max-width: 560px) {
  header { padding: 20px var(--inset) 12px; }
  .logo img { height: 56px; }
}
