/* ============================================================
   SHAMS & PEPPER — Shared Stylesheet
   Primary: CrimsonBrand (local) / Crimson Text (Google)
   Secondary: Jost (Google)
   Design language: restrained, small-scale, NO italics.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600&family=Jost:wght@300;400;500&display=swap');

@font-face {
  font-family: 'CrimsonBrand';
  src: url('Crimson.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ============================================================ VARIABLES */
:root {
  --f-d: 'CrimsonBrand', 'Crimson Text', Georgia, serif;
  --f-b: 'Jost', system-ui, sans-serif;
  --cream:    #FAEECF;
  --cream-lt: #FFF8EA;
  --crimson:  #8B1920;
  --burgundy: #4B201D;
  --olive:    #84794D;
  --text:     #2A1410;
  --ease:     cubic-bezier(.4,0,.1,1);
}

/* ============================================================ RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-b);
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { display: block; }
a { color: inherit; }

/* No italics anywhere — enforce */
em, i, blockquote, cite { font-style: normal; }

/* ============================================================ TYPOGRAPHY HELPERS */
.t-serif {
  font-family: var(--f-d);
  font-weight: 400;
}
/* Small uppercase label */
.t-label {
  font-family: var(--f-b);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
}

/* ============================================================ NAV */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  padding: 26px 56px;
  display: flex; justify-content: space-between; align-items: center;
  transition: background .5s ease, padding .4s ease, box-shadow .5s ease;
}
/* readability gradient under the navbar before scroll (over the video hero) */
#nav::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 160px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(8,3,2,.55) 0%, rgba(8,3,2,.28) 45%, transparent 100%);
  transition: opacity .5s ease;
}
#nav.scrolled::before { opacity: 0; }
#nav.dark .nav-logo { filter: brightness(0) invert(1); }
#nav.scrolled {
  background: rgba(250,238,207,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 56px;
  box-shadow: 0 1px 0 rgba(75,32,29,.07);
}
#nav.scrolled .nav-logo { filter: none; }
#nav.scrolled .nav-link { color: var(--burgundy); }

.nav-logo { height: 30px; transition: filter .4s, height .4s; }
#nav.scrolled .nav-logo { height: 26px; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-link {
  text-decoration: none;
  font-family: var(--f-b);
  font-size: 10px; font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(250,238,207,.85);
  transition: color .3s, opacity .3s;
}
.nav-link:hover { opacity: .6; }
.nav-link.active { color: var(--crimson); }
.nav-cta {
  background: rgba(255,255,255,.12) !important;
  border: 1px solid rgba(255,255,255,.32) !important;
  color: #fff !important;
  padding: 8px 20px;
  transition: background .3s, border-color .3s !important;
}
.nav-cta:hover { background: rgba(255,255,255,.22) !important; }
#nav.scrolled .nav-cta {
  background: var(--crimson) !important;
  border-color: var(--crimson) !important;
  color: #fff !important;
}

/* ============================================================ MARQUEE */
.marquee-strip {
  background: var(--burgundy);
  padding: 15px 0; overflow: hidden; white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  animation: marqueeRoll 42s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marqueeRoll { to { transform: translateX(-50%); } }
.m-item {
  font-family: var(--f-b);
  font-size: 11px; font-weight: 400;
  letter-spacing: .26em; text-transform: uppercase;
  color: rgba(250,238,207,.7);
  padding: 0 26px;
  display: inline-flex; align-items: center; gap: 26px;
}
.m-dot {
  display: inline-block;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--crimson); flex-shrink: 0;
}

/* ============================================================ BUTTONS */
.btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--crimson); color: #fff;
  text-decoration: none;
  font-family: var(--f-b);
  font-size: 10px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  padding: 14px 30px;
  transition: background .35s;
}
.btn-primary:hover { background: var(--burgundy); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  color: rgba(250,238,207,.6); text-decoration: none;
  font-family: var(--f-b);
  font-size: 10px; font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase;
  transition: color .3s, gap .3s;
}
.btn-ghost:hover { color: #fff; gap: 18px; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid rgba(75,32,29,.25);
  color: var(--burgundy);
  padding: 12px 28px;
  text-decoration: none;
  font-family: var(--f-b);
  font-size: 10px; font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase;
  transition: border-color .3s, color .3s, gap .3s;
}
.btn-outline:hover { border-color: var(--crimson); color: var(--crimson); gap: 18px; }

.btn-outline-cream {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid rgba(250,238,207,.28);
  color: rgba(250,238,207,.72);
  padding: 12px 28px;
  text-decoration: none;
  font-family: var(--f-b);
  font-size: 10px; font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase;
  transition: border-color .3s, color .3s, gap .3s;
}
.btn-outline-cream:hover { border-color: rgba(250,238,207,.7); color: var(--cream); gap: 18px; }

.arrow { width: 15px; height: 7px; flex-shrink: 0; }

/* ============================================================ PAGE HERO — PHOTO VARIANT */
.page-hero.has-photo { background: #2a110d; }
.page-hero.has-photo .page-hero-bg { display: none; }
.page-hero-photo {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.page-hero-photo-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to right, rgba(34,11,8,.86) 0%, rgba(34,11,8,.55) 48%, rgba(34,11,8,.2) 100%),
    linear-gradient(to top, rgba(34,11,8,.6) 0%, transparent 45%);
}
.page-hero.has-photo .page-hero-inner { position: relative; z-index: 2; }

/* ============================================================ SECTION CHROME */
.section-label {
  font-family: var(--f-b);
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--crimson); display: block; margin-bottom: 18px;
}
.section-title {
  font-family: var(--f-d);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 400; line-height: 1.2;
  letter-spacing: .01em;
  color: var(--burgundy);
}

/* ============================================================ FOOTER */
footer {
  background: var(--burgundy);
  padding: 72px 56px 40px;
  position: relative; overflow: hidden;
}
.ft-amp {
  position: absolute; right: 2%; bottom: -8%;
  font-family: var(--f-d);
  font-size: clamp(160px, 22vw, 300px);
  color: rgba(139,25,32,.06); line-height: .8;
  user-select: none; pointer-events: none;
}
.ft-main {
  position: relative;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 54px;
  border-bottom: 1px solid rgba(250,238,207,.09);
  margin-bottom: 26px;
}
.ft-brand { max-width: 300px; }
.ft-logo {
  height: 18px; filter: brightness(0) invert(1);
  opacity: .72; display: block; margin-bottom: 18px;
}
.ft-strapline {
  font-family: var(--f-d);
  font-size: 15px; font-weight: 400;
  letter-spacing: .04em;
  color: rgba(250,238,207,.42); margin-bottom: 18px;
}
.ft-about {
  font-family: var(--f-b);
  font-size: 13px; font-weight: 300; line-height: 1.8;
  color: rgba(250,238,207,.38);
}
.ft-cols { display: flex; gap: 64px; }
.ft-col h4 {
  font-family: var(--f-b);
  font-size: 10px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--crimson); margin-bottom: 22px;
}
.ft-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ft-col a {
  text-decoration: none;
  font-family: var(--f-b);
  font-size: 13px; font-weight: 300;
  color: rgba(250,238,207,.48);
  transition: color .3s;
}
.ft-col a:hover { color: var(--cream); }
.ft-bottom {
  position: relative;
  display: flex; justify-content: space-between; align-items: center;
}
.ft-copy { font-family: var(--f-b); font-size: 10px; font-weight: 300; color: rgba(250,238,207,.22); }
.ft-origin {
  font-family: var(--f-b); font-size: 10px; font-weight: 300;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(250,238,207,.22);
}

/* ============================================================ REVEAL */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .4s; }
.reveal.in { opacity: 1; transform: none; }

.reveal-left {
  opacity: 0; transform: translateX(-26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal-left.in { opacity: 1; transform: none; }

.reveal-right {
  opacity: 0; transform: translateX(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal-right.in { opacity: 1; transform: none; }

/* ============================================================ CHAPTER SPLIT (story page) */
.chapter {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 540px;
}
.chapter.flip .ch-photo { order: -1; }
.ch-photo { position: relative; overflow: hidden; }
.ch-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 9s ease;
}
.ch-photo:hover img { transform: scale(1.04); }
.ch-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 64px;
  background: var(--cream);
}
.ch-tag {
  font-family: var(--f-b);
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--crimson); display: block; margin-bottom: 18px;
}
.ch-heading {
  font-family: var(--f-d);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 400; color: var(--burgundy);
  line-height: 1.25; margin-bottom: 22px; letter-spacing: .01em;
}
.ch-body {
  font-family: var(--f-b);
  font-size: 14px; font-weight: 300; line-height: 1.95;
  color: var(--text); opacity: .72;
}
.ch-body p + p { margin-top: 16px; }

/* ============================================================ ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes floatJar {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-14px); }
}

/* ============================================================ RESPONSIVE */
@media (max-width: 960px) {
  #nav, #nav.scrolled { padding: 16px 22px; }
  .nav-links li:not(:last-child) { display: none; }

  .chapter { grid-template-columns: 1fr; }
  .chapter.flip .ch-photo { order: 0; }
  .ch-photo { min-height: 300px; }
  .ch-text { padding: 48px 22px; }

  .ft-main { flex-direction: column; gap: 44px; }
  .ft-cols { gap: 40px; flex-wrap: wrap; }
  footer { padding: 56px 22px 32px; }
}
