:root {
  --ink: #000000;
  --cream: #f4ece0;
  --cream-dim: #d8cab8;
  --muted: #9a8c7c;
  --accent: #d8923f;
  --accent-hot: #f2b264;
  --accent-dim: #b8783a;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

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

html, body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #000; }

/* ---------- Loader ---------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-brand {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: 0.18em;
  color: var(--cream);
}
.loader-brand span { color: var(--accent); }
#loader-track {
  width: min(260px, 60vw);
  height: 2px;
  background: rgba(216, 146, 63, 0.18);
  overflow: hidden;
}
#loader-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.2s ease;
}
#loader-percent {
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  color: var(--muted);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.7rem 5vw;
  mix-blend-mode: difference;
}
.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header .logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  color: #fff;
}
.site-header .logo span { color: #fff; opacity: 0.6; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}
.nav-links a {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.nav-links a:hover { opacity: 1; }
.nav-links .nav-cta {
  padding: 0.55rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 100px;
}

/* ---------- Hero ---------- */
.hero-standalone {
  position: relative;
  height: 100vh;
  background: #000;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 5vw;
  overflow: hidden;
}
.hero-standalone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 56%, rgba(216, 146, 63, 0.10), transparent 55%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-standalone .section-label { margin-bottom: 1.8rem; }
.hero-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(4rem, 14vw, 13rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.hero-heading .line { display: block; overflow: hidden; }
.hero-heading .line > span { display: inline-block; }
.hero-heading .accent { color: var(--accent); font-style: italic; }
.hero-tagline {
  margin-top: 2rem;
  font-size: clamp(0.95rem, 1.4vw, 1.18rem);
  font-weight: 300;
  color: var(--cream-dim);
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.scroll-indicator {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-indicator .arrow {
  font-size: 1rem;
  color: var(--accent);
  animation: arrowBob 1.8s ease-in-out infinite;
}
@keyframes arrowBob {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ---------- Canvas (pure-black fill, slides horizontally) ---------- */
.canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 10;
  clip-path: circle(0% at 50% 50%);
  will-change: transform, clip-path;
}
/* contrast crushes the video's charcoal background down to true #000 (so it
   blends into the page) while keeping the bright product punchy */
#canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  filter: contrast(1.32) brightness(1.05) saturate(1.05);
}

/* ---------- Dark overlay ---------- */
#dark-overlay {
  position: fixed;
  inset: 0;
  z-index: 15;
  background: #000;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Marquee (faint copper type drifting behind content) ---------- */
.marquee-wrap {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 12;
  width: 100%;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0.13;
}
.marquee-text {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 13vw;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--accent);
  white-space: nowrap;
  padding-left: 4vw;
}

/* ---------- Scroll container & sections ---------- */
#scroll-container {
  position: relative;
  height: 900vh;
  z-index: 20;
}
.scroll-section {
  position: absolute;
  left: 0; right: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
}
.section-inner { max-width: 38vw; }

.align-left { justify-content: flex-start; padding: 0 52vw 0 6vw; text-align: left; }
.align-right { justify-content: flex-end; padding: 0 6vw 0 52vw; text-align: right; }
.align-center { justify-content: center; padding: 0 6vw; text-align: center; }
.align-center .section-inner { max-width: none; }

.section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.section-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.2vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 1.5rem;
}
.section-body {
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.7;
  color: var(--cream-dim);
  font-weight: 300;
  max-width: 42ch;
}
.align-right .section-body { margin-left: auto; }
.align-center .section-body { margin-left: auto; margin-right: auto; }

/* Legibility over the brighter packshot / cup frames */
.section-label, .section-heading, .section-body {
  text-shadow: 0 2px 50px rgba(0, 0, 0, 0.85);
}

/* ---------- Stats ---------- */
.section-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6vw;
  text-align: center;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3vw;
  max-width: 1100px;
  width: 100%;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-row { display: flex; align-items: baseline; gap: 0.04em; }
.stat-number {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.2rem, 6.5vw, 6rem);
  line-height: 1;
  color: var(--cream);
}
.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2.4rem);
  color: var(--accent);
}
.stat-label {
  margin-top: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- CTA ---------- */
.cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.4rem;
  flex-wrap: wrap;
}
.cta-button {
  display: inline-block;
  padding: 1.05rem 2.6rem;
  background: var(--accent);
  color: #1a0f05;
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.cta-button:hover { transform: translateY(-3px); background: var(--accent-hot); }
.cta-button.ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(244, 236, 224, 0.3);
}
.cta-button.ghost:hover { background: rgba(244, 236, 224, 0.08); color: var(--cream); }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  #scroll-container { height: 600vh; }

  .align-left, .align-right {
    padding: 0 7vw;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .section-inner {
    max-width: 86vw;
    margin: 0 auto !important;
    text-align: center;
    padding: 2rem 1.6rem;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    border-radius: 14px;
  }
  .section-body { margin: 0 auto; }
  .section-stats { padding: 0 5vw; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.6rem 1.5rem; }
  .marquee-text { font-size: 22vw; }
}
