:root {
  --black: #0a0a0a;
  --ink: #000000;
  --white: #ffffff;
  --fog: #f3f3f3;
  --mist: #e8e8e8;
  --mute: #6b6b6b;
  --line: rgba(0, 0, 0, 0.12);
  --font-display: "Bodoni Moda", "Times New Roman", serif;
  --font-ui: "Syne", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  font: inherit;
  color: inherit;
}

fieldset {
  min-inline-size: 0;
}

legend {
  padding: 0;
  float: left;
  width: 100%;
  margin-bottom: 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}

.noise {
  display: none;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: var(--white);
  animation: header-in 0.9s var(--ease) both;
}

.nav-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: transform 0.4s var(--ease);
}

.nav-brand:hover img {
  transform: scale(1.06) rotate(-2deg);
}

.site-nav {
  display: flex;
  gap: 1.75rem;
}

.site-nav a {
  position: relative;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
  transition: opacity 0.25s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  opacity: 1;
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.4rem;
  height: 1px;
  background: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.85rem 1.9rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.3s var(--ease),
    color 0.3s var(--ease),
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-block {
  width: 100%;
  margin-top: 0.5rem;
}

/* Home hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 1.5rem) 1.5rem 5rem;
  overflow: hidden;
}

.hero-logo {
  position: relative;
  width: min(58vw, 420px);
  height: auto;
  margin-bottom: 0;
  animation: logo-rise 1.2s var(--ease) both;
}

.hero-cta {
  position: relative;
  margin-top: 2.25rem;
  animation: text-rise 1s var(--ease) 0.2s both;
}

/* Shop */
.shop {
  padding: calc(var(--header-h) + 2rem) clamp(1.25rem, 4vw, 3rem) 4rem;
}

.product {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  min-height: calc(100vh - var(--header-h) - 6rem);
  animation: text-rise 0.9s var(--ease) both;
}

.product-visual {
  position: relative;
}

.product-stage {
  position: relative;
  background: var(--white);
  min-height: min(62vh, 560px);
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
}

.product-image {
  position: relative;
  width: 100%;
  max-width: 640px;
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease),
    filter 0.45s var(--ease);
}

.product-image.is-switching {
  opacity: 0;
  transform: scale(0.97);
  filter: blur(2px);
}

.product-info {
  max-width: 26rem;
}

.product-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
}

.product-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
}

.product-price {
  margin: 0.85rem 0 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.product-desc {
  margin: 1.1rem 0 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--mute);
  font-weight: 500;
}

.option-group {
  margin-top: 1.75rem;
}

.swatches,
.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  clear: both;
}

.swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.7rem;
  padding: 0.45rem 0.9rem 0.45rem 0.55rem;
  border: 1px solid var(--line);
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s var(--ease);
}

.swatch:hover {
  border-color: rgba(0, 0, 0, 0.35);
}

.swatch.is-selected {
  border-color: var(--ink);
  background: var(--fog);
}

.swatch-chip {
  width: 1.15rem;
  height: 1.15rem;
  border: 1px solid rgba(0, 0, 0, 0.25);
}

.swatch-black {
  background: var(--ink);
}

.swatch-white {
  background: var(--white);
}

.swatch-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.size-btn {
  min-width: 2.85rem;
  min-height: 2.85rem;
  padding: 0 0.65rem;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s var(--ease);
}

.size-btn:hover {
  border-color: rgba(0, 0, 0, 0.4);
}

.size-btn.is-selected {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.product-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--mute);
  letter-spacing: 0.02em;
  animation: text-rise 0.5s var(--ease) both;
}

/* Footer */
.site-footer {
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

.page-home .site-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

/* Motion */
@keyframes logo-rise {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes text-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes header-in {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 860px) {
  .product {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: auto;
  }

  .product-info {
    max-width: none;
  }

  .product-stage {
    min-height: 320px;
  }

  .page-home .site-footer {
    position: static;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    width: min(72vw, 300px);
  }

  .hero {
    padding-bottom: 3.5rem;
  }

  .site-nav {
    gap: 1.2rem;
  }
}
