/* Reels & Social Media Content (services.html only, linked after hero-signal.css).
   Every class is prefixed rsc- and lives inside #build .rsc-card or section#reels,
   so nothing else on the page can change. Built from the site's own parts:
   .entries-head, .block-card, .card-tag, .btn-hero, .pill, the .lightbox look. */

/* ---- card 07 in "What we build": full width under the six, no gap at any width ---- */
.card--red .card-tag { color: var(--red); border-color: rgba(255, 85, 68, 0.5); }
.masonry > .rsc-card { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(22px, 3vw, 44px); align-items: center; }
.masonry > .rsc-card .blueprint { margin-bottom: 0; }
.masonry > .rsc-card .rsc-card-body { align-self: center; }
.rsc-jump { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 8px; color: var(--orange) !important; font-weight: 600; font-size: 0.95rem; text-decoration: none !important; }
.rsc-jump:hover { color: #ffb347 !important; }
@media (max-width: 899px) {
  .masonry .rsc-card { order: 7; }
}
@media (max-width: 599px) {
  .masonry > .rsc-card { display: block; }
  .masonry > .rsc-card .blueprint { margin-bottom: 20px; }
}

/* ---- section#reels ---- */
#reels .rsc-h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 1.9vw, 1.7rem); letter-spacing: -0.01em; color: var(--ink); margin: clamp(34px, 4vw, 56px) 0 0; padding-top: clamp(22px, 2.6vw, 32px); border-top: 1px solid var(--line); }
#reels > .rsc-h3:first-of-type { border-top: 0; padding-top: 0; margin-top: 8px; }
#reels .rsc-intro { margin-top: 10px; max-width: 58ch; font-size: 0.95rem; font-weight: 450; line-height: 1.65; color: var(--muted); }

/* (2) what you get */
.rsc-gets { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.rsc-get { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--noir-panel, #151513); border: 1px solid var(--line); border-radius: 18px; color: var(--ink); font-size: 0.98rem; font-weight: 500; line-height: 1.45; }
.rsc-ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: #0e0d15; border: 1px solid var(--line); color: var(--ink); }
.rsc-ico svg { width: 24px; height: 24px; }
@media (max-width: 1099px) { .rsc-gets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .rsc-gets { grid-template-columns: 1fr; gap: 10px; } .rsc-get { padding: 12px 14px; } }

/* (3) plans */
.rsc-plans { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
.rsc-plan { position: relative; display: flex; flex-direction: column; }
.rsc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; }
.rsc-plan .card-tag { margin: 0; }
body.paper .rsc-plan--pop { border-color: rgba(255, 107, 0, 0.55); box-shadow: inset 0 1px 0 rgba(255, 107, 0, 0.6); }
.rsc-pop { position: absolute; top: var(--pad, 24px); right: var(--pad, 24px); background: var(--ember); color: #1a1005; border-radius: var(--pill, 999px); padding: 5px 12px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.3; }
.block-card .rsc-week { margin: 0; max-width: none; color: var(--ink); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rsc-week b { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.8rem, 4.6vw, 3.8rem); line-height: 1; letter-spacing: -0.03em; }
.rsc-week span { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.block-card .rsc-month { margin: 10px 0 0; font-size: 1rem; line-height: 1.45; color: var(--muted); max-width: none; }
.rsc-free { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 10px; border-radius: var(--pill, 999px); color: var(--orange); background: rgba(255, 107, 0, 0.12); border: 1px solid rgba(255, 107, 0, 0.45); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.02em; }
.block-card .rsc-price { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--ink); max-width: none; }
.rsc-price small { font-family: var(--font-body, inherit); font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.rsc-list { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.rsc-price + .rsc-list { border-top: 0; padding-top: 0; }
.rsc-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.rsc-list li { position: relative; padding-left: 20px; font-size: 0.88rem; line-height: 1.45; color: var(--ink); opacity: 0.86; }
.rsc-list li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 9px; height: 4px; border-left: 1.5px solid var(--orange); border-bottom: 1.5px solid var(--orange); transform: rotate(-45deg); }
.rsc-acts { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.rsc-acts .btn-hero, .rsc-acts .pill { box-sizing: border-box; height: 52px; min-height: 52px; padding-top: 0; padding-bottom: 0; justify-content: center; text-align: center; display: inline-flex; align-items: center; gap: 8px; width: 100%; }
.rsc-wa { width: 18px; height: 18px; flex: none; }
.rsc-incl { margin-top: 18px; font-size: 0.92rem; color: var(--muted); }
.rsc-incl b { color: var(--ink); font-weight: 600; }
/* three columns down to tablet width; the badge moves above the plan name and the list to one column */
@media (max-width: 1099px) {
  .rsc-pop { position: static; align-self: flex-start; margin-bottom: 14px; box-sizing: border-box; height: 23px; padding-block: 0; display: inline-flex; align-items: center; }
  .rsc-list { grid-template-columns: 1fr; }
  .rsc-list li:last-child:nth-child(odd) { grid-column: auto; }
  .rsc-plan:not(.rsc-plan--pop) .rsc-head { margin-top: 37px; }
  .block-card .rsc-month { min-height: 2.9em; }
}
@media (max-width: 759px) {
  .rsc-plans { grid-template-columns: 1fr; }
  .rsc-plan:not(.rsc-plan--pop) .rsc-head { margin-top: 0; }
  .block-card .rsc-month { min-height: 0; }
  .rsc-list { grid-template-columns: 1fr 1fr; }
  .rsc-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* (4) reels: swipe row on phone, grid on desktop */
.rsc-reels { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 1100px) { .rsc-reels { grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .rsc-reels { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin-inline: -16px; padding: 4px 16px 10px; scroll-padding-inline: 16px; scrollbar-width: none; }
  .rsc-reels::-webkit-scrollbar { display: none; }
  .rsc-reels > li { flex: 0 0 44%; scroll-snap-align: start; }
}
.rsc-reel { position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius-sm, 14px); overflow: hidden; background: #151513; border: 1px solid var(--line); }
.rsc-reel img, .rsc-reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.rsc-reel::after { content: ""; position: absolute; inset: auto 0 0 0; height: 38%; background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent); pointer-events: none; }
.rsc-play { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; color: #fff; }
.rsc-play:focus-visible { outline: 2px solid var(--orange); outline-offset: -4px; }
.rsc-badge { position: absolute; left: 12px; bottom: 12px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(12, 12, 12, 0.62); border: 1px solid rgba(255, 255, 255, 0.28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rsc-badge svg { width: 20px; height: 20px; }
.rsc-badge .i-pause, .rsc-reel.is-sound .rsc-badge .i-play { display: none; }
.rsc-reel.is-sound .rsc-badge .i-pause { display: block; }
.rsc-reel.is-sound { box-shadow: 0 0 0 2px var(--orange); border-color: transparent; }
.rsc-muted { position: absolute; right: 12px; bottom: 24px; z-index: 1; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: rgba(12, 12, 12, 0.62); border-radius: 999px; padding: 4px 10px; opacity: 0; transition: opacity 0.2s ease; pointer-events: none; }
.rsc-reel.is-preview .rsc-muted { opacity: 1; }
.rsc-insta { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 14px; color: var(--orange) !important; text-decoration: none !important; font-weight: 600; }
.rsc-insta:hover { color: #ffb347 !important; }

/* (5) posts: a 1:1 grid, tap opens larger */
.rsc-posts { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 1100px) { .rsc-posts { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 767px) { .rsc-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rsc-post { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm, 14px); overflow: hidden; background: #151513; cursor: zoom-in; transition: transform 0.16s ease, border-color 0.16s ease; }
.rsc-post:hover { transform: translateY(-3px); border-color: rgba(255, 107, 0, 0.5); }
.rsc-post:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.rsc-post img { width: 100%; height: 100%; object-fit: cover; display: block; }
#rsc-lightbox .lightbox-close:hover, #rsc-lightbox .lightbox-nav:hover { border-color: var(--orange); box-shadow: none; }
#rsc-lightbox .lightbox-close, #rsc-lightbox .lightbox-nav { min-height: 44px; }
#rsc-lightbox img { aspect-ratio: auto; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 120px); margin-inline: auto; }
/* centred: the site reset sets margin:0 on every element, which pins a modal <dialog> to the top-left corner */
#rsc-lightbox { margin: auto; width: fit-content; max-width: min(1100px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: visible; }

/* (6) closing line */
.rsc-close { margin-top: clamp(40px, 5vw, 64px); padding: 32px 0 clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; }
.rsc-close p { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 2.6vw, 2.1rem); line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); }
.rsc-close .btn-hero { min-height: 52px; }
@media (max-width: 767px) {
  .rsc-close { flex-direction: column; align-items: stretch; text-align: left; }
  .rsc-close .btn-hero { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .rsc-post, .rsc-muted { transition: none; } }
