/* GRID-FLEX scroll story: pinned video scrubbed by scroll, one callout per stage */
.gfs-wrap { position: relative; background: #060f18; }
.gfs-stage { position: relative; height: clamp(440px, 72vh, 760px); max-width: 1320px; margin: 0 auto; overflow: hidden; display: grid; place-items: center; }
.gfs-wrap { padding: 20px 0 40px; }
.gfs-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; background: #060f18; }
@media (max-width: 760px) { .gfs-stage video { position: static; } }
.gfs-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #060f18 0%, rgba(6,15,24,0) 14%, rgba(6,15,24,0) 86%, #060f18 100%); }
.gfs-cards { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.gfs-card { position: absolute; top: 50%; width: min(380px, calc(100% - 48px)); padding: 24px 26px; border-radius: 14px; background: rgba(8,22,34,.82); border: 1px solid rgba(46,190,239,.32); box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.03) inset; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transform: translateY(calc(-50% + 14px)); transition: opacity .16s ease-out, transform .16s ease-out; pointer-events: none; }
.gfs-card[data-side="left"] { left: 24px; }
.gfs-card[data-side="right"] { right: 72px; }
.gfs-card.is-on { opacity: 1; transform: translateY(-50%); pointer-events: auto; transition: opacity .3s ease-out .08s, transform .38s cubic-bezier(.2,.7,.2,1) .08s; }
.gfs-card .k { margin-right: 64px; min-width: 0; font-family: var(--font-btn); font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); display: flex; align-items: center; gap: 10px; }
.gfs-card .k::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px rgba(46,190,239,.9); flex: 0 0 auto; }
.gfs-card h3 { margin: 12px 0 8px; font-family: var(--font-head); font-weight: 900; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.08; letter-spacing: -0.01em; color: #fff; }
.gfs-card p { margin: 0; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.86); }
.gfs-card .n { position: absolute; top: 24px; right: 20px; white-space: nowrap; font-family: var(--font-btn); font-size: 11px; letter-spacing: .12em; color: rgba(255,255,255,.5); }
.gfs-rail { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); z-index: 3; display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.gfs-rail button { width: 44px; height: 26px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; padding: 0; }
.gfs-rail button::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.35); transition: transform .2s ease, background .2s ease; }
.gfs-rail button.is-on::before { background: var(--cyan); transform: scale(1.5); box-shadow: 0 0 10px rgba(46,190,239,.9); }
.gfs-rail button:focus-visible { outline: 2px solid var(--cyan); outline-offset: -4px; border-radius: 6px; }
.gfs-toggle { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(8,22,34,.75); border: 1px solid rgba(46,190,239,.4); color: #fff; cursor: pointer; backdrop-filter: blur(8px); }
.gfs-toggle:hover, .gfs-toggle:focus-visible { border-color: var(--cyan); color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(46,190,239,.3); }
.gfs-toggle .i-pause { display: none; }
.gfs-toggle.is-playing .i-pause { display: block; }
.gfs-toggle.is-playing .i-play { display: none; }
.gfs-status { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 3; font-family: var(--font-btn); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
@media (max-width: 760px) {
  .gfs-wrap { padding: 0 0 24px; }
  .gfs-stage { align-items: start; height: auto; min-height: 0; display: block; overflow: visible; }
  .gfs-stage::after { display: none; }
  .gfs-stage video { height: auto; aspect-ratio: 16 / 9; margin: 0; }
  .gfs-cards { position: relative; inset: auto; width: 100%; min-height: 200px; margin-top: 12px; }
  .gfs-toggle { bottom: auto; top: 12px; left: auto; right: 12px; transform: none; width: 44px; height: 44px; }
  .gfs-card, .gfs-card[data-side="left"], .gfs-card[data-side="right"] { position: absolute; left: 16px; right: 16px; width: auto; top: 0; bottom: auto; transform: translateY(12px); padding: 18px 20px; }
  .gfs-card.is-on { transform: none; }
  .gfs-card p { font-size: 14px; }
  .gfs-rail { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gfs-card { transition: none; }
}
