/* =========================================================
   Ben Wild — itsbenwild.com
   Shared visual system (nav, cursor, grain, footer, buttons,
   ticker, animations, mobile, type, motion-fallbacks)
   ========================================================= */

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

:root {
  --cream: #F7F2EA;
  --cream-warm: #EDE5D4;
  --charcoal: #2E2A22;
  --charcoal-deep: #1E1B14;
  --amber: #C4622D;
  --amber-soft: #D67A45;
  --denim: #6B7FA3;
  --tobacco: #8B6645;
  --text-muted: #7A7268;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
  --ease: cubic-bezier(0.7, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
}

/* ---------- FILM GRAIN ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.32'/%3E%3C/svg%3E");
  animation: grainshift 8s steps(6) infinite;
}
@keyframes grainshift {
  0%,100% { transform: translate(0,0); }
  10% { transform: translate(-2%, -3%); }
  20% { transform: translate(-4%, 2%); }
  30% { transform: translate(3%, -4%); }
  40% { transform: translate(-3%, 5%); }
  50% { transform: translate(-5%, 3%); }
  60% { transform: translate(4%, 0); }
  70% { transform: translate(0, -5%); }
  80% { transform: translate(-3%, 4%); }
  90% { transform: translate(2%, 3%); }
}

/* ---------- NAV ---------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  transition: background 0.4s, padding 0.4s;
}
nav.scrolled {
  background: rgba(46, 42, 34, 0.85);
  backdrop-filter: blur(14px) saturate(110%);
  -webkit-backdrop-filter: blur(14px) saturate(110%);
  border-bottom: 1px solid rgba(245,240,232,0.06);
  padding: 1rem 3rem;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  position: relative;
}
.nav-logo::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--amber);
  transition: width 0.4s var(--ease);
}
.nav-logo:hover::after { width: 100%; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; }
.nav-links a {
  color: rgba(245,240,232,0.65);
  text-decoration: none;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--cream); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--amber);
}
.nav-cta { color: var(--amber) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--cream); transition: all 0.3s; }
.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-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(46, 42, 34, 0.98);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.mobile-menu a.mob-cta { color: var(--amber); }

/* ---------- BUTTONS ---------- */
.btn-primary {
  background: var(--amber);
  color: var(--cream);
  border: none;
  padding: 1rem 2.25rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: translateX(-110%);
  transition: transform 0.6s var(--ease);
}
.btn-primary:hover { background: #B05525; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(196,98,45,0.28); }
.btn-primary:hover::before { transform: translateX(110%); }
.btn-primary svg { width: 14px; height: 14px; transition: transform 0.3s; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(245,240,232,0.32);
  padding: 1rem 2.25rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--cream); background: rgba(245,240,232,0.04); }

/* ---------- EYEBROW + RULES ---------- */
.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.eyebrow.with-rule::before,
.eyebrow.with-rule::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--amber);
}

/* ---------- PAGE HERO (about/visuals/contact/here-i-am) ---------- */
.page-hero {
  padding: 11rem 3rem 6rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(245,240,232,0.05);
}
.page-hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.page-hero-eyebrow::before,
.page-hero-eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--amber);
}
.page-hero-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--cream);
  letter-spacing: -0.012em;
  position: relative;
  z-index: 2;
}
.page-hero-title em { font-style: italic; color: var(--amber); font-weight: 900; }
.page-hero-bg {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 48%;
  overflow: hidden;
  z-index: 1;
}
.page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: saturate(0.92) contrast(1.05);
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--charcoal) 0%, transparent 60%);
}
.page-hero-monogram {
  position: absolute;
  bottom: -6rem;
  right: -3rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(16rem, 32vw, 28rem);
  color: rgba(247, 242, 234, 0.05);
  line-height: 0.85;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  letter-spacing: -0.04em;
}

/* ---------- TICKER ---------- */
.ticker {
  background: var(--cream);
  color: var(--charcoal);
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(46,42,34,0.08);
  border-bottom: 1px solid rgba(46,42,34,0.08);
}
.ticker-track {
  display: flex;
  padding: 1.4rem 0;
  animation: tickermove 38s linear infinite;
  width: max-content;
  will-change: transform;
}
.ticker span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  letter-spacing: -0.005em;
  white-space: nowrap;
  color: var(--charcoal);
  padding-right: 2rem;
}
.ticker .dot { color: var(--amber); font-style: normal; font-weight: 700; }
@keyframes tickermove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- KINETIC BAND ---------- */
.kinetic-band {
  background: var(--charcoal-deep);
  overflow: hidden;
  padding: 4rem 0;
  position: relative;
  border-top: 1px solid rgba(245,240,232,0.04);
  border-bottom: 1px solid rgba(245,240,232,0.04);
}
.kinetic-track {
  display: flex;
  animation: kineticmove 28s linear infinite;
  width: max-content;
  align-items: center;
  will-change: transform;
}
.kinetic-track span {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.018em;
  color: rgba(245,240,232,0.08);
  white-space: nowrap;
  padding-right: 3rem;
}
.kinetic-track span.fill { color: rgba(196,98,45,0.55); font-weight: 700; }
.kinetic-track span.outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(245,240,232,0.32);
}
@keyframes kineticmove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- CTA STRIP ---------- */
.cta-strip {
  background: var(--cream);
  color: var(--charcoal);
  padding: 6rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: 'Wild';
  position: absolute;
  bottom: -3rem;
  right: -1rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 900;
  font-size: 16rem;
  color: rgba(46,42,34,0.03);
  pointer-events: none;
  line-height: 1;
}
.cta-strip > * { position: relative; z-index: 1; }
.cta-strip h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.cta-strip h2 em { font-style: italic; color: var(--tobacco); font-weight: 700; }
.cta-strip p {
  font-size: 0.95rem;
  color: #6A5F56;
  margin-top: 0.6rem;
  max-width: 460px;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--charcoal-deep);
  padding: 4rem 3rem 3rem;
  border-top: 1px solid rgba(245,240,232,0.05);
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand-logo {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  color: var(--cream);
  margin-bottom: 0.6rem;
}
.footer-brand-tag {
  font-size: 0.85rem;
  color: rgba(245,240,232,0.4);
  line-height: 1.7;
  max-width: 360px;
}
.footer-col h4 {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a {
  font-size: 0.85rem;
  color: rgba(245,240,232,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--cream); }
.footer-base {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(245,240,232,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-size: 0.7rem;
  color: rgba(245,240,232,0.25);
  letter-spacing: 0.06em;
}

/* ---------- ANIMATIONS ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ---------- MOBILE ---------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  nav { padding: 1.25rem 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .page-hero { padding: 8rem 1.5rem 4rem; }
  .page-hero-bg { display: none; }
  .ticker span { font-size: 1.1rem; }
  .cta-strip { padding: 3rem 1.5rem; flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  footer { padding: 3rem 1.5rem 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
