:root {
  --black: #0B0B0C;
  --white: #FAF9F6;
  --muted: #807F7C;
  --border: #E3E1DC;
  --accent-soft: #F1EFEC;
  --max-width: 1500px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, Arial, sans-serif;
  background: var(--white);
  color: var(--black);
}

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

.navbar {
  height: 82px;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--black);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(11, 11, 12, 0.03);
}

.logo {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -3px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
}

.logo-icon {
  width: 110px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  gap: 42px;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
}

.nav-indicator {
  position: absolute;
  height: 2px;
  background: var(--black);
  bottom: 20px;
  left: 0;
  width: 0;
  pointer-events: none;
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
  width: 24px;
  height: 20px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  position: absolute;
  left: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, top 0.3s ease;
}

.menu-toggle span:nth-child(1) {
  top: 2px;
}

.menu-toggle span:nth-child(2) {
  top: 9px;
}

.menu-toggle span:nth-child(3) {
  top: 16px;
}

.menu-toggle.open span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.menu-toggle.open span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

.section {
  max-width: var(--max-width);
  margin: auto;
  padding: 120px 5vw;
}

.section-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .22em;
  margin-bottom: 22px;
}

.page-header {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: flex-end;
  border-bottom: 2px solid var(--black);
  padding-bottom: 45px;
  margin-bottom: 80px;
  grid-column: 1 / -1;
}

.page-header-title {
  display: flex;
  flex-direction: column;
}

.page-header-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
}

.page-header-description {
  max-width: 380px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

@media (max-width: 800px) {
  .page-header {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 30px;
    margin-bottom: 50px;
  }

  .page-header-aside {
    justify-content: flex-start;
    align-items: flex-start;
  }
}

h1,
h2 {
  letter-spacing: -.055em;
  line-height: .9;
}

h1 {
  font-size: clamp(4rem, 9vw, 9rem);
}

h2 {
  font-size: clamp(3rem, 6vw, 6rem);
}

h1 span,
h2 span {
  font-weight: 400;
}

.btn {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  min-width: 220px;
  padding: 17px 22px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  border: 2px solid var(--black);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.btn * {
  color: inherit;
  fill: currentColor;
  transition: color 0.2s ease;
}

.btn:hover {
  transform: translate(-4px, -4px);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--white);
  color: var(--black);
  box-shadow: 4px 4px 0px var(--black);
}

.btn-light {
  background: transparent;
  color: var(--black);
}

.btn-light:hover {
  background: var(--accent-soft);
  color: var(--black);
  box-shadow: 4px 4px 0px var(--black);
}

.page-shell {
  max-width: var(--max-width);
  min-height: calc(100vh - 82px);
  margin: auto;
  padding: 100px 5vw;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 70px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 70px;
}

.category-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  cursor: pointer;
}


.category-image {
  aspect-ratio: 1 / 1.35;
  background: #e8e8e6;
  overflow: hidden;
  position: relative;
  border-radius: 4px;
  border: 1px solid var(--black);
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.category-overlay {
  /* overlay badges removed in markup, keeping styles for safety */
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--black);
  color: var(--white);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  z-index: 2;
  text-transform: uppercase;
  border-radius: 2px;
}

.category-info {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.category-card h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: var(--black);
  margin: 0;
  transition: color 0.3s ease;
}

.category-card:hover h2 {
  color: #333333;
}

.category-meta {
  font-size: 11px;
  font-weight: 800;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.category-meta span {
  font-weight: 400;
  color: #aaa;
}

.category-card:hover .category-meta {
  color: var(--black);
  transform: translateX(4px);
}

.customize-placeholder {
  margin-top: 70px;
  padding: 80px;
  border: 1px dashed #aaa;
  text-align: center;
  color: var(--muted);
  line-height: 1.8;
}

.contact-page>p:not(.section-label) {
  max-width: 500px;
  margin: 30px 0;
  line-height: 1.7;
  color: #555;
}

.footer {
  padding: 60px 5vw;
  border-top: 2px solid var(--black);
  background: var(--black);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer .logo-icon {
  width: 110px;
  height: 30px;
  filter: brightness(0) invert(1);
}

.footer p {
  color: #8c8c88;
  font-size: 13px;
  font-weight: 500;
}

.footer .footer-tagline {
  color: var(--white);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (min-width: 801px) {
  .footer>* {
    flex: 1;
  }

  .footer-tagline {
    text-align: center;
  }

  .footer-rights {
    text-align: right;
  }
}

@media (max-width: 800px) {
  .navbar {
    height: 70px;
  }

  .logo {
    font-size: 34px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: flex;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    padding: 25px;
    flex-direction: column;
    align-items: flex-start;
    background: var(--white);
    border-bottom: 2px solid var(--black);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    opacity: 0;
    transform: translateY(10px);
    transition:
      opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }



  .nav-links.open a {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.open a:nth-child(1) {
    transition-delay: 0.1s;
  }

  .nav-links.open a:nth-child(2) {
    transition-delay: 0.18s;
  }

  .nav-links.open a:nth-child(3) {
    transition-delay: 0.26s;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .page-shell {
    padding-top: 70px;
  }

  .section {
    padding: 70px 5vw;
  }

  .footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 16px 12px;
    padding: 30px 5vw 24px;
  }

  .footer .logo {
    grid-column: 1;
    justify-self: start;
  }

  .footer .footer-tagline {
    grid-column: 2;
    justify-self: end;
    text-align: right;
    font-size: 12px;
  }

  .footer .footer-rights {
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
    font-size: 11px;
    margin-top: 4px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 48px 5vw;
  }
}

/* ==========================================
   SMOOTH IMAGE LAZY LOADING & PLACEHOLDERS
   ========================================== */

@keyframes shimmer-pulse {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.image-loading-placeholder {
  position: relative;
  overflow: hidden;
}

.image-loading-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #e8e8e6 25%, #f2f2f0 50%, #e8e8e6 75%);
  background-size: 200% 100%;
  animation: shimmer-pulse 1.6s infinite linear;
  z-index: 1;
  transition: opacity 0.4s ease-in-out;
}

.image-loading-placeholder.loaded::before {
  opacity: 0;
  pointer-events: none;
}

.smooth-load-image {
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
  transform: translateZ(0);
}

.smooth-load-image.loaded {
  opacity: 1;
}

/* ==========================================
   COLLECTIONS PAGE ENTRANCE & HEADER REDESIGN
   ========================================== */

.technical-header-meta {
  display: flex;
  gap: clamp(15px, 3vw, 30px);
  font-family: monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 25px;
  text-transform: uppercase;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 15px;
  flex-wrap: wrap;
}

@keyframes fadeInUpSnappy {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUpWord {
  0% {
    opacity: 0;
    transform: translateY(105%);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.collections-page .page-header-description {
  opacity: 0;
  animation: fadeInUpSnappy 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.collections-page .category-card {
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.collections-page .category-card.in-view {
  animation: fadeInUpSnappy 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.collections-page .technical-header-meta,
.category-template-page .technical-header-meta {
  opacity: 0;
  animation: fadeInUpSnappy 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
  animation-delay: 0.05s;
}

/* Word Reveal Animations */
.collections-page .page-header h1 .word-wrap,
.category-template-page .page-header h1 .word-wrap,
.contact-template-page .page-header h1 .word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.collections-page .page-header h1 .animate-word,
.category-template-page .page-header h1 .animate-word,
.contact-template-page .page-header h1 .animate-word {
  display: inline-block;
  transform: translateY(105%);
  opacity: 0;
  animation: fadeInUpWord 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

.collections-page .page-header h1 .delay-1,
.category-template-page .page-header h1 .delay-1,
.contact-template-page .page-header h1 .delay-1 {
  animation-delay: 0.15s;
}

.collections-page .page-header h1 .delay-2,
.category-template-page .page-header h1 .delay-2,
.contact-template-page .page-header h1 .delay-2 {
  animation-delay: 0.28s;
}

.collections-page .page-header h1 .delay-3,
.category-template-page .page-header h1 .delay-3,
.contact-template-page .page-header h1 .delay-3 {
  animation-delay: 0.4s;
}

.collections-page .page-header-description {
  animation-delay: 0.5s;
}

.collections-page .category-card:nth-child(1) {
  animation-delay: 0.05s;
}

.collections-page .category-card:nth-child(2) {
  animation-delay: 0.15s;
}

.collections-page .category-card:nth-child(3) {
  animation-delay: 0.25s;
}


/* ==========================================
   SUB-COLLECTION (CATEGORY) PAGE ENTRANCE
   ========================================== */

.category-template-page .back-btn,
.category-template-page .technical-header-meta,
.category-template-page #categoryDescription,
.category-template-page .technical-spec-block {
  opacity: 0;
  animation: fadeInUpSnappy 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.category-template-page .product-card {
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.category-template-page .product-card.in-view {
  animation: fadeInUpSnappy 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.category-template-page .back-btn {
  animation-delay: 0.05s;
}

.category-template-page .technical-header-meta {
  animation-delay: 0.15s;
}

.category-template-page #categoryTitle {
  opacity: 1;
  animation: none;
}

.category-template-page #categoryDescription {
  animation-delay: 0.5s;
}

.category-template-page .technical-spec-block {
  animation-delay: 0.5s;
}

/* Staggered Dynamic Product Grid Cards (Up to 12 items) - Snappy Timings */
.category-template-page .product-card:nth-child(1) {
  animation-delay: 0.05s;
}

.category-template-page .product-card:nth-child(2) {
  animation-delay: 0.15s;
}

.category-template-page .product-card:nth-child(3) {
  animation-delay: 0.25s;
}

.category-template-page .product-card:nth-child(4) {
  animation-delay: 0.35s;
}

.category-template-page .product-card:nth-child(5) {
  animation-delay: 0.45s;
}

.category-template-page .product-card:nth-child(6) {
  animation-delay: 0.55s;
}

.category-template-page .product-card:nth-child(7) {
  animation-delay: 0.65s;
}

.category-template-page .product-card:nth-child(8) {
  animation-delay: 0.75s;
}

.category-template-page .product-card:nth-child(9) {
  animation-delay: 0.85s;
}

.category-template-page .product-card:nth-child(10) {
  animation-delay: 0.95s;
}

.category-template-page .product-card:nth-child(11) {
  animation-delay: 1.05s;
}

.category-template-page .product-card:nth-child(12) {
  animation-delay: 1.15s;
}

/* Specs Table Styling */
.technical-spec-block {
  width: 100%;
  max-width: 380px;
  font-family: monospace;
  font-size: 11px;
  border: 2px solid var(--black);
  background: var(--accent-soft);
  padding: 10px 20px;
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeInUpSnappy 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
  animation-delay: 0.5s;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  gap: 15px;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-label {
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.05em;
}

.spec-value {
  color: var(--muted);
  text-align: right;
}

@media (max-width: 800px) {
  .technical-spec-block {
    margin-top: 20px;
    margin-bottom: 20px;
  }
}

/* ==========================================
   CONTACT PAGE ENTRANCE
   ========================================== */

.contact-template-page .section-label,
.contact-template-page .page-header-description,
.contact-template-page #contactBtn {
  opacity: 0;
  animation: fadeInUpSnappy 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.contact-template-page .section-label {
  animation-delay: 0.05s;
}

.contact-template-page .page-header-description {
  animation-delay: 0.5s;
}

.contact-template-page #contactBtn {
  transform: translateY(30px);
  animation-delay: 0.62s;
}