.instagram-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(68, 104, 70, .24), transparent 34%),
    linear-gradient(150deg, #0b0d0b 0%, #111611 48%, #080a08 100%);
  color: #f3f1ea;
}

.instagram-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

.instagram-head,
.instagram-feed,
.instagram-actions { position: relative; z-index: 1; }

.instagram-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 4rem);
}

.instagram-title { margin: .2rem 0 0; max-width: 840px; }
.instagram-title em { color: #90aa7b; }

.instagram-profile {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: #f3f1ea;
  text-decoration: none;
  border-bottom: 1px solid rgba(243,241,234,.4);
  padding-bottom: .45rem;
  white-space: nowrap;
}

.instagram-profile:hover { color: #a9c18f; border-color: currentColor; }

.instagram-feed {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.75rem, 1.5vw, 1.35rem);
}

.reel-card {
  position: relative;
  min-width: 0;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  background: #151915;
  isolation: isolate;
  animation: reel-in .65s cubic-bezier(.2,.7,.2,1) both;
}

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

.reel-card video,
.reel-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .4s ease;
}

.reel-card:hover video,
.reel-card:hover img { transform: scale(1.035); filter: brightness(.82); }

.reel-card::after {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(0,0,0,.82));
}

.reel-meta {
  position: absolute;
  z-index: 2;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  color: #fff;
}

.reel-meta p {
  margin: 0 0 .7rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: .88rem;
  line-height: 1.45;
}

.reel-open {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #dbe8cf;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
}

.reel-badge {
  position: absolute;
  z-index: 2;
  top: .8rem;
  left: .8rem;
  padding: .38rem .55rem;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(8,10,8,.62);
  backdrop-filter: blur(10px);
  font-size: .65rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.reel-skeleton {
  min-height: 380px;
  background: linear-gradient(100deg, #151915 20%, #202820 38%, #151915 56%);
  background-size: 220% 100%;
  animation: reel-loading 1.4s ease infinite;
}

@keyframes reel-loading { to { background-position-x: -220%; } }

.instagram-actions {
  display: flex;
  justify-content: center;
  margin-top: clamp(1.8rem, 4vw, 3rem);
}

.instagram-load {
  min-width: 180px;
  cursor: pointer;
  color: #f3f1ea;
  border: 1px solid rgba(255,255,255,.32);
  background: transparent;
  padding: .9rem 1.3rem;
  font: inherit;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.instagram-load:hover { background: #90aa7b; border-color: #90aa7b; color: #0a0c0a; }
.instagram-load[hidden] { display: none; }

.instagram-status {
  grid-column: 1 / -1;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,.14);
  text-align: center;
  color: rgba(243,241,234,.8);
}

.instagram-status a { color: #b7cca4; }

@media (max-width: 980px) {
  .instagram-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .instagram-head { grid-template-columns: 1fr; align-items: start; gap: 1.2rem; }
  .instagram-feed { gap: .6rem; }
  .reel-meta { left: .7rem; right: .7rem; bottom: .7rem; }
  .reel-meta p { display: none; }
  .reel-badge { top: .55rem; left: .55rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reel-card, .reel-skeleton { animation: none; }
  .reel-card video, .reel-card img { transition: none; }
}
