/* Social posts landing: platforms, copy animation, template strip, bespoke design and the feed section. */

.posts-platform-icon {
    display: inline-grid;
    width: 34px;
    height: 34px;
    flex: none;
    place-items: center;
    padding: 7px;
    border-radius: 10px;
    background: var(--vgvf-ink, #1e1e1e);
    color: #fff;
}

.posts-platform-icon svg,
.posts-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.posts-source {
    margin: 18px 0 0;
    color: var(--vgvf-copy, #5a5a5a);
    font-size: 12.5px;
    line-height: 1.5;
}

.posts-source a { color: inherit; }

.posts-cta-row {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* Format glyphs: a small outline in each format's aspect ratio */
.posts-ratio-glyph {
    display: inline-block;
    height: 16px;
    border: 1.6px solid currentColor;
    border-radius: 3px;
}

.posts-ratio-glyph[data-ratio="4:5"] { width: 12.8px; }
.posts-ratio-glyph[data-ratio="1:1"] { width: 16px; }
.posts-ratio-glyph[data-ratio="9:16"] { width: 9px; }
.posts-ratio-glyph[data-ratio="1.91:1"] { width: 22px; height: 11.5px; }

/* Written for you: listing text types in, the AI reads it and fans out a caption per platform */
.posts-writer { margin-top: 40px; }

.posts-writer-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    align-items: center;
    gap: 24px;
}

.posts-writer-fan {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
    margin-top: 28px;
}

.posts-writer-listing {
    padding: 20px;
    border: 1px solid var(--vgvf-border, rgba(0, 0, 0, 0.08));
    border-radius: 20px;
    background: var(--vgvf-panel, #fff);
    box-shadow: 0 16px 40px rgba(20, 15, 5, 0.08);
}

.posts-writer-label {
    margin: 0 0 12px;
    color: var(--vgvf-accent-dark, #b37821);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.posts-writer-text {
    min-height: 6.5em;
    margin: 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--vgvf-surface, #f8f8f7);
    font-family: var(--font-secondary, 'Inter', system-ui, sans-serif);
    font-size: 13.5px;
    line-height: 1.6;
}

.posts-writer.is-typing .posts-writer-listing .posts-writer-text::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1.05em;
    margin-left: 2px;
    background: var(--vgvf-ink, #1e1e1e);
    vertical-align: text-bottom;
    animation: posts-caret 0.9s steps(1) infinite;
}

@keyframes posts-caret { 50% { opacity: 0; } }

.posts-writer-ai {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--vgvf-copy, #5a5a5a);
    font: 600 11px/1.3 Inter, sans-serif;
    text-align: center;
}

.posts-writer-orb {
    position: relative;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    padding: 15px;
    border-radius: 50%;
    background: var(--vgvf-accent, #ffb14d);
    color: #1e1e1e;
    box-shadow: 0 10px 26px rgba(255, 145, 0, 0.35);
}

.posts-writer-orb::before,
.posts-writer-orb::after {
    content: "";
    position: absolute;
    inset: -8px;
    border: 2px solid rgba(255, 145, 0, 0.45);
    border-radius: 50%;
    opacity: 0;
}

.posts-writer.is-thinking .posts-writer-orb::before { animation: posts-ring 1.4s ease-out infinite; }
.posts-writer.is-thinking .posts-writer-orb::after { animation: posts-ring 1.4s ease-out 0.7s infinite; }
.posts-writer.is-thinking .posts-writer-orb svg { animation: posts-spin 2.4s linear infinite; }

@keyframes posts-ring {
    from { opacity: 1; transform: scale(0.9); }
    to { opacity: 0; transform: scale(1.6); }
}

@keyframes posts-spin { to { transform: rotate(360deg); } }

.posts-writer-status { min-height: 2.6em; }

.posts-writer.is-armed .posts-writer-fan .pm-box {
    opacity: 0;
    transform: translateX(-60px) scale(0.86);
    transition: opacity 420ms ease, transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: calc(var(--i) * 140ms);
}

.posts-writer.is-fanned .posts-writer-fan .pm-box,
.posts-writer.is-done .posts-writer-fan .pm-box {
    opacity: 1;
    transform: none;
}

.posts-writer-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    color: var(--vgvf-copy, #5a5a5a);
    font-size: 12.5px;
}

.posts-copy-replay {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--vgvf-border, rgba(0, 0, 0, 0.12));
    border-radius: 999px;
    background: #fff;
    color: var(--vgvf-ink, #1e1e1e);
    cursor: pointer;
    font: 600 12.5px/1 Inter, sans-serif;
}

.posts-copy-replay .posts-icon { width: 14px; height: 14px; }

/* Template strip: two fast rows, every design links into the post generator */
.posts-strip {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 34px 0 0;
    padding: 14px 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.posts-strip-track,
.posts-strip-clone {
    display: flex;
    width: max-content;
    gap: 14px;
}

.posts-strip-track { animation: posts-strip 26s linear infinite; }
.posts-strip-row.is-reverse .posts-strip-track { animation-direction: reverse; animation-duration: 30s; }
.posts-strip-row:hover .posts-strip-track,
.posts-strip-row:focus-within .posts-strip-track { animation-play-state: paused; }

/* The track holds the designs twice (the clone is the second half), so -50% lands on an identical frame. */
@keyframes posts-strip {
    to { transform: translateX(calc(-50% - 7px)); }
}

.posts-strip-item {
    position: relative;
    display: block;
    border-radius: 12px;
    transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 260ms ease;
}

.posts-strip-item img {
    display: block;
    width: 176px;
    height: 220px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(20, 15, 5, 0.14);
}

.posts-strip-item span {
    position: absolute;
    right: 8px;
    bottom: 8px;
    left: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(17, 18, 20, 0.86);
    color: #fff;
    font: 600 11.5px/1.2 Inter, sans-serif;
    text-align: center;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 200ms ease, transform 200ms ease;
}

.posts-strip-item:hover,
.posts-strip-item:focus-visible {
    z-index: 1;
    transform: translateY(-10px) scale(1.04);
}

.posts-strip-item:hover img,
.posts-strip-item:focus-visible img { box-shadow: 0 22px 40px rgba(20, 15, 5, 0.28); }

.posts-strip-item:hover span,
.posts-strip-item:focus-visible span {
    opacity: 1;
    transform: none;
}

/* Campaign calendar: the listing's posts land on their days one after another */
.posts-campaign-cal {
    padding: 18px;
    border: 1px solid var(--vgvf-border, rgba(0, 0, 0, 0.08));
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(20, 15, 5, 0.1);
}

.posts-campaign-month {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
}

.posts-campaign-head,
.posts-campaign-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.posts-campaign-head span {
    padding-bottom: 6px;
    color: #8a8a8a;
    font: 600 11px/1 Inter, sans-serif;
    text-align: center;
    text-transform: uppercase;
}

.posts-campaign-day {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    border-radius: 10px;
    background: #f6f5f1;
    aspect-ratio: 4 / 5.6;
    transition: background 300ms ease;
}

.posts-campaign-day > b {
    color: #8a8a8a;
    font: 600 11px/1 Inter, sans-serif;
}

.posts-campaign-day img {
    display: block;
    width: 100%;
    min-height: 0;
    flex: 1;
    border-radius: 6px;
    object-fit: cover;
    transition: opacity 360ms ease, transform 520ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

[data-posts-campaign].is-armed .posts-campaign-day img {
    opacity: 0;
    transform: translateY(-14px) scale(0.7);
}

.posts-campaign-day.is-in { background: #fff3e0; }
.posts-campaign-day.is-in > b { color: #b37821; }

[data-posts-campaign].is-armed .posts-campaign-day.is-in img {
    opacity: 1;
    transform: none;
    box-shadow: 0 8px 18px rgba(20, 15, 5, 0.18);
}


@media (max-width: 1100px) {
    .posts-writer-fan { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .posts-writer-top { grid-template-columns: 1fr; }
    .posts-writer-ai { flex-direction: row; justify-content: center; }
}

@media (max-width: 640px) {
    .posts-writer-fan { grid-template-columns: 1fr; }
    .posts-writer.is-armed:not(.is-fanned) .posts-writer-fan .pm-box { transform: translateY(-30px) scale(0.92); }
    .pm-box-text { min-height: 0; }
    .posts-strip-item img { width: 128px; height: 160px; }
    .posts-campaign-cal { padding: 10px; border-radius: 16px; }
    .posts-campaign-head,
    .posts-campaign-grid { gap: 4px; }
    .posts-campaign-day { padding: 3px; border-radius: 7px; }
    .posts-campaign-day > b { font-size: 9.5px; }
    .posts-campaign-day img { border-radius: 4px; }
}

@media (prefers-reduced-motion: reduce) {
    .posts-strip-track,
    .posts-writer-orb::before,
    .posts-writer-orb::after,
    .posts-writer-orb svg { animation: none !important; }
    .posts-writer-fan .pm-box,
    .posts-campaign-day img,
    .posts-strip-item { transition: none; }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Brand tiles for the platform marks */
.posts-platform-icon.is-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); color: #fff; }
.posts-platform-icon.is-fb { background: #1877f2; color: #fff; }
.posts-platform-icon.is-tt { background: #000; color: #fff; }
.posts-platform-icon.is-li { background: #0a66c2; color: #fff; }
.posts-platform-icon svg.is-fill { fill: currentColor; stroke: none; }

/* Bolder sections: big headlines, one short line at most */
.posts-bold { padding: 104px 0; }
.posts-bold .video-feature-container { width: min(100%, 1240px); }
.posts-bold .video-feature-heading { max-width: 860px; }
.posts-bold .video-feature-eyebrow { font-size: 13px; letter-spacing: 0.09em; }

.posts-bold .video-feature-heading h2 {
    margin-top: 14px;
    font-size: clamp(34px, 4.4vw, 56px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.04;
}

.posts-bold .video-feature-heading > p:last-child:not(.video-feature-eyebrow) {
    max-width: 640px;
    margin-top: 16px;
    font-size: 19px;
    line-height: 1.5;
}

.posts-bold .posts-writer-text { font-size: 15px; }
.posts-bold .posts-strip-item img { width: 208px; height: 260px; border-radius: 14px; }
.posts-bold .posts-campaign-day > b { font-size: 12.5px; }
.posts-bold .posts-campaign-month { font-size: 18px; font-weight: 700; }
.posts-bold .posts-campaign-day img { border-radius: 7px; }

@media (max-width: 640px) {
    .posts-bold { padding: 72px 0; }
    .posts-bold .video-feature-heading > p:last-child:not(.video-feature-eyebrow) { font-size: 16.5px; }
    .posts-bold .posts-strip-item img { width: 150px; height: 188px; }
}

@media (max-width: 640px) {
    /* Long captions stay readable without turning the section into a scroll marathon. */
    .pm-box-text {
        max-height: 15em;
        overflow: hidden;
        -webkit-mask-image: linear-gradient(#000 78%, transparent);
        mask-image: linear-gradient(#000 78%, transparent);
    }
}

/* Bespoke design: the centre card plays the design's animation; scrolling slides the other formats out from behind
   it (--t, set by the hub script; without it they show fanned out). */
.posts-bespoke-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 56px;
}

.posts-ast {
    margin-left: 2px;
    color: var(--vgvf-accent-dark, #b37821);
    font-size: 0.42em;
    font-weight: 600;
    vertical-align: super;
    line-height: 0;
}

.posts-bespoke-cta .feature-landing-button { margin-top: 26px; }

.posts-bespoke-note {
    margin: 16px 0 0;
    color: var(--vgvf-copy, #5a5a5a);
    font-size: 12.5px;
}

.posts-bespoke { padding: 0; }
.posts-layer-sticky { padding: 56px 0; }

.posts-layer-base {
    margin: 24px 0 0;
    color: var(--vgvf-ink, #1e1e1e);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
}

.posts-layer-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.posts-layer-steps li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: var(--vgvf-hint, #b3b3b3);
    transition: color 300ms ease;
}

.posts-layer-steps li > span { display: flex; flex-direction: column; gap: 2px; }
.posts-layer-steps strong { font: 700 22px/1.25 Inter, sans-serif; }
.posts-layer-steps small { font-size: 14.5px; line-height: 1.4; }

.posts-layer-steps b {
    display: grid;
    width: 32px;
    height: 32px;
    flex: none;
    place-items: center;
    border-radius: 50%;
    background: var(--vgvf-frame, #f3f2ee);
    font-size: 13px;
    transition: background 300ms ease, color 300ms ease;
}

.posts-layer-steps li.is-on { color: var(--vgvf-ink, #1e1e1e); }
.posts-layer-steps li.is-on small { color: var(--vgvf-copy, #5a5a5a); }
.posts-layer-steps li.is-on b { background: var(--vgvf-ink, #1e1e1e); color: #fff; }

.posts-layer-stage {
    position: relative;
    display: grid;
    min-height: 560px;
    place-items: center;
}

.posts-layer-post {
    position: relative;
    z-index: 1;
    width: min(100%, 340px);
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 4 / 5;
    box-shadow: 0 30px 70px rgba(20, 15, 5, 0.22);
}

.posts-layer-post video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The brand kit everyone has (from the brand showcase option) */
.posts-layer-kit {
    position: absolute;
    top: 6px;
    right: 0;
    z-index: 2;
    display: flex;
    width: 190px;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--vgvf-border, rgba(0, 0, 0, 0.08));
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(20, 15, 5, 0.14);
}

.posts-layer-kit img { width: 120px; height: auto; }
.posts-layer-kit strong { font-size: 13px; }

.posts-layer-kit ul {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
    padding: 0;
    color: var(--vgvf-copy, #5a5a5a);
    font-size: 13px;
    list-style: none;
}

.posts-layer-kit li { display: flex; align-items: center; gap: 7px; }

.posts-layer-kit .posts-icon {
    width: 18px;
    height: 18px;
    padding: 3px;
    border-radius: 50%;
    background: #e8f6ee;
    color: #2f9e5b;
}

.posts-bespoke-swatches { display: flex; gap: 6px; }

.posts-bespoke-swatches i {
    width: 22px;
    height: 22px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
}

.posts-layer-extra {
    --dx: -210px;
    --dy: 0px;
    --rot: -5deg;
    position: absolute;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(20, 15, 5, 0.2);
    opacity: var(--t, 1);
    transform: translate(calc(var(--dx) * var(--t, 1)), calc(var(--dy) * var(--t, 1))) rotate(calc(var(--rot) * var(--t, 1)))
        scale(calc(0.85 + 0.15 * var(--t, 1)));
}

.posts-layer-extra img { display: block; width: 100%; height: 100%; object-fit: cover; }
.posts-layer-extra.is-story { width: 170px; aspect-ratio: 9 / 16; }
.posts-layer-extra.is-square { --dx: 215px; --dy: 110px; --rot: 5deg; width: 190px; aspect-ratio: 1; }

@media (max-width: 900px) {
    .posts-bespoke-grid { grid-template-columns: 1fr; gap: 36px; }
    .posts-layer-stage { min-height: 500px; }
    .posts-layer-extra.is-story { --dx: -120px; }
    .posts-layer-extra.is-square { --dx: 120px; --dy: 90px; }
}

@media (max-width: 640px) {
    .posts-layer-post { width: 250px; }
    .posts-layer-extra.is-story { width: 120px; }
    .posts-layer-extra.is-square { width: 130px; }
    .posts-layer-kit { position: relative; top: auto; width: auto; margin-top: 18px; flex-direction: row; flex-wrap: wrap; align-items: center; }
    .posts-layer-stage { display: flex; flex-direction: column; align-items: center; min-height: 0; padding: 20px 0; }
    .posts-layer-extra { top: 40px; }
    .posts-layer-steps strong { font-size: 19px; }
}

/* Why it matters + the plan: three benefit numbers (styled like the home page's 71% banner), then the campaign
   calendar filling a designed feed, with a switch to the undesigned one. */
.posts-numbers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.posts-number {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin: 0;
}

.posts-number-value {
    flex: none;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.095);
    border-radius: 20px;
    background: #fff;
    color: #000;
    font: 700 48px/1.1 var(--font-primary, "IBM Plex Sans"), sans-serif;
    letter-spacing: -1.2px;
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.05);
    transform: rotate(-2deg);
}

.posts-number:nth-child(2) .posts-number-value { transform: rotate(1.5deg); }
.posts-number:nth-child(3) .posts-number-value { color: var(--color-primary, #ff9000); }
.posts-number p { margin: 6px 0 8px; color: var(--vgvf-ink, #1e1e1e); font-size: 16.5px; line-height: 1.45; }

.posts-number a {
    color: var(--vgvf-copy, #5a5a5a);
    font-size: 12px;
    font-weight: 600;
}

.posts-feed-solution {
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--vgvf-border, rgba(0, 0, 0, 0.08));
}

.posts-feed-solution h3 {
    margin: 0;
    font: 700 clamp(26px, 3vw, 36px)/1.1 Inter, sans-serif;
    letter-spacing: -0.02em;
}

.posts-feed-solution p { margin: 10px 0 0; color: var(--vgvf-copy, #5a5a5a); font-size: 18px; }

.posts-feed-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 48px;
    margin-top: 32px;
}

.posts-profile {
    position: relative;
    display: flex;
    width: 300px;
    flex-direction: column;
    gap: 10px;
    padding: 18px 0 0;
    overflow: hidden;
    border: 8px solid #1e1e1e;
    border-radius: 34px;
    background: #fff;
    color: #0f1419;
    font: 400 12.5px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-shadow: 0 28px 60px rgba(20, 15, 5, 0.18);
}

.posts-profile-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 14px;
}

.posts-profile-head .pm-avatar {
    display: inline-grid;
    width: 58px;
    height: 58px;
    flex: none;
    place-items: center;
    border-radius: 50%;
    background: #2f3a33;
    color: #c8a96a;
    font: 700 13px/1 Georgia, serif;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #d62976;
}

.posts-profile.is-without .pm-avatar { box-shadow: none; }

.posts-profile-nums {
    display: flex;
    flex: 1;
    justify-content: space-around;
    text-align: center;
}

.posts-profile-nums span { display: flex; flex-direction: column; color: #444; font-size: 11.5px; }
.posts-profile-nums b { color: #0f1419; font-size: 15px; }
.posts-profile-name { display: flex; flex-direction: column; margin: 0; padding: 0 14px; }
.posts-profile-name small { color: #65676b; }

.posts-profile-badge {
    align-self: flex-start;
    margin: 0 14px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fdecec;
    color: #b42318;
    font-size: 11.5px;
    font-weight: 600;
}

.posts-profile-badge.is-good { background: #e8f6ee; color: #1f7a45; }

.posts-profile-grid {
    display: grid;
    min-height: 400px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: start;
    gap: 2px;
    margin-top: 4px;
}

.posts-tile {
    position: relative;
    display: block;
    overflow: hidden;
    background: #f1efe9;
    aspect-ratio: 3 / 4;
}

.posts-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.posts-tile.is-raw img { filter: saturate(0.85) brightness(0.96); }

/* Synced tiles start empty and fill as their calendar post lands. */
.is-armed .posts-tile[data-campaign-day] img { opacity: 0; transform: scale(0.85); transition: opacity 360ms ease, transform 520ms cubic-bezier(0.2, 1.4, 0.4, 1); }
.is-armed .posts-tile[data-campaign-day].is-in img { opacity: 1; transform: none; }

.posts-tile-likes {
    position: absolute;
    bottom: 5px;
    left: 6px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #fff;
    font: 700 10.5px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.posts-tile-likes svg { width: 11px; height: 11px; fill: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6)); }
.is-armed .posts-tile[data-campaign-day] .posts-tile-likes { opacity: 0; transition: opacity 300ms ease 300ms; }
.is-armed .posts-tile[data-campaign-day].is-in .posts-tile-likes { opacity: 1; }

.posts-feed-phone-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.posts-feed-switch {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: var(--vgvf-frame, #f3f2ee);
}

.posts-feed-switch button {
    padding: 8px 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--vgvf-copy, #5a5a5a);
    cursor: pointer;
    font: 700 13.5px/1 Inter, sans-serif;
}

.posts-feed-switch button[aria-selected="true"] { background: var(--vgvf-ink, #1e1e1e); color: #fff; }
.posts-feed-switch button:focus-visible { outline: 2px solid var(--vgvf-accent, #ffb14d); outline-offset: 2px; }
@media (max-width: 1100px) {
    .posts-numbers { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 900px) {
    .posts-feed-grid { grid-template-columns: 1fr; justify-items: center; }
    .posts-feed-grid .posts-campaign-cal { width: 100%; }
}

@media (max-width: 640px) {
    .posts-number-value { font-size: 36px; }
    .posts-feed-solution { margin-top: 44px; padding-top: 30px; }
}

/* Clients find you everywhere: the photo flows through VisuGenie into every channel. JS scrubs --t (0-1) on each
   [data-hub-step] with the scroll position; without it (reduced motion, no JS) everything shows. */
.posts-source {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.posts-source-stack {
    position: relative;
    display: block;
    margin: 26px 30px 0 0;
}

.posts-source-stack img {
    display: block;
    width: 100%;
    height: auto;
    border: 4px solid #fff;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(20, 15, 5, 0.16);
}

/* The two photos behind peek out, fanned; the front one is in the normal flow and sets the height. */
.posts-source-stack img:not(:last-child) { position: absolute; inset: 0; }
.posts-source-stack img:nth-child(1) { transform: translate(30px, -26px) rotate(7deg); }
.posts-source-stack img:nth-child(2) { transform: translate(15px, -13px) rotate(3.5deg); }
.posts-source-stack img:last-child { position: relative; }

.posts-source figcaption,
.posts-engine b {
    font: 700 14px/1.2 Inter, sans-serif;
    text-align: center;
}

.posts-engine {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.posts-out-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.posts-out-chips span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--vgvf-frame, #f3f2ee);
    font: 600 11.5px/1.2 Inter, sans-serif;
}

.posts-out-chips .posts-ratio-glyph { height: 12px; border-width: 1.4px; }
.posts-out-chips .posts-ratio-glyph[data-ratio="4:5"] { width: 9.6px; }
.posts-out-chips .posts-ratio-glyph[data-ratio="9:16"] { width: 6.8px; }
.posts-out-chips .posts-ratio-glyph[data-ratio="1:1"] { width: 12px; }
.posts-out-chips .posts-ratio-glyph[data-ratio="1.91:1"] { width: 17px; height: 9px; }

.posts-out-caption {
    margin: 0;
    color: var(--vgvf-ink, #1e1e1e);
    font: 400 13px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Media sits in a fixed box so every card is the same height whatever its format. */
.posts-out-media {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
}

.posts-out-media span {
    display: block;
    height: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 22px rgba(20, 15, 5, 0.16);
}

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

/* A: hub */
.posts-hub {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) 180px minmax(0, 1.6fr);
    align-items: center;
    gap: 0;
    margin-top: 40px;
}

.posts-hub-link {
    position: relative;
    display: grid;
    height: 100%;
    min-height: 420px;
    place-items: center;
}

.posts-hub-link svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: #ffc77a;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.posts-hub-link .posts-engine { position: relative; z-index: 1; padding: 10px; border-radius: 20px; background: var(--vgvf-bg, #fcfcfa); }

.posts-hub-out {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.posts-out-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--vgvf-border, rgba(0, 0, 0, 0.08));
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(20, 15, 5, 0.07);
}

.posts-out-card header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.posts-out-card header .posts-platform-icon { width: 28px; height: 28px; padding: 6px; border-radius: 8px; }
.posts-out-media { height: 150px; }

.posts-engine-mark {
    position: relative;
    display: grid;
    width: 96px;
    height: 96px;
    place-items: center;
    border: 1px solid var(--vgvf-border, rgba(0, 0, 0, 0.08));
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 14px 34px rgba(255, 145, 0, 0.25);
}

.posts-engine-mark img { width: auto; height: 58px; }

.posts-engine-mark::before,
.posts-engine-mark::after {
    content: "";
    position: absolute;
    inset: -2px;
    border: 2px solid rgba(255, 145, 0, 0.55);
    border-radius: 50%;
    animation: posts-ring 2.4s ease-out infinite;
}

.posts-engine-mark::after { animation-delay: 1.2s; }

.is-scrubbed :not(path):not(.posts-layer-extra)[data-hub-step] {
    opacity: var(--t, 0);
    transform: translateY(calc((1 - var(--t, 0)) * 28px)) scale(calc(0.95 + var(--t, 0) * 0.05));
}

.is-scrubbed path[data-hub-step] {
    stroke-dasharray: 1;
    stroke-dashoffset: calc(1 - var(--t, 0));
}

@media (max-width: 900px) {
    .posts-hub { grid-template-columns: 1fr; gap: 16px; }
    .posts-hub .posts-source { width: min(100%, 360px); margin: 0 auto; }
    .posts-hub-link { min-height: 130px; }
    .posts-hub-link svg { display: none; }
}

@media (max-width: 640px) {
    .posts-hub-out { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .posts-engine-mark::before,
    .posts-engine-mark::after { animation: none; }
}

.feature-final-cta .posts-final-note { margin: 14px auto 0; font-size: 13px; }

#posts-platforms-title em { font-style: normal; text-decoration: underline; text-decoration-color: #ff9000; text-decoration-thickness: 3px; text-underline-offset: 6px; }
