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

:root {
  --bg: #fffdfa;
  --text: #1a1917;
  --text-light: #5a5850;
  --text-faint: #908a82;
  --border: rgba(26, 25, 23, 0.08);
  --shadow: #1a1917;
  --bounce-light: #f5d7a6;
  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --mono: 'IBM Plex Mono', monospace;
}

body {
  font-family: var(--serif);
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  width: 100vw;
}

/* ---- Sunlit Light ---- */
#dappled-light {
  pointer-events: none;
  position: fixed;
  height: 100vh;
  width: 100vw;
  z-index: 0;
}

#glow {
  position: absolute;
  background: linear-gradient(309deg, var(--bounce-light), var(--bounce-light) 20%, transparent);
  height: 100%;
  width: 100%;
  opacity: 0.35;
}

#glow-bounce {
  position: absolute;
  background: linear-gradient(355deg, var(--bounce-light) 0%, transparent 30%, transparent 100%);
  opacity: 0.3;
  height: 100%;
  width: 100%;
  bottom: 0;
}

.perspective {
  position: absolute;
  top: -30vh;
  right: 0;
  width: 80vw;
  height: 130vh;
  opacity: 0.05;
  transform-origin: top right;
  transform-style: preserve-3d;
  transform: matrix3d(
    0.7500, -0.0625, 0.0000, 0.0008,
    0.0000,  1.0000, 0.0000, 0.0000,
    0.0000,  0.0000, 1.0000, 0.0000,
    0.0000,  0.0000, 0.0000, 1.0000
  );
  animation: light-drift 20s ease-in-out infinite alternate;
}

@keyframes light-drift {
  0% {
    opacity: 0.04;
    transform: matrix3d(
      0.7500, -0.0625, 0.0000, 0.0008,
      0.0000,  1.0000, 0.0000, 0.0000,
      0.0000,  0.0000, 1.0000, 0.0000,
      0.0000,  0.0000, 0.0000, 1.0000
    );
  }
  100% {
    opacity: 0.07;
    transform: matrix3d(
      0.7800, -0.0500, 0.0000, 0.0007,
      0.0000,  1.0000, 0.0000, 0.0000,
      0.0000,  0.0000, 1.0000, 0.0000,
      0.0000,  0.0000, 0.0000, 1.0000
    );
  }
}

#blinds .shutter,
#blinds .bar {
  background-color: var(--shadow);
}

#blinds > .shutters {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 60px;
}

#blinds > .vertical {
  top: 0;
  position: absolute;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: space-around;
}

.vertical > .bar {
  width: 5px;
  height: 100%;
}

.shutter {
  width: 100%;
  height: 40px;
}

#progressive-blur {
  position: absolute;
  height: 100%;
  width: 100%;
}

#progressive-blur > div {
  position: absolute;
  height: 100%;
  width: 100%;
  inset: 0;
  backdrop-filter: blur(var(--blur-amount));
  mask-image: linear-gradient(252deg, transparent, transparent var(--stop1), black var(--stop2), black);
}

#progressive-blur > div:nth-child(1) { --blur-amount: 6px; --stop1: 0%; --stop2: 0%; }
#progressive-blur > div:nth-child(2) { --blur-amount: 12px; --stop1: 40%; --stop2: 80%; }
#progressive-blur > div:nth-child(3) { --blur-amount: 48px; --stop1: 40%; --stop2: 70%; }
#progressive-blur > div:nth-child(4) { --blur-amount: 96px; --stop1: 70%; --stop2: 80%; }

/* ---- Page layout ---- */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

/* ---- Center content ---- */
article {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 32px;
  margin-bottom: -40px;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 50px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 28px;
}

.tagline {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-light);
}

.em {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  margin-top: 4px;
  margin-bottom: 40px;
}

.instruction {
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
}

.url-block {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(26, 25, 23, 0.06);
  border: 1.5px solid rgba(26, 25, 23, 0.18);
  padding: 14px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  max-width: 460px;
  overflow: hidden;
  animation: subtle-pulse 3s ease-in-out infinite;
}

.url-block:hover {
  background: rgba(26, 25, 23, 0.1);
  border-color: rgba(26, 25, 23, 0.3);
  animation: none;
}

@keyframes subtle-pulse {
  0%, 100% { border-color: rgba(26, 25, 23, 0.18); }
  50% { border-color: rgba(26, 25, 23, 0.35); }
}

.url-text {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.url-action {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text);
  flex-shrink: 0;
  transition: all 0.3s;
  background: rgba(26, 25, 23, 0.08);
  padding: 4px 10px;
  border-radius: 2px;
}

.url-block:hover .url-action {
  background: rgba(26, 25, 23, 0.15);
}

/* ---- Chain badges ---- */
.chains {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chains-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-faint);
}

.chain-logos {
  display: flex;
  align-items: center;
  gap: 16px;
}

.chain-logo {
  opacity: 0.7;
  transition: opacity 0.3s;
  object-fit: contain;
}

.chain-logo:hover {
  opacity: 1;
}

.chain-logo-base {
  height: 36px; /* logo has built-in whitespace */
}

.chain-logo-abstract {
  height: 14px;
}

.chain-logo-tempo {
  height: 14px;
}

/* ---- Product shelf ---- */
.shelf {
  flex-shrink: 0;
  padding: 0 40px 36px;
  text-align: center;
}

.shelf-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.shelf-track {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.product-card {
  flex: 0 0 130px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border);
  padding: 10px;
  transition: all 0.3s ease;
}

.product-card:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(26, 25, 23, 0.15);
  transform: translateY(-2px);
}

.product-image {
  aspect-ratio: 1;
  overflow: hidden;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f6f2;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.product-name {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 400;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 300;
  color: var(--text-light);
  flex-shrink: 0;
  margin-left: 6px;
}

/* ---- Tablet ---- */
@media (max-width: 960px) {
  .product-card {
    flex: 0 0 110px;
  }

  .shelf {
    padding: 0 24px 32px;
  }

  .shelf-track {
    gap: 12px;
  }
}

/* ---- Mobile ---- */
@media (max-width: 640px) {
  article {
    padding: 0 24px;
  }

  h1 {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .tagline {
    font-size: 15px;
    line-height: 1.7;
  }

  .em {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .instruction {
    font-size: 13px;
  }

  .url-block {
    max-width: 100%;
  }

  .url-text {
    font-size: 11px;
  }

  .shelf {
    padding: 0 16px 24px;
  }

  .shelf-track {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding-bottom: 4px;
  }

  .shelf-track::-webkit-scrollbar {
    display: none;
  }

  .product-card {
    flex: 0 0 100px;
    scroll-snap-align: start;
  }

  .product-name {
    font-size: 11px;
  }

  .product-price {
    font-size: 9px;
  }

  .chains {
    margin-top: 20px;
    gap: 10px;
  }

  .chains-label {
    font-size: 9px;
  }
}
