/* =============================== ROOT VARIABLES ================================ */
:root {
  --bg-black: #000000;
  --text-bone: #d6d0c5;
  --text-ash: #7a7a72;
  --accent-blood: #5a0d0f;
  --accent-blood-light: #7a0e0f;
  --accent-silver: #9b9890;
  --panel-black: rgba(0, 0, 0, 0.68);
}

/* =============================== GLOBAL RESET ================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  font-family: 'Libre Baskerville', serif;
  color: var(--text-bone);
  overflow-x: hidden;
  background-color: var(--bg-black);
}

a {
  color: inherit;
}

/* =============================== NAVIGATION ================================ */
.occult-nav {
  position: fixed;
  top: 0;
  width: 100%;
  min-height: 86px;
  z-index: 100;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(214, 208, 197, 0.055);
}

.site-logo {
  position: relative;
  width: 74px;
  height: 74px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  opacity: 0.92;

  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    filter 0.3s ease;
}

.site-logo:hover {
  opacity: 1;
  transform: scale(1.04);
  filter: drop-shadow(0 0 10px rgba(90, 13, 15, 0.45));
}

.site-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  filter:
    grayscale(100%)
    contrast(135%)
    brightness(92%);
}

.logo-fallback {
  display: none;

  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1;

  color: var(--text-bone);

  text-shadow:
    0 0 8px rgba(0, 0, 0, 1),
    0 0 12px rgba(90, 13, 15, 0.35);
}

.occult-nav ul {
  list-style: none;

  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(100px, 0.8fr) 96px minmax(100px, 0.8fr) minmax(130px, 1fr);
  justify-items: center;
  align-items: center;

  gap: 1.8rem;
  width: min(100%, 980px);
  padding: 0.5rem 2rem;

  font-family: 'Cinzel', serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 0.82rem;
}

.nav-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  grid-column: 3;
  justify-self: center;
}

.nav-logo-item .site-logo::after {
  display: none;
}

.occult-nav a,
.nav-dropdown summary {
  color: var(--text-bone);
  text-decoration: none;

  opacity: 0.82;
  position: relative;

  transition:
    color 0.3s ease,
    opacity 0.3s ease,
    text-shadow 0.3s ease;
}

.occult-nav ul a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -8px;

  width: 0%;
  height: 1px;

  background: var(--accent-blood);

  transition: width 0.3s ease;
}

.occult-nav ul a:hover,
.occult-nav ul a.active,
.nav-dropdown summary:hover,
.nav-dropdown summary.active {
  color: var(--accent-blood);
  opacity: 1;

  text-shadow: 0 0 8px rgba(90, 13, 15, 0.75);
}

.occult-nav ul a:hover::after,
.occult-nav ul a.active::after {
  width: 100%;
}

.nav-shop {
  position: relative;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  margin-top: -0.22rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.9;
}

.nav-label {
  position: relative;
}

.nav-label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0%;
  height: 1px;
  background: var(--accent-blood);
  transition: width 0.3s ease;
}

.nav-dropdown summary:hover .nav-label::after,
.nav-dropdown summary.active .nav-label::after {
  width: 100%;
}

.nav-dropdown-menu {
  position: absolute;
  left: 50%;
  top: calc(100% + 1.35rem);
  width: min(76vw, 330px);
  padding: 1rem 0;
  transform: translateX(-50%);
  border: 1px solid rgba(155, 152, 144, 0.34);
  background: rgba(0, 0, 0, 0.93);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.76),
    inset 0 0 0 1px rgba(214, 208, 197, 0.04);
  display: none;
  z-index: 120;
}

.nav-dropdown[open] .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.88rem 1.6rem;
  color: var(--text-bone);
  font-family: 'Libre Baskerville', serif;
  font-size: 0.96rem;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.92;
  text-shadow: none;
}

.occult-nav .nav-dropdown-menu a::after {
  display: none;
}

.occult-nav .nav-dropdown-menu a:hover {
  color: white;
  background: rgba(90, 13, 15, 0.2);
  text-shadow: none;
}

/* =============================== HERO / PAGE STRUCTURE ================================ */
.hero,
.page-shell {
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;
  overflow: hidden;

  padding: 110px 1rem 5rem;
}

.page-shell {
  align-items: flex-start;
}

.section-inner,
.hero-content {
  position: relative;
  z-index: 8;

  text-align: center;

  max-width: 1050px;
  width: 100%;

  padding: 4rem 2rem;
  margin: 0 auto;
}

/* =============================== HOMEPAGE ================================ */
body.home {
  overflow-x: hidden;
  background: black;
}

.home-hero {
  height: 100vh;
  min-height: 100vh;

  padding: 118px 1rem 2rem;

  background-image:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.45)),
    url("images/sanctum.jpg");

  background-repeat: no-repeat;
  background-position: center center;
  background-size: auto 100vh;
  background-color: black;
}

.home-hero::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.58) 0%,
      rgba(0, 0, 0, 0.18) 24%,
      rgba(0, 0, 0, 0.02) 50%,
      rgba(0, 0, 0, 0.18) 76%,
      rgba(0, 0, 0, 0.58) 100%
    );

  pointer-events: none;
  z-index: 1;
}

.home-content {
  transform: translateY(0.4rem);
  animation: homeReveal 1.8s ease forwards;
}

@keyframes homeReveal {
  from {
    opacity: 0;
    transform: translateY(1.8rem);
  }

  to {
    opacity: 1;
    transform: translateY(0.4rem);
  }
}

.home-content::before {
  content: "";

  position: absolute;
  left: 50%;
  top: 50%;

  width: min(720px, 90vw);
  height: 520px;

  transform: translate(-50%, -50%);

  background:
    radial-gradient(circle at center,
      rgba(0, 0, 0, 0.52) 0%,
      rgba(0, 0, 0, 0.32) 34%,
      rgba(0, 0, 0, 0.1) 64%,
      rgba(0, 0, 0, 0) 80%
    );

  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}

/* =============================== TYPOGRAPHY ================================ */
.hero-content h1,
.section-inner h3 {
  font-family: 'Cinzel', serif;

  font-size: clamp(3.6rem, 7vw, 7rem);
  font-weight: 400;
  letter-spacing: 0.34em;

  margin-bottom: 1rem;
  padding-left: 0.34em;

  text-transform: uppercase;
  color: var(--text-bone);

  text-shadow:
    0 0 8px rgba(0, 0, 0, 1),
    0 0 20px rgba(0, 0, 0, 0.95);
}

.hero-content h2 {
  font-family: 'Cinzel', serif;

  font-size: 0.85rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  font-weight: 400;

  color: var(--text-bone);
  opacity: 0.84;

  line-height: 1.8;

  text-shadow:
    0 0 8px rgba(0, 0, 0, 1),
    0 0 18px rgba(0, 0, 0, 1);

  transition:
    color 0.4s ease,
    text-shadow 0.4s ease,
    opacity 0.4s ease;
}

body.home .hero-content h1 {
  font-size: clamp(2.35rem, 5vw, 5.2rem);
  letter-spacing: 0.22em;
  padding-left: 0.22em;
  white-space: nowrap;
}

.hero-content h2:hover {
  color: var(--accent-blood-light);
  opacity: 1;

  text-shadow:
    0 0 10px rgba(0, 0, 0, 1),
    0 0 18px rgba(90, 13, 15, 0.85);
}

.home-line {
  margin-top: 2rem;

  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;

  color: var(--text-bone);
  opacity: 0.76;

  line-height: 1.9;

  text-shadow:
    0 0 8px rgba(0, 0, 0, 1),
    0 0 18px rgba(0, 0, 0, 1);
}

.featured-home {
  position: relative;
  background:
    linear-gradient(rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.96)),
    url("images/inner-temple-bg.png") center / cover fixed no-repeat black;
  padding: 5.5rem 1rem 6rem;
}

.featured-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.featured-inner h2 {
  max-width: 980px;
  margin: 0 auto 5rem;
  color: var(--text-bone);
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(1.85rem, 3.6vw, 3rem);
  font-weight: 400;
  line-height: 1.32;
  text-align: center;
  text-shadow:
    0 0 10px rgba(0, 0, 0, 1),
    0 0 22px rgba(0, 0, 0, 0.92);
}

.home-feature {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(240px, 0.9fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
  margin-bottom: 6rem;
}

.home-feature.reverse {
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.1fr);
}

.home-feature.reverse .home-feature-image {
  order: 2;
}

.home-feature.reverse .home-feature-copy {
  order: 1;
}

.home-feature-image {
  display: flex;
  justify-content: center;
}

.home-feature-image img {
  width: min(100%, 470px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 50% / 58%;
  border: 1px solid rgba(155, 152, 144, 0.42);
  box-shadow:
    0 0 38px rgba(0, 0, 0, 0.86),
    0 0 90px rgba(0, 0, 0, 0.72);
  filter:
    grayscale(12%)
    contrast(122%)
    brightness(88%);
}

.painting-feature .home-feature-image img {
  aspect-ratio: 1 / 1;
  border-radius: 0;
}

.home-feature-copy {
  text-align: center;
  justify-self: center;
}

.home-feature-copy h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-bone);
  margin-bottom: 0.9rem;
}

.home-feature-copy .price {
  color: white;
  font-weight: 700;
  margin-bottom: 2.2rem;
}

.page-intro {
  max-width: 760px;
  margin: 0 auto 2rem;

  color: var(--text-bone);
  line-height: 1.9;
  font-size: 0.95rem;
  opacity: 0.9;
}

.divider {
  width: 120px;
  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(214, 208, 197, 0.65),
    transparent
  );

  margin: 2rem auto;
  opacity: 0.72;
}

/* =============================== CINEMATIC OVERLAYS ================================ */
.fog,
.grain,
.ritual-light,
.ash,
.runes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fog {
  background: url('https://grainy-gradients.vercel.app/noise.svg');
  opacity: 0.07;
  animation: slowFog 120s linear infinite;
  z-index: 2;
}

@keyframes slowFog {
  from {
    transform: translateX(-25%);
  }

  to {
    transform: translateX(25%);
  }
}

.grain {
  background: url('https://grainy-gradients.vercel.app/noise.svg');
  opacity: 0.08;
  z-index: 3;
}

.ritual-light {
  background: radial-gradient(circle at center, rgba(90, 13, 15, 0.08), transparent 72%);
  opacity: 0.12;
  animation: flicker 3s infinite;
  z-index: 4;
}

@keyframes flicker {
  0%,
  100% {
    opacity: 0.11;
  }

  25% {
    opacity: 0.07;
  }

  50% {
    opacity: 0.14;
  }

  75% {
    opacity: 0.09;
  }
}

/* =============================== PORTRAIT ================================ */
.portrait-frame {
  width: 138px;
  aspect-ratio: 2 / 3;

  margin: 0 auto 2rem;

  border-radius: 50% / 60%;
  padding: 6px;

  background: linear-gradient(145deg, #1a1a18, #000);

  box-shadow:
    0 0 35px rgba(0, 0, 0, 1),
    0 0 70px rgba(90, 13, 15, 0.18),
    0 0 110px rgba(0, 0, 0, 0.95);

  border: 1px solid rgba(214, 208, 197, 0.45);
  overflow: hidden;
}

.portrait-frame img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: top 10% center;

  transform: scale(1.05);

  border-radius: 50% / 60%;

  filter:
    grayscale(20%)
    contrast(130%)
    brightness(85%);

  transition:
    transform 0.6s ease,
    filter 0.6s ease;
}

.portrait-frame:hover img {
  transform: scale(1.12);

  filter:
    grayscale(0%)
    contrast(120%)
    brightness(95%);
}

/* =============================== GALLERY ================================ */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;

  margin-top: 2.5rem;

  position: relative;
  z-index: 3;
}

.product-card,
.invocation-card {
  position: relative;
  overflow: hidden;

  border: 1px solid rgba(155, 152, 144, 0.7);
  border-radius: 8px;

  max-width: 350px;
  background: var(--panel-black);

  text-align: center;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.product-card:hover,
.invocation-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-blood-light);
  box-shadow: 0 0 26px rgba(90, 13, 15, 0.35);
}

.product-card img,
.invocation-card img {
  width: 100%;
  display: block;

  max-height: 400px;
  object-fit: cover;

  filter:
    grayscale(20%)
    contrast(130%)
    brightness(85%);

  transition:
    transform 0.4s ease,
    filter 0.4s ease;
}

.product-card:hover img,
.invocation-card:hover img {
  transform: scale(1.05);

  filter:
    grayscale(0%)
    contrast(120%)
    brightness(95%);
}

.product-card.sale {
  border-color: var(--accent-blood);
  box-shadow: 0 0 18px rgba(90, 13, 15, 0.35);
}

.product-info {
  padding: 1.3rem 1.2rem 1.5rem;
}

.product-info h3,
.product-card h3,
.contact-panel h3 {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;

  font-size: 0.95rem;

  color: var(--text-bone);

  margin-bottom: 0.8rem;
}

.price {
  color: var(--accent-silver);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.product-description,
.product-info p,
.contact-panel p {
  color: var(--text-ash);
  font-size: 0.86rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.product-card span {
  display: block;
  padding: 0.8rem;
  color: var(--text-bone);
}

.collection-header {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(155, 152, 144, 0.22);
  background: rgba(0, 0, 0, 0.38);
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.42);
}

.collection-header h2 {
  font-size: 0.82rem;
  letter-spacing: 0.32em;
}

.collection-note {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  max-width: 850px;
  margin: 2rem auto 0;
  border: 1px solid rgba(155, 152, 144, 0.32);
  background: rgba(0, 0, 0, 0.44);
}

.collection-note span {
  padding: 0.85rem 1.2rem;
  color: var(--text-ash);
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-right: 1px solid rgba(155, 152, 144, 0.18);
}

.collection-note span:last-child {
  border-right: 0;
}

.collection-gallery .product-card {
  display: flex;
  flex-direction: column;
  border-color: rgba(155, 152, 144, 0.5);
  background: rgba(0, 0, 0, 0.58);
}

.collection-gallery .product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 230px;
}

.collection-gallery .buy-btn {
  margin-top: auto;
}

.collection-gallery .product-card img {
  height: 330px;
  max-height: none;
}

.collection-gallery .product-card:hover {
  transform: translateY(-4px);
}

.product-status {
  margin-bottom: 0.65rem;
  color: var(--accent-silver);
  font-family: 'Cinzel', serif;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.product-status.archive {
  opacity: 0.66;
}

.editorial-product[hidden] {
  display: none;
}

.editorial-products {
  position: relative;
  z-index: 3;
  max-width: 980px;
  margin: 3.5rem auto 0;
}

.editorial-product {
  display: grid;
  grid-template-columns: minmax(260px, 1.05fr) minmax(240px, 0.95fr);
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}

.editorial-product.reverse {
  grid-template-columns: minmax(240px, 0.95fr) minmax(260px, 1.05fr);
}

.editorial-product.reverse .editorial-image {
  order: 2;
}

.editorial-product.reverse .editorial-info {
  order: 1;
}

.editorial-image {
  display: flex;
  justify-content: center;
}

.editorial-image img {
  width: min(100%, 430px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 50% / 58%;
  border: 1px solid rgba(155, 152, 144, 0.42);
  box-shadow:
    0 0 35px rgba(0, 0, 0, 0.82),
    0 0 80px rgba(0, 0, 0, 0.62);
  filter:
    grayscale(18%)
    contrast(125%)
    brightness(86%);
}

body.paintings-page .editorial-image img {
  aspect-ratio: 1 / 1;
  border-radius: 0;
}

.editorial-info {
  max-width: 360px;
  text-align: center;
  justify-self: center;
}

.editorial-info h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-bone);
  margin-bottom: 0.85rem;
}

.editorial-info .product-description {
  margin: 1rem 0 1.2rem;
}

.merged-section {
  margin-top: 4rem;
}

/* =============================== SIMPLE SHOP PAGES ================================ */
.simple-page {
  min-height: 100vh;
  padding-top: 150px;
}

.simple-content {
  position: relative;
  z-index: 8;
  width: min(1060px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 1rem 5rem;
  text-align: center;
}

.simple-content h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-bone);
  margin-bottom: 2rem;
  text-shadow:
    0 0 10px rgba(0, 0, 0, 1),
    0 0 28px rgba(0, 0, 0, 0.9);
}

.elegant-heading {
  font-family: 'Libre Baskerville', serif;
  font-weight: 400;
  letter-spacing: 0;
}

.small-page-heading {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.45rem, 3vw, 2.45rem);
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding-left: 0.32em;
  margin-bottom: 0.8rem;
  color: rgba(214, 208, 197, 0.76);
  text-shadow:
    0 0 6px rgba(0, 0, 0, 1),
    0 0 14px rgba(0, 0, 0, 0.92);
}

.small-page-heading + .divider {
  margin: 0 auto 2.2rem;
}

.simple-content > p {
  max-width: 800px;
  margin: 0 auto 1.8rem;
  color: var(--text-bone);
  font-size: 1.05rem;
  line-height: 1.9;
  opacity: 0.9;
}

.email-link {
  display: inline-block;
  margin: 0.8rem auto 4rem;
  color: white;
  font-size: clamp(1.05rem, 2.4vw, 1.55rem);
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 0 16px rgba(0, 0, 0, 1);
}

.email-link:hover {
  color: var(--accent-silver);
}

.footer-sigil {
  display: block;
  width: 116px;
  height: 116px;
  object-fit: contain;
  margin: 2rem auto;
  filter:
    grayscale(100%)
    contrast(140%)
    brightness(96%)
    drop-shadow(0 0 18px rgba(0, 0, 0, 0.9));
}

.clean-socials {
  margin-top: 1rem;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
  text-align: left;
  max-width: 960px;
  margin: 0 auto 4rem;
}

.about-photo > img:not(.bone-frame) {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: 50% / 58%;
  border: 1px solid rgba(155, 152, 144, 0.42);
  box-shadow:
    0 0 35px rgba(0, 0, 0, 0.82),
    0 0 80px rgba(0, 0, 0, 0.62);
  filter:
    grayscale(18%)
    contrast(125%)
    brightness(86%);
}

.about-photo {
  position: relative;
}

.about-photo .bone-frame {
  position: absolute;
  left: 50%;
  bottom: -3.45rem;
  width: 245%;
  max-width: none;
  height: auto;
  object-fit: contain;
  transform: translateX(-50%);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  z-index: 2;
  opacity: 0.88;
  filter:
    grayscale(100%)
    contrast(118%)
    brightness(112%)
    drop-shadow(0 0 10px rgba(0, 0, 0, 0.9));
  pointer-events: none;
}

.about-text p {
  color: var(--text-bone);
  font-size: 0.98rem;
  line-height: 1.95;
  opacity: 0.9;
  margin-bottom: 1.35rem;
}

.gallery-wall {
  columns: 3 240px;
  column-gap: 1.1rem;
  max-width: 980px;
  margin: 3rem auto 0;
}

.gallery-wall img {
  width: 100%;
  display: block;
  margin: 0 0 1.1rem;
  break-inside: avoid;
  border: 1px solid rgba(155, 152, 144, 0.28);
  filter:
    grayscale(12%)
    contrast(120%)
    brightness(84%);
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.58);
}

.apparel-preview {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.apparel-preview article {
  width: min(100%, 420px);
  padding: 2.4rem;
  border: 1px solid rgba(155, 152, 144, 0.32);
  background: rgba(0, 0, 0, 0.44);
  box-shadow:
    0 0 28px rgba(0, 0, 0, 0.58),
    inset 0 0 0 1px rgba(214, 208, 197, 0.04);
}

.apparel-preview img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  filter:
    grayscale(100%)
    contrast(140%)
    brightness(95%);
}

.apparel-preview h2 {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.apparel-preview p {
  color: var(--text-ash);
  margin-bottom: 1rem;
}

/* =============================== PRODUCT DETAIL ================================ */
.product-detail-page {
  background:
    linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.9)),
    url("images/inner-temple-bg.png") center / cover fixed no-repeat black;
}

.apparel-product-page {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.9)),
    url("images/armoury-bg.png");
}

.product-detail {
  align-items: flex-start;
  padding-top: 150px;
}

.product-detail-inner {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 1rem 5rem;
}

.product-media {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
}

.product-thumbs {
  display: grid;
  gap: 1rem;
}

.thumb {
  width: 76px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid rgba(155, 152, 144, 0.28);
  background: rgba(0, 0, 0, 0.42);
  cursor: pointer;
  opacity: 0.68;
}

.thumb.active,
.thumb:hover {
  opacity: 1;
  border-color: rgba(214, 208, 197, 0.58);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-main-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(155, 152, 144, 0.28);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.72);
  filter:
    grayscale(10%)
    contrast(120%)
    brightness(86%);
}

.product-purchase {
  text-align: left;
  padding-top: 1.4rem;
}

.breadcrumb {
  margin-bottom: 2.1rem;
  color: var(--text-ash);
  font-family: 'Cinzel', serif;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product-purchase h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--text-bone);
}

.product-detail-price {
  color: var(--accent-silver);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.product-detail-description {
  color: var(--text-bone);
  line-height: 1.9;
  margin-bottom: 2.4rem;
}

.product-option {
  display: block;
  margin-bottom: 1.4rem;
}

.product-option span {
  display: block;
  margin-bottom: 0.7rem;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-bone);
}

.product-option select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(155, 152, 144, 0.38);
  background: rgba(0, 0, 0, 0.52);
  color: var(--text-bone);
  font-family: 'Libre Baskerville', serif;
  font-size: 0.95rem;
}

.stock-note {
  margin: 2rem 0 1.4rem;
  color: var(--accent-silver);
  font-size: 0.9rem;
}

.purchase-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.purchase-row input {
  width: 74px;
  height: 54px;
  border: 1px solid rgba(155, 152, 144, 0.38);
  background: rgba(0, 0, 0, 0.52);
  color: var(--text-bone);
  text-align: center;
  font-family: 'Libre Baskerville', serif;
  font-size: 1rem;
}

.product-action {
  width: 100%;
  margin: 0;
  text-align: center;
  padding: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.shopify-buy-mount {
  width: 100%;
}

/* =============================== BUTTONS ================================ */
.buy-btn {
  display: inline-block;

  margin: 0.5rem 0 0;
  padding: 0.65rem 1rem;

  background: var(--accent-blood);
  color: var(--text-bone);

  border: 1px solid rgba(214, 208, 197, 0.1);
  border-radius: 4px;

  cursor: pointer;

  font-family: 'Libre Baskerville', serif;
  text-decoration: none;
  font-size: 0.82rem;

  transition:
    background 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.3s ease;
}

.buy-btn:hover {
  background: var(--accent-blood-light);
  transform: scale(1.04);
  box-shadow: 0 0 15px rgba(90, 13, 15, 0.45);
}

/* =============================== INVOCATION ================================ */
.invocation-inner {
  max-width: 860px;
}

.invocation-top-panel {
  position: relative;
  max-width: 780px;
  margin: 0 auto 1.5rem;
  padding: 1.45rem 1.8rem 1.45rem 11rem;
  text-align: left;
  border: 1px solid rgba(155, 152, 144, 0.32);
  background: rgba(0, 0, 0, 0.46);
  box-shadow:
    0 0 28px rgba(0, 0, 0, 0.58),
    inset 0 0 0 1px rgba(214, 208, 197, 0.045);
}

.invocation-top-panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(214, 208, 197, 0.08);
  pointer-events: none;
}

.invocation-top-panel .portrait-frame {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 88px;
  margin: 0;
  box-shadow:
    0 0 28px rgba(0, 0, 0, 1),
    0 0 52px rgba(90, 13, 15, 0.12);
}

.invocation-top-panel .page-intro {
  margin: 0;
  max-width: none;
  font-size: 0.92rem;
}

.invocation-top-panel .divider {
  margin: 1.5rem auto;
  width: 96px;
}

.invocation-copy > p:not(.page-intro) {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-ash);
  font-size: 0.86rem;
  line-height: 1.8;
}

.invocation-intro {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  gap: 2.5rem;
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: left;
}

.invocation-intro .portrait-frame {
  width: 150px;
  margin: 0;
}

.invocation-copy h3 {
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  letter-spacing: 0.26em;
  padding-left: 0.26em;
  margin-bottom: 0.8rem;
}

.invocation-copy .page-intro {
  margin: 0;
  max-width: 560px;
}

.invocation-copy .divider {
  margin: 1.6rem 0 0;
}

.invocation-top-panel .invocation-copy .page-intro {
  margin: 0;
}

.invocation-top-panel .invocation-copy .divider {
  margin: 1.6rem auto;
}

.invocation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: center;
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.invocation-action-panel {
  max-width: 780px;
  margin: 0 auto;
  padding: 0;
  display: block;
  text-align: left;
  border: 1px solid rgba(155, 152, 144, 0.32);
  background: rgba(0, 0, 0, 0.38);
  box-shadow:
    0 0 28px rgba(0, 0, 0, 0.58),
    inset 0 0 0 1px rgba(214, 208, 197, 0.04);
}

.invocation-action-block {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1.1fr);
  align-items: center;
  gap: 1.2rem;
  min-height: 0;
  padding: 1.65rem 2rem;
  border-bottom: 1px solid rgba(155, 152, 144, 0.18);
}

.invocation-action-block:last-child {
  border-bottom: 0;
}

.invocation-action-title,
.invocation-action-menu summary {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 1rem;
  color: var(--text-bone);
  text-decoration: none;
  opacity: 0.94;
  cursor: pointer;
  transition:
    color 0.3s ease,
    opacity 0.3s ease,
    text-shadow 0.3s ease;
}

.invocation-action-title:hover,
.invocation-action-menu summary:hover {
  color: white;
  opacity: 1;
  text-shadow: 0 0 10px rgba(214, 208, 197, 0.22);
}

.invocation-action-block p {
  color: var(--text-ash);
  font-size: 0.86rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.invocation-action-menu {
  position: relative;
}

.social-menu summary {
  list-style: none;
}

.social-menu summary::-webkit-details-marker {
  display: none;
}

.social-menu-links {
  position: absolute;
  left: 0;
  top: calc(100% + 0.65rem);
  min-width: 170px;
  padding: 0.55rem;
  border: 1px solid rgba(155, 152, 144, 0.5);
  background: rgba(0, 0, 0, 0.92);
  box-shadow: 0 0 22px rgba(0, 0, 0, 0.65);
  z-index: 20;
}

.social-menu-links a {
  display: block;
  padding: 0.7rem 0.8rem;
  color: var(--text-bone);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  border-bottom: 1px solid rgba(155, 152, 144, 0.18);
}

.social-menu-links a:last-child {
  border-bottom: 0;
}

.social-menu-links a:hover {
  color: white;
  background: rgba(90, 13, 15, 0.28);
}

.invocation-card {
  max-width: none;
  width: 100%;
}

body.invocation .invocation-card,
body.invocation .contact-panel {
  background: rgba(0, 0, 0, 0.5);
}

.invocation-card img {
  height: 260px;
}

.invocation-card .product-info {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.invocation-card .buy-btn {
  margin-top: auto;
}

.contact-panel {
  position: relative;
  z-index: 3;

  max-width: 800px;
  margin: 4rem auto 0;
  padding: 3rem 2rem;

  text-align: center;

  border: 1px solid rgba(155, 152, 144, 0.35);
  background: rgba(0, 0, 0, 0.55);

  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.invocation-ritual-panel {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  padding: 2rem;
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;

  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  border: 1px solid rgba(155, 152, 144, 0.6);

  padding: 0.75rem 1.2rem;

  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;

  font-size: 0.75rem;
  color: var(--text-bone);

  background: rgba(0, 0, 0, 0.45);

  transition: all 0.3s ease;
}

.social-links a:hover {
  border-color: var(--accent-blood-light);
  color: white;
  box-shadow: 0 0 18px rgba(90, 13, 15, 0.45);
}

/* =============================== OTHER PAGE BACKGROUNDS ================================ */
body.armoury {
  background:
    linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.86)),
    url("images/armoury-bg.png") center / cover fixed no-repeat black;
}

body.bestiary {
  background:
    linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.86)),
    url("images/bestiary-bg.png") center / cover fixed no-repeat black;
}

body.inner-temple {
  background:
    linear-gradient(rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.88)),
    url("images/inner-temple-bg.png") center / cover fixed no-repeat black;
}

body.invocation {
  background:
    linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.58)),
    url("images/invocation-bg.png") center / cover fixed no-repeat black;
}

body.contact-page,
body.about-page,
body.gallery-page,
body.apparel-page,
body.paintings-page,
body.drawings-page,
body.prints-page {
  background:
    linear-gradient(rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.88)),
    url("images/invocation-bg.png") center / cover fixed no-repeat black;
}

body.about-page {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.88)),
    url("images/inner-temple-bg.png");
}

body.gallery-page,
body.apparel-page,
body.paintings-page,
body.drawings-page,
body.prints-page {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.9)),
    url("images/inner-temple-bg.png");
}

body.apparel-page {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.9)),
    url("images/armoury-bg.png");
}

/* =============================== RESPONSIVE ================================ */
@media (max-width: 1024px) {
  .site-logo {
    width: 58px;
    height: 58px;
  }

  .hero-content h1,
  .section-inner h3 {
    font-size: 3.2rem;
  }

  body.armoury,
  body.bestiary,
  body.invocation,
  body.contact-page,
  body.about-page,
  body.gallery-page,
  body.apparel-page,
  body.paintings-page,
  body.drawings-page,
  body.prints-page {
    background-size: cover;
    background-position: center;
  }

  .occult-nav ul {
    grid-template-columns: minmax(110px, 1fr) minmax(86px, 0.8fr) 72px minmax(86px, 0.8fr) minmax(110px, 1fr);
    gap: 1rem;
    font-size: 0.7rem;
  }

  .nav-logo-item {
    margin: 0 0.25rem;
  }
}

@media (max-width: 700px) {
  .occult-nav {
    min-height: 96px;
  }

  .site-logo {
    width: 48px;
    height: 48px;
  }

  .site-logo:hover {
    transform: scale(1.04);
  }

  .occult-nav ul {
    grid-template-columns: 1fr 0.85fr 58px 0.85fr 1fr;
    gap: 0.45rem;

    font-size: 0.56rem;
    letter-spacing: 0.14em;

    padding: 0.8rem 1rem;
  }

  .nav-dropdown summary::after {
    width: 0.46rem;
    height: 0.46rem;
    margin-top: -0.18rem;
  }

  .nav-dropdown-menu {
    position: fixed;
    top: 82px;
    left: 1rem;
    right: 1rem;
    width: auto;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    transform: none;
    z-index: 1000;
  }

  .nav-dropdown-menu a {
    text-align: center;
    padding: 0.75rem 1.1rem;
    font-size: 0.88rem;
  }

  .product-option select {
    appearance: none;
    -webkit-appearance: none;
    padding: 0.9rem 3rem 0.9rem 1rem;
    background:
      linear-gradient(45deg, transparent 50%, var(--text-bone) 50%) calc(100% - 1.35rem) 50% / 0.42rem 0.42rem no-repeat,
      linear-gradient(135deg, var(--text-bone) 50%, transparent 50%) calc(100% - 1.05rem) 50% / 0.42rem 0.42rem no-repeat,
      rgba(0, 0, 0, 0.52);
    cursor: pointer;
  }

  .product-option select:focus {
    outline: 1px solid rgba(214, 208, 197, 0.62);
    outline-offset: 3px;
  }

  .hero,
  .page-shell {
    padding-top: 138px;
  }

  .home-hero {
    padding-top: 138px;
    background-size: cover;
    background-position: center center;
  }

  .hero-content,
  .section-inner {
    padding: 3rem 1rem;
  }

  .hero-content h1,
  .section-inner h3 {
    font-size: 3rem;
    letter-spacing: 0.2em;
    padding-left: 0.2em;
  }

  .hero-content h2 {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
  }

  .home-line,
  .page-intro {
    font-size: 0.76rem;
    letter-spacing: 0.1em;
  }

  .collection-header {
    padding: 1.5rem 1rem;
  }

  .collection-header h2 {
    letter-spacing: 0.18em;
  }

  .collection-note span {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid rgba(155, 152, 144, 0.18);
  }

  .collection-note span:last-child {
    border-bottom: 0;
  }

  .editorial-products {
    margin-top: 2.5rem;
  }

  .editorial-product,
  .editorial-product.reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
  }

  .editorial-product.reverse .editorial-image,
  .editorial-product.reverse .editorial-info {
    order: initial;
  }

  .editorial-image img {
    width: min(100%, 320px);
  }

  .editorial-info {
    max-width: 340px;
  }

  .portrait-frame {
    width: 116px;
  }

  .invocation-top-panel {
    padding: 1.5rem 1.2rem;
    margin-bottom: 2rem;
    text-align: center;
  }

  .invocation-top-panel .portrait-frame {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 112px;
    margin: 0 auto 1.2rem;
  }

  .invocation-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .invocation-action-panel {
    max-width: 420px;
  }

  .invocation-action-block {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    text-align: center;
    padding: 1.4rem 1rem;
  }

  .invocation-action-title,
  .invocation-action-menu {
    justify-self: center;
  }

  .invocation-action-title,
  .invocation-action-menu summary {
    letter-spacing: 0.18em;
  }

  .social-menu-links {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .invocation-card img {
    height: 230px;
  }

  .invocation-card .product-info {
    min-height: 0;
  }

  .invocation-intro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
  }

  .invocation-intro .portrait-frame {
    width: 124px;
    margin: 0 auto;
  }

  .invocation-copy h3 {
    font-size: 2.45rem;
    letter-spacing: 0.18em;
    padding-left: 0.18em;
  }

  .invocation-copy .page-intro {
    margin: 0 auto;
  }

  .invocation-copy .divider {
    margin: 1.5rem auto 0;
  }

  .gallery,
  .invocation-grid {
    gap: 1.2rem;
  }

  .product-card,
  .invocation-card {
    max-width: 100%;
  }

  .social-links {
    flex-direction: column;
    align-items: center;
  }

  .social-links a {
    width: 100%;
    max-width: 260px;
  }

  .simple-page {
    padding-top: 138px;
  }

  .simple-content {
    padding: 2rem 1rem 4rem;
  }

  .simple-content h1 {
    font-size: 3.2rem;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 5rem;
    text-align: center;
    margin-bottom: 3.2rem;
  }

  .about-photo {
    max-width: 260px;
    margin: 0 auto;
  }

  .about-text {
    margin: 0 auto;
    max-width: 28rem;
  }

  .about-text p {
    margin-bottom: 0;
  }

  .about-simple .footer-sigil {
    margin-top: 0;
  }

  .gallery-wall {
    columns: 1;
  }

  .featured-home {
    padding: 4rem 1rem 4.5rem;
  }

  .featured-inner h2 {
    margin-bottom: 3rem;
  }

  .home-feature,
  .home-feature.reverse {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    margin-bottom: 4.2rem;
  }

  .home-feature.reverse .home-feature-image,
  .home-feature.reverse .home-feature-copy {
    order: initial;
  }

  .home-feature-image img {
    width: min(100%, 330px);
  }

  .product-detail-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem 4rem;
  }

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

  .product-thumbs {
    display: flex;
    justify-content: center;
    order: 2;
  }

  .thumb {
    width: 62px;
  }

  .product-purchase {
    padding-top: 0;
    text-align: center;
  }

  .purchase-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }
}
