/* ── SHARED DESIGN TOKENS + BASE STYLES ──────────────────
   Used by both styles.css (index.html) and project_style.css
   (all 5 project pages). Loaded before the page-specific
   stylesheet in every HTML file's <head>. ── */

:root {
  --accent-gold: #b3a08f;
  --accent-silver: #c9c2b8;
  --bg-deep: #070605;
  --bg-mid: #0e0c0a;
  --text-primary: #d9d0c3;
  --text-muted: #8a8078;
  --border-ornate: #35302a;
  --font-display: 'Cinzel Decorative', serif;
  --font-heading: 'Cinzel', serif;
  --font-body: 'EB Garamond', serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: crosshair;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* Nav starts as a soft gradient scrim over the hero image, then switches
   to a solid backing once the hero scrolls out from behind it — the
   gradient alone isn't opaque enough to keep page content from bleeding
   through and clashing with the nav text past that point. */
nav:not(.project-nav) {
  transition: background 0.3s ease;
}
nav:not(.project-nav).nav-solid {
  background: rgba(7,6,5,0.96) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.ornate-divider::before,
.ornate-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-gold), transparent);
}

footer {
  padding: 40px 60px;
  border-top: 1px solid var(--border-ornate);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-email {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-email:hover { color: var(--accent-gold); }

.footer-social {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.footer-social a {
  display: block;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-social a:hover { color: var(--accent-gold); }

.footer-social svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes goldShimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* NAV LOGO — gold shimmer sweep, using the site's own palette
   (accent-gold / text-primary / accent-silver). Shared by index.html
   and every project page. */
.nav-logo span {
  background: linear-gradient(
    90deg,
    var(--accent-gold) 0%,
    var(--text-primary) 40%,
    var(--accent-gold) 60%,
    var(--accent-silver) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 4s linear infinite;
}

@keyframes glyphSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Used on both index.html and every project page — kept here instead of
   duplicated per-stylesheet. */
.ornate-divider-glyph {
  background-color: var(--accent-gold);
  -webkit-mask-image: url("/imgs/DesignElements/Cross.png");
  mask-image: url("/imgs/DesignElements/Cross.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  font-size: 11px;
  opacity: 0.8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4em;
  height: 1.4em;
  animation: glyphSpin 12s linear infinite;
}

@keyframes shimmerSweep {
  0%   { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(300%) skewX(-15deg); }
}

@media (max-width: 900px) {
  /* Custom cursor is a desktop-mouse effect; there's no persistent
     pointer position on touch, so it's just visual clutter here. */
  .cursor-dot, .cursor-ring { display: none; }

  footer { flex-direction: column; gap: 12px; text-align: center; }
}
