/* =====================================================================
   SIGHTLINE - pinned 3D timeline
   Desktop (with GSAP): the section pins for one screen and the seven
   image cards travel left along a gold timeline; the card at the focus
   point faces you, the others turn away in 3D.
   Mobile / no JS: a vertical timeline.
   ===================================================================== */
.sight3d { position: relative; padding: 110px 0 90px; overflow: hidden; }
.sight3d::before { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(45% 55% at 75% 55%, rgba(32,156,207,.08), transparent 70%), radial-gradient(40% 40% at 5% 20%, rgba(32,156,207,.05), transparent 70%); }

.s3-inner { position: relative; display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: clamp(30px, 4vw, 70px); align-items: center; }

/* ---- intro ---- */
.s3-intro { position: relative; z-index: 3; display: grid; gap: clamp(12px, 2vh, 20px); }
.s3-heading { margin: 4px 0 0; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(3rem, 9.5vh, 6.4rem); line-height: .95; letter-spacing: -.02em; color: #fff; }
.s3-heading em { font-style: italic; color: #c7cf15; }
.s3-lead { margin: 0; font-size: clamp(.95rem, 2vh, 1.05rem); line-height: 1.7; color: rgba(255,255,255,.72); }
.s3-lead strong { color: #fff; font-weight: 600; }
.s3-sub { margin: 4px 0 0; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.s3-pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.s3-pillars li {
    display: grid; gap: 4px; padding: 12px 12px 14px; border-radius: 14px; text-align: left;
    font-family: 'Instrument Serif', serif; font-size: 1.25rem; color: #fff;
    background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1); transition: .35s;
}
.s3-pillars li span { font-family: 'Space Grotesk', sans-serif; font-size: .68rem; letter-spacing: .14em; color: #c7cf15; }
.s3-pillars li:hover { border-color: rgba(32,156,207,.55); background: rgba(32,156,207,.07); transform: translateY(-3px); }
.s3-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 6px; }
.s3-count { display: flex; align-items: baseline; gap: 6px; }
.s3-count b { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 2.6rem; line-height: 1; color: #c7cf15; }
.s3-count span { font-family: 'Space Grotesk', sans-serif; font-size: .85rem; color: rgba(255,255,255,.5); letter-spacing: .1em; }

/* ---- timeline viewport (vertical fallback first) ---- */
.s3-viewport { position: relative; }
.s3-line { position: absolute; left: 11px; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.1); border-radius: 2px; overflow: hidden; }
.s3-line-fill { position: absolute; inset: 0; background: linear-gradient(180deg, #e3ea6e, #c7cf15, rgba(32,156,207,.2)); transform-origin: top; transform: scaleY(.15); }
.s3-track { display: grid; gap: 28px; padding-left: 44px; }

.s3-card {
    position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: 24px; overflow: visible;
    background: linear-gradient(160deg, #141416, #0b0b0c); border: 1px solid rgba(32,156,207,.2);
    box-shadow: 0 40px 80px -36px rgba(0,0,0,.9);
}
.s3-node { position: absolute; left: -44px; top: 28px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
    background: #030303; border: 2px solid rgba(32,156,207,.7); box-shadow: 0 0 0 6px rgba(32,156,207,.08); }
.s3-node i { width: 8px; height: 8px; border-radius: 50%; background: #209ccf; box-shadow: 0 0 14px #c7cf15; }
.s3-date { display: none; }
.s3-media { margin: 0; border-radius: 24px 24px 0 0; overflow: hidden; aspect-ratio: 5 / 4; background: #040404; }
.s3-media img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.s3-card:hover .s3-media img { transform: scale(1.1); }
.s3-body { padding: 20px 22px 24px; display: grid; gap: 8px; align-content: start; }
.s3-cat { font-family: 'Space Grotesk', sans-serif; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #c7cf15; }
.s3-title { margin: 0; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(1.5rem, 2vw, 1.9rem); line-height: 1.08; color: #fff; }
.s3-text { margin: 0; font-size: .9rem; line-height: 1.6; color: rgba(255,255,255,.68); }

/* ---- desktop pinned 3D timeline (class added by JS) ---- */
.sight3d.is-timeline { padding: 0; }
.sight3d.is-timeline .s3-pin { height: 100vh; height: 100svh; box-sizing: border-box; display: flex; align-items: center; padding: 96px 0 24px; }
.sight3d.is-timeline .s3-inner { width: 100%; height: 100%; }
.sight3d.is-timeline .s3-viewport { height: 100%; perspective: 1600px; perspective-origin: 30% 45%; margin-right: calc((100vw - 100%) / -2); }
.sight3d.is-timeline .s3-line { left: 0; right: 0; top: auto; bottom: 64px; width: auto; height: 2px; }
.sight3d.is-timeline .s3-line-fill { background: linear-gradient(90deg, #e3ea6e, #c7cf15); transform-origin: left; transform: scaleX(0); }
.sight3d.is-timeline .s3-track {
    position: absolute; left: 0; top: 0; bottom: 0; display: flex; align-items: flex-end; gap: clamp(26px, 2.6vw, 44px);
    padding: 0 40vw 92px 6px; transform-style: preserve-3d; will-change: transform;
}
.sight3d.is-timeline .s3-card {
    flex: none; width: clamp(270px, 21vw, 340px); max-height: calc(100% - 110px); transform-style: preserve-3d; will-change: transform, opacity;
    transform-origin: 50% 100%;
}
.sight3d.is-timeline .s3-media { aspect-ratio: auto; height: clamp(150px, 26vh, 250px); }
.sight3d.is-timeline .s3-node { left: 50%; top: auto; bottom: -40px; transform: translateX(-50%); }
.sight3d.is-timeline .s3-date { display: block; position: absolute; left: 50%; bottom: -74px; transform: translateX(-50%);
    font-family: 'Space Grotesk', sans-serif; font-size: .72rem; letter-spacing: .2em; color: rgba(255,255,255,.45); }
.sight3d.is-timeline .s3-card.is-focus { border-color: rgba(32,156,207,.6); box-shadow: 0 50px 100px -36px rgba(0,0,0,.95), 0 0 60px -18px rgba(32,156,207,.35); }
.sight3d.is-timeline .s3-card.is-focus .s3-node { background: #209ccf; box-shadow: 0 0 0 8px rgba(32,156,207,.18), 0 0 24px rgba(32,156,207,.6); }
.sight3d.is-timeline .s3-card.is-focus .s3-node i { background: #030303; box-shadow: none; }
.sight3d.is-timeline .s3-card.is-focus .s3-date { color: #c7cf15; }

@media (max-width: 1000px) {
    .s3-inner { grid-template-columns: 1fr; }
    .s3-pillars { grid-template-columns: repeat(4, 1fr); }
    .s3-count { display: none; }
}
@media (max-width: 560px) {
    .s3-pillars { grid-template-columns: repeat(2, 1fr); }
    .s3-track { padding-left: 36px; }
    .s3-node { left: -36px; }
    .s3-line { left: 11px; }
}

/* ---- fix: passed cards were sliding over the intro text on the left.
   The timeline is clipped to its own column and fades out at its left edge. ---- */
.sight3d.is-timeline .s3-viewport {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 100%);
}
.sight3d.is-timeline .s3-intro { position: relative; z-index: 5; }
