/* ============================================================
   BASE — shared across every page of the site.
   Reset, color/type tokens, nav, preloader, scroll-hint, and
   the common button style. Page-specific layout (showreel,
   about photo, window-manager canvas, etc) lives in each
   page's own stylesheet, which loads after this one.
   ============================================================ */

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

:root {
  --bg: #0a0a0a;
  --fg: #f4f4f0;
  --fg-muted: rgba(244, 244, 240, 0.55);
  --fg-faint: rgba(244, 244, 240, 0.3);
  --border-soft: rgba(244, 244, 240, 0.12);
  --border-mid: rgba(244, 244, 240, 0.25);
  --font-sans: 'Helvetica Neue', Arial, sans-serif;
}

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
}

/* ---------- PRELOADER ---------- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

#preloader .pct { font-size: 14px; letter-spacing: 0.1em; color: #888; }

#preloader .bar-track {
  width: 200px; height: 1px; background: #333; position: relative;
}

#preloader .bar-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: var(--fg);
}

/* ---------- NAV ---------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  mix-blend-mode: difference;
}

nav .logo { font-weight: 600; color: #fff; text-decoration: none; font-size: 20px; }
nav .links { display: flex; gap: 32px; }
nav .links a { color: #fff; text-decoration: none; opacity: 0.7; transition: opacity 0.2s; }
nav .links a:hover { opacity: 1; }
nav .links a.current { opacity: 1; }

/* ---------- SCROLL HINT ---------- */
.scroll-hint {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-hint .line { width: 1px; height: 24px; background: rgba(244, 244, 240, 0.4); }

/* ---------- SHARED BUTTON ---------- */
/* used for "view full portfolio", "take a look", contact links, etc
   wherever a pill-shaped CTA is needed */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--fg);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 999px;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* outline variant — used for category pills, secondary actions */
.btn-outline {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1px solid var(--border-mid);
  color: var(--fg);
  font-size: 13px;
  letter-spacing: 0.05em;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn-outline:hover { border-color: rgba(244, 244, 240, 0.6); }

.btn-outline.active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* ---------- FOOTER / CONTACT BLOCK ---------- */
/* shared closing pattern used at the bottom of every page */
footer.site-footer {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
  padding: 80px 24px;
}

footer.site-footer .big { font-size: clamp(32px, 5vw, 56px); font-weight: 600; }

footer.site-footer .contact-link {
  font-size: 16px;
  color: var(--fg-muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 244, 240, 0.3);
  padding-bottom: 4px;
}
