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

body {
  font-family: 'IBM Plex Mono', monospace;
  background: #d4cdc6;
  color: #2a2a2a;
  min-height: 100dvh;
  overflow-anchor: none;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 1.5rem 1rem;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(138,126,120,0.6) 0%, transparent 100%);
}

h1 {
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.15em;
}

p {
  font-size: 1.1rem;
  color: #6b6560;
}

/* Product rotation viewer */
.product-section {
  margin-top: 0;
}

.product-scroll {
  height: 520vh;
  position: relative;
  background: #1a1a1a;
}

.product-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

.product-canvas {
  display: block;
}

.product-loader {
  position: absolute;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
  color: #6b6560;
  letter-spacing: 0.1em;
}


/* Details section */
.details {
  position: relative;
  z-index: 2;
  margin-top: -152vh;
  padding-top: 50vh;
  color: #d4cdc6;
}

.details-content {
  background: #1a1a1a;
  overflow: hidden;
}

.details-track {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 50vh;
  will-change: transform;
}

.details-body {
  will-change: transform;
}

.details-spacer {
  height: 0;
}

.details-hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 2rem 1.5rem;
  text-align: center;
}

.details h2 {
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.details-summary {
  color: #a09890;
  font-size: clamp(0.8rem, 1.8vw, 0.95rem);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.details-use {
  color: #9b7bb8;
  font-size: clamp(0.7rem, 1.4vw, 0.75rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.specs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
}

.spec-card {
  padding: 2rem 1.5rem;
  border: 1px solid #333;
  transition: border-color 0.3s, background 0.3s;
}

.spec-card:hover {
  border-color: #444;
  background: #1e1e1e;
}

.spec-icon {
  font-size: 0.7rem;
  color: #9b7bb8;
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
}

.spec-card h3 {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #d4cdc6;
  margin-bottom: 0.75rem;
}

.spec-chip {
  font-size: 0.95rem;
  color: #e8e0d8;
  margin-bottom: 0.35rem;
}

.spec-detail {
  font-size: 0.75rem;
  color: #9a928a;
  letter-spacing: 0.03em;
}

.spec-subsections {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.spec-sub {
  flex: 1;
}


.details-footer {
  text-align: center;
  padding: 3rem 2rem 2rem;
}

.details-footer a {
  font-size: 0.7rem;
  color: #5a5450;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: color 0.3s;
}

.details-footer a:hover {
  color: #9b7bb8;
}

@media (max-width: 900px) {
  .specs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  header {
    padding: 1rem 0.75rem;
  }

  .product-scroll {
    height: 340vh;
  }

  .details {
    margin-top: -145vh;
  }

  .details-track {
    justify-content: flex-start;
    min-height: auto;
  }

  .details-hero {
    position: relative;
    z-index: 1;
    background: #1a1a1a;
    padding: 0.5rem 1rem 1rem;
    margin-bottom: 0;
  }

  .details h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .details-summary {
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
  }

  .details-use {
    font-size: 0.65rem;
  }

  .specs {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 0.75rem;
    gap: 0;
  }

  .spec-card {
    padding: 0.75rem;
  }

  .spec-icon {
    font-size: 0.55rem;
    margin-bottom: 0.4rem;
  }

  .spec-card h3 {
    font-size: 0.65rem;
    margin-bottom: 0.25rem;
  }

  .spec-chip {
    font-size: 0.7rem;
    margin-bottom: 0.15rem;
  }

  .spec-detail {
    font-size: 0.7rem;
  }

  .details-footer {
    padding: 0.75rem 1rem;
  }
}
