.armory-page {
  background:
    radial-gradient(circle at 50% 0%, rgb(31 40 41 / 0.2), transparent 32rem),
    var(--color-page);
}

.armory-shell {
  background: linear-gradient(180deg, #070a0b 0, #050708 28rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.armory-main {
  width: min(100%, 430px);
  margin-inline: auto;
  padding: 0 16px calc(92px + env(safe-area-inset-bottom));
}

.armory-intro {
  position: relative;
  margin-top: 20px;
  padding: 0 0 14px 12px;
  border-bottom: 1px solid rgb(214 165 65 / 0.2);
}

.armory-intro::before,
.armory-featured__card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 31px;
  height: 1px;
  background: var(--color-gold);
  content: "";
}

.armory-featured__brand,
.armory-product-card__details > p,
.armory-affiliate-label,
.armory-category__copy small {
  margin: 0;
  font-family: var(--font-label);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.armory-intro h1 {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 0.95;
}

.armory-intro > p:last-child {
  margin: 8px 0 0;
  color: var(--color-text-muted);
  font-size: 0.77rem;
  line-height: 1.42;
}

.armory-categories {
  margin-top: 13px;
}

.armory-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.armory-category {
  position: relative;
  display: flex;
  min-height: 98px;
  align-items: flex-end;
  overflow: hidden;
  padding: 9px;
  border: 1px solid rgb(140 101 31 / 0.8);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  background: #0a0e0f;
  box-shadow: inset 0 0 0 1px rgb(56 77 79 / 0.12), 0 8px 16px rgb(0 0 0 / 0.18);
  isolation: isolate;
  text-decoration: none;
  touch-action: manipulation;
}

.armory-category::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0.08) 0%, rgb(0 0 0 / 0.26) 45%, rgb(0 0 0 / 0.8) 100%);
  content: "";
  pointer-events: none;
}

.armory-category__art {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 52%;
}

.armory-category:nth-child(1) .armory-category__art { object-position: 52% 52%; }
.armory-category:nth-child(2) .armory-category__art { object-position: 51% 53%; }
.armory-category:nth-child(3) .armory-category__art { object-position: 50% 56%; }
.armory-category:nth-child(4) .armory-category__art { object-position: 50% 54%; }
.armory-category:nth-child(5) .armory-category__art { object-position: 52% 52%; }
.armory-category:nth-child(6) .armory-category__art { object-position: 52% 52%; }
.armory-category:nth-child(7) .armory-category__art { object-position: 50% 50%; }

.armory-category:not(.armory-category--coming):hover,
.armory-category:not(.armory-category--coming):focus-visible {
  border-color: var(--color-gold-bright);
  box-shadow: inset 0 0 0 1px rgb(240 198 93 / 0.2), 0 8px 16px rgb(0 0 0 / 0.24);
}

.armory-category:not(.armory-category--coming):active {
  transform: translateY(1px);
}

.armory-category--coming {
  border-color: rgb(119 125 122 / 0.44);
  color: #cbcbc6;
}

.armory-category__copy {
  display: grid;
  min-width: 0;
  gap: 3px;
  position: relative;
  z-index: 2;
}

.armory-category__copy strong {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 0.9;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.armory-category__copy small {
  color: var(--color-gold-muted);
  font-size: 0.51rem;
  line-height: 1;
}

.armory-category:not(.armory-category--coming) .armory-category__copy small {
  color: var(--color-gold);
}

.armory-category__copy b {
  font-size: 0.76rem;
}

.armory-featured,
.armory-more {
  margin-top: 21px;
}

.armory-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.armory-section-label span {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgb(214 165 65 / 0.48));
}

.armory-section-label span:last-child {
  background: linear-gradient(90deg, rgb(214 165 65 / 0.48), transparent);
}

.armory-section-label p,
.armory-section-label h2 {
  margin: 0;
  color: var(--color-gold);
  font-family: var(--font-label);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.armory-featured__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgb(140 101 31 / 0.86);
  border-radius: var(--radius-md);
  background: linear-gradient(140deg, #111716, #090d0e 75%);
  box-shadow: var(--shadow-card);
}

.armory-featured__card::before {
  left: 9px;
}

.armory-featured__media {
  position: relative;
  align-self: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgb(56 197 220 / 0.24);
  border-radius: var(--radius-sm);
  background: radial-gradient(circle at 50% 42%, #0e1315, #050708 78%);
}

.armory-featured__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 360ms ease;
}

.armory-featured__media img.is-active {
  opacity: 1;
}

.armory-featured__details {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.armory-featured__brand {
  margin-top: 4px;
  color: var(--color-cyan);
  font-size: 0.53rem;
}

.armory-featured h2 {
  margin: 5px 0 0;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 0.96;
}

.armory-featured__descriptor {
  margin: 6px 0 0;
  color: var(--color-text-muted);
  font-size: 0.65rem;
  line-height: 1.2;
}

.armory-featured__badge {
  margin: 9px 0 0;
  padding: 3px 5px;
  border: 1px solid rgb(214 165 65 / 0.58);
  border-radius: 3px;
  color: var(--color-gold-bright);
  background: rgb(74 53 16 / 0.35);
  font-family: var(--font-label);
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.065em;
  line-height: 1;
}

.armory-price-cta {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding: 0 8px;
  border: 1px solid rgb(214 165 65 / 0.78);
  border-radius: var(--radius-sm);
  color: #1b1509;
  background: #c9993e;
  box-shadow: inset 0 1px 0 rgb(255 232 165 / 0.36);
  font-family: var(--font-label);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-decoration: none;
  touch-action: manipulation;
}

.armory-price-cta svg {
  width: 12px;
  height: 12px;
}

.armory-price-cta:hover,
.armory-price-cta:focus-visible {
  background: var(--color-gold-bright);
}

.armory-price-cta:active {
  transform: translateY(1px);
}

.armory-affiliate-label {
  margin-top: 5px;
  color: var(--color-text-muted);
  font-size: 0.49rem;
}

.armory-product-grid {
  display: grid;
  gap: 9px;
}

.armory-product-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 110px;
  padding: 8px;
  border: 1px solid rgb(140 101 31 / 0.7);
  border-radius: var(--radius-md);
  background: #0a0e0f;
}

.armory-product-card__media {
  display: grid;
  overflow: hidden;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: 6px;
  border: 1px solid rgb(119 125 122 / 0.3);
  border-radius: var(--radius-sm);
  background: radial-gradient(circle at 50% 40%, #0d1113, #070a0b 78%);
}

.armory-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.armory-product-card__details {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.armory-product-card__details > p {
  color: var(--color-gold-muted);
  font-size: 0.49rem;
  line-height: 1.1;
}

.armory-product-card h3 {
  margin: 4px 0 0;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 0.96;
}

.armory-product-card__details a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  color: var(--color-gold-bright);
  font-family: var(--font-label);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-decoration: none;
}

.armory-product-card__details a span {
  font-size: 0.72rem;
}

.armory-product-card__details a:hover,
.armory-product-card__details a:focus-visible {
  color: var(--color-text);
}

.armory-product-card__details small {
  margin-top: 4px;
  color: var(--color-text-muted);
  font-family: var(--font-label);
  font-size: 0.49rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.armory-disclosure {
  margin: 14px 0 0;
  padding: 9px 10px;
  border-left: 2px solid rgb(214 165 65 / 0.65);
  color: var(--color-text-muted);
  background: rgb(17 21 19 / 0.62);
  font-size: 0.65rem;
  line-height: 1.38;
}

@media (prefers-reduced-motion: reduce) {
  .armory-featured__media img {
    transition: none;
  }
}

@media (min-width: 480px) {
  .armory-main {
    padding-inline: 24px;
  }
}

@media (min-width: 768px) {
  .armory-main {
    width: min(100%, 760px);
    padding: 0 32px var(--space-10);
  }

  .armory-intro {
    margin-top: 28px;
  }

  .armory-intro h1 {
    font-size: 2rem;
  }

  .armory-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .armory-category {
    min-height: 112px;
  }

  .armory-featured__card {
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    padding: 18px;
  }

  .armory-featured__media {
    min-height: 0;
  }

  .armory-featured h2 {
    font-size: 1.22rem;
  }

  .armory-featured__descriptor {
    font-size: 0.78rem;
  }

  .armory-price-cta {
    min-height: 38px;
    font-size: 0.72rem;
  }

  .armory-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  /* Stacked cards on tablet+: the product photo leads, copy sits beneath it. */
  .armory-product-card {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 0;
    min-height: 0;
    padding: 0;
    overflow: hidden;
  }

  .armory-product-card__media {
    aspect-ratio: 4 / 3;
    padding: 10px;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid rgb(214 165 65 / 0.16);
  }

  .armory-product-card__details {
    padding: 14px 16px 16px;
  }
}

@media (min-width: 1024px) {
  .armory-main {
    width: min(100%, 1200px);
    padding-inline: 44px;
  }

  .armory-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .armory-category {
    min-height: 176px;
  }

  /* Desktop scale pass: the featured product reads as a hero image. */
  .armory-featured__card {
    grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
    align-items: center;
    gap: 44px;
    padding: 30px 32px;
  }

  .armory-featured__details { align-self: center; max-width: 34ch; }

  .armory-featured h2 {
    font-size: 1.7rem;
  }

  .armory-featured__descriptor {
    font-size: 0.92rem;
  }

  .armory-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

  .armory-product-card__details h3 {
    font-size: 1.15rem;
  }
}

@media (min-width: 1360px) {
  .armory-main {
    width: min(100%, 1320px);
  }

  .armory-featured__card {
    grid-template-columns: minmax(0, 540px) minmax(0, 1fr);
  }
}
