/* Shared styles for the inner pages (projects.html, project.html). */
:root {
  --bg: #1b261d;
  --panel: #2e3f30;
  --panel-2: #334636;
  --line: rgba(233, 240, 228, 0.16);
  --text: #f2f4ee;
  --muted: rgba(242, 244, 238, 0.55);
  --dim: rgba(242, 244, 238, 0.32);
  --white: #ffffff;
  --ink: #121a14;
  --gap: 6px;
  --wide: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--wide);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.display { font-stretch: 125%; font-weight: 900; text-transform: uppercase; line-height: 0.86; letter-spacing: -0.01em; }
.split-title { text-transform: uppercase; font-stretch: 125%; line-height: 0.95; }
.split-title span { display: block; }
.split-title .light { font-weight: 300; }
.split-title .bold { font-weight: 800; }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--white); color: var(--ink);
  border-radius: 999px; font-size: 12px; font-weight: 500; padding: 9px 30px;
  transition: transform .25s ease, background .25s ease;
}
.pill:hover { transform: translateY(-2px); background: #e8efe3; }
.pill.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.pill.ghost:hover { background: var(--panel-2); }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo-word { display: flex; flex-direction: column; line-height: 1; }
.logo-word b { font-stretch: 125%; font-weight: 900; font-size: 17px; letter-spacing: 0.06em; }
.logo-word small { font-size: 8px; letter-spacing: 0.42em; color: var(--muted); margin-top: 4px; text-transform: uppercase; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(27, 38, 29, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: 1320px; margin: 0 auto; padding: 16px 40px;
  display: flex; justify-content: space-between; align-items: center;
}
.header-actions { display: flex; align-items: center; gap: 16px; }
.menu-btn {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--white); color: var(--ink);
  display: grid; place-items: center; transition: transform .25s ease;
}
.menu-btn:hover { transform: rotate(90deg); }
.menu-btn svg { width: 12px; height: 12px; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 40px; }

/* ---------- menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(18, 26, 20, .96);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px;
  opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
.menu.open { opacity: 1; pointer-events: auto; }
.menu a { font-size: clamp(28px, 5vw, 56px); }
.menu a:hover { color: #b9cdb1; }
.menu .close { position: absolute; top: 28px; right: 28px; font-size: 13px; color: var(--muted); }

.arrow-ico { width: 10px; height: 10px; flex: none; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .site-header .inner, .wrap { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
