/* Homepage Instagram wall: @everready506's profile embed, cropped to its 3×2 post grid and scaled edge to edge.
   The embed lays out at 540px: a 159px white profile header, then two rows of 180px tiles. */
.ig { --head: 159px; position: relative; isolation: isolate; display: flex; flex-direction: column; background: var(--bg); }

/* the call to follow, just above the posts */
.ig-head {
  position: relative; padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px);
  background: radial-gradient(60% 120% at 50% 0%, rgba(31,51,136,.45), transparent 70%), linear-gradient(180deg, var(--bg-2), var(--bg));
  border-top: 1px solid var(--line); border-bottom: 1px solid rgba(212,169,74,.35);
}
.ig-head-in { display: grid; justify-items: center; gap: 22px; text-align: center; }
.ig-text { display: grid; justify-items: center; }
.ig-text .eyebrow { margin-bottom: 10px; }
.ig-title {
  margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.4rem); line-height: 1.1; letter-spacing: .02em;
  padding-bottom: .06em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ig-sub { margin: 10px 0 0; max-width: 520px; color: var(--ink-dim); }
.ig-ctas { display: grid; justify-items: center; gap: 16px; }
.ig-glyph { fill: none; stroke: currentColor; stroke-width: 1.8; width: 18px !important; height: 18px !important; }
.btn:hover .ig-glyph { transform: none; }
@media (min-width: 900px) {
  .ig-head-in { grid-template-columns: auto 1fr auto; align-items: center; justify-items: start; gap: clamp(24px, 3vw, 44px); text-align: left; }
  .ig-text { justify-items: start; }
  .ig-ctas { justify-items: end; }
}
.ig-badge { position: relative; display: grid; place-items: center; width: clamp(92px, 8vw, 124px); aspect-ratio: 1; border-radius: 50%; }
.ig-avatar {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #18244f, #070a14 75%);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--gold), 0 14px 30px rgba(0,0,0,.6);
}
.ig-avatar svg { width: 64%; height: 64%; }
.ig-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--gold-hi); animation: igPulse 2.8s var(--ease) infinite; }
@keyframes igPulse { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }

/* the wall: exactly the post grid, edge to edge */
.ig-wall { --s: 2.6667; position: relative; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-3); }
.ig-under { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; transition: opacity .8s var(--ease); }
.ig-under li { overflow: hidden; }
.ig-under img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.8); }
.ig.is-live .ig-under { opacity: 0; }
.ig-frame { position: absolute; left: 0; top: 0; width: 540px; transform-origin: 0 0; transform: scale(var(--s)) translateY(calc(var(--head) * -1)); opacity: 0; transition: opacity .8s var(--ease); }
.ig.is-live .ig-frame { opacity: 1; }
.ig-frame iframe, .ig-frame .instagram-media { width: 540px !important; max-width: none !important; min-width: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.ig-frame iframe { filter: grayscale(1) contrast(1.08); transition: filter .8s var(--ease); }
/* navy & gold duotone over the posts; clicks pass through to Instagram */
.ig-tint { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(160deg, #2b3f9c, #0b1226 70%); mix-blend-mode: multiply; opacity: .78; transition: opacity .8s var(--ease); }
.ig-tint::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 0%, rgba(212,169,74,.28), transparent 70%); mix-blend-mode: screen; }
/* gold lines replace Instagram's white gutters */
.ig-lines {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(33.333% - 2px), var(--bg) calc(33.333% - 2px) calc(33.333% + 2px), transparent 0),
    linear-gradient(90deg, transparent calc(66.667% - 2px), var(--bg) calc(66.667% - 2px) calc(66.667% + 2px), transparent 0),
    linear-gradient(0deg, transparent calc(50% - 2px), var(--bg) calc(50% - 2px) calc(50% + 2px), transparent 0);
  box-shadow: inset 0 0 0 1px rgba(212,169,74,.3);
}
@media (hover: hover) {
  .ig-wall:hover .ig-tint { opacity: 0; }
  .ig-wall:hover .ig-frame iframe { filter: none; }
}
