/* ==========================================================================
   NIGRUM STARE — LUXURY STREETWEAR
   STRICT PALETTE:
   BLACK      — #050505
   OFF-WHITE  — #F2F0EA
   AESTHETIC: Quiet. Dark. Clean. Expensive. Minimal.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&family=Syne:wght@400;600;700;800&display=swap');

:root {
  --black: #050505;
  --off-white: #F2F0EA;
  --off-white-muted: rgba(242, 240, 234, 0.6);
  --off-white-subtle: rgba(242, 240, 234, 0.35);
  --border: rgba(242, 240, 234, 0.12);
  --border-hover: rgba(242, 240, 234, 0.4);
  --surface: #0a0a0a;

  --font-display: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', monospace;

  --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background-color: var(--black);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--black);
  color: var(--off-white);
  overflow-x: hidden;
  width: 100%;
}

/* Custom Minimal Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--black);
}
::-webkit-scrollbar-thumb {
  background: rgba(242, 240, 234, 0.2);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--off-white);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: transparent;
  border: none;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
}

/* ==========================================================================
   1. NAVIGATION
   Left: NIGRUM STARE
   Center: STORY  COLLECTION  ABOUT
   Right: CART
   Clean, thin, understated, generous spacing.
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--off-white);
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--off-white-muted);
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--off-white);
}

.nav-cart-btn {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--off-white);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.3s ease;
}

.nav-cart-btn:hover {
  opacity: 0.7;
}

/* ==========================================================================
   2. HERO — THE 4K CLOTHING PROCESS (SCROLL-CONTROLLED)
   Single simple text block:
   FROM THREAD
   TO EDGE
   NIGRUM STARE
   Bottom: SCROLL TO EXPLORE
   ========================================================================== */
.hero-scroll {
  position: relative;
  width: 100%;
  height: 500vh; /* 500vh smooth scroll runway */
  background: var(--black);
}

.hero-sticky {
  position: sticky;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
}

#heroCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Main Initial Text Block */
.hero-title-block {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  z-index: 10;
  width: 90%;
  max-width: 900px;
  transition: opacity 0.5s ease;
}

.hero-title-main {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: 24px;
}

.hero-sub-brand {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--off-white-muted);
}

/* Bottom Hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--off-white-subtle);
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.5s ease;
}

/* ==========================================================================
   4. SCROLL STORY — STAGE INDICATOR
   Only:
   01 / THREAD
   02 / FABRIC
   03 / CUT
   04 / SEW
   05 / FINISH
   06 / FORM
   07 / NIGRUM STARE
   Small off-white typography. No boxes. No cards. No technical info.
   ========================================================================== */
.stage-indicator {
  position: absolute;
  bottom: 40px;
  left: 4vw;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--off-white);
  z-index: 15;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.stage-indicator.visible {
  opacity: 1;
}

/* ==========================================================================
   5. THE COLLECTION (CLEAN 3-COLUMN GRID)
   Black background. Heading: THE COLLECTION.
   Each product contains only:
   - Product image
   - Product name
   - Price
   On hover: VIEW
   ========================================================================== */
.collection-section {
  position: relative;
  background: var(--black);
  padding: 140px 4vw 160px;
  border-top: 1px solid var(--border);
}

.collection-header {
  margin-bottom: 70px;
  text-align: left;
}

.collection-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--off-white);
}

/* 3-Column Grid on Desktop */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px 40px;
}

.product-item {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  group: true;
}

.product-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #090909;
  margin-bottom: 20px;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-luxury);
}

.product-item:hover .product-image-wrap img {
  transform: scale(1.03);
}

/* On hover: VIEW */
.product-hover-view {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-item:hover .product-hover-view {
  opacity: 1;
}

.view-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--off-white);
  border-bottom: 1px solid var(--off-white);
  padding-bottom: 4px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.product-name {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--off-white);
}

.product-price {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--off-white-muted);
}

/* ==========================================================================
   6. PRODUCT PRESENTATION (MINIMAL PRODUCT VIEW MODAL)
   Large photography: 60–70% of screen.
   Opposite side:
   PRODUCT NAME
   Short description
   PRICE
   Size selection
   ADD TO CART
   ========================================================================== */
.product-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.94);
  backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.product-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.product-modal-content {
  position: relative;
  width: 92vw;
  max-width: 1400px;
  height: 88vh;
  display: flex;
  background: var(--black);
  border: 1px solid var(--border);
  overflow: hidden;
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--off-white);
  z-index: 10;
  transition: opacity 0.2s ease;
}

.modal-close-btn:hover {
  opacity: 0.6;
}

/* Large photography: 65% */
.modal-photo-pane {
  flex: 0 0 65%;
  height: 100%;
  background: #080808;
  overflow: hidden;
}

.modal-photo-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Details Side: 35% */
.modal-info-pane {
  flex: 0 0 35%;
  height: 100%;
  overflow-y: auto;
  padding: 80px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-product-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.modal-product-desc {
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--off-white-muted);
  margin-bottom: 28px;
}

.modal-product-price {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--off-white);
  margin-bottom: 36px;
}

.modal-size-wrap {
  margin-bottom: 36px;
}

.modal-size-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--off-white-muted);
  margin-bottom: 12px;
  display: block;
}

.modal-sizes-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.size-btn {
  padding: 10px 16px;
  border: 1px solid var(--border);
  color: var(--off-white);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.size-btn:hover {
  border-color: var(--border-hover);
}

.size-btn.active {
  background: var(--off-white);
  color: var(--black);
  border-color: var(--off-white);
  font-weight: 700;
}

.modal-add-btn {
  width: 100%;
  padding: 16px;
  background: var(--off-white);
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--off-white);
  transition: background 0.3s ease, color 0.3s ease;
}

.modal-add-btn:hover {
  background: var(--black);
  color: var(--off-white);
}

/* ==========================================================================
   7. BRAND STATEMENT (FULL-SCREEN SIMPLE SECTION)
   WEAR YOUR EDGE.
   Nothing else. Black background. Large off-white typography.
   Subtle fade-in animation.
   ========================================================================== */
.statement-section {
  position: relative;
  width: 100%;
  height: 100vh;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 4vw;
  border-top: 1px solid var(--border);
}

.statement-text {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 9.5rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--off-white);
  line-height: 1;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s var(--ease-luxury), transform 1.2s var(--ease-luxury);
}

.statement-section.in-view .statement-text {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   8. ABOUT SECTION (EXTREMELY SHORT)
   NIGRUM STARE
   Clothing shaped by precision, individuality and edge.
   One strong editorial image.
   ========================================================================== */
.about-section {
  position: relative;
  background: var(--black);
  padding: 140px 4vw 160px;
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
}

.about-editorial-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #090909;
}

.about-editorial-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-content-pane {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-brand-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: 24px;
}

.about-statement-phrase {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.9;
  letter-spacing: 0.08em;
  color: var(--off-white-muted);
  text-transform: uppercase;
  max-width: 480px;
}

/* ==========================================================================
   9. FOOTER (MINIMAL BLACK)
   NIGRUM STARE
   WEAR YOUR EDGE
   Instagram / TikTok / Contact
   © 2026 NIGRUM STARE
   ========================================================================== */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 90px 4vw 50px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: 8px;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--off-white-muted);
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-link {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--off-white-muted);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--off-white);
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--off-white-subtle);
  border-top: 1px solid var(--border);
  padding-top: 30px;
}

/* ==========================================================================
   MINIMAL CART DRAWER
   ========================================================================== */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(10px);
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.cart-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer-pane {
  position: fixed;
  top: 0;
  right: 0;
  width: min(440px, 92vw);
  height: 100vh;
  background: var(--black);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-luxury);
  z-index: 3001;
}

.cart-drawer-backdrop.open .cart-drawer-pane {
  transform: translateX(0);
}

.cart-header {
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.cart-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--off-white);
}

.cart-items-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cart-empty-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--off-white-muted);
  text-align: center;
  margin-top: 60px;
}

.cart-item-row {
  display: flex;
  gap: 18px;
  align-items: center;
}

.cart-item-img {
  width: 64px;
  height: 80px;
  object-fit: cover;
  background: #090909;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: 4px;
}

.cart-item-size {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--off-white-muted);
  margin-bottom: 6px;
}

.cart-item-price {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--off-white);
}

.cart-item-remove {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--off-white-subtle);
  transition: color 0.2s ease;
}

.cart-item-remove:hover {
  color: var(--off-white);
}

.cart-footer {
  padding: 28px 32px;
  border-top: 1px solid var(--border);
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: 20px;
}

.cart-checkout-btn {
  width: 100%;
  padding: 16px;
  background: var(--off-white);
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--off-white);
  transition: all 0.3s ease;
}

.cart-checkout-btn:hover {
  background: var(--black);
  color: var(--off-white);
}

/* Minimal Toast */
.minimal-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--black);
  color: var(--off-white);
  border: 1px solid var(--border);
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 9999;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.3s ease;
}

.minimal-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .product-modal-content {
    flex-direction: column;
    height: 94vh;
    overflow-y: auto;
  }
  .modal-photo-pane {
    flex: none;
    height: 50vh;
  }
  .modal-info-pane {
    flex: none;
    padding: 36px 24px;
  }
}

@media (max-width: 768px) {
  .site-nav {
    padding: 0 5vw;
  }
  .nav-center {
    display: none;
  }
  .collection-section {
    padding: 100px 5vw 120px;
  }
  .product-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-section {
    padding: 100px 5vw 120px;
  }
  .footer-links {
    gap: 20px;
  }
  .footer-bottom-row {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
