/* Shared Instagram-post chrome + carousel slide styles.
   Base slide typography follows the Open Call posts (Space Grotesk);
   post-specific overrides are scoped by the styleId set on .ig-phone. */

* { margin:0; padding:0; box-sizing:border-box; }
body { background:#000; min-height:100vh; display:flex; flex-direction:column; align-items:center; font-family:'Inter',sans-serif; color:#fff; }

.ig-phone { width:393px; background:#000; min-height:100vh; display:flex; flex-direction:column; }
.ig-statusbar { display:flex; justify-content:space-between; align-items:center; padding:14px 20px 6px; font-size:12px; font-weight:700; }
.ig-statusbar .time { font-size:15px; font-weight:700; }
.ig-statusbar .icons { display:flex; gap:6px; align-items:center; }
.ig-topbar { display:flex; align-items:center; justify-content:space-between; padding:8px 16px 10px; border-bottom:0.5px solid #222; }
.ig-back { font-size:22px; color:#fff; text-decoration:none; }
.ig-topbar-icons { display:flex; gap:16px; }
.ig-topbar-icons svg { width:24px; height:24px; fill:none; stroke:#fff; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.ig-header { display:flex; align-items:center; gap:10px; padding:10px 16px 8px; }
.ig-avatar { width:32px; height:32px; border-radius:50%; background:linear-gradient(135deg,#833ab4,#fd1d1d,#fcb045); flex-shrink:0; }
.ig-username { font-size:13px; font-weight:700; }
.ig-location { font-size:11px; color:#888; }
.ig-follow { margin-left:auto; font-size:13px; font-weight:700; color:#3797f0; cursor:pointer; }

.carousel-viewport { width:393px; overflow:hidden; position:relative; }
.carousel-track { display:flex; transition:transform 0.32s cubic-bezier(.4,0,.2,1); will-change:transform; }
.slide { width:393px; height:393px; flex-shrink:0; background:#000; position:relative; overflow:hidden; display:flex; flex-direction:column; justify-content:flex-end; }
.badge { position:absolute; top:10px; right:12px; background:rgba(0,0,0,.6); color:#fff; font-size:11px; font-weight:700; padding:3px 8px; border-radius:10px; z-index:10; display:none; }
.badge.visible { display:block; }

.text { width:90%; margin-left:5%; margin-bottom:20px; position:relative; z-index:2; }
.series-tag { width:90%; margin-left:5%; margin-bottom:12px; font-size:10px; font-weight:700; letter-spacing:.18em; text-transform:uppercase; color:#444; position:relative; z-index:2; }

.slide.cover .text, .slide.head .text, .slide.closing .text {
  font-family:'Space Grotesk', sans-serif; font-weight:600; text-transform:uppercase; letter-spacing:-.01em; color:#fff;
}
.slide.body-slide .text { font-size:18px; font-weight:400; line-height:1.55; color:#fff; letter-spacing:-.01em; }
.slide.info .text { font-size:16px; font-weight:400; line-height:1.6; color:#ddd; }
.slide.info .info-list div { margin-bottom:10px; }
.slide.info .info-list b { color:#fff; font-weight:700; }
.brand { font-size:11px; font-weight:700; letter-spacing:.28em; text-transform:uppercase; color:#fff; margin-top:16px; }
.cta-tag { font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#000; background:#fff; display:inline-block; padding:8px 14px; margin-top:18px; }
.attribution { font-size:12px; font-weight:700; color:#888; margin-top:14px; letter-spacing:.04em; }

.slide.deadline { justify-content:center; align-items:center; text-align:center; }
.slide.deadline .text { font-family:'Space Grotesk', sans-serif; font-size:30px; font-weight:600; line-height:1.12; text-transform:uppercase; letter-spacing:-.01em; margin:0; }

/* photo slides — deep-dive posts show contained photos, photo-cover is full-bleed */
.slide.photo { padding:0; background:#000; justify-content:center; align-items:center; }
.slide.photo img { position:absolute; inset:14px; width:calc(100% - 28px); height:calc(100% - 28px); object-fit:contain; object-position:center; }
.slide.photo-cover img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; }

.unblocked-wordmark { position:absolute; top:38px; left:0; right:0; z-index:3; font-family:'Space Grotesk', sans-serif; font-size:15px; font-weight:400; letter-spacing:.035em; line-height:1; text-align:center; text-transform:uppercase; color:#918d86; text-shadow:0 1px 10px rgba(255,255,255,.16), 0 0 2px rgba(255,255,255,.24); }
.unblocked-wordmark b { font-weight:700; color:#aaa59d; letter-spacing:.02em; }

/* animated "I Agree" widget — you-clicked-i-agree cover */
.agree-widget { position:relative; display:inline-block; margin-top:22px; }
.agree-btn { font-family:'Inter', sans-serif; font-size:13px; font-weight:700; letter-spacing:.01em; color:#fff; background:#111; border:none; border-radius:4px; padding:11px 24px; box-shadow:0 3px 10px rgba(0,0,0,.18); }
.cursor-click { position:absolute; right:-16px; bottom:-14px; width:30px; height:30px; }
.cursor-arrow { width:26px; height:26px; display:block; filter:drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.click-ping { position:absolute; top:-2px; left:-2px; width:18px; height:18px; border-radius:50%; background:rgba(17,17,17,.18); animation:ping 1.5s ease-out infinite; }
@keyframes ping { 0% { transform:scale(.3); opacity:.9; } 70% { transform:scale(2.1); opacity:0; } 100% { opacity:0; } }

/* question posts — everything centered */
.question-post .slide { justify-content:center; align-items:center; text-align:center; }
.question-post .slide .text { position:absolute; top:50%; left:0; width:100%; margin:0; transform:translateY(-50%); text-align:center; }
.question-post .slide.cover .text { font-family:'Space Grotesk', sans-serif; font-size:38px; font-weight:600; line-height:1.04; text-transform:uppercase; letter-spacing:0; color:#fff; }
.question-post .slide.closing .series-tag { position:absolute; top:150px; left:0; width:100%; margin:0; text-align:center; font-size:13px; letter-spacing:.22em; color:#555; }
.question-post .slide.closing .text { font-family:'Space Grotesk', sans-serif; font-size:38px; font-weight:600; line-height:1.05; text-transform:uppercase; letter-spacing:0; color:#fff; }
.question-post .slide.closing .cta-tag { margin-top:20px; }
.question-post .brand { color:#777; }

/* ---------- per-post overrides (styleId on .ig-phone) ---------- */
#p-info .slide.cover { justify-content:center; align-items:center; text-align:center; }
#p-info .slide.cover .series-tag { position:absolute; top:152px; left:0; width:100%; margin:0; text-align:center; font-size:14px; letter-spacing:.22em; color:#555; }
#p-info .slide.cover .text { position:absolute; top:50%; left:0; width:100%; margin:0; transform:translateY(-50%); text-align:center; font-size:58px; line-height:1.0; }
#p-info .slide.head .text { font-size:34px; line-height:1.08; }
#p-info .slide.closing .text { font-size:32px; line-height:1.08; }
#p-info .slide.body-slide .text { font-size:19px; }

#p-ownit-deep .slide.head .text { font-size:32px; line-height:1.08; }
#p-ownit-deep .slide.closing .text { font-size:28px; line-height:1.1; }
#p-ownit-deep .slide.body-slide .text { font-size:18px; }
/* series covers — full-bleed photo behind the hook */
#p-ownit-deep .slide.cover img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; z-index:0; }
#p-ownit-deep .slide.cover::after { content:''; position:absolute; inset:0; background:linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 55%, rgba(0,0,0,.12) 100%); z-index:1; }
#p-ownit-deep .slide.cover .series-tag { color:#ccc; }
#p-ownit-deep .slide.cover .text { font-size:36px; line-height:1.06; text-shadow:0 2px 24px rgba(0,0,0,.6); }

#p-eula-hook .slide.cover .text { font-size:52px; line-height:1.0; }
#p-eula-hook .slide.head .text { font-size:52px; line-height:1.0; }
#p-eula-hook .slide.closing .text { font-size:34px; line-height:1.08; }

#p-eula-deep .slide.closing .text { font-size:28px; line-height:1.1; }
#p-eula-deep .slide.body-slide .text { font-size:18px; }

#p-teaser .slide { justify-content:center; align-items:center; text-align:center; }
#p-teaser .slide .text { position:absolute; top:50%; left:0; width:100%; margin:0; transform:translateY(-50%); text-align:center; }
#p-teaser .slide.cover .text { font-size:46px; line-height:1.02; letter-spacing:0; }
#p-teaser .slide.soon .text { font-family:'Space Grotesk', sans-serif; font-size:42px; font-weight:500; line-height:1; text-transform:uppercase; letter-spacing:.04em; color:#f4f4f4; }

#p-psychology .slide.cover .text { font-size:56px; line-height:1.0; }
#p-psychology .slide.head .text { font-size:32px; line-height:1.1; }
#p-psychology .slide.closing .text { font-size:30px; line-height:1.12; }
#p-psychology-questions .slide.cover .text { font-size:56px; line-height:1.0; }
#p-psychology-questions .slide.head .text { font-size:32px; line-height:1.1; }

#p-closed .slide.cover .text { font-size:52px; line-height:1.02; }
#p-closed .slide.closing .text { font-size:34px; line-height:1.1; }

/* ---------- cannes (Hidden Systems) — Inter-heavy typography ---------- */
#p-cannes .text { margin-bottom:28px; }
#p-cannes .series-tag { margin-bottom:10px; font-size:9px; }
#p-cannes .slide.cover .text { font-family:'Inter',sans-serif; font-size:52px; font-weight:900; line-height:0.95; text-transform:uppercase; letter-spacing:-.03em; }
#p-cannes .slide.head .text { font-family:'Inter',sans-serif; font-size:34px; font-weight:900; line-height:1.0; text-transform:uppercase; letter-spacing:-.02em; }
#p-cannes .slide.body-slide .text { font-size:22px; font-weight:400; line-height:1.5; letter-spacing:-.01em; }
#p-cannes .slide.closing .text { font-family:'Inter',sans-serif; font-size:32px; font-weight:900; line-height:1.0; text-transform:uppercase; letter-spacing:-.02em; }
#p-cannes .brand { font-weight:900; margin-top:18px; }
#p-cannes .slide.inverted { background:#fff; color:#000; justify-content:center; align-items:center; }
#p-cannes .slide.inverted .badge { background:rgba(0,0,0,.1); color:#000; }
#p-cannes .text-centered { width:82%; font-size:26px; font-weight:900; line-height:1.15; color:#000; text-align:center; letter-spacing:-.02em; }
#p-cannes .citation-tag { width:82%; margin-top:16px; font-size:9px; font-weight:700; letter-spacing:.18em; text-transform:uppercase; color:#999; text-align:center; position:relative; z-index:2; }
#p-cannes .slide.photo img { inset:0; width:100%; height:100%; object-fit:cover; }
#p-cannes .slide.photo { justify-content:flex-end; align-items:stretch; }
#p-cannes .slide.photo::after { content:''; position:absolute; inset:0; background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E"); opacity:.18; mix-blend-mode:overlay; z-index:1; pointer-events:none; }
.line { position:absolute; left:-2%; width:108%; font-family:'Inter',sans-serif; font-weight:900; text-transform:uppercase; letter-spacing:-.04em; line-height:0.88; color:#fff; z-index:2; white-space:nowrap; text-shadow:0 0 60px rgba(0,0,0,0.55); }
.line.top { font-size:86px; top:-4px; }
.line.mid { font-size:68px; top:50%; transform:translateY(-50%); }
.line.bot { font-size:86px; bottom:-4px; }

/* ---------- post footer chrome ---------- */
.ig-dots { display:flex; justify-content:center; gap:3px; padding:8px 0 4px; flex-wrap:wrap; max-width:360px; margin:0 auto; }
.dot { width:5px; height:5px; border-radius:50%; background:#333; cursor:pointer; flex-shrink:0; transition:background 0.2s; }
.dot.active { background:#3797f0; }
.ig-actions { display:flex; justify-content:space-between; align-items:center; padding:10px 16px 4px; }
.ig-actions-left { display:flex; gap:16px; }
.ig-actions svg { width:26px; height:26px; fill:none; stroke:#fff; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; cursor:pointer; }
.ig-likes { padding:0 16px; font-size:13px; font-weight:700; }
.ig-caption { padding:4px 16px 8px; font-size:13px; line-height:1.6; }
.ig-caption .handle { font-weight:700; margin-right:6px; }
.ig-caption .cap { color:#ccc; }
.ig-comments { padding:2px 16px 6px; font-size:13px; color:#888; cursor:pointer; }
.ig-timestamp { padding:0 16px 12px; font-size:10px; color:#555; text-transform:uppercase; letter-spacing:.06em; }
.ig-comment-bar { display:flex; align-items:center; padding:10px 16px; border-top:0.5px solid #222; gap:12px; }
.ig-avatar-sm { width:28px; height:28px; border-radius:50%; background:linear-gradient(135deg,#833ab4,#fd1d1d,#fcb045); flex-shrink:0; }
.ig-comment-bar input { flex:1; background:none; border:none; color:#888; font-size:13px; font-family:'Inter',sans-serif; outline:none; }
.nav-btn { position:absolute; top:50%; transform:translateY(-50%); background:rgba(0,0,0,0.5); border:none; color:#fff; font-size:18px; width:32px; height:32px; border-radius:50%; cursor:pointer; z-index:10; display:flex; align-items:center; justify-content:center; backdrop-filter:blur(4px); }
.nav-btn.prev { left:8px; }
.nav-btn.next { right:8px; }
.nav-btn:hover { background:rgba(0,0,0,0.75); }
