/* v0.2 Etkileşimli showroom: ekranı kaplayan yatay ürün sahneleri. */
body.is-stage { overflow: hidden; padding-bottom: 0; background: var(--c-ink); }
body.is-stage .topbar, body.is-stage .viewswitch, body.is-stage #footer-slot { display: none; }
body.is-stage .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
html:has(body.is-stage) { overscroll-behavior: none; }

.stage { position: fixed; inset: 0; background: var(--c-ink); color: #fff; overflow: hidden; }
.rail { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; touch-action: pan-x pan-y; }
.rail::-webkit-scrollbar { display: none; }

/* Sahne */
.scene { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); overflow: hidden; }
.sc-bg { position: absolute; inset: 0; background: radial-gradient(70% 90% at 28% 48%, #1a3a6b 0%, #0d2040 45%, var(--c-ink) 85%); }
.sc-code { position: absolute; right: -2vw; bottom: -5vw; font: 700 clamp(12rem, 30vw, 34rem)/1 var(--f-display); font-variation-settings: "wdth" 75; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .07); transform: translate3d(calc(var(--p, 0) * -26vw), 0, 0); white-space: nowrap; user-select: none; }

/* Fotoğraf paneli: tam yükseklik, kenardan kenara */
.sc-photo { position: relative; height: 100%; overflow: hidden; background: var(--photo-bg, #cfd5de); transform: translate3d(calc(var(--p, 0) * 9vw), 0, 0) scale(calc(1 - var(--p, 0) * var(--p, 0) * .05)); will-change: transform; }
.sc-view { position: absolute; inset: 0; background: var(--vbg, transparent); opacity: 0; visibility: hidden; transform: translateX(calc(var(--o, 0) * 5%)) scale(1.035); filter: blur(4px); transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease), visibility 0s .7s; }
.sc-view.on { opacity: 1; visibility: visible; transform: none; filter: none; transition-delay: 0s; }
.sc-view .media { position: absolute; inset: 0; aspect-ratio: auto; background: transparent; }
/* Gerçek fotoğraf: kırpma yok (contain), üst/alt arayüze çarpmayacak güvenli alan; kenarlar zemine yumuşakça karışır */
.sc-view .media.has-img, .sc-view .media:has(.media-img) { inset: 64px 0 118px; }
.sc-view .media-img { object-fit: contain; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 6%, #000 94%, transparent); mask-composite: intersect; }
.sc-view .media.has-img .media-ph { display: none; }
.sc-view .media-ph svg { width: 100%; height: 100%; }
.sc-view .media-flag { left: 18px; top: 76px; bottom: auto; }
.sc-view .hs-layer { position: absolute; inset: 0; }
.sc-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(8, 20, 40, .55), transparent 18%), linear-gradient(0deg, rgba(8, 20, 40, .5), transparent 22%); }
/* Açık zeminli stüdyo fotoğrafında koyu örtü yok; HUD yazıları zemine göre ters renk alır */
.sc-photo:has(.has-img)::after { content: none; }
body.photo-light .hud-brand .word, body.photo-light .hud-bottom .count { color: var(--c-ink); }
.sc-tabs { position: absolute; z-index: 5; left: 50%; bottom: 74px; transform: translateX(-50%); display: flex; background: rgba(8, 20, 40, .78); backdrop-filter: blur(10px); padding: 4px; border-radius: 999px; }
.sc-tabs button { min-width: 74px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: rgba(255, 255, 255, .75); font-size: .82rem; font-weight: 600; letter-spacing: .04em; transition: background .3s var(--ease), color .3s; }
.sc-tabs button[aria-selected="true"] { background: var(--c-accent); color: var(--c-accent-ink); }
.sc-zoom { position: absolute; z-index: 5; right: 16px; top: 78px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(8, 20, 40, .78); color: #fff; backdrop-filter: blur(10px); }
.sc-zoom:hover { background: var(--c-accent); color: var(--c-accent-ink); }
.sc-photo .hotspot { z-index: 3; }
.hs-card { position: absolute; z-index: 6; background: rgba(8, 20, 40, .94); backdrop-filter: blur(10px); border-top: 3px solid var(--c-accent); padding: 14px 16px 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); animation: popin .3s var(--ease) both; display: grid; gap: 8px; }
.hs-card strong { font: 700 .76rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent); padding-right: 28px; }
.hs-card p { margin: 0; font-size: .92rem; line-height: 1.45; }
.hs-x { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; display: grid; place-items: center; background: none; border: 0; color: #fff; }
.hs-x .icon { width: 18px; height: 18px; }

/* Bilgi paneli */
.sc-info { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 0; padding: 88px clamp(28px, 5vw, 84px) 96px clamp(28px, 4vw, 64px); overflow-y: auto; scrollbar-width: none; transform: translate3d(calc(var(--p, 0) * -8vw), 0, 0); opacity: calc(1 - var(--p, 0) * var(--p, 0) * 1.4); }
.sc-info::-webkit-scrollbar { display: none; }
.sc-info > * { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.scene.active .sc-info > * { opacity: 1; transform: none; }
.scene.active .sc-info > :nth-child(2) { transition-delay: .06s; } .scene.active .sc-info > :nth-child(3) { transition-delay: .12s; }
.scene.active .sc-info > :nth-child(4) { transition-delay: .18s; } .scene.active .sc-info > :nth-child(5) { transition-delay: .24s; }
.scene.active .sc-info > :nth-child(6) { transition-delay: .3s; } .scene.active .sc-info > :nth-child(7) { transition-delay: .36s; }
html[data-motion="reduced"] .sc-info > * { opacity: 1; transform: none; transition: none; }
.sc-meta { display: flex; gap: 12px; align-items: center; margin: 0 0 14px; font: 600 .74rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--c-steel); }
.sc-meta .code { color: var(--c-accent); }
.sc-info h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); margin-bottom: .35em; }
.sc-info .sum { color: rgba(255, 255, 255, .72); max-width: 42ch; margin-bottom: 26px; }
.o-group { margin-bottom: 18px; }
.o-label { display: block; font: 600 .7rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--c-steel); margin-bottom: 10px; }
.o-label b { color: #fff; font-weight: 600; }
.o-row { display: flex; flex-wrap: wrap; gap: 8px; }
.o-sw { width: 44px; height: 44px; border-radius: 50%; background: var(--sw); border: 3px solid var(--c-ink); box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); transition: box-shadow .2s, transform .2s; }
.o-sw:hover { transform: scale(1.06); }
.o-sw[aria-checked="true"] { box-shadow: 0 0 0 2px var(--c-accent); }
.o-size { min-width: 52px; height: 44px; padding: 0 12px; background: none; border: 1px solid rgba(255, 255, 255, .3); color: #fff; font-weight: 600; transition: background .2s, color .2s, border-color .2s; }
.o-size:hover { border-color: #fff; }
.o-size[aria-checked="true"] { background: #fff; color: var(--c-ink); border-color: #fff; }
.o-sizes.need .o-size { border-color: var(--c-accent); animation: shake .4s; }
.o-buy { display: flex; gap: 10px; align-items: stretch; margin-top: 6px; }
.o-buy .stepper { background: transparent; border-color: rgba(255, 255, 255, .3); }
.o-buy .stepper button:hover { background: rgba(255, 255, 255, .1); }
.o-buy .stepper input { width: 70px; color: #fff; }
.o-buy .btn { min-height: 46px; white-space: nowrap; }
.sc-info .fav { position: static; width: 46px; height: 46px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 2px; background: none; color: #fff; }
.sc-info .fav[aria-pressed="true"] { color: var(--c-accent); }
.o-tech { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin-top: 22px; background: none; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .4); color: #fff; padding: 6px 0; font-weight: 600; }
.o-tech[aria-expanded="true"] { color: var(--c-accent); border-color: var(--c-accent); }
.sc-tech { margin-top: 14px; max-width: 520px; animation: popin .3s var(--ease) both; }
.sc-tech dl { margin: 0; }
.sc-tech dl > div { display: grid; grid-template-columns: 38% 1fr; gap: 14px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.sc-tech dt { font: 600 .68rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c-steel); padding-top: 2px; }
.sc-tech dd { margin: 0; font-size: .92rem; }
.sc-tech .fine { margin-top: 10px; }
.sc-tech .comp { height: 30px; } .sc-tech .comp span { font-size: .74rem; padding: 0 8px; }
.sc-tech .flist li::before { background: var(--c-accent); }

/* HUD */
.hud { position: absolute; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(16px, 2.2vw, 32px); pointer-events: none; transition: opacity .5s var(--ease); }
.hud > * { pointer-events: auto; }
.hud-top { top: 0; height: 72px; }
.hud-brand { display: inline-flex; align-items: center; gap: 10px; }
.hud-brand .mark { width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid var(--c-accent); color: var(--c-accent); font: 700 .95rem var(--f-display); }
.hud-brand .word { font: 700 .82rem var(--f-display); letter-spacing: .22em; text-transform: uppercase; font-variation-settings: "wdth" 75; }
.hud-actions { display: flex; gap: 6px; align-items: center; }
.hud-btn { position: relative; min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(8, 20, 40, .55); backdrop-filter: blur(10px); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .08em; transition: background .25s, color .25s; }
.hud-btn:hover { background: #fff; color: var(--c-ink); }
.hud-quote { background: var(--c-accent); color: var(--c-accent-ink); }
.hud-quote:hover { background: #ff8a45; color: var(--c-accent-ink); }
.hud-quote .badge { background: var(--c-ink); color: #fff; top: -4px; right: -4px; }
.hud-quote.bump { animation: bump .6s var(--ease); }
@keyframes bump { 30% { transform: scale(1.18); } 100% { transform: none; } }
.hud-auto { display: none; }
.present .hud-auto { display: inline-flex; }
.hud-auto[aria-pressed="true"] { background: var(--c-accent); color: var(--c-accent-ink); }
.hud-bottom { bottom: 0; height: 64px; }
.hud-bottom .count { font: 600 .82rem var(--f-mono); letter-spacing: .14em; min-width: 6.5em; }
.ticks { display: flex; gap: 2px; margin-inline: auto; padding-right: 6.5em; }
.tick { width: 26px; height: 40px; display: grid; place-items: center; background: none; border: 0; }
.tick i { display: block; width: 100%; height: 3px; background: rgba(255, 255, 255, .35); transition: background .3s, transform .3s var(--ease); }
.tick:hover i { background: #fff; }
.tick[aria-current] i { background: var(--c-accent); transform: scaleY(2); }
.keys { font: .72rem var(--f-mono); letter-spacing: .06em; color: rgba(255, 255, 255, .6); text-align: right; max-width: 34ch; transition: opacity 1s 6s; }
.nav { position: absolute; z-index: 20; top: 50%; width: 56px; height: 56px; margin-top: -28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(8, 20, 40, .6); backdrop-filter: blur(10px); color: #fff; transition: background .25s, color .25s, opacity .4s, transform .3s var(--ease); }
.nav:hover { background: var(--c-accent); color: var(--c-accent-ink); transform: scale(1.06); }
.nav:disabled { opacity: .25; pointer-events: none; }
.nav-prev { left: clamp(12px, 1.6vw, 24px); } .nav-next { right: clamp(12px, 1.6vw, 24px); }
.hud-btn:focus-visible, .nav:focus-visible { outline-offset: 2px; }

/* Sunum modu: dikkat dağıtan öğeler gizlenir, hareketsizken HUD kaybolur */
.present .hud-brand, .present .keys, .present .count { opacity: 0; }
.present.hud-idle .hud, .present.hud-idle .nav { opacity: 0; pointer-events: none; }
.present.hud-idle { cursor: none; }
.present .sc-zoom { display: none; }

/* Tüm ürünler katmanı */
.index-layer { position: absolute; inset: 0; z-index: 40; background: rgba(8, 20, 40, .97); backdrop-filter: blur(14px); padding: 20px clamp(16px, 4vw, 56px) 32px; overflow-y: auto; animation: fadein .3s both; opacity: 0; }
.ix-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.ix-head h2 { font-size: 1.6rem; }
.ix-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 16px; }
.ix-grid button { display: grid; gap: 4px; width: 100%; text-align: left; background: none; border: 0; color: #fff; padding: 0; }
.ix-img { display: block; border: 2px solid transparent; transition: border-color .2s; }
.ix-grid button:hover .ix-img, .ix-grid button:focus-visible .ix-img { border-color: var(--c-accent); }
.ix-grid .media-flag { display: none; }
.ix-grid .code { font: 600 .72rem var(--f-mono); letter-spacing: .12em; color: var(--c-accent); margin-top: 6px; }
.ix-grid .nm { font-weight: 600; font-size: .92rem; }
.ix-links { display: flex; gap: 28px; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); }
.ix-links a { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: .06em; text-transform: uppercase; font-size: .86rem; }
.ix-links a:hover { color: var(--c-accent); }

/* Koleksiyon açılışı */

/* Mobil: fotoğraf üstte, seçimler altta; alt çubuk dokunmatiğe uygun */
@media (max-width: 860px) {
  .scene { grid-template-columns: 1fr; grid-template-rows: minmax(0, 54dvh) minmax(0, 1fr); }
  .sc-code { font-size: 62vw; right: -6vw; bottom: -2vw; }
  .sc-photo { transform: none; }
  .sc-view .media.has-img, .sc-view .media:has(.media-img) { inset: 58px 0 62px; }
  body.card-open .nav { opacity: 0; pointer-events: none; }
  body.photo-light .hud-bottom .count { color: #fff; }
  .sc-tabs { bottom: 14px; }
  .sc-tabs button { min-width: 64px; height: 38px; padding: 0 12px; }
  .sc-zoom { top: 70px; right: 12px; }
  .sc-view .media-flag { top: 70px; }
  .sc-info { padding: 20px 18px 84px; justify-content: flex-start; }
  .sc-info h2 { font-size: 1.9rem; margin-bottom: .5em; }
  .sc-info .sum { display: none; }
  .sc-meta { margin-bottom: 6px; }
  .o-group { margin-bottom: 12px; }
  .o-sw { width: 40px; height: 40px; }
  .o-size { min-width: 46px; }
  .nav { top: calc(27dvh - 28px); width: 48px; height: 48px; margin-top: 0; }
  .hud-top { height: 60px; }
  .hud-brand .word { display: none; }
  .hud-bottom { height: 56px; background: linear-gradient(0deg, rgba(8, 20, 40, .96) 40%, transparent); }
  .keys { display: none; }
  .ticks { padding-right: 0; margin-inline: 0; flex: 1; justify-content: center; }
  .tick { width: 18px; }
  .hud-bottom .count { min-width: 0; margin-right: 8px; }
  .sc-tech dl > div { grid-template-columns: 1fr; gap: 4px; }
  .o-buy { gap: 8px; }
  .o-buy .stepper input { width: 46px; }
  .o-buy .btn { padding: 0 12px; min-width: 0; }
  .sc-info .fav { flex: none; }
}
@media (max-width: 860px) and (max-height: 700px) { .sc-info .sum, .o-tech { display: none; } }
@media (max-width: 520px) { .hud-btn span:not(.badge) { display: none; } }
@media (hover: none) { .nav { opacity: .75; } }
@media print { .stage { position: static; } }

/* v0.3 — referans renk notu, bilgi kartı kırpımı */
.o-ref { margin: 8px 0 0; font-size: .78rem; line-height: 1.4; color: rgba(255, 255, 255, .62); border-left: 2px solid var(--c-accent); padding-left: 10px; }
.hs-crop { height: 112px; position: relative; background-repeat: no-repeat; background-color: #dde0e3; border: 1px solid rgba(255, 255, 255, .2); }
.hs-crop::after { content: ""; position: absolute; left: var(--mx, 50%); top: var(--my, 50%); width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 2px solid var(--c-accent); border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }

/* Sahne içeriği etkin olunca kademeli girer */
.scene.active .sc-info > * { animation: infoIn .7s var(--ease) both; }
.scene.active .sc-info > *:nth-child(2) { animation-delay: .06s; } .scene.active .sc-info > *:nth-child(3) { animation-delay: .12s; }
.scene.active .sc-info > *:nth-child(4) { animation-delay: .18s; } .scene.active .sc-info > *:nth-child(5) { animation-delay: .24s; }
.scene.active .sc-info > *:nth-child(n+6) { animation-delay: .3s; }
@keyframes infoIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Açılış: sinematik kapak (hero/cover.webp varsa) */
.intro3 { position: absolute; inset: 0; z-index: 60; background: var(--c-ink); overflow: hidden; clip-path: inset(0); transition: clip-path 1s cubic-bezier(.77, 0, .18, 1); }
.intro3.out { clip-path: inset(0 0 100% 0); pointer-events: none; }
.intro3.gone { display: none; }
.i3-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.16); transition: opacity 1.1s var(--ease), transform 5.2s cubic-bezier(.2, .6, .2, 1); }
.intro3.go .i3-img { opacity: 1; transform: scale(1.02); }
.i3-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 20, 40, .88), rgba(8, 20, 40, .35) 55%, rgba(8, 20, 40, .1)), linear-gradient(0deg, rgba(8, 20, 40, .7), transparent 40%); }
.i3-bar { position: absolute; left: 0; right: 0; height: 15dvh; background: #000; z-index: 2; transition: transform 1.2s cubic-bezier(.77, 0, .18, 1) .5s; }
.i3-top { top: 0; } .i3-bot { bottom: 0; }
.intro3.go .i3-top { transform: translateY(-100%); } .intro3.go .i3-bot { transform: translateY(100%); }
.i3-brand { position: absolute; z-index: 3; top: 28px; left: clamp(20px, 3vw, 44px); font: 700 .82rem var(--f-display); letter-spacing: .26em; text-transform: uppercase; opacity: 0; transition: opacity .8s 1.4s; }
.intro3.go .i3-brand { opacity: 1; }
.i3-copy { position: absolute; z-index: 3; left: clamp(20px, 5vw, 84px); bottom: clamp(48px, 14dvh, 140px); max-width: min(90vw, 900px); }
.i3-eye { margin: 0 0 14px; font: 600 .8rem var(--f-mono); letter-spacing: .24em; text-transform: uppercase; color: var(--c-accent); opacity: 0; transition: opacity .8s 1.5s; }
.intro3.go .i3-eye { opacity: 1; }
.i3-copy h1 { margin: 0; font: 700 clamp(2.6rem, 8.5vw, 8rem)/1.02 var(--f-display); font-variation-settings: "wdth" 75; text-transform: uppercase; }
.i3-copy h1 span { display: block; overflow: hidden; padding: .14em 0 .06em; margin-top: -.14em; }
.i3-copy h1 b { display: block; font-weight: 700; transform: translateY(calc(100% + .45em)); transition: transform .95s cubic-bezier(.2, .8, .2, 1); }
.intro3.go h1 span:nth-child(1) b { transform: none; transition-delay: 1.1s; } .intro3.go h1 span:nth-child(2) b { transform: none; transition-delay: 1.25s; } .intro3.go h1 span:nth-child(3) b { transform: none; transition-delay: 1.4s; }
.i3-copy .acc { color: var(--c-accent); }
.i3-rule { display: block; height: 3px; width: min(220px, 40vw); margin-top: 18px; background: var(--c-accent); transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.2, .8, .2, 1) 1.9s; }
.intro3.go .i3-rule { transform: none; }
.i3-skip { position: absolute; z-index: 4; right: 20px; top: 20px; background: rgba(8, 20, 40, .6); border: 1px solid rgba(255, 255, 255, .35); color: #fff; padding: 8px 14px; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }

@media (max-width: 860px) {
  /* Bilgi kartı: ürünün altındaki bilgi alanına oturur, fotoğrafı kapatmaz */
  .sc-photo { overflow: visible; will-change: auto; z-index: 4; }
  .sc-view { overflow: hidden; }
  .hs-card { left: 10px !important; right: 10px; width: auto !important; top: calc(100% + 6px) !important; bottom: auto !important; padding: 10px 12px; gap: 4px 12px; }
  .hs-card.has-crop { display: grid; grid-template-columns: 96px 1fr; align-items: start; }
  .hs-card.has-crop .hs-crop { grid-column: 1; grid-row: 1 / 3; height: 88px; }
  .hs-card.has-crop strong, .hs-card.has-crop p { grid-column: 2; }
  .hs-card strong { padding-right: 30px; }
  body.card-open .nav { opacity: 1; pointer-events: auto; }
  .i3-copy { bottom: 18dvh; }
}

/* Temsili görsel notu (yapay zekâ) */
.o-demo { margin: 6px 0 0; font: .66rem/1.35 var(--f-mono); letter-spacing: .02em; color: var(--c-mute, rgba(255,255,255,.55)); opacity: .8; }
@media (max-width: 860px) { .o-demo { margin: 4px 0 0; font-size: .6rem; } .o-tech { margin-top: 8px; } }

/* v1.0 — demo notu okunabilir boyutta */
.o-demo { font-size: max(.66rem, 11px); }
@media (max-width: 860px) { .o-demo { font-size: 11px; } }
