:root {
  --bg: #f7f5f2;
  --ink: #121212;
  --muted: #6b6762;
  --brand: #6b1d1d;
  --line: rgba(18, 18, 18, 0.14);
  --white: #ffffff;
  --panel: #161616;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 255, 255, 0.9), transparent 60%),
    linear-gradient(180deg, #efeeea 0%, var(--bg) 40%, #ebe7e1 100%);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem clamp(1.25rem, 4vw, 3rem);
  color: var(--brand);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.logo-mark {
  width: 1.15rem;
  height: 1.15rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px transparent;
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.85;
}

.logo-word {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.nav a,
.bag-trigger {
  transition: opacity 0.3s var(--ease);
}

.nav a:hover,
.bag-trigger:hover {
  opacity: 0.65;
}

/* Hero — full bleed */
.hero {
  position: relative;
  min-height: 100svh;
  color: var(--ink);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transform: scale(1.06);
  animation: heroZoom 8s var(--ease) forwards;
}

video.hero-image {
  display: block;
  background: #fff;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 245, 242, 0.55) 0%, rgba(247, 245, 242, 0.08) 42%, transparent 68%),
    linear-gradient(180deg, transparent 55%, rgba(247, 245, 242, 0.35) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 7vh, 5rem);
  max-width: 40rem;
}

.hero-title {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3.4rem, 9vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
}

.hero-title span {
  display: block;
  overflow: hidden;
}

.hero-title span > i,
.hero-title span {
  animation: none;
}

.hero-title span {
  transform: translateY(110%);
  opacity: 0;
  animation: riseIn 1.1s var(--ease) forwards;
}

.hero-title span:nth-child(2) {
  animation-delay: 0.12s;
}

.discover {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  padding: 0.55rem 0.55rem 0.55rem 1.15rem;
  border: 1px solid rgba(18, 18, 18, 0.55);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.9s var(--ease) 0.45s forwards;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.discover:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.discover-icon {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 1rem;
  line-height: 1;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}

.discover:hover .discover-icon {
  background: var(--white);
  color: var(--ink);
  transform: rotate(90deg);
}

/* About */
.about {
  padding: clamp(4.5rem, 12vw, 8rem) clamp(1.25rem, 4vw, 3rem);
  max-width: 58rem;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-title {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.about-body {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Collection */
.collection {
  padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(5rem, 10vw, 7rem);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.product {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.product.is-in {
  opacity: 1;
  transform: none;
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e4e0d9;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

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

.product-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0 0.35rem;
}

.product-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.product-price {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.add-btn {
  margin-top: 0.35rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.15rem;
  transition: opacity 0.3s var(--ease);
}

.add-btn:hover {
  opacity: 0.55;
}

/* Statement */
.statement {
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 4vw, 3rem);
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(22, 22, 22, 0.03));
}

.statement-line {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 500;
}

.statement-sub {
  margin: 0.85rem 0 0;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-logo {
  color: var(--brand);
  mix-blend-mode: normal;
}

.footer-logo .logo-word {
  font-size: 1.25rem;
}

/* Bag drawer */
.bag-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background: transparent;
  transition: background 0.35s var(--ease);
}

.bag-drawer.is-open {
  pointer-events: auto;
  background: rgba(10, 10, 10, 0.35);
}

.bag-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 26rem);
  height: 100%;
  background: var(--panel);
  color: #f4f1ec;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
}

.bag-drawer.is-open .bag-panel {
  transform: none;
}

.bag-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.bag-top h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2rem;
}

.bag-close {
  font-size: 1.8rem;
  line-height: 1;
  opacity: 0.8;
}

.bag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  overflow: auto;
}

.bag-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.95rem;
}

.bag-empty {
  color: rgba(244, 241, 236, 0.55);
  padding: 2rem 0;
}

.bag-empty.is-hidden {
  display: none;
}

.bag-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1rem;
}

.bag-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.checkout {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 999px;
  background: #f4f1ec;
  color: #121212;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.checkout:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

@keyframes riseIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero-image {
    object-position: 70% 20%;
  }

  .hero-veil {
    background:
      linear-gradient(180deg, rgba(247, 245, 242, 0.2) 0%, transparent 30%),
      linear-gradient(180deg, transparent 45%, rgba(247, 245, 242, 0.72) 100%);
  }

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

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
