@charset "utf-8";

/* ============================================
   텔레그램 GIF 변환 가이드
   접두사: tg-gif- (기존 사이트 오염 방지)
   CSS 변수 접두사: --tggf-
   컬러 톤: 마젠타 핑크(Magenta) + 일렉트릭 옐로우(Electric Yellow)
============================================ */

:root {
    --tggf-magenta: #d946ef;
    --tggf-magenta-dark: #c026d3;
    --tggf-magenta-deep: #86198f;
    --tggf-magenta-light: #fdf4ff;
    --tggf-magenta-border: #f0abfc;
    --tggf-yellow: #eab308;
    --tggf-yellow-dark: #ca8a04;
    --tggf-yellow-light: #fefce8;
    --tggf-yellow-border: #fde047;
    --tggf-slate-900: #0f172a;
    --tggf-slate-700: #334155;
    --tggf-slate-500: #64748b;
    --tggf-slate-300: #cbd5e1;
    --tggf-slate-200: #e2e8f0;
    --tggf-slate-100: #f1f5f9;
    --tggf-bg: #fefaff;
    --tggf-white: #ffffff;
    --tggf-green: #22c55e;
    --tggf-cyan: #06b6d4;
    --tggf-radius: 14px;
}

/* ─── 래퍼 ─── */
.tg-gif-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    color: var(--tggf-slate-500);
    background-color: var(--tggf-bg);
    box-sizing: border-box;
    line-height: 1.7;
    overflow: hidden;
    padding-bottom: 60px;
}

.tg-gif-wrapper *,
.tg-gif-wrapper *::before,
.tg-gif-wrapper *::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

.tg-gif-wrapper strong {
    font-weight: 700;
    color: var(--tggf-slate-900);
}

.tg-gif-wrapper mark {
    background: linear-gradient(120deg, var(--tggf-magenta-light) 0%, #f0abfc80 100%);
    color: #86198f;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

/* ─── 히어로 ─── */
.tg-gif-hero {
    background: linear-gradient(145deg, #86198f 0%, #a21caf 25%, #d946ef 55%, #f0abfc 100%);
    color: var(--tggf-white);
    padding: 60px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tg-gif-hero::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border: 60px solid rgba(217, 70, 239, 0.06);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.tg-gif-hero::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border: 40px solid rgba(240, 171, 252, 0.04);
    border-radius: 50%;
    bottom: -60px;
    left: -50px;
}

.tg-gif-hero__floating {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.tg-gif-hero__float-icon {
    position: absolute;
    font-size: 28px;
    opacity: 0.18;
    animation: tg-gif-float 6s ease-in-out infinite;
}

.tg-gif-hero__float-icon i {
    color: rgba(255, 255, 255, 0.9);
}

.tg-gif-hero__float-icon--1 {
    top: 14%;
    left: 8%;
    animation-delay: 0s;
}

.tg-gif-hero__float-icon--2 {
    top: 20%;
    right: 12%;
    animation-delay: 1s;
    font-size: 24px;
}

.tg-gif-hero__float-icon--3 {
    bottom: 22%;
    left: 15%;
    animation-delay: 2s;
}

.tg-gif-hero__float-icon--4 {
    bottom: 16%;
    right: 8%;
    animation-delay: 3s;
    font-size: 22px;
}

.tg-gif-hero__float-icon--5 {
    top: 55%;
    left: 4%;
    animation-delay: 4s;
    font-size: 20px;
}

.tg-gif-hero__float-icon--6 {
    top: 10%;
    right: 30%;
    animation-delay: 5s;
    font-size: 18px;
}

@keyframes tg-gif-float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(8deg);
    }
}

.tg-gif-hero__inner {
    position: relative;
    z-index: 1;
}

.tg-gif-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(234, 179, 8, 0.2);
    color: var(--tggf-yellow-border);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 22px;
    border: 1px solid rgba(253, 224, 71, 0.25);
    backdrop-filter: blur(4px);
}

.tg-gif-hero__badge i {
    font-size: 16px;
}

.tg-gif-hero__title {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 18px;
    color: var(--tggf-white);
}

.tg-gif-hero__desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 620px;
    margin: 0 auto;
}

/* ─── 메인 ─── */
.tg-gif-main {
    padding: 30px 20px 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ─── 도입부 ─── */
.tg-gif-intro {
    background-color: var(--tggf-white);
    padding: 28px 24px;
    border-radius: var(--tggf-radius);
    border-left: 4px solid var(--tggf-magenta);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.tg-gif-intro p {
    font-size: 16px;
    margin-bottom: 14px;
}

.tg-gif-intro p:last-child {
    margin-bottom: 0;
}

/* ─── 섹션 공통 ─── */
.tg-gif-section {
    background-color: var(--tggf-white);
    padding: 34px 24px;
    border-radius: var(--tggf-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--tggf-slate-200);
}

.tg-gif-section--accent {
    background: linear-gradient(135deg, var(--tggf-magenta-light) 0%, #f0abfc25 100%);
    border-color: var(--tggf-magenta-border);
}

.tg-gif-section--demo {
    background: linear-gradient(135deg, var(--tggf-yellow-light) 0%, #fde04730 50%, #fef9c330 100%);
    border-color: var(--tggf-yellow-border);
}

.tg-gif-section--dark {
    background: linear-gradient(135deg, var(--tggf-slate-900) 0%, #1e293b 100%);
    border-color: var(--tggf-slate-700);
    color: var(--tggf-slate-300);
}

.tg-gif-section__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.tg-gif-section__num {
    font-size: 38px;
    font-weight: 900;
    color: var(--tggf-magenta);
    opacity: 0.2;
    line-height: 1;
    flex-shrink: 0;
}

.tg-gif-section__num--accent {
    opacity: 0.25;
}

.tg-gif-section__tip-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--tggf-yellow) 0%, #facc15 100%);
    color: var(--tggf-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.tg-gif-section__title {
    font-size: 20px;
    font-weight: 800;
    color: var(--tggf-slate-900);
    line-height: 1.35;
    padding-top: 6px;
}

.tg-gif-section__title--light {
    color: var(--tggf-white);
}

.tg-gif-section__desc {
    font-size: 16px;
    margin-bottom: 24px;
}

/* ─── 스텝 ─── */
.tg-gif-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tg-gif-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background-color: var(--tggf-white);
    border: 1px solid var(--tggf-slate-200);
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tg-gif-step:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 14px rgba(217, 70, 239, 0.1);
}

.tg-gif-step__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--tggf-magenta) 0%, var(--tggf-magenta-dark) 100%);
    color: var(--tggf-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.tg-gif-step__icon--key {
    background: linear-gradient(135deg, var(--tggf-yellow) 0%, var(--tggf-yellow-dark) 100%);
    width: 50px;
    height: 50px;
    font-size: 22px;
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.3);
}

.tg-gif-step__body {
    flex: 1;
}

.tg-gif-step__num {
    font-size: 11px;
    font-weight: 800;
    color: var(--tggf-magenta);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.tg-gif-step__num--key {
    color: var(--tggf-yellow-dark);
    font-size: 12px;
}

.tg-gif-step__title {
    font-size: 16px;
    font-weight: 800;
    color: var(--tggf-slate-900);
    margin-bottom: 4px;
}

.tg-gif-step__text {
    font-size: 14px;
    line-height: 1.6;
}

/* ─── GIF 변환 데모 ─── */
.tg-gif-demo {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tg-gif-demo__viewer {
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--tggf-yellow-border);
    box-shadow: 0 6px 24px rgba(217, 70, 239, 0.1);
    transition: border-color 0.4s ease;
}

.tg-gif-demo__screen {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

/* CSS 애니메이션 씬 */
.tg-gif-demo__scene {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.tg-gif-demo__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #8b5cf6 0%, #a78bfa 30%, #c4b5fd 60%, #ddd6fe 100%);
}

.tg-gif-demo__ball {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tggf-yellow) 0%, #fbbf24 50%, #f59e0b 100%);
    box-shadow: 0 4px 16px rgba(234, 179, 8, 0.5);
    left: 50%;
    transform: translateX(-50%);
    top: 30%;
    animation: tg-gif-bounce 2s ease-in-out infinite;
}

@keyframes tg-gif-bounce {

    0%,
    100% {
        top: 25%;
        transform: translateX(-50%) scale(1);
    }

    50% {
        top: 65%;
        transform: translateX(-50%) scale(1.15, 0.85);
    }
}

.tg-gif-demo__star {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: tg-gif-twinkle 3s ease-in-out infinite;
}

.tg-gif-demo__star--1 {
    top: 15%;
    left: 20%;
    animation-delay: 0s;
}

.tg-gif-demo__star--2 {
    top: 25%;
    right: 25%;
    animation-delay: 1s;
    width: 4px;
    height: 4px;
}

.tg-gif-demo__star--3 {
    top: 10%;
    left: 60%;
    animation-delay: 2s;
    width: 5px;
    height: 5px;
}

@keyframes tg-gif-twinkle {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* 재생 오버레이 (동영상 모드) */
.tg-gif-demo__play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: rgba(255, 255, 255, 0.85);
    transition: opacity 0.4s ease;
    cursor: pointer;
}

.tg-gif-demo__play-overlay.tg-gif-demo__play-overlay--hidden {
    opacity: 0;
    pointer-events: none;
}

/* GIF 뱃지 */
.tg-gif-demo__gif-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    border-radius: 6px;
    background-color: var(--tggf-magenta);
    color: var(--tggf-white);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1px;
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tg-gif-demo__gif-badge--visible {
    opacity: 1;
    transform: scale(1);
}

/* 상태 라벨 */
.tg-gif-demo__status {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    background-color: rgba(100, 116, 139, 0.7);
    color: var(--tggf-white);
}

/* 루프 카운터 */
.tg-gif-demo__loop {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    background-color: rgba(217, 70, 239, 0.8);
    color: var(--tggf-white);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tg-gif-demo__loop--visible {
    opacity: 1;
}

/* 하단 툴바 */
.tg-gif-demo__toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background-color: var(--tggf-slate-900);
}

.tg-gif-demo__mute-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--tggf-slate-700);
    border: 2px solid var(--tggf-slate-500);
    color: var(--tggf-white);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-family: inherit;
}

.tg-gif-demo__mute-btn:hover {
    background-color: var(--tggf-slate-500);
}

.tg-gif-demo__mute-btn--muted {
    background: linear-gradient(135deg, var(--tggf-yellow) 0%, var(--tggf-yellow-dark) 100%);
    border-color: var(--tggf-yellow);
    box-shadow: 0 0 16px rgba(234, 179, 8, 0.4);
}

.tg-gif-demo__mute-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--tggf-slate-300);
    flex: 1;
    transition: color 0.3s ease;
}

.tg-gif-demo__send-btn {
    padding: 10px 24px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--tggf-magenta) 0%, var(--tggf-magenta-dark) 100%);
    color: var(--tggf-white);
    border: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.tg-gif-demo__send-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 16px rgba(217, 70, 239, 0.4);
}

.tg-gif-demo__send-btn--sent {
    background: linear-gradient(135deg, var(--tggf-green) 0%, #16a34a 100%);
}

/* 비교 정보 카드 */
.tg-gif-demo__info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tg-gif-demo__info-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--tggf-slate-200);
    transition: all 0.4s ease;
}

.tg-gif-demo__info-card--video {
    border-color: var(--tggf-slate-300);
}

.tg-gif-demo__info-card--gif {
    border-color: var(--tggf-magenta-border);
}

.tg-gif-demo__info-card--active {
    box-shadow: 0 4px 20px rgba(217, 70, 239, 0.15);
}

.tg-gif-demo__info-header {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 800;
}

.tg-gif-demo__info-card--video .tg-gif-demo__info-header {
    background-color: var(--tggf-slate-100);
    color: var(--tggf-slate-700);
}

.tg-gif-demo__info-card--gif .tg-gif-demo__info-header {
    background: linear-gradient(135deg, var(--tggf-magenta-light) 0%, #f0abfc30 100%);
    color: var(--tggf-magenta-dark);
}

.tg-gif-demo__info-header i {
    margin-right: 4px;
}

.tg-gif-demo__info-list {
    list-style: none;
    padding: 10px 14px;
}

.tg-gif-demo__info-list li {
    font-size: 12px;
    padding: 4px 0;
    color: var(--tggf-slate-500);
}

.tg-gif-demo__info-list li i {
    width: 18px;
    text-align: center;
    margin-right: 4px;
    font-size: 10px;
}

.tg-gif-demo__info-card--video .tg-gif-demo__info-list li i {
    color: var(--tggf-slate-300);
}

.tg-gif-demo__info-card--gif .tg-gif-demo__info-list li i {
    color: var(--tggf-magenta);
}

/* ─── 재사용 카드 ─── */
.tg-gif-reuse-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.tg-gif-reuse-card {
    padding: 22px;
    border-radius: 12px;
    background-color: var(--tggf-white);
    border: 1px solid var(--tggf-magenta-border);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tg-gif-reuse-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(217, 70, 239, 0.1);
}

.tg-gif-reuse-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--tggf-magenta) 0%, var(--tggf-magenta-dark) 100%);
    color: var(--tggf-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin: 0 auto 10px;
}

.tg-gif-reuse-card__title {
    font-size: 15px;
    font-weight: 800;
    color: var(--tggf-slate-900);
    margin-bottom: 4px;
}

.tg-gif-reuse-card__desc {
    font-size: 13px;
    line-height: 1.6;
}

/* ─── 이유 ─── */
.tg-gif-reasons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.tg-gif-reason {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(240, 171, 252, 0.12);
    padding: 22px;
    border-radius: 10px;
    position: relative;
}

.tg-gif-reason__number {
    position: absolute;
    top: -10px;
    left: 18px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--tggf-yellow) 0%, #facc15 100%);
    color: var(--tggf-white);
    font-weight: 900;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.tg-gif-reason__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--tggf-white);
    margin-bottom: 8px;
    padding-top: 6px;
}

.tg-gif-reason__title i {
    color: var(--tggf-magenta-border);
    margin-right: 4px;
}

.tg-gif-reason__text {
    font-size: 14px;
    color: var(--tggf-slate-300);
}

.tg-gif-reason__text strong {
    color: var(--tggf-white);
}

/* ─── 결론 ─── */
.tg-gif-summary {
    background: linear-gradient(135deg, #86198f 0%, #a21caf 50%, var(--tggf-magenta-dark) 100%);
    color: var(--tggf-white);
    padding: 44px 28px;
    border-radius: var(--tggf-radius);
    text-align: center;
    box-shadow: 0 10px 30px rgba(134, 25, 143, 0.4);
}

.tg-gif-summary__title {
    font-size: 24px;
    font-weight: 800;
    color: var(--tggf-white);
    margin-bottom: 20px;
}

.tg-gif-summary__body p {
    font-size: 16px;
    margin-bottom: 14px;
    color: var(--tggf-magenta-border);
}

.tg-gif-summary strong {
    color: var(--tggf-white);
}

.tg-gif-summary__highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 24px 0;
}

.tg-gif-summary__highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(240, 171, 252, 0.12);
    border-radius: 10px;
}

.tg-gif-summary__highlight-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--tggf-yellow) 0%, #facc15 100%);
    color: var(--tggf-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.tg-gif-summary__highlight strong {
    font-size: 13px;
    color: var(--tggf-white);
}

.tg-gif-summary__highlight span {
    font-size: 11px;
    color: var(--tggf-magenta-border);
    text-align: center;
}

.tg-gif-summary__checklist {
    list-style: none;
    display: inline-block;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 24px 32px;
    border-radius: 12px;
    margin: 0 0 24px;
}

.tg-gif-summary__checklist li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-size: 15px;
    color: #f0abfc;
}

.tg-gif-summary__checklist li:last-child {
    margin-bottom: 0;
}

.tg-gif-summary__checklist li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 13px;
    color: var(--tggf-yellow-border);
}

.tg-gif-summary__checklist strong {
    color: var(--tggf-white);
}

.tg-gif-summary__footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
    color: var(--tggf-magenta-border);
    line-height: 1.8;
}

.tg-gif-summary__footer strong {
    color: var(--tggf-white);
}

/* ============================================
   반응형
============================================ */
@media (min-width: 768px) {
    .tg-gif-hero {
        padding: 80px 40px;
    }

    .tg-gif-hero__title {
        font-size: 38px;
    }

    .tg-gif-main {
        padding: 40px 36px 0;
        gap: 40px;
    }

    .tg-gif-intro {
        padding: 36px 32px;
    }

    .tg-gif-section {
        padding: 40px 36px;
    }

    .tg-gif-section__title {
        font-size: 24px;
    }

    .tg-gif-section__num {
        font-size: 44px;
    }

    .tg-gif-reuse-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .tg-gif-reasons {
        grid-template-columns: repeat(3, 1fr);
    }

    .tg-gif-demo__screen {
        height: 280px;
    }

    .tg-gif-summary__highlights {
        grid-template-columns: repeat(3, 1fr);
    }

    .tg-gif-summary {
        padding: 56px 44px;
    }
}

@media (min-width: 1024px) {
    .tg-gif-hero__title {
        font-size: 44px;
    }

    .tg-gif-main {
        gap: 46px;
    }

    .tg-gif-demo {
        flex-direction: row;
    }

    .tg-gif-demo__viewer {
        flex: 1;
    }

    .tg-gif-demo__info {
        flex: 0 0 280px;
        grid-template-columns: 1fr;
    }
}

/* ============================================
   스크롤 등장 애니메이션
============================================ */
.tg-gif-motion {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.tg-gif-motion.is-visible {
    opacity: 1;
    transform: translateY(0);
}