/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Stone palette – neutral gray, less warm */
  --bg:           #2e2d2c;   /* main: neutral stone        */
  --bg-mid:       #201f1e;   /* story / quality sections   */
  --bg-card:      #595858;   /* product cards              */
  --bg-card-hover:#616060;

  /* Text on dark */
  --text:         #cac5be;   /* warm off-white             */
  --text-bright:  #ede9e3;   /* headings, emphasis         */
  --text-muted:   #58534e;   /* secondary / labels         */

  /* Borders */
  --border:       rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.18);

  /* Brand */
  --brand:        #2d5a3d;
  --brand-light:  #3d7a55;

  /* Nav: dark, matching the design */
  --nav-bg:       rgba(15, 14, 12, 0.92);
  --nav-border:   rgba(255, 255, 255, 0.07);

  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  display: block;
  max-width: 100%;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== NAV – dark, matches overall design ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
}

.nav-logo-link {
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 30px;
  width: auto;
}

.nav-cta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 9px 22px;
  border-radius: 2px;
  transition: background 0.22s, color 0.22s, border-color 0.22s;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  /* Subtle linear gradient – no circle, just a gentle top-to-bottom fade */
  background: linear-gradient(to bottom, #484746 0%, #2a2928 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 32px 80px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

/* Kanji: brand green, properly visible – anchors the brand identity */
.hero-kanji {
  font-size: clamp(80px, 14vw, 160px);
  color: var(--brand);
  line-height: 1;
  letter-spacing: -0.02em;
  user-select: none;
}

/* Tagline in quotes – mirroring the product design language exactly */
#hero h1 {
  font-size: clamp(16px, 2.4vw, 28px);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  max-width: 520px;
  line-height: 1.6;
}

.scroll-hint {
  position: absolute;
  bottom: 44px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.18);
  animation: float 2.6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0);   opacity: 0.18; }
  50%       { transform: translateY(8px); opacity: 0.45; }
}

/* ===== BRAND STORY ===== */
#story {
  padding: 120px 0;
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.story-lead {
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}

.story-body {
  max-width: 600px;
}

.story-body p {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 22px;
  line-height: 1.9;
}

.story-end {
  color: var(--text) !important;
  font-style: italic;
}

/* ===== COLLECTION ===== */
#collection {
  padding: 120px 0;
  background: #d2d1cf;
}

/* Light section overrides – text, borders, cards all flip to dark-on-light */
#collection .section-title {
  color: #1a1a1a;
}

#collection .category-label {
  color: var(--brand);
}

#collection .category-line {
  background: rgba(0, 0, 0, 0.1);
}

#collection .product-card {
  background: #dedddb;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

#collection .product-card:hover {
  background: #e6e5e3;
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

#collection .product-info {
  border-top-color: rgba(0, 0, 0, 0.07);
}

#collection .product-kanji {
  color: rgba(0, 0, 0, 0.15);
}

#collection .product-name {
  color: #1a1a1a;
}

#collection .product-link {
  color: #999;
}

#collection .product-card:hover .product-link {
  color: var(--brand);
}

.section-title {
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 300;
  color: var(--text-bright);
  letter-spacing: 0.01em;
  margin-bottom: 64px;
}

/* Category block */
.category {
  margin-bottom: 72px;
}

.category:last-child {
  margin-bottom: 0;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.category-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-light);
  white-space: nowrap;
}

.category-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Product grids */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.product-grid--thirds {
  grid-template-columns: repeat(3, 1fr);
}

.product-grid--halves {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
}

/* Embroidery toggle */
.emb-toggle {
  display: flex;
  gap: 2px;
  background: rgba(0, 0, 0, 0.08);
  padding: 3px;
  border-radius: 20px;
  flex-shrink: 0;
}

.emb-btn {
  background: transparent;
  border: none;
  padding: 5px 14px;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  border-radius: 18px;
  transition: background 0.22s, color 0.22s;
}

.emb-btn.active {
  background: rgba(255, 255, 255, 0.75);
  color: #1a1a1a;
}

.emb-btn:hover:not(.active) {
  color: rgba(0, 0, 0, 0.6);
}

/* Product card */
.product-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s, opacity 0.18s ease, transform 0.18s ease;
}

.product-card.card-hidden {
  opacity: 0;
  transform: scale(0.97);
  pointer-events: none;
}

.product-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.product-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0c0b09;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.04);
}

/* Dual-image cross-fade toggle */
.product-img--toggle {
  position: relative;
}

.emb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.6s ease;
}

.emb-img--black {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.emb-black-active .emb-img--white { opacity: 0; }
.emb-black-active .emb-img--black { opacity: 1; }

.product-card:hover .emb-img {
  transform: scale(1.04);
}

.product-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-top: 1px solid var(--border);
}

.product-text {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.product-kanji {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.12);
  line-height: 1;
  user-select: none;
}

.product-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.03em;
}

.product-link {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: color 0.2s;
  white-space: nowrap;
}

.product-card:hover .product-link {
  color: var(--brand-light);
}

/* ===== QUALITY & PHILOSOPHY ===== */
#quality {
  padding: 120px 0;
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 80px;
}

.quality-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quality-mark {
  font-size: 13px;
  color: var(--brand-light);
}

.quality-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: 0.02em;
}

.quality-item p {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.85;
}

.review {
  border-top: 1px solid var(--border);
  padding-top: 56px;
  max-width: 600px;
}

.review-stars {
  font-size: 14px;
  color: #b8943a;
  letter-spacing: 5px;
  margin-bottom: 20px;
}

.review blockquote {
  font-size: 17px;
  font-style: italic;
  font-weight: 300;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 14px;
}

.review cite {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-style: normal;
}

/* ===== CALL TO ACTION ===== */
#cta {
  padding: 140px 0;
  background: linear-gradient(to bottom, #2a2928 0%, #1e1d1d 100%);
  text-align: center;
}

#cta .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-kanji {
  display: block;
  font-size: clamp(64px, 12vw, 140px);
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

#cta h2 {
  font-size: clamp(18px, 2.6vw, 32px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.08em;
  margin-bottom: 48px;
  margin-top: -12px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 44px;
  background: var(--brand);
  color: #ffffff;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid var(--brand);
  transition: background 0.22s, border-color 0.22s;
  margin-bottom: 40px;
}

.btn-primary:hover {
  background: var(--brand-light);
  border-color: var(--brand-light);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.social-links a {
  color: var(--text-muted);
  transition: color 0.22s;
}

.social-links a:hover {
  color: var(--text);
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  height: 26px;
  width: auto;
  opacity: 0.4;
}

footer p {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ===== SCROLL FADE-IN ===== */
.fade-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  nav {
    padding: 14px 24px;
  }

  .container {
    padding: 0 24px;
  }

  .product-grid,
  .product-grid--thirds {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .quality-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  #story,
  #collection,
  #quality {
    padding: 80px 0;
  }

  #cta {
    padding: 100px 0;
  }
}

@media (max-width: 560px) {
  nav {
    padding: 12px 18px;
  }

  .nav-logo {
    height: 24px;
  }

  .product-grid,
  .product-grid--thirds,
  .product-grid--halves {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .category {
    margin-bottom: 56px;
  }
}
