:root {
  --bg-dark: #0e0c0b;
  --bg-deep: #080706;
  --panel-bg: #14110f;
  --text-on-dark: #ece6dd;
  --text-muted: #9a9089;
  --accent: #c97b54;       /* warm clay / terracotta */
  --accent-soft: #d9a07f;
  --line: rgba(236, 230, 221, 0.12);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
}

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

html, body {
  background: var(--bg-deep);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--bg-deep); }

/* ---------- Background glow (blends page with the video) ---------- */
#bg-glow {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background: var(--bg-deep);
  will-change: background;
}

/* ---------- Loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg-deep);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.6rem;
  transition: opacity 0.8s ease;
}
#loader.hidden { opacity: 0; pointer-events: none; }
.loader-brand {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400; font-style: italic;
  letter-spacing: 0.02em;
  color: var(--text-on-dark);
}
#loader-track {
  width: min(240px, 60vw); height: 1px;
  background: var(--line); overflow: hidden;
}
#loader-bar { width: 0%; height: 100%; background: var(--accent); transition: width 0.2s ease; }
#loader-percent {
  font-size: 0.72rem; letter-spacing: 0.28em;
  color: var(--text-muted); text-transform: uppercase;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 200;
  padding: 1.6rem clamp(1.2rem, 4vw, 3rem);
  mix-blend-mode: difference;
}
.site-header nav { display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 400; letter-spacing: 0.04em;
  color: #fff; text-decoration: none; font-style: italic;
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  color: #fff; text-decoration: none;
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0.85; transition: opacity 0.3s;
}
.nav-links a:hover { opacity: 1; }

/* ---------- Hero ---------- */
.hero-standalone {
  position: relative; z-index: 50;
  height: 100vh; width: 100%;
  background: transparent;   /* share the unified, video-matched page background */
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
  padding: 0 clamp(1.5rem, 8vw, 9rem);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 1100px; }
.section-label {
  display: block;
  font-size: 0.74rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent-soft); margin-bottom: 1.6rem;
}
.hero-heading {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.4rem, 13vw, 13rem);
  line-height: 0.9; letter-spacing: -0.02em;
}
.hero-heading span { display: inline-block; }
.hero-heading span:nth-child(2),
.hero-heading span:nth-child(4) { font-style: italic; color: var(--accent-soft); }
.hero-tagline {
  margin-top: 2rem; max-width: 34ch;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  color: var(--text-muted); font-weight: 300; letter-spacing: 0.01em;
}
.scroll-indicator {
  position: absolute; bottom: 2.4rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--text-muted); z-index: 3;
}
.scroll-indicator .arrow { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- Moving video panel ---------- */
.video-panel {
  position: fixed; top: 9vh; left: 0; z-index: 4;
  width: 44vw; height: 82vh;
  will-change: transform;
  transform: translateX(52vw);   /* JS overrides; default = right slot */
}
.panel-frame {
  position: relative; width: 100%; height: 100%;
  background: transparent;            /* no card — the video sits straight on the page */
  overflow: hidden;
  clip-path: inset(0 0 100% 0);       /* hidden until hero reveal */
  will-change: clip-path;
}
#canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  /* feather all four edges so the video's dark background melts into the page
     instead of ending in a hard rectangle — video + page read as one element */
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0, #000 8%, #000 92%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image:
    linear-gradient(to right,  transparent 0, #000 8%, #000 92%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
}
.panel-caption {
  position: absolute; left: 1.1rem; bottom: 0.9rem; z-index: 2;
  font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(236,230,221,0.62);
  mix-blend-mode: difference;
}

#dark-overlay {
  position: fixed; inset: 0; z-index: 4;
  background: var(--bg-deep); opacity: 0; pointer-events: none;
}

/* ---------- Marquee ---------- */
.marquee-wrap {
  position: fixed; top: 50%; left: 0; width: 100%; z-index: 3;
  transform: translateY(-50%);
  pointer-events: none; opacity: 0;
}
.marquee-text {
  white-space: nowrap;
  font-family: var(--font-display);
  font-style: italic; font-weight: 300;
  font-size: 14vw; line-height: 1;
  color: rgba(236,230,221,0.06);
}

/* ---------- Scroll container & sections ---------- */
#scroll-container { position: relative; z-index: 5; height: 1080vh; }

.scroll-section {
  position: absolute; left: 0; width: 100%;
  height: 100vh; display: flex; align-items: center;
  pointer-events: none;
}
.scroll-section .section-inner,
.scroll-section a { pointer-events: auto; }
.section-inner { max-width: 38vw; }

.align-left { justify-content: flex-start; padding-left: 6vw; padding-right: 50vw; }
.align-right { justify-content: flex-end; padding-right: 6vw; padding-left: 50vw; }

.section-heading {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
  line-height: 1.0; letter-spacing: -0.015em;
  margin-bottom: 1.6rem;
}
.section-body {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.7; color: var(--text-on-dark);
  font-weight: 300; max-width: 42ch;
  text-shadow: 0 1px 24px rgba(0,0,0,0.7);
}

.collection-list { list-style: none; margin-top: 0.5rem; }
.collection-list li {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.1vw, 1.85rem);
  font-weight: 300; padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.01em;
}
.collection-list li::before { content: "— "; color: var(--accent-soft); }

/* ---------- Stats ---------- */
.section-stats { justify-content: center; }
.stats-grid {
  display: flex; gap: clamp(2rem, 7vw, 7rem);
  justify-content: center; flex-wrap: wrap; text-align: center;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-row { display: flex; align-items: flex-start; }
.stat-number {
  font-family: var(--font-display);
  font-weight: 300; font-size: clamp(3.5rem, 9vw, 8rem);
  line-height: 1; color: var(--accent-soft);
}
.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.5rem); color: var(--accent);
  margin-top: -0.4rem;
}
.stat-label {
  margin-top: 1rem; font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted);
  max-width: 16ch;
}

/* ---------- CTA ---------- */
.cta-heading {
  font-family: var(--font-display);
  font-weight: 300; font-style: italic;
  font-size: clamp(2.4rem, 5.6vw, 5rem);
  line-height: 1.0; margin-bottom: 1.4rem; letter-spacing: -0.02em;
}
.cta-button {
  display: inline-block; margin-top: 1.8rem;
  padding: 1rem 2.2rem;
  background: var(--accent); color: var(--bg-deep);
  text-decoration: none; font-weight: 600;
  font-size: 1rem; letter-spacing: 0.02em;
  border-radius: 2px; transition: transform 0.3s, background 0.3s;
}
.cta-button:hover { transform: translateY(-2px); background: var(--accent-soft); }
.cta-meta {
  display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 2rem;
  font-size: 0.8rem; letter-spacing: 0.08em; color: var(--text-muted);
}

/* ---------- Products showcase ---------- */
.section-products { justify-content: center; padding: 0; }
.products-inner {
  width: min(980px, 90vw); margin: 0 auto; text-align: center;
}
.products-inner .section-label { margin-bottom: 0.8rem; }
.products-inner .section-heading {
  text-align: center; margin-bottom: 0;
}
.products-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 1.8vw, 1.8rem);
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
}
.product-card {
  text-align: left;
  display: flex; flex-direction: column;
}
.product-thumb {
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(217,160,127,0.06), transparent 60%),
    linear-gradient(160deg, var(--panel-bg), var(--bg-dark));
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease;
}
/* faint potter's mark so it reads as an image slot, not a loud placeholder */
.product-thumb::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236,230,221,0.05) 0 60%, transparent 62%);
  border: 1px solid rgba(236,230,221,0.06);
}
.product-card:hover .product-thumb {
  transform: translateY(-4px);
  border-color: rgba(217,160,127,0.35);
}
.product-meta {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-top: 0.9rem;
}
.product-name {
  font-family: var(--font-display);
  font-weight: 300; font-size: clamp(1rem, 1.4vw, 1.2rem);
  letter-spacing: -0.01em; line-height: 1.2;
}
.product-price {
  flex-shrink: 0;
  font-size: 0.92rem; color: var(--accent-soft);
  letter-spacing: 0.02em;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative; z-index: 5;
  background: var(--bg-deep);
  padding: 4rem clamp(1.5rem, 8vw, 9rem);
  border-top: 1px solid var(--line);
}
.footer-inner { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-brand { font-family: var(--font-display); font-size: 1.5rem; font-style: italic; }
.footer-inner span:not(.footer-brand) { color: var(--text-muted); font-size: 0.88rem; }
.footer-note { font-style: italic; color: var(--accent-soft) !important; }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  #scroll-container { height: 760vh; }
  .video-panel {
    top: auto; bottom: 6vh; left: 0;
    width: 86vw; height: 46vh;
    transform: none !important;
    margin: 0 7vw;
  }
  .align-left, .align-right {
    justify-content: center; padding: 0 7vw;
    align-items: flex-start; padding-top: 12vh;
  }
  .section-inner { max-width: 86vw; }
  .scroll-section .section-inner {
    background: rgba(8,7,6,0.66);
    backdrop-filter: blur(3px);
    padding: 1.8rem 1.5rem; border-radius: 4px;
  }
  .section-stats { align-items: flex-start; padding-top: 10vh; }
  .section-stats .section-inner { background: none; }
  .section-stats .stats-grid { gap: 2.2rem; }
  .marquee-text { font-size: 22vw; }

  /* Products: 2-up grid, compact, legible over the pinned bottom panel */
  .section-products { align-items: center; padding: 0 5vw; }
  .products-inner {
    width: 90vw; max-width: 90vw;
    background: rgba(8,7,6,0.72);
    backdrop-filter: blur(4px);
    padding: 1.6rem 1.2rem; border-radius: 4px;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem; margin-top: 1.4rem;
  }
  .product-thumb { aspect-ratio: 1 / 1; }
  .product-meta { flex-direction: column; gap: 0.15rem; margin-top: 0.6rem; }
}
