/* ============================================
   4951 Studios — Cinematic Design System
   Shared base styles for all pages
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,700;1,9..144,300;1,9..144,400&family=Nunito:wght@300;400;500;600;700&display=swap');

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

:root {
  --orange: #E8530A;
  --orange-dark: #A33200;
  --black: #080808;
  --surface: #111111;
  --surface-2: #181818;
  --border: rgba(255,255,255,0.08);
  --white: #F8F6F2;
  --muted: rgba(248,246,242,0.45);
  --muted-2: rgba(248,246,242,0.25);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) both; }
.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.38s; }
.delay-4 { animation-delay: 0.52s; }

/* ---- NAVIGATION ---- */
.cin-nav,
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 60px;
  transition: background 0.3s, backdrop-filter 0.3s;
}
.cin-nav.scrolled,
.nav.scrolled {
  background: rgba(8,8,8,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.cin-nav-logo img,
.nav-logo img {
  height: 32px; width: auto;
}
.cin-nav-links,
.nav-links { display: flex; gap: 40px; list-style: none; }
.cin-nav-links a,
.nav-links a {
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted);
  text-decoration: none; transition: color 0.2s;
}
.cin-nav-links a:hover,
.cin-nav-links a.active,
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.cin-nav-cta,
.nav-cta {
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--white);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 10px 24px; transition: all 0.25s;
}
.cin-nav-cta:hover,
.nav-cta:hover { background: var(--orange); border-color: var(--orange); }

/* ---- PAGE HERO (inner pages) ---- */
.cin-page-hero {
  min-height: 52vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 160px 60px 80px;
  position: relative; overflow: hidden;
}
.cin-page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.cin-page-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(8,8,8,0.3) 0%, rgba(8,8,8,0.92) 100%);
}
.cin-page-hero-plain {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--surface) 0%, var(--black) 100%);
}
.cin-hero-breadcrumb {
  position: relative; z-index: 1;
  font-size: 11px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.cin-hero-breadcrumb::before { content: ''; width: 24px; height: 1px; background: var(--orange); }
.cin-page-hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(48px, 6vw, 96px);
  font-weight: 300; line-height: 0.95;
  letter-spacing: -2px;
  position: relative; z-index: 1;
  max-width: 800px;
}
.cin-page-hero h1 em { font-style: italic; color: var(--orange); }
.cin-hero-sub {
  font-size: 17px; line-height: 1.75;
  color: var(--muted); max-width: 560px;
  margin-top: 24px;
  position: relative; z-index: 1;
}

/* ---- SECTION WRAPPER ---- */
.cin-section { padding: 100px 60px; }
.cin-section-sm { padding: 60px 60px; }
.cin-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 12px;
}
.cin-section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 300; letter-spacing: -1px;
  line-height: 1.05; margin-bottom: 40px;
}
.cin-section-title em { font-style: italic; color: var(--orange); }

/* ---- DIVIDER ---- */
.cin-divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ---- PROJECT GRID (service pages) ---- */
.cin-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.cin-project-grid.two-col { grid-template-columns: repeat(2, 1fr); }
.cin-project-item {
  position: relative; overflow: hidden; cursor: pointer;
  aspect-ratio: 4/3;
}
.cin-project-item:first-child.featured {
  grid-column: span 2;
  aspect-ratio: 16/7;
}
.cin-project-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s ease, filter 0.4s;
  filter: brightness(0.7) saturate(0.85);
}
.cin-project-item:hover .cin-project-img {
  transform: scale(1.05);
  filter: brightness(0.85) saturate(1);
}
.cin-project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.85) 0%, transparent 55%);
  padding: 28px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.cin-project-cat {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--orange); margin-bottom: 6px;
}
.cin-project-title {
  font-family: 'Fraunces', serif;
  font-size: 18px; font-weight: 300; color: white; line-height: 1.25;
}
.cin-project-arrow {
  position: absolute; top: 20px; right: 20px;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 16px;
  opacity: 0; transition: opacity 0.3s;
}
.cin-project-item:hover .cin-project-arrow { opacity: 1; }

/* ---- CTA BAND ---- */
.cin-cta {
  position: relative; overflow: hidden;
  padding: 100px 60px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  display: flex; justify-content: space-between; align-items: center; gap: 60px;
}
.cin-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.cin-cta-text { position: relative; z-index: 1; max-width: 600px; }
.cin-cta-text h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 300; line-height: 1.05;
  letter-spacing: -1.5px; color: white; margin-bottom: 16px;
}
.cin-cta-text h2 em { font-style: italic; }
.cin-cta-text p { font-size: 16px; color: rgba(255,255,255,0.75); line-height: 1.7; }
.cin-cta-actions { position: relative; z-index: 1; display: flex; gap: 16px; align-items: center; flex-shrink: 0; }
.btn-white {
  background: white; color: var(--orange);
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 15px 36px;
  text-decoration: none; transition: opacity 0.2s; white-space: nowrap;
}
.btn-white:hover { opacity: 0.9; }
.btn-ghost-white {
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,0.65);
  text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 2px; transition: color 0.2s; white-space: nowrap;
}
.btn-ghost-white:hover { color: white; }

/* ---- FOOTER ---- */
.cin-footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 60px 60px 40px;
}
.cin-footer-top {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 60px; margin-bottom: 60px;
}
.cin-footer-logo img {
  height: 28px; width: auto;
  margin-bottom: 16px; display: block;
}
.cin-footer-tagline { font-size: 13px; color: var(--muted); line-height: 1.6; max-width: 200px; }
.cin-footer-col h4 {
  font-size: 10px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 20px;
}
.cin-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cin-footer-col ul a {
  font-size: 14px; color: var(--muted);
  text-decoration: none; transition: color 0.2s;
}
.cin-footer-col ul a:hover { color: var(--white); }
.cin-footer-social { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.cin-footer-social a {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.cin-footer-social a:hover { border-color: var(--orange); background: var(--orange); }
.cin-footer-social img { width: 16px; height: 16px; filter: brightness(0) invert(1); }
.cin-footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.cin-footer-bottom p { font-size: 12px; color: var(--muted-2); }
.cin-footer-bottom a { font-size: 12px; color: var(--muted-2); text-decoration: none; transition: color 0.2s; }
.cin-footer-bottom a:hover { color: var(--orange); }

/* ---- UTILITIES ---- */
.cin-prose {
  font-size: 17px; line-height: 1.8;
  color: var(--muted); max-width: 700px;
}
.cin-prose p { margin-bottom: 20px; }
.cin-prose strong { color: var(--white); font-weight: 600; }

/* Nav scroll behavior */
