/* ─────────────────────────────────────────
   THE INFLUENCE — Shared Stylesheet
   ───────────────────────────────────────── */

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

:root {
  --black:        #0a0a0a;
  --black-2:      #0f0f0f;
  --black-3:      #141414;
  --white:        #f8f6f2;
  --accent:       #c9a96e;
  --accent-light: #e8d5b0;
  --gray-dark:    #1a1a1a;
  --gray-mid:     #888;
  --gray-light:   #d4d0c8;
  --font-display: 'Playfair Display', serif;
  --font-ui:      'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
  --container:    1240px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ─── UTILITY ─── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 40px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 24px 40px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(10,10,10,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 16px 40px;
  border-bottom-color: rgba(201,169,110,0.12);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 26px; width: auto; filter: invert(1); }

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248,246,242,0.55);
  text-decoration: none;
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.active::after, .nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  font-family: var(--font-ui); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--black); background: var(--accent);
  padding: 10px 22px; border-radius: 2px; text-decoration: none;
  transition: background 0.25s, transform 0.25s;
}
.nav-cta:hover { background: var(--accent-light); transform: translateY(-1px); }

/* hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 1.5px; background: var(--white); transition: all 0.3s var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* mobile nav drawer */
.nav-drawer {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: rgba(10,10,10,0.97); backdrop-filter: blur(12px);
  flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  color: rgba(248,246,242,0.6); text-decoration: none; letter-spacing: -0.02em;
  transition: color 0.2s;
}
.nav-drawer a:hover { color: var(--accent); }

/* ─── PAGE HERO ─── */
.page-hero {
  padding: 160px 0 80px;
  position: relative; overflow: hidden;
  background: var(--black);
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(201,169,110,0.06) 0%, transparent 70%);
}
.page-hero-grid {
  position: absolute; inset: 0; opacity: 0.03;
  background-image: linear-gradient(rgba(248,246,242,0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(248,246,242,0.5) 1px, transparent 1px);
  background-size: 80px 80px;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-eyebrow {
  font-family: var(--font-ui); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 20px; display: flex; align-items: center; gap: 14px;
}
.page-eyebrow::before { content: ''; display: block; width: 32px; height: 1px; background: var(--accent); }
.page-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900; line-height: 0.95; letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.page-title em { font-style: italic; color: transparent; -webkit-text-stroke: 1px var(--accent); }
.page-subtitle {
  font-family: var(--font-ui); font-size: 1rem;
  color: rgba(248,246,242,0.5); max-width: 520px; line-height: 1.7;
}

/* ─── SECTION BASE ─── */
section { padding: 100px 0; }
.section-label {
  font-family: var(--font-ui); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 700;
  line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 20px;
}
.section-body {
  font-size: 1rem; line-height: 1.8; color: rgba(248,246,242,0.6); max-width: 600px;
}

/* ─── MARQUEE ─── */
.marquee-wrap {
  border-top: 1px solid rgba(248,246,242,0.06); border-bottom: 1px solid rgba(248,246,242,0.06);
  overflow: hidden; padding: 16px 0; background: rgba(201,169,110,0.02);
}
.marquee-track { display: flex; gap: 56px; white-space: nowrap; animation: marquee 24s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee-item {
  font-family: var(--font-ui); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: rgba(248,246,242,0.25);
  display: flex; align-items: center; gap: 56px;
}
.marquee-item::after { content: '✦'; color: var(--accent); font-size: 0.45rem; }

/* ─── BUTTONS ─── */
.btn-primary {
  font-family: var(--font-ui); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--black); background: var(--accent);
  padding: 14px 32px; border-radius: 2px; text-decoration: none;
  display: inline-block; transition: all 0.3s var(--ease);
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(201,169,110,0.25); }

.btn-outline {
  font-family: var(--font-ui); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--white); border: 1px solid rgba(248,246,242,0.2);
  padding: 14px 32px; border-radius: 2px; text-decoration: none;
  display: inline-block; transition: all 0.3s var(--ease);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ─── CARDS ─── */
.card {
  background: var(--gray-dark); border: 1px solid rgba(201,169,110,0.1);
  border-radius: 3px; padding: 40px; position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.card:hover { border-color: rgba(201,169,110,0.25); transform: translateY(-4px); }
.card:hover::before { transform: scaleX(1); }

/* ─── FORM ─── */
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
label { font-family: var(--font-ui); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray-mid); }
input, textarea, select {
  background: rgba(248,246,242,0.04); border: 1px solid rgba(248,246,242,0.1); border-radius: 2px;
  padding: 13px 16px; font-family: var(--font-body); font-size: 0.9rem; color: var(--white); outline: none;
  transition: border-color 0.25s, background 0.25s; width: 100%;
}
input::placeholder, textarea::placeholder { color: rgba(248,246,242,0.22); }
input:focus, textarea:focus { border-color: var(--accent); background: rgba(201,169,110,0.04); }
textarea { resize: vertical; min-height: 130px; }
.form-submit {
  font-family: var(--font-ui); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--black); background: var(--accent); border: none;
  padding: 15px 32px; border-radius: 2px; cursor: pointer; width: 100%; margin-top: 4px;
  transition: all 0.3s var(--ease);
}
.form-submit:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(201,169,110,0.2); }

/* ─── DIVIDER ─── */
.divider { border: none; border-top: 1px solid rgba(248,246,242,0.07); margin: 0; }

/* ─── INSTAGRAM FILM STRIP ─── */
.instagram-section {
  padding: 80px 0 0;
  background: var(--black);
  border-top: 1px solid rgba(248,246,242,0.07);
}
.instagram-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding-bottom: 40px;
}
.instagram-handle {
  font-family: var(--font-display); font-size: 0.85rem; font-style: italic;
  color: var(--gray-mid); margin-bottom: 8px;
}
.instagram-title {
  font-family: var(--font-display); font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700; letter-spacing: -0.02em;
}
.instagram-link {
  font-family: var(--font-ui); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); text-decoration: none;
  display: flex; align-items: center; gap: 8px;
  transition: gap 0.2s var(--ease);
}
.instagram-link:hover { gap: 14px; }

/* Film Strip */
.film-strip-outer {
  position: relative;
  background: #050505;
  overflow: hidden;
}
/* Sprocket holes — top and bottom */
.film-strip-outer::before,
.film-strip-outer::after {
  content: '';
  position: absolute; left: 0; right: 0; z-index: 10;
  height: 22px;
  background: repeating-linear-gradient(
    to right,
    #050505 0px, #050505 10px,
    rgba(201,169,110,0.18) 10px, rgba(201,169,110,0.18) 24px,
    #050505 24px, #050505 34px
  );
}
.film-strip-outer::before { top: 0; }
.film-strip-outer::after  { bottom: 0; }

.film-strip-track {
  display: flex;
  padding: 28px 0;
  gap: 4px;
  animation: filmScroll 120s linear infinite;
  width: max-content;
}
.film-strip-track:hover { animation-play-state: paused; }
@keyframes filmScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.film-frame {
  position: relative;
  width: 200px; height: 200px;
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
}
.film-frame img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease), filter 0.3s;
  filter: grayscale(20%) brightness(0.85);
}
.film-frame:hover img { transform: scale(1.06); filter: grayscale(0%) brightness(1); }
.film-frame-overlay {
  position: absolute; inset: 0;
  background: rgba(10,10,10,0);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
}
.film-frame:hover .film-frame-overlay { background: rgba(10,10,10,0.35); }
.film-frame-overlay svg { opacity: 0; transform: scale(0.8); transition: all 0.3s var(--ease); }
.film-frame:hover .film-frame-overlay svg { opacity: 1; transform: scale(1); }

/* Placeholder cells (no image) */
.film-frame-placeholder {
  width: 200px; height: 200px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.film-frame-placeholder::after {
  content: '';
  position: absolute; inset: 0;
  opacity: 0.04;
  background-image: linear-gradient(rgba(201,169,110,0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(201,169,110,0.5) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid rgba(248,246,242,0.07);
  padding: 40px 0;
  background: var(--black);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.footer-logo { display: flex; align-items: center; text-decoration: none; opacity: 0.45; transition: opacity 0.2s; }
.footer-logo:hover { opacity: 0.8; }
.footer-logo img { height: 44px; width: auto; filter: invert(1); }
.footer-copy { font-family: var(--font-ui); font-size: 0.7rem; color: rgba(248,246,242,0.2); letter-spacing: 0.05em; }
.footer-links { display: flex; gap: 28px; list-style: none; }
.footer-links a {
  font-family: var(--font-ui); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(248,246,242,0.28); text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* ─── FADE-UP ANIMATION ─── */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }

/* ─── SHARED RESPONSIVE ─── */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  nav { padding: 20px 24px; }
  nav.scrolled { padding: 14px 24px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 70px 0; }
  .page-hero { padding: 120px 0 60px; }
  .instagram-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .film-frame, .film-frame-placeholder { width: 160px; height: 160px; }
}
