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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: #fff; color: #111; font-family: 'Outfit', sans-serif; font-size: 16px; line-height: 1.65; }

/* ── NAV ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #fff; padding: 16px 48px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.3s ease;
}
.site-nav.nav-colored { background: #f1f1f4; }
.nav-logo { text-decoration: none; color: #111; display: flex; align-items: center; gap: 16px; }
.nav-logo img { height: 68px; width: 68px; object-fit: contain; display: block; }
.nav-logo-text { display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.nav-logo-name { font-size: 1.5rem; font-weight: 600; line-height: 1.1; white-space: nowrap; letter-spacing: -.01em; }
.nav-logo-sub { font-size: 0.75rem; color: #aaa; font-weight: 300; white-space: nowrap; letter-spacing: .10em; }

.nav-right { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  text-decoration: none; color: #111; font-size: 0.9rem; font-weight: 400;
  padding-bottom: 2px; border-bottom: 1.5px solid transparent; transition: border-color .2s;
}
.nav-links a:hover, .nav-links a.active { border-bottom-color: #111; }
.nav-search {
  background: none; border: none; cursor: pointer; padding: 2px;
  display: flex; align-items: center; color: #111; transition: opacity .2s;
}
.nav-search:hover { opacity: 0.5; }

/* ── SEARCH OVERLAY ── */
.search-overlay {
  position: fixed; inset: 0; background: #000; z-index: 200;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
.search-overlay.open { display: flex; }
.search-overlay > p { color: #555; font-size: 0.85rem; }
.search-form { display: flex; align-items: center; gap: 16px; width: 60%; max-width: 700px; }
.search-form input {
  flex: 1; background: transparent; border: none; border-bottom: 1px solid #fff; color: #fff;
  font-size: 1.8rem; font-weight: 700; font-family: 'Outfit', sans-serif; padding: 8px 0; outline: none;
}
.search-form input::placeholder { color: #444; }
.search-form button { background: none; border: none; color: #fff; cursor: pointer; }
.search-close {
  position: absolute; top: 28px; right: 48px; background: none; border: none;
  color: #555; cursor: pointer; font-size: 0.8rem; font-family: 'Outfit', sans-serif; letter-spacing: .05em;
}
.search-results { width: 60%; max-width: 700px; max-height: 40vh; overflow-y: auto; }
.search-result-item {
  padding: 12px 0; border-bottom: 1px solid #222; display: block; text-decoration: none; color: #fff;
}
.search-result-item:hover { color: #aaa; }
.search-result-item h4 { font-size: 1rem; font-weight: 600; }
.search-result-item p { font-size: 0.8rem; color: #666; margin-top: 2px; }
.search-no-results { color: #555; font-size: 0.9rem; }

/* ── LEFT SIDEBAR: stacked vertically, Follow at bottom ── */
.sidebar {
  position: fixed; left: 0; bottom: 60px;
  z-index: 50; pointer-events: none;
  display: flex; flex-direction: column; align-items: flex-start;
}
.sidebar-inner {
  display: flex; flex-direction: column-reverse; /* Follow at bottom */
  pointer-events: all; align-items: flex-start;
}
.sidebar-follow {
  background: #000; color: #fff; font-size: 0.6rem; font-weight: 700;
  font-family: 'Outfit', sans-serif; letter-spacing: .18em; text-transform: uppercase;
  padding: 14px 9px; display: block; white-space: nowrap;
  writing-mode: vertical-rl; transform: rotate(180deg);
}
.sidebar-link {
  text-decoration: none; color: #bbb; font-size: 0.6rem; font-family: 'Outfit', sans-serif;
  letter-spacing: .1em; white-space: nowrap; padding: 12px 8px; display: block; transition: color .2s;
  writing-mode: vertical-rl; transform: rotate(180deg);
}
.sidebar-link:hover { color: #111; }
.sidebar-sep {
  color: #ccc; font-size: 0.6rem; padding: 4px 8px; display: block;
  writing-mode: vertical-rl; transform: rotate(180deg);
}

/* ── BACK TO TOP: → arrow + line + text as horizontal row, rotated -90deg
   → becomes ↑ visually, text reads bottom-to-top. Shows only near footer (JS). ── */
.scroll-hint { position: fixed; right: 0; bottom: 60px; z-index: 50; transition: opacity .4s; pointer-events: none; }
.scroll-hint-inner { display: flex; flex-direction: column; align-items: center; pointer-events: all; cursor: pointer; gap: 4px; }
.scroll-hint-inner:hover .scroll-arrow-r, .scroll-hint-inner:hover .scroll-text { color: #555; }
.scroll-arrow-r { font-size: 0.75rem; color: #bbb; line-height: 1; padding: 6px 8px; display: block; }
.scroll-line { width: 1px; height: 36px; background: #ccc; display: block; }
.scroll-text { font-size: 0.6rem; color: #bbb; font-family: 'Outfit',sans-serif; letter-spacing: .1em; white-space: nowrap; padding: 0 8px 8px; display: block; writing-mode: vertical-rl; transform: rotate(180deg); }
.scroll-arrow-r { font-size: .9rem; color: #bbb; line-height: 1; }
.scroll-line { width: 52px; height: 1px; background: #ccc; display: inline-block; flex-shrink: 0; vertical-align: middle; }
.scroll-text { font-size: .55rem; color: #bbb; font-family: 'Outfit', sans-serif; letter-spacing: .14em; font-weight: 300; }

/* ── FOOTER: tight width matching content, centered ── */
.site-footer {
  padding: 52px 0 44px;
  max-width: 900px; margin: 60px auto 0;
  display: grid; grid-template-columns: 160px 1fr 160px;
  gap: 40px; align-items: start;
}
.footer-logo { text-decoration: none; color: #111; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-logo img { height: 80px; width: auto; object-fit: contain; display: block; }
.footer-logo-name { font-size: 1.1rem; font-weight: 700; }
.footer-copy { font-size: 0.78rem; color: #555; line-height: 2; font-weight: 300; max-width: 320px; }
.footer-copy strong { color: #111; font-weight: 700; display: block; margin-bottom: 2px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; text-align: right; }
.footer-nav a { font-size: 0.88rem; color: #111; text-decoration: none; transition: opacity .2s; font-weight: 400; }
.footer-nav a:hover { opacity: 0.5; }

/* ── BUTTONS ── */
.btn {
  display: inline-block; padding: 14px 44px; background: #111; color: #fff;
  text-decoration: none; font-size: 0.72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; transition: all .2s; border: 1.5px solid #111;
  font-family: 'Outfit', sans-serif; cursor: pointer;
}
.btn:hover { background: #fff; color: #111; }
.btn-outline {
  display: inline-block; padding: 14px 44px; background: transparent; color: #111;
  text-decoration: none; font-size: 0.72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; transition: all .2s; border: 1.5px solid #111;
  font-family: 'Outfit', sans-serif; cursor: pointer;
}
.btn-outline:hover { background: #111; color: #fff; }

/* ── PROJECT PAGE BASE ── */
.drop-cap::first-letter {
  color: #d0d0d0; font-size: 4.2em; font-weight: 800; line-height: .7;
  float: left; margin-right: 8px; margin-top: 6px;
}
.year { color: #bbb; }
.project-meta { margin-top: 20px; font-size: 0.9rem; font-weight: 300; color: #555; }
.project-meta a { color: #555; }
.project-tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.58rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #aaa; border: 1px solid #e0e0e0; padding: 3px 10px;
}
.ig-cta { margin-top: 36px; }
.ig-cta p { font-size: 0.88rem; color: #666; margin-bottom: 10px; font-weight: 300; }
.ig-link {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  color: #111; font-size: 0.85rem; font-weight: 600; transition: opacity .2s;
}
.ig-link:hover { opacity: 0.5; }

/* Animated arrows */
@keyframes nudge-right {
  0%{transform:translateX(0)} 40%{transform:translateX(8px)} 70%{transform:translateX(-3px)} 100%{transform:translateX(0)}
}
@keyframes nudge-left {
  0%{transform:translateX(0)} 40%{transform:translateX(-8px)} 70%{transform:translateX(3px)} 100%{transform:translateX(0)}
}
.pnav-link.prev:hover .pnav-arrow { animation: nudge-left .4s ease; color: #111; }
.pnav-link.next:hover .pnav-arrow { animation: nudge-right .4s ease; color: #111; }

/* ── INSTAGRAM EMBED ── */
.ig-embed-wrap { max-width: 540px; margin: 20px 0; }
.blockquote-instagram { background: #f9f9f9; border: 1px solid #ddd; padding: 20px; font-size: 0.85rem; color: #555; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .site-nav { padding: 12px 20px; }
  .sidebar { display: none; }
  .site-footer { grid-template-columns: 1fr; max-width: 100%; padding: 40px 20px; }
  .footer-nav { text-align: left; }
  .nav-right { gap: 20px; }
  .nav-links { display: none; }
  .nav-hamburger {
    display: flex; flex-direction: column; justify-content: space-between;
    width: 22px; height: 16px; background: none; border: none; cursor: pointer; padding: 0;
  }
  .nav-hamburger span {
    display: block; width: 100%; height: 2px; background: #111;
    transition: transform 0.25s, opacity 0.25s;
  }
  .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mobile-menu {
    display: none; position: fixed; top: 72px; left: 0; right: 0;
    background: #fff; z-index: 999; padding: 24px 20px 32px;
    border-bottom: 1px solid #eee;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .mobile-menu.open { display: block; }
  .mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 0; }
  .mobile-menu ul li a {
    display: block; padding: 14px 0; font-size: 1.2rem; font-weight: 600;
    color: #111; text-decoration: none; border-bottom: 1px solid #f0f0f0;
  }
  .mobile-menu ul li a.active { border-bottom-color: #111; }
}
@media (min-width: 901px) {
  .nav-hamburger { display: none; }
  .mobile-menu { display: none !important; }
}


