/* Ana sayfa ve Launcher sayfası: açılış sahnesi, kayan şerit, kapanış. */

main[data-page="home"] .page, main[data-page="launcher"] .page { padding-top: 0; }

/* ---------- Açılış sahnesi ---------- */
.hero { position: relative; isolation: isolate; max-width: none; margin-inline: calc(var(--gutter) * -1); overflow: hidden; }
.hero-sticky, .launcher-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); align-items: center; padding: var(--s-7) var(--gutter) var(--s-6); overflow: hidden; }
.launcher-hero { max-width: none; margin-inline: calc(var(--gutter) * -1); }
.hero-backdrop, .launcher-hero::before { content: ""; position: absolute; inset: -6%; z-index: -1; background: url(../img/veins.svg) center / cover; opacity: .7; }
.motion-full .hero-backdrop, .motion-full .launcher-hero::before { animation: backdrop-drift 48s var(--ease-in-out) infinite alternate; }
.hero-copy, .launcher-hero-copy { position: relative; z-index: 2; display: grid; gap: var(--s-5); justify-items: start; }
.hero-title { font: 700 var(--t-display) var(--font); letter-spacing: var(--track-tight); min-height: 2.1em; }
.hero-body { color: var(--text-2); font: var(--t-h3) var(--font); line-height: 1.6; min-height: 4.8em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* Tanıtım çizgileri: dolan çizgi sıradaki tanıtımı açar */
.hero-controls { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-3); }
.hero-dot { width: 56px; min-height: var(--control-small); padding: 0; border: 0; border-radius: 0; background: none; }
.hero-dot:hover { background: none; }
.hero-dot::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; border-radius: var(--r-full); background: var(--line-strong); }
.hero-dot-fill { position: absolute; left: 0; right: 0; top: 50%; height: 2px; border-radius: var(--r-full); background: var(--accent); transform: scaleX(0); transform-origin: left; }
.hero-dot.is-done .hero-dot-fill, .hero-dot.is-current .hero-dot-fill { transform: scaleX(1); }
.has-motion .hero[data-playing="true"] .hero-dot.is-current .hero-dot-fill { animation: dot-fill var(--slide-time, 6s) linear both; }
.has-motion .hero:hover .hero-dot-fill, .has-motion .hero:focus-within .hero-dot-fill { animation-play-state: paused; }
.hero-pause { margin-left: var(--s-2); border-color: transparent; background: none; color: var(--muted); }

/* Sahne: ışık halesi, mermer büst, sakin olay kartları */
.hero-stage { position: relative; z-index: 1; justify-self: center; width: min(100%, 380px); aspect-ratio: 1 / 1; }
.hero-halo { position: absolute; inset: 4% -6% 14%; border-radius: var(--r-full); background: radial-gradient(closest-side, var(--glow), transparent 72%); }
.has-motion .hero-halo { animation: halo-breathe 9s var(--ease-in-out) infinite; }
.hero-statue, .launcher-statue { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(var(--shadow-statue)); animation: statue-in 1.8s var(--ease-out) both; }
/* Büstün üstünden geçen ışık: heykelin biçimiyle maskelenir */
.hero-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 38%, var(--sheen) 50%, transparent 62%) 0 0 / 300% 100% no-repeat; -webkit-mask: url(../img/statue-bust.svg) center / contain no-repeat; mask: url(../img/statue-bust.svg) center / contain no-repeat; mix-blend-mode: soft-light; background-position: 150% 0; pointer-events: none; transition: opacity var(--move-fast) var(--ease-out); }
.has-motion .hero-stage::after { animation: stage-sheen 8s var(--ease-in-out) infinite; }
.hero-stage.has-sprite::after { opacity: 0; animation: none; }
.hero[data-slide="1"] .hero-halo { transform: translateX(8%) scale(1.08); }
.hero[data-slide="2"] .hero-halo { transform: translateX(-8%) scale(.94); }
.hero-halo { transition: transform 2s var(--ease-out); }

.hero-events { position: absolute; inset: 0; transform: translate3d(calc(var(--px, 0) * -26px), calc(var(--py, 0) * -18px), 0); transition: transform 1.4s var(--ease-out); }
.hero-event { position: absolute; display: grid; gap: var(--s-1); padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--glass); backdrop-filter: blur(14px); }
.motion-full .hero-event { animation: float 8s var(--ease-in-out) infinite; }
.hero-event b { font: 650 var(--t-small) var(--font); }
.hero-event small { color: var(--muted); }
.hero-events { display: none; }
.hero-event:nth-child(1) { top: 12%; right: 0; }
.hero-event:nth-child(2) { top: 46%; left: 0; animation-delay: -2.6s; }
.hero-event:nth-child(3) { bottom: 16%; right: 4%; animation-delay: -5.2s; }

.hero-media { position: absolute; left: 0; right: 0; bottom: 6%; display: none; border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; box-shadow: var(--shadow); }
.hero-media img, .hero-media video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
.hero.has-media .hero-media { display: block; animation: fade-rise .9s var(--ease-out) both; }
.hero.has-media .hero-events { display: none; }
.hero.has-media .hero-statue { opacity: .5; transition: opacity var(--move) var(--ease-out); }

/* ---------- Kayan şerit ---------- */
.marquee { max-width: none; margin-inline: calc(var(--gutter) * -1); padding-block: var(--s-4); border-block: 1px solid var(--line); overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.page > .marquee { margin-top: 0; }
.marquee-track { display: flex; gap: var(--s-7); width: max-content; }
.motion-full .marquee-track { animation: marquee 46s linear infinite; }
.marquee-track span { display: flex; align-items: center; gap: var(--s-7); color: var(--muted); font: 650 var(--t-h3) var(--font); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.marquee-track span::after { content: ""; width: 6px; height: 6px; border-radius: var(--r-full); background: var(--line-strong); }

/* ---------- Bölümler ---------- */
.feature-card { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-6) var(--s-5); border-radius: var(--r-2); background: var(--surface); overflow: hidden; }
.feature-number { color: var(--muted); font: 700 var(--t-number) var(--font); letter-spacing: var(--track-tight); line-height: .9; }
.news-card { align-content: start; justify-items: start; }
.trailer-grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.trailer-grid:empty { display: none; }
.trailer-card video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.training-video { width: 100%; }
.education-banner { justify-items: start; }

.proof { display: grid; gap: var(--s-3); justify-items: center; padding-block: var(--s-8); text-align: center; }
.proof-number { font: 700 var(--t-number) var(--font); letter-spacing: var(--track-tight); font-variant-numeric: tabular-nums; }

.closing { position: relative; display: grid; align-items: center; justify-items: center; margin-top: var(--s-8); padding: var(--s-8) var(--s-5); border-radius: var(--r-2); background: var(--surface) url(../img/veins.svg) center / cover; text-align: center; overflow: hidden; }
.closing-copy { position: relative; z-index: 1; display: grid; gap: var(--s-4); justify-items: center; }
.closing-copy h2 { font: 700 var(--t-display) var(--font); letter-spacing: var(--track-tight); }
.closing-statue { display: none; }

/* ---------- Launcher sayfası ---------- */
.launcher-hero { min-height: 60vh; }
.launcher-statue { position: relative; justify-self: center; width: min(70%, 380px); height: auto; transform: scaleX(-1) translate3d(calc(var(--px, 0) * 18px), calc(var(--py, 0) * -12px), 0); transition: transform 1.2s var(--ease-out); animation-name: fade-in; }

@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes statue-in { from { opacity: 0; transform: translateY(40px) scale(.96); } }
@keyframes halo-breathe { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes stage-sheen { 0%, 62% { background-position: 150% 0; } 100% { background-position: -50% 0; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes backdrop-drift { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(2%, 1%, 0) scale(1.06); } }

@media (min-width: 900px) {
  .motion-full .hero.has-scroll-scene { min-height: calc(100vh + (var(--hero-scenes, 3) - 1) * 55vh); overflow: clip; }
  .motion-full .hero.has-scroll-scene .hero-sticky { position: sticky; top: var(--bar); min-height: calc(100vh - var(--bar)); max-height: 920px; }
  .hero-sticky, .launcher-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); min-height: min(88vh, 860px); padding-block: var(--s-8); padding-inline: max(var(--gutter), calc((100vw - var(--page)) / 2)); }
  .launcher-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .hero-stage { width: min(100%, 560px); aspect-ratio: 3 / 4; transform: translate3d(calc(var(--px, 0) * -22px), calc(var(--py, 0) * -14px + var(--scroll, 0) * .08px), 0); transition: transform 1.2s var(--ease-out); }
  .motion-full .hero.has-scroll-scene .hero-stage { transform: translate3d(calc(var(--px, 0) * -22px), calc(var(--py, 0) * -14px), 0); }
  .hero-events { display: block; }
  .closing-statue { position: absolute; bottom: -12%; left: -2%; display: block; height: 96%; aspect-ratio: 1; opacity: .85; }
  .closing-statue.is-right { left: auto; right: -2%; transform: scaleX(-1); }
}
@media (min-width: 1200px) {
  .closing-statue { left: 2%; }
  .closing-statue.is-right { left: auto; right: 2%; }
}
.launcher-hero::before { -webkit-mask: radial-gradient(ellipse at center, #000 45%, transparent 72%); mask: radial-gradient(ellipse at center, #000 45%, transparent 72%); }
