.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 80px 0 80px; }
.hero-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 26px; }
.hero-eyebrow img { width: auto; opacity: .95; }
.hero-eyebrow .logo-komdigi { height: 36px; }
.hero-eyebrow .logo-garuda { height: 36px; }
.hero-eyebrow .logo-ssi { height: 24px; margin-left: 4px; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .2); }
.hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 800; line-height: 1.02; letter-spacing: -.03em; margin: 0 0 20px; }
.hero h1 .accent { color: var(--primary); }
.hero p { color: rgba(255, 255, 255, .6); font-size: 17px; line-height: 1.7; max-width: 520px; margin: 0 0 28px; }
.hero-visual { position: relative; width: 100%; display: flex; justify-content: center; }
.hero-visual-img { width: 100%; max-width: 560px; height: auto; display: block; }

.home-section { padding: 50px 0; }
.benefits-slider { overflow: hidden; padding: 20px 0; margin-bottom: 20px; }
.benefits-track { display: flex; gap: 20px; will-change: transform; }
.benefit-card {
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .03);
    border-radius: 28px;
    padding: 30px;
    color: rgba(255, 255, 255, .7);
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: 0;
    opacity: 0.5;
    transform: scale(0.92);
    cursor: pointer;
    transition: opacity .5s ease, transform .5s ease, background .4s ease, border-color .4s ease, color .4s ease;
}
.benefit-card.featured {
    opacity: 1;
    transform: scale(1);
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.benefit-card:hover:not(.featured) { opacity: 0.85; }
.benefit-card .icon { width: 56px; height: 56px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.benefit-card h3 { color: #fff; font-size: 24px; font-weight: 800; line-height: 1.15; margin: 0 auto 16px; max-width: 220px; text-align: center; }
.benefit-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; font-size: 14px; line-height: 1.55; }
.benefit-card ul li { position: relative; padding-left: 28px; }
.benefit-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef1b4b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
    background-size: 11px 11px;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}
.benefit-card.featured ul li::before {
    background: rgba(255, 255, 255, .18);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
    background-size: 11px 11px;
    background-position: center;
    background-repeat: no-repeat;
}

.dots { display: flex; gap: 4px; justify-content: center; margin-top: 20px; }
.dots button {
    width: 28px; height: 28px; border-radius: 999px;
    background: transparent; border: 0; padding: 0; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    position: relative;
}
.dots button::before {
    content: '';
    width: 8px; height: 8px; border-radius: 999px;
    background: rgba(255, 255, 255, .2);
    transition: background .2s, transform .2s;
}
.dots button:hover::before { background: rgba(255, 255, 255, .4); }
.dots button.active::before { background: var(--primary); transform: scale(1.3); }
.dots span {
    width: 8px; height: 8px; border-radius: 999px;
    background: rgba(255, 255, 255, .2);
    align-self: center;
}
.dots span.active { background: var(--primary); }

.timeline-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; position: relative; }
.timeline-heading { position: relative; }
.timeline-heading h2 { font-size: clamp(28px, 3vw, 48px); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; margin: 0; max-width: 320px; }
.timeline-deco { margin-top: 40px; width: 160px; height: 80px; position: relative; opacity: .6; }
.timeline-deco::before { content: ''; position: absolute; left: 0; top: 0; width: 80px; height: 80px; border: 1px solid var(--line); border-radius: 0 0 0 80px; }
.timeline-deco::after { content: ''; position: absolute; left: 80px; top: 0; width: 80px; height: 80px; border: 1px solid var(--line); border-radius: 80px 0 0 0; border-left: 0; }

.timeline {
    position: relative;
    padding-left: 56px;
    padding-right: 8px;
    max-height: 520px;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.timeline::-webkit-scrollbar { display: none; }
.timeline::before { content: ''; position: absolute; left: 64px; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .15); }
.timeline-item { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 12px 16px 24px 0; position: relative; width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer; border-radius: 16px; transition: color .25s ease; font: inherit; color: inherit; scroll-snap-align: center; scroll-snap-stop: always; align-items: center; }
@media (hover: hover) {
    .timeline-item:hover .date,
    .timeline-item:hover .month,
    .timeline-item:hover h3,
    .timeline-item:hover p { color: #fff; }
}
.timeline-item::before { content: ''; position: absolute; left: -37px; top: 50%; transform: translateY(-50%); width: 12px; height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .25); z-index: 1; }
.timeline-item.active::before { background: var(--primary); box-shadow: 0 0 0 4px rgba(239, 27, 75, .2); }
.timeline-item .date { font-size: 32px; font-weight: 800; line-height: 1; color: rgba(255, 255, 255, .2); }
.timeline-item .month { font-size: 11px; letter-spacing: .18em; color: rgba(255, 255, 255, .2); text-transform: uppercase; margin-top: 6px; }
.timeline-item.active .date, .timeline-item.active .month { color: #fff; }
.timeline-item h3 { margin: 0 0 10px; font-size: 22px; font-weight: 800; color: rgba(255, 255, 255, .3); }
.timeline-item p { margin: 0; color: rgba(255, 255, 255, .25); font-size: 14px; line-height: 1.7; max-width: 380px; }
.timeline-item.active h3 { color: #fff; }
.timeline-item.active p { color: rgba(255, 255, 255, .65); }

@media (max-width: 960px) {
    .timeline-section { grid-template-columns: 1fr; }
}

.criteria-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
/* Orphan card centering — only at 3-col desktop (>1100px). At 2-col/1-col, natural flow. */
@media (min-width: 1101px) {
    .criteria-card:last-child:nth-child(3n+1) { grid-column-start: 2; }
}
.criteria-card { display: flex; gap: 16px; border: 1px solid rgba(239, 27, 75, .8); border-radius: 22px; padding: 18px 20px; color: rgba(255, 255, 255, .8); font-size: 14px; line-height: 1.6; cursor: pointer; transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease; }
.criteria-card:hover { background: var(--primary); color: #fff; transform: translateY(-4px); box-shadow: 0 16px 36px rgba(239, 27, 75, .25); }
.criteria-card .icon { flex-shrink: 0; width: 46px; height: 46px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }

.activities-head { display: flex; justify-content: space-between; align-items: end; padding-bottom: 20px; }
.activities-head h2 { font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; text-transform: uppercase; margin: 0; }
.activities-head a { color: rgba(255, 255, 255, .5); font-size: 14px; }
.activities-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.activity-card { height: 220px; border-radius: 26px; border: 1px solid rgba(255, 255, 255, .1); position: relative; overflow: hidden; background: linear-gradient(135deg, #2a2a2a, #111); padding: 20px; }
.activity-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .72)); }
.activity-card .caption { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 1; }
.activity-card .caption .tag { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.activity-card .caption h3 { margin: 8px 0 4px; font-size: 22px; font-weight: 800; }
.activity-card .caption p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .7); }

.participants-head { text-align: center; font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; text-transform: uppercase; margin: 0 0 24px; }
.participants-toolbar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.participants-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 30px; }
.participant-card { border: 1px solid rgba(239, 27, 75, .8); border-radius: 28px; padding: 14px; cursor: pointer; transition: background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.participant-card:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 18px 40px rgba(239, 27, 75, .25); }
.participant-card:hover .batch { background: #000; }
.participant-photo { background: #fff; border-radius: 20px; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; color: #999; border: 1px solid rgba(0, 0, 0, .06); }
.participant-photo svg { width: 56%; height: 56%; opacity: .9; }
.participant-body { padding: 16px 8px 4px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.participant-body h3 { margin: 0; font-size: 22px; font-weight: 800; color: #fff; word-break: break-word; }
.participant-body .url { margin: 0; color: rgba(255, 255, 255, .6); font-size: 13px; word-break: break-all; display: block; }
.participant-body .batch { display: inline-block; background: var(--primary); color: #fff; border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 700; margin-top: 6px; align-self: flex-start; }

@media (max-width: 1100px) {
    .criteria-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .participants-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .hero { grid-template-columns: 1fr; padding: 40px 0 60px; gap: 30px; }
    .hero h1 { font-size: clamp(28px, 6vw, 48px); }
    .hero p { font-size: 15px; }
    .hero-eyebrow { gap: 10px; margin-bottom: 18px; }
    .hero-visual { height: auto; max-width: 420px; margin: 0 auto; }
    .hero-visual-img { max-width: 100%; }
    .timeline-section { grid-template-columns: 1fr; gap: 24px; }
    .timeline-heading h2 { max-width: none; }
    .timeline-deco { display: none; }
    .timeline { padding-left: 28px; max-height: 420px; }
    .timeline-item { grid-template-columns: 100px 1fr; gap: 12px; padding: 10px 12px 18px 0; }
    .timeline-item .date { font-size: 24px; }
    .timeline-item .month { letter-spacing: .1em; font-size: 10px; }
    .timeline-item h3 { font-size: 20px; }
    .benefit-card { flex: 0 0 100%; }
    .criteria-grid, .activities-grid { grid-template-columns: 1fr; }
    .participants-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .participants-toolbar .clear-filter { margin-left: 0 !important; }
    .activities-head { flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; }
}
@media (max-width: 640px) {
    .home-section { padding: 36px 0; }
    .hero { padding: 24px 0 36px; gap: 24px; }
    .hero h1 { font-size: clamp(26px, 8vw, 38px); margin-bottom: 14px; }
    .hero p { font-size: 14px; margin-bottom: 22px; }
    .hero-eyebrow .logo-komdigi { height: 28px; }
    .hero-eyebrow .logo-garuda { height: 28px; }
    .hero-eyebrow .logo-ssi { height: 20px; padding-left: 12px; margin-left: 2px; }
    .timeline { max-height: 380px; padding-right: 4px; }
    .benefit-card { padding: 22px; }
    .benefit-card h3 { font-size: 22px; max-width: none; }
    .criteria-card { padding: 16px; gap: 12px; }
    .criteria-card .icon { width: 40px; height: 40px; }
    .activity-card { height: 180px; padding: 16px; }
    .activity-card .caption h3 { font-size: 18px; }
    .timeline-item { grid-template-columns: 90px 1fr; padding-bottom: 16px; }
    .timeline-item .date { font-size: 20px; }
    .timeline-item .month { font-size: 10px; letter-spacing: .14em; }
    .timeline-item h3 { font-size: 17px; margin-bottom: 6px; }
    .timeline-item p { font-size: 13px; line-height: 1.6; }
    .timeline { padding-left: 22px; }
    .timeline-item::before { left: -30px; width: 10px; height: 10px; }
    .participants-toolbar { flex-direction: column; align-items: stretch; }
    .participants-toolbar > * { width: 100%; }
    .search-pill { min-width: 0; }
    [data-dropdown] { width: 100%; }
    [data-dropdown-trigger] { width: 100%; justify-content: space-between; }
    .participants-head { font-size: 22px; }
    .participant-body h3 { font-size: 18px; }
    .participant-body .url { font-size: 12px; margin: 4px 0 10px; }
    .dots { margin-top: 14px; }
}
@media (max-width: 560px) {
    .participants-grid { grid-template-columns: 1fr; gap: 14px; }
    .hero-visual { max-width: 280px; }
    .activities-head h2 { font-size: 20px; }
    .timeline-item { grid-template-columns: 80px 1fr; gap: 10px; }
    .timeline-item .date { font-size: 18px; }
}
@media (max-width: 400px) {
    .hero-eyebrow .logo-ssi { border-left: 0; padding-left: 0; margin-left: 0; }
}

/* ============================================== */
/* Ambient idle animations — subtle, tasteful     */
/* Honors prefers-reduced-motion                  */
/* ============================================== */

@keyframes ssi-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes ssi-pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 27, 75, 0.4); }
    70% { box-shadow: 0 0 0 14px rgba(239, 27, 75, 0); }
}

@keyframes ssi-accent-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes ssi-spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes ssi-timeline-ping {
    0% { transform: translateY(-50%) scale(1); opacity: .8; }
    70% { transform: translateY(-50%) scale(2.5); opacity: 0; }
    100% { transform: translateY(-50%) scale(2.5); opacity: 0; }
}

@keyframes ssi-marquee-vertical {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

@keyframes ssi-gradient-move {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes ssi-icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* Hero accent text — animated gradient shimmer */
.hero h1 .accent {
    background: linear-gradient(90deg, var(--primary) 0%, #ff5c8a 35%, var(--primary) 70%, #ff5c8a 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: ssi-accent-shimmer 6s ease-in-out infinite;
}

/* Hero visual image — subtle floating */
.hero-visual-img {
    animation: ssi-float 5s ease-in-out infinite;
}

/* Hero CTA button — pulse glow effect */
.hero .btn-primary.btn-pill {
    animation: ssi-pulse-glow 2.8s ease-in-out infinite;
}

/* Featured benefit card — subtle float */
.benefit-card.featured {
    animation: ssi-float 6s ease-in-out infinite;
}

/* Active timeline dot — radar ping overlay (separate from ::before dot) */
.timeline-item.active::after {
    content: '';
    position: absolute;
    left: -37px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--primary);
    animation: ssi-timeline-ping 2s ease-out infinite;
    transform-origin: center;
    pointer-events: none;
    z-index: 0;
}

/* Criteria featured card — soft pulse glow */
.criteria-card.featured {
    animation: ssi-pulse-glow 3.2s ease-in-out infinite;
}

/* Activity card image zoom on idle (very slow) */
.activity-card {
    transition: background-size 8s ease;
}
.activity-card:hover {
    animation: none;
}

/* Participant/alumni card featured badge — gentle pulse */
.participant-card .batch {
    animation: ssi-icon-pulse 2.5s ease-in-out infinite;
}

/* Section title animated underline accent (optional subtle) */
.section-title h2 {
    position: relative;
}

/* Divider — subtle animated gradient */
.divider {
    background: linear-gradient(90deg, transparent 0%, rgba(239, 27, 75, 0.3) 50%, transparent 100%);
    background-size: 200% 100%;
    height: 1px;
    border: 0;
    animation: ssi-gradient-move 8s ease-in-out infinite;
}

/* Hero eyebrow logos — gentle breathing opacity */
.hero-eyebrow img {
    animation: ssi-icon-pulse 4s ease-in-out infinite;
}
.hero-eyebrow .logo-garuda { animation-delay: .5s; }
.hero-eyebrow .logo-ssi { animation-delay: 1s; }

/* Reduce motion preference — disable all ambient animations */
@media (prefers-reduced-motion: reduce) {
    .hero h1 .accent,
    .hero-visual-img,
    .hero .btn-primary.btn-pill,
    .benefit-card.featured,
    .timeline-item.active::after,
    .criteria-card.featured,
    .participant-card .batch,
    .divider,
    .hero-eyebrow img {
        animation: none !important;
    }
}
