/* ──────────────────────────────────────────────────────────
   vijf890 — shared project page styles
   Used by every file in /projects/*.html
   ────────────────────────────────────────────────────────── */

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

:root {
  --bg:     #ffffff;
  --fg:     #0d0d0b;
  --muted:  #8a8880;
  --border: rgba(13,13,11,0.09);
  --nav-h:  72px;
  --px:     48px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Syne', sans-serif; background: var(--bg); color: var(--fg); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

/* ── NAV ── */
#nav {
  position: fixed; inset: 0 0 auto; height: var(--nav-h);
  padding: 0 var(--px);
  display: flex; align-items: center; justify-content: space-between;
  z-index: 300;
  background: var(--bg);
  border-bottom: none;
}
#nav.hero-nav {
  background: transparent;
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
#nav.hero-nav.solid { background: var(--bg); border-color: var(--border); }
#nav.hero-nav .nav-logo { color: #fff; transition: color 0.4s; }
#nav.hero-nav.solid .nav-logo { color: var(--fg); }
#nav.hero-nav .nav-links a { color: rgba(255,255,255,0.65); }
#nav.hero-nav .nav-links a:hover { color: #fff; }
#nav.hero-nav.solid .nav-links a { color: var(--muted); }
#nav.hero-nav.solid .nav-links a:hover { color: var(--fg); }

.nav-logo  { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; color: var(--fg); }
.nav-links { list-style: none; display: flex; gap: 40px; }
.nav-links a { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--fg); }

/* ── FOOTER ── */
footer { padding: 120px var(--px) 80px; }
.f-contact { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.f-social  { font-size: 16px; color: var(--fg); }
.f-social a { color: var(--fg); transition: opacity 0.2s; }
.f-social a:hover { opacity: 0.4; }
.f-address { font-size: 14px; color: var(--fg); line-height: 1.7; padding-top: 32px; padding-bottom: 32px; }
.f-contact a { font-size: 14px; color: var(--fg); transition: opacity 0.2s; }
.f-contact a:hover { opacity: 0.4; }
.f-copy { font-size: 14px; color: var(--muted); padding-top: 40px; }

/* ── CASE STUDY ── */
.cs-cover { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #e5e2dc; }
.cs-cover img { width: 100%; height: 100%; object-fit: cover; }

.cs-header {
  padding: 56px var(--px) 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: start;
}
.cs-title { font-size: clamp(40px, 5vw, 72px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.0; }

.cs-meta       { display: flex; flex-direction: column; padding-top: 8px; }
.cs-meta-row   { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--border); gap: 16px; }
.cs-meta-row:last-child { border-bottom: 1px solid var(--border); }
.cs-meta-label { font-size: 11px; font-weight: 600; color: var(--muted); flex-shrink: 0; }
.cs-meta-value { font-size: 12px; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.cs-meta-value a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border); transition: text-decoration-color 0.2s; }
.cs-meta-value a:hover { text-decoration-color: var(--fg); }

.cs-story      { padding: 64px var(--px); max-width: 66.666%; }
.cs-story p    { font-size: 22px; line-height: 1.55; color: #656360; font-weight: 400; }
.cs-story p + p { margin-top: 1em; }
.cs-story a    { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border); transition: text-decoration-color 0.2s; }
.cs-story a:hover { text-decoration-color: var(--fg); }

/* Galleries — single images and paired (with optional video) */
.cs-img-wrap { overflow: hidden; background: #e5e2dc; }
.cs-img-wrap img,
.cs-img-wrap video { width: 100%; display: block; }

.cs-img-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.cs-img-pair .cs-img-wrap img,
.cs-img-pair .cs-img-wrap video { height: 100%; object-fit: cover; }

/* Credits */
.cs-credits {
  padding: 120px var(--px) 140px;
  border-top: 1px solid var(--border);
  display: grid; grid-template-columns: 200px 1fr; gap: 48px;
  justify-items: end; text-align: right;
}
.cs-credits-label { font-size: 11px; font-weight: 600; color: var(--muted); padding-top: 4px; justify-self: start; text-align: left; }
.cs-credits-body  { font-size: 22px; line-height: 1.55; color: var(--muted); font-weight: 400; }
.cs-credits-body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border); transition: text-decoration-color 0.2s; }
.cs-credits-body a:hover { text-decoration-color: var(--fg); }

/* Articles / press */
.cs-articles       { padding: 0 var(--px) 80px; }
.cs-articles-label { font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 24px; }
.cs-article-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
  color: var(--fg);
  transition: opacity 0.2s;
}
.cs-article-link:last-child { border-bottom: 1px solid var(--border); }
.cs-article-link:hover { opacity: 0.5; }
.cs-article-title  { font-size: 15px; font-weight: 500; }
.cs-article-source { font-size: 12px; color: var(--muted); flex-shrink: 0; margin-left: 24px; }

/* Inter-project nav */
.cs-nav-bar  { border-top: 1px solid var(--border); padding: 0 var(--px); display: flex; justify-content: space-between; }
.cs-nav-link { padding: 28px 0; font-size: 13px; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.cs-nav-link:hover { color: var(--fg); }

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── EASTER EGG ── */
#easter {
  position: fixed; inset: 0;
  background: #000;
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.6s ease;
}
#easter.show { opacity: 1; pointer-events: all; }
#easter.fade-out { opacity: 0; }
#easter-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  :root { --px: 24px; }

  #nav         { padding: 0 24px; }
  .nav-logo    { font-size: 9px; }
  .nav-links   { gap: 20px; }
  .nav-links a { font-size: 9px; }

  .cs-header       { padding: 32px var(--px); grid-template-columns: 1fr; gap: 32px; }
  .cs-story        { padding: 40px var(--px); max-width: 100%; width: 100%; }
  .cs-story p      { font-size: 16px; line-height: 1.7; }
  .cs-img-wrap     { margin: 0 var(--px); }
  .cs-img-pair     { grid-template-columns: 1fr; margin: 0 var(--px); }
  .cs-img-pair .cs-img-wrap { margin: 0; }
  .cs-credits      { padding: 40px var(--px) 48px; grid-template-columns: 1fr; gap: 16px; text-align: left; justify-items: start; }
  .cs-credits-body { font-size: 16px; line-height: 1.7; }

  footer { padding: 80px var(--px) 60px; }
}
