/* ═════════════════════════════════════════════════════════════
   IMPERA — Sinematik katman (GSAP + Lenis)
   ═════════════════════════════════════════════════════════════ */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Film greni */
.grain { position: fixed; inset: 0; background-size: 200px 200px; z-index: 300; pointer-events: none; opacity: .06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1s steps(6) infinite; }
@keyframes grain { 0%,100% { background-position: 0 0; } 20% { background-position: -40px 30px; } 40% { background-position: 35px -45px; } 60% { background-position: -25px 15px; } 80% { background-position: 45px 40px; } }
html, body { overflow-x: clip; }

/* Özel imleç */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
  .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; }
  .cursor__dot { position: fixed; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--gold); }
  .cursor__ring { position: fixed; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 1px solid rgba(212,175,55,.6); display: grid; place-items: center; transition: width .4s var(--ease-out), height .4s var(--ease-out), margin .4s var(--ease-out), background .3s, border-color .3s; }
  .cursor__ring em { font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #111; opacity: 0; transition: opacity .2s; font-style: normal; }
  .cursor.is-link .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(212,175,55,.12); }
  .cursor.is-label .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--gold); border-color: var(--gold); }
  .cursor.is-label .cursor__ring em { opacity: 1; }
  .cursor.is-label .cursor__dot { opacity: 0; }
}

/* ═════ PRELOADER v2 ═════ */
.xpre { position: fixed; inset: 0; z-index: 1000; background: var(--black); display: grid; place-items: center; clip-path: circle(150% at 50% 50%); }
.xpre__center { text-align: center; }
.xpre__mark { position: relative; width: 110px; margin: 0 auto 22px; overflow: hidden; -webkit-mask: url(../img/logo-mark.webp) center/contain no-repeat; }
.xpre__mark img { width: 100%; opacity: 0; transform: scale(.85); }
.xpre__shine { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,245,200,.85) 50%, transparent 65%); transform: translateX(-120%); }
.xpre__word { display: flex; justify-content: center; gap: .32em; font: 500 clamp(36px, 9vw, 64px)/1 'Cinzel', serif; color: var(--gold); overflow: hidden; }
.xpre__word span { display: inline-block; transform: translateY(110%); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.xpre__sub { font: 400 11px 'Cinzel', serif; letter-spacing: .7em; padding-left: .7em; color: var(--gold); margin-top: 16px; opacity: 0; }
.xpre__count { position: absolute; right: var(--gutter); bottom: 30px; font: 400 clamp(56px, 14vw, 160px)/.8 'Cinzel', serif; color: rgba(212,175,55,.14); font-variant-numeric: tabular-nums; }
.xpre__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(212,175,55,.12); }
.xpre__bar i { display: block; height: 100%; width: 100%; background: var(--gold-grad); transform: scaleX(0); transform-origin: left; }

/* ═════ HERO — IMPERA maskesi ═════ */
.xhero { position: relative; height: 260vh; background: var(--black); }
.xhero__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; }
.no-js .xhero, .reduce .xhero { height: auto; }
.xhero__media { position: absolute; inset: 0; z-index: -2; }
.xhero__media img, .xhero__media video { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transform: scale(1.35); will-change: transform; }
.xhero__light { position: absolute; inset: 0; background: radial-gradient(40% 35% at var(--mx, 60%) var(--my, 40%), rgba(255,200,110,.35), transparent 70%); mix-blend-mode: screen; pointer-events: none; }
.xhero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,13,13,.5), transparent 30%, transparent 50%, rgba(13,13,13,.95)), linear-gradient(90deg, rgba(13,13,13,.6), transparent 65%); opacity: var(--shade, 0); }
.xhero__mask { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.xhero__mask text { font: 600 300px 'Cinzel', serif; letter-spacing: 18px; }
.xhero__word { transform-origin: 800px 430px; transform-box: view-box; will-change: transform; }
.xhero__outline text { fill: none; stroke: url(#goldStroke); stroke-width: 1.4; }
@media (max-aspect-ratio: 1/1) { .xhero__mask text { letter-spacing: 4px; } .xhero__mask { overflow: visible; } }
@media (max-width: 1099px) { .xhero__intro { padding-bottom: calc(100px + var(--safe-b)); } .xhero__content { padding-bottom: calc(96px + var(--safe-b)); } }
.xhero__intro { position: absolute; inset: auto 0 0; padding: 0 var(--gutter) 34px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.xhero__kicker { color: var(--gold); }
.xhero__scrollhint { display: inline-flex; align-items: center; gap: 12px; font: 500 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.xhero__scrollhint i { width: 1px; height: 44px; background: linear-gradient(var(--gold), transparent); animation: hint 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.xhero__content { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 26px; opacity: 0; visibility: hidden; }
.xhero__title { font-size: clamp(28px, min(9vw, 11vh), 120px); overflow-wrap: normal; line-height: 1.02; max-width: 12ch; margin: 0 0 18px; }
.xhero__title .ch { display: inline-block; }
.xhero__text { max-width: 520px; color: rgba(237,232,220,.85); font-size: clamp(15px, 1.6vw, 18px); margin: 0 0 24px; }
.xhero .search { margin: 26px 0 0; width: 100%; }
@media (min-width: 900px) { .xhero .search { margin-left: 0; } .xhero__content { padding-bottom: 46px; } }
@media (max-width: 560px) { .xhero .search label:not(:first-child) { display: none; } .xhero .search { grid-template-columns: 1fr; } .xhero__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } }

/* ═════ MANİFESTO ═════ */
.manifesto { padding: clamp(90px, 14vw, 200px) 0 clamp(70px, 10vw, 140px); }
.manifesto__text { font: 500 clamp(28px, 5vw, 72px)/1.18 var(--serif); letter-spacing: .005em; margin: 10px 0 0; }
.manifesto__text .wd { color: rgba(237,232,220,.12); transition: color .2s; }
.manifesto__text .wd.on { color: var(--text); }
.manifesto__text .wd.gold { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.manifesto__pic { display: inline-block; width: 2.1em; height: .9em; border-radius: 999px; overflow: hidden; vertical-align: middle; margin: 0 .12em; transform: translateY(-.06em); }
.manifesto__pic img { width: 100%; height: 100%; object-fit: cover; }
.manifesto__foot { display: grid; gap: 20px; margin-top: clamp(40px, 6vw, 80px); padding-top: 32px; border-top: 1px solid var(--line); align-items: start; }
@media (min-width: 900px) { .manifesto__foot { grid-template-columns: 80px 1fr auto; gap: 40px; } }
.manifesto__foot img { }
.manifesto__foot p { color: var(--muted); max-width: 640px; margin: 0; }
.manifesto__foot .link-arrow { margin: 0; }

/* ═════ BÜYÜK SAYILAR ═════ */
.bignums { padding-bottom: 60px; overflow: hidden; }
.bignums__grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .bignums__grid { grid-template-columns: repeat(4, 1fr); } }
.bignum { padding: 34px 0 30px; border-bottom: 1px solid var(--line); }
.bignum:nth-child(odd) { padding-inline-end: 16px; }
@media (min-width: 900px) { .bignum { border-bottom: 0; padding-inline: 0 20px; } .bignum + .bignum { border-inline-start: 1px solid var(--line); padding-inline-start: 28px; } }
.bignum b { display: flex; align-items: flex-start; font: 500 clamp(54px, 9vw, 120px)/.9 var(--serif); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bignum em { font-style: normal; font-size: .38em; margin: .15em 0 0 .08em; }
.bignum small { display: block; margin-top: 12px; color: var(--muted); font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.marquee--outline { background: none; transform: none; margin-top: 60px; padding: 0; }
.marquee--outline span { font-size: clamp(54px, 9vw, 130px); color: transparent; -webkit-text-stroke: 1px rgba(212,175,55,.45); letter-spacing: .04em; }

/* ═════ YATAY PROJELER ═════ */
.hprojects { position: relative; }
.hprojects__pin { padding: 60px 0; overflow: hidden; }
@media (min-width: 900px) { .hprojects__pin { height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 90px 0 40px; } }
.hprojects__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.hprojects__head .h2 { margin: 0; max-width: 680px; }
.hprojects__progress { display: flex; align-items: center; gap: 14px; }
.hprojects__progress b { color: var(--text); font-weight: 500; }
.hprojects__progress i { width: 120px; height: 1px; background: var(--line); display: block; }
.hprojects__progress s { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.hprojects__track { display: flex; gap: 18px; padding: 0 var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hprojects__track::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .hprojects__track { overflow: visible; width: max-content; gap: 28px; will-change: transform; } }
.hcard { flex: 0 0 84vw; scroll-snap-align: center; position: relative; height: min(62svh, 560px); border-radius: 24px; overflow: hidden; display: block; isolation: isolate; }
@media (min-width: 900px) { .hcard { flex-basis: min(56vw, 860px); height: min(64svh, 620px); } }
.hcard__img { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hcard__img img { width: 120%; max-width: none; height: 100%; object-fit: cover; margin-left: -10%; transition: transform 1.4s var(--ease-out); }
.hcard:hover .hcard__img img { transform: scale(1.06); }
.hcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 30%, transparent 45%, rgba(0,0,0,.88)); }
.hcard__no { position: absolute; top: 18px; inset-inline-start: 22px; font: 500 clamp(60px, 8vw, 110px)/.8 var(--serif); color: transparent; -webkit-text-stroke: 1px rgba(241,215,122,.75); }
.hcard__badge { position: absolute; top: 22px; inset-inline-end: 22px; padding: 8px 14px; border-radius: 999px; background: rgba(13,13,13,.55); backdrop-filter: blur(10px); border: 1px solid var(--line); font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); }
.hcard__info { position: absolute; inset: auto 0 0; padding: 26px; }
.hcard__info h3 { font-size: clamp(26px, 3.4vw, 46px); margin: 8px 0 14px; }
.hcard__info ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hcard__info li { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); font-size: 13px; backdrop-filter: blur(6px); }
.hcard__info li small { color: var(--muted); }
.hcard--more { flex-basis: 60vw; background: var(--dark); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; font: 500 clamp(24px, 3vw, 40px) var(--serif); color: var(--gold); text-align: center; padding: 30px; }
@media (min-width: 900px) { .hcard--more { flex-basis: 30vw; } }
.hcard--more::after { display: none; }
.hcard--more .arrow { width: 60px; height: 20px; }

/* ═════ YIĞILAN HİZMET KARTLARI ═════ */
.stack { padding: clamp(80px, 10vw, 140px) 0; }
.stack__list { display: grid; gap: 22px; }
.scard { position: sticky; top: calc(84px + var(--i) * 14px); }
.scard__inner { display: grid; border-radius: 28px; overflow: hidden; background: linear-gradient(145deg, #1d1b16, #121212 60%); border: 1px solid var(--line); box-shadow: 0 -20px 60px -20px rgba(0,0,0,.8); transform-origin: center top; will-change: transform; }
@media (min-width: 900px) { .scard__inner { grid-template-columns: 1fr 1.1fr; min-height: 460px; } }
.scard__copy { padding: clamp(26px, 4vw, 54px); display: flex; flex-direction: column; }
.scard__no { font: 500 15px var(--mono); color: var(--gold); letter-spacing: .2em; }
.scard h3 { font-size: clamp(28px, 4vw, 52px); margin: 18px 0 16px; }
.scard p { color: var(--muted); font-size: 17px; max-width: 440px; margin: 0; }
.scard .link-arrow { margin-top: auto; padding-top: 26px; }
.scard__img { aspect-ratio: 16/10; overflow: hidden; }
@media (min-width: 900px) { .scard__img { aspect-ratio: auto; } }
.scard__img img { width: 100%; height: 100%; object-fit: cover; }

/* ═════ BÜYÜYEN VİDEO ═════ */
.xvideo { position: relative; height: 200vh; cursor: pointer; }
.xvideo__pin { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.xvideo__frame { position: relative; width: 100%; height: 100%; border-radius: 0; overflow: hidden; clip-path: inset(22% 18% 22% 18% round 30px); will-change: clip-path; }
.xvideo__frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); }
.xvideo__frame::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(13,13,13,.2), rgba(13,13,13,.75)); }
.xvideo__label { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 var(--gutter); }
.xvideo__label .h2 { font-size: clamp(34px, 6vw, 84px); }

/* ═════ ZAMAN ÇİZGİSİ ═════ */
.timeline { list-style: none; margin: 0; padding: 0 0 0 0; position: relative; display: grid; gap: 50px; }
.timeline__line { position: absolute; inset-inline-start: 27px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.timeline__line s { position: absolute; inset: 0; background: var(--gold-grad); transform: scaleY(0); transform-origin: top; }
.tstep { display: flex; gap: 26px; position: relative; }
.tstep__dot { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); background: var(--black); display: grid; place-items: center; font: 500 14px var(--mono); color: var(--gold); transition: background .5s, color .5s, box-shadow .5s; }
.tstep.on .tstep__dot { background: var(--gold-grad); color: #111; box-shadow: 0 0 0 8px rgba(212,175,55,.12); }
.tstep h3 { font-size: clamp(22px, 2.4vw, 30px); margin: 10px 0 8px; }
.tstep p { color: var(--muted); margin: 0; }

/* ═════ PARALAKS GALERİ SÜTUNLARI ═════ */
.pgal { padding: clamp(80px, 10vw, 140px) 0; overflow: hidden; }
.pgal__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 var(--gutter); height: clamp(560px, 110vh, 1100px); overflow: hidden; -webkit-mask: linear-gradient(transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
@media (min-width: 900px) { .pgal__cols { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.pgal__col { display: grid; gap: 12px; align-content: start; will-change: transform; }
@media (min-width: 900px) { .pgal__col { gap: 20px; } }
.pgal__col:nth-child(3) { display: none; }
@media (min-width: 900px) { .pgal__col:nth-child(3) { display: grid; } }
.pgal__col:nth-child(2) { margin-top: -30%; }
.pgal figure { margin: 0; border-radius: 18px; overflow: hidden; position: relative; aspect-ratio: 4/5; }
.pgal figure:nth-child(3n+2) { aspect-ratio: 1; }
.pgal figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s; filter: saturate(.85); }
.pgal figure:hover img { transform: scale(1.07); filter: saturate(1.1); }
.pgal figcaption { position: absolute; inset: auto 0 0; padding: 40px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.8)); font: 500 15px var(--serif); opacity: 0; transform: translateY(10px); transition: all .5s var(--ease-out); }
.pgal figure:hover figcaption { opacity: 1; transform: none; }

/* Başlık harf animasyonu */
.chars .ch { display: inline-block; will-change: transform; }
.chars .wdw { display: inline-block; white-space: nowrap; }

/* Footer dev yazı parlaması */
.footer__mega { position: relative; background: linear-gradient(100deg, rgba(212,175,55,.18) 30%, rgba(255,240,190,.9) 50%, rgba(212,175,55,.18) 70%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; animation: megaShine 7s linear infinite; }
@keyframes megaShine { from { background-position: 150% 0; } to { background-position: -150% 0; } }

/* Hareket azaltma tercihi: sabitlemeleri kapat */
@media (prefers-reduced-motion: reduce) {
  .xhero, .xvideo { height: auto; }
  .xhero__pin, .xvideo__pin { position: relative; }
  .xhero__content { position: relative; opacity: 1; visibility: visible; padding-top: 40vh; }
  .xhero__veil, .xhero__outline { display: none; }
  .xvideo__frame { clip-path: none; height: 80svh; }
  .scard { position: relative; top: 0; }
  .manifesto__text .wd { color: var(--text); }
}

#impMask text { fill: #000; }
.reduce .xhero, .reduce .xvideo { height: auto; }
.reduce .xhero__pin, .reduce .xvideo__pin { position: relative; }
.reduce .xhero__pin { min-height: 100svh; }
.reduce .xhero__content { position: relative; opacity: 1; visibility: visible; padding-top: 45svh; }
.reduce .xhero__media::after { opacity: 1; }
.reduce .xhero__media img, .reduce .xhero__media video { transform: none; }
.reduce .xhero__veil, .reduce .xhero__outline, .reduce .xhero__intro { display: none; }
.reduce .xvideo__frame { clip-path: none; height: 80svh; }
.reduce .scard { position: relative; top: 0; }

.xhero__content .eyebrow { line-height: 1.6; flex-wrap: wrap; }
.xhero__title .wdw, .chars .wdw { white-space: nowrap; }
