/* ============================================================
   Shadowpoint Media — Shared Stylesheet
   shadowpoint.css
   Applied to all pages. Page-specific styles remain inline.
   ============================================================ */

/* ── CSS Custom Properties ── */
:root {
  --charcoal: #353535;
  --charcoal-deep: #1f1f1f;
  --orange: #BA5727;
  --sage: #7E9A5C;
  --bone: #ECEAE4;
  --sand: #D4D1CA;
  --paper: #F2F0EB;
  --stone: #BFBCB4;
  --ink: #353535;
  --ink-soft: rgba(53,53,53,0.62);
  --line: rgba(53,53,53,0.12);
}

/* ── Reset ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

/* ── Body ── */
body {
  font-family: 'Inter', sans-serif;
  background: var(--bone);
  color: var(--ink);
  font-weight: 300;
  line-height: 1.6;
  text-wrap: pretty;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ── Typography primitives ── */
.serif {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 24, "SOFT" 50;
}
.label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 700ms ease, border-color 700ms ease, padding 500ms ease;
  border-bottom: 1px solid transparent;
}
nav.scrolled, nav.dark {
  background-color: rgba(31,31,31,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(239,232,217,0.08);
  padding: 18px 48px;
}
.wordmark {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 36, "SOFT" 20;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone);
  text-decoration: none;
}
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  color: var(--bone);
  text-decoration: none;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
  transition: color 350ms ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.nav-links a:hover, .nav-links a.active { color: var(--orange); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* ── Footer ── */
footer {
  background: var(--charcoal-deep);
  color: rgba(239,232,217,0.6);
  padding: 80px 48px 40px;
  border-top: 1px solid rgba(239,232,217,0.07);
}
.footer-inner {
  max-width: 1440px;
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
}
.footer-brand .wordmark {
  color: var(--bone);
  font-size: 26px;
  margin-bottom: 22px;
  display: block;
}
.footer-brand .tagline {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 24, "SOFT" 70;
  font-size: 17px;
  font-style: italic;
  max-width: 360px;
  color: rgba(239,232,217,0.72);
  line-height: 1.55;
}
.footer-col h4 { color: var(--orange); margin-bottom: 22px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a, .footer-col span {
  color: rgba(239,232,217,0.62);
  text-decoration: none;
  font-size: 14px;
  transition: color 350ms ease;
}
.footer-col a:hover { color: var(--bone); }
.footer-bottom {
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(239,232,217,0.08);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(239,232,217,0.42);
}

/* ── Shared CTA / link styles ── */
.inquiry-cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  color: var(--bone);
  text-decoration: none;
  border-bottom: 1px solid rgba(239,232,217,0.35);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  transition: border-color 450ms ease, color 450ms ease;
}
.inquiry-cta:hover { color: var(--orange); border-color: var(--orange); }
.inquiry-cta .arrow {
  display: inline-block;
  transition: transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.inquiry-cta:hover .arrow { transform: translateX(12px); }

/* ── Reveal on scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 1300ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 1300ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── Hero load animation ── */
.hero-load {
  opacity: 0;
  transform: translateY(22px);
  animation: heroLoad 1500ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero-load-1 { animation-delay: 200ms; }
.hero-load-2 { animation-delay: 400ms; }
.hero-load-3 { animation-delay: 750ms; }
.hero-load-4 { animation-delay: 1000ms; }
.hero-load-5 { animation-delay: 1300ms; }
.hero-load-6 { animation-delay: 1600ms; }
.hero-load-7 { animation-delay: 1900ms; }
@keyframes heroLoad { to { opacity: 1; transform: translateY(0); } }

/* ── Parallax ── */
.parallax { will-change: transform; }

/* ── Responsive: nav ── */
@media (max-width: 900px) {
  nav { padding: 20px 24px; }
  nav.scrolled, nav.dark { padding: 16px 24px; }
  .nav-links { gap: 22px; }
  .nav-links a { font-size: 10px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .parallax { transform: none !important; }
}

/* ── Mobile hamburger nav ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 0 10px 10px;
  margin-right: -8px;
  position: relative;
  z-index: 201;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--bone);
  transition: transform 300ms ease, opacity 300ms ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 600px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(31,31,31,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    z-index: 200;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 14px;
    letter-spacing: 0.22em;
    color: var(--bone);
  }
}

/* ── Prevent headline overflow on mobile ── */
h1, h2, h3, .hero-headline, .article-title, .manifesto-headline {
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

/* ── Image protection ── */
img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}
