@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

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

:root {
  --white: #FFFFFF;
  --bg: #F8F9FB;
  --light: #E2E8F2;
  --mid: #7A9CC4;
  --deep: #2B5280;
  --ink: #0F1118;
  --muted: #8694A8;
  --d: 'Poppins', system-ui, sans-serif;
  --b: 'Poppins', system-ui, sans-serif;
  --nav-h: 50px;
  --gutter: 48px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--b); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; min-height: 100vh; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 var(--gutter); height: var(--nav-h);
  background: var(--bg);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
/* tucked away while scrolling down, restored on scroll up */
nav.nav-hidden { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) {
  nav { transition: none; }
  nav.nav-hidden { transform: none; }
}
.nav-logo {
  font-family: var(--d); font-size: 13px; font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.nav-right { display: flex; align-items: center; gap: 0; }
.nav-item { position: relative; }
.nav-link {
  font-family: var(--b); font-size: 10px; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: rgba(15,17,24,0.6); text-decoration: none;
  background: none; border: none; cursor: pointer;
  padding: 0 18px; height: var(--nav-h);
  display: flex; align-items: center; gap: 5px;
  transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-caret { font-size: 7px; opacity: 0.6; transition: transform 0.2s; }
.nav-item:hover .nav-caret { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute; top: var(--nav-h); left: 6px;
  background: var(--white); min-width: 172px;
  border: 0.5px solid var(--light);
  border-radius: 2px;
  padding: 4px 0;
  opacity: 0; pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.16s, transform 0.16s;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1; pointer-events: all; transform: translateY(0);
}
.nav-dropdown a {
  display: block; padding: 11px 20px;
  font-family: var(--b); font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: rgba(15,17,24,0.62); text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.nav-dropdown a:hover { color: var(--ink); background: var(--bg); }

/* ── FOOTER ── */
.site-footer {
  background: transparent;
  padding: 28px var(--gutter);
  display: flex; justify-content: space-between; align-items: center;
}
.site-footer span,
.site-footer a {
  font-family: var(--b); font-size: 10px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  transition: color 0.2s;
}
.site-footer a:hover { color: var(--deep); }
.footer-links { display: flex; gap: 28px; }

/* ── CTA BAR ── */
.cta-bar {
  background: var(--ink); padding: 64px var(--gutter);
  display: flex; justify-content: space-between; align-items: center;
}
.cta-heading {
  font-family: var(--d);
  font-size: clamp(24px, 3.5vw, 44px);
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--white); line-height: 1.1;
}
.cta-heading em { font-style: normal; color: var(--mid); }
.cta-email {
  font-family: var(--b); font-size: 10px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); text-decoration: none;
  border-bottom: 0.5px solid rgba(255,255,255,0.18); padding-bottom: 3px;
  transition: color 0.2s;
}
.cta-email:hover { color: var(--white); }

/* ── PROJECT CARD (shared across pages) ── */
.proj-card {
  position: relative; overflow: hidden; border-radius: 2px;
  cursor: pointer; display: block; text-decoration: none;
}
.proj-card-inner { position: relative; overflow: hidden; }
.proj-card-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.proj-card:hover .proj-card-bg { transform: scale(1.06); }
.proj-card-overlay {
  position: absolute; inset: 0;
  background: rgba(8, 12, 20, 0);
  transition: background 0.3s;
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 22px;
}
.proj-card:hover .proj-card-overlay { background: rgba(8, 12, 20, 0.58); }
.proj-card-meta {
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
}
.proj-card:hover .proj-card-meta { opacity: 1; transform: translateY(0); }
.proj-card-title {
  font-family: var(--d); font-size: 14px; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase; color: #fff;
}
.proj-card-sub {
  font-family: var(--b); font-size: 9px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-top: 5px;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* aspect ratios */
.ar-portrait { padding-bottom: 130%; }
.ar-landscape { padding-bottom: 62%; }
.ar-square { padding-bottom: 100%; }
.ar-tall { padding-bottom: 110%; }
.ar-wide { padding-bottom: 56%; }
.ar-3-4 { padding-bottom: 75%; }

/* placeholder color fills */
.fill-e1 { background: #19283A; }
.fill-e2 { background: #222E3C; }
.fill-e3 { background: #B52200; }
.fill-e4 { background: #161826; }
.fill-e5 { background: #253444; }
.fill-l1 { background: #374E2E; }
.fill-l2 { background: #527898; }
.fill-l3 { background: #4E6E7C; }
.fill-l4 { background: #6A5444; }
.fill-h1 { background: #2E4460; }
.fill-h2 { background: #A89070; }
.fill-h3 { background: #607880; }
.fill-h4 { background: #7A8896; }

/* ── MOBILE ── */
@media (max-width: 640px) {
  :root { --gutter: 20px; }

  /* keep the logo on one line and fit all three links beside it */
  .nav-logo { white-space: nowrap; font-size: 13px; }
  .nav-link { padding: 0 9px; letter-spacing: 0.06em; }
  .nav-right { margin-right: -9px; } /* optically align the last link with the gutter */

  .site-footer { flex-wrap: wrap; gap: 14px 24px; padding-top: 24px; padding-bottom: 28px; }
  .footer-links { gap: 20px; }
}
