/* COP31 – Bluedesk Startup Zone sayfası. Bağımsız (sitenin CSS'inden etkilenmez). */
:root {
  --navy: #1c3c64;
  --deep: #033263;
  --blue: #37b6ff;
  --green: #4db330;
  --link: #446688;
  --ease: cubic-bezier(.22,.7,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Inter', system-ui, sans-serif; color: var(--navy); background: #fff; overflow-x: hidden; }
body.lock { overflow: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

/* ---------- Typewriter ---------- */
.tw-w { display: inline-block; white-space: nowrap; }
.tw-c { visibility: hidden; }
.tw-c.on { visibility: visible; }

/* ---------- HERO ---------- */
/* Hero ilk ekranı tam kaplar (görünen alan = 100svh). Eskiden en fazla 800 px'ti; daha uzun ekranlarda (iPad dikey,
   iPad Pro 13, 1080p ve üstü masaüstü) altında bir sonraki bölümün açık zemini "yarım" bir bant gibi görünüyordu. */
.hero { position: relative; z-index: 1; height: max(640px, 100vh); height: max(640px, 100svh); background: var(--navy); overflow: hidden; }
.hero-bg { position: absolute; left: -1.95%; top: 0; width: 109.7%; max-width: none; min-height: 100%; object-fit: cover; object-position: 70% 0; }
.top { position: absolute; z-index: 3; left: 50%; top: 43px; transform: translateX(-50%); width: min(1104px, calc(100% - 48px)); display: flex; align-items: flex-start; justify-content: space-between; }
.top-logo img { width: 150px; height: auto; }
.top-cop { width: 153px; height: auto; }
.hero-title { position: absolute; z-index: 2; left: 50%; top: 22%; transform: translateX(-50%); width: min(741px, calc(100% - 48px)); text-align: center;
  font: 700 40px/80px 'Montserrat', sans-serif; color: var(--navy); text-shadow: 0 2px 24px rgba(55,182,255,.4); }
.hero-meet { position: absolute; z-index: 2; left: 50%; top: 63%; transform: translateX(-50%); display: flex; align-items: center; gap: 24px; white-space: nowrap; }
.hero-meet img { width: 153px; height: auto; }
.hero-meet p { font: 500 32px/60px 'Montserrat', sans-serif; letter-spacing: -1.6px;
  background: linear-gradient(90deg, #193966, #37b6ff); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(0 2px 24px rgba(55,182,255,.4)); }
.hero-arrow { position: absolute; z-index: 2; left: 50%; top: 72%; width: 63px; height: 63px; margin-left: -31px; animation: bob 2.2s ease-in-out infinite; }
.hero-arrow img { width: 100%; height: 100%; }
.hero-arrow img { stroke: var(--navy); }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(9px); } }

/* ---------- STORY (pinned, scroll-driven steps) ---------- */
.story { position: relative; z-index: 2; height: 460vh; overflow-x: clip; }
.stage { position: sticky; top: 0; height: 100vh; min-height: 620px; background: #fff; }   /* opak zemin: arkadaki (mobilde ekrana sabit) okyanus videosu geçişlerde görünmesin */
.stage-bg { position: absolute; inset: 0; transition: opacity .8s var(--ease); }
/* Yumuşak ışık lekeleri. Eskiden blur(130px)/blur(140px) filtreliydi; iOS Safari bu büyük filtreleri geçişlerde
   yeniden çizdiği için titreme yapıyordu. Aynı görünüm filtresiz radyal gradyanla (bulanık dikdörtgenin
   yaklaşığı: merkez aynı, yarıçap = yarı boyut + 3 x blur). */
.bg-light { background: #fff; overflow: hidden; }
.bg-light::before { content: ''; position: absolute; left: 50%; top: -518px; width: 1540px; height: 1200px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(55,182,255,.18), rgba(55,182,255,.09) 42%, rgba(55,182,255,.022) 70%, rgba(55,182,255,0)); }
.bg-light::after { content: ''; position: absolute; right: -380px; bottom: -420px; width: 1340px; height: 1220px;
  background: radial-gradient(closest-side, rgba(120,190,240,.07), rgba(120,190,240,.035) 40%, rgba(120,190,240,.008) 70%, rgba(120,190,240,0)); }
.bg-navy { background: var(--navy); opacity: 0; overflow: hidden; }
.bg-navy::before { content: ''; position: absolute; left: 18%; top: -2%; width: 40%; height: 106%; background: url(../img/aquatrix-icon.svg) center/contain no-repeat; opacity: .15; }
.stage.is-navy .bg-navy { opacity: 1; }
/* Açık zemin hep opak kalır; lacivert zemin onun üstünde belirip söner (ikisi birlikte solunca arkası görünüyordu). */

/* Çıkan slayt hızlı söner, gelen biraz gecikmeli belirir: iki slaydın yazısı/görseli üst üste yarı saydam görünmez. */
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s; }
.slide.active { opacity: 1; visibility: visible; transition: opacity .6s var(--ease) .12s, visibility 0s 0s; }
.slide-inner { position: relative; width: min(1280px, 100%); height: 100%; margin: 0 auto; padding: 0 110px; display: grid; grid-template-columns: 461px 1fr; align-items: center; gap: 48px; }
.txt { position: relative; z-index: 2; opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease) .1s, transform .7s var(--ease) .1s; }
.slide.active .txt { opacity: 1; transform: none; }
.eyebrow { font: 300 24px/80px 'Inter', sans-serif; text-transform: uppercase; color: var(--navy); }
.big { font: 700 48px/80px 'Inter', sans-serif; color: var(--navy); }
.pic { position: relative; opacity: 0; transform: translateX(70px); transition: opacity .7s var(--ease) .25s, transform .8s var(--ease) .25s; }
.slide.active .pic { opacity: 1; transform: none; }

/* Adım 1: hero'dan inen debimetre. Konumunu JS yönetir. */
.pic-pair { opacity: 1; transition: none; width: min(821px, 64vw); margin-right: -170px; z-index: 5; will-change: transform; }
.slide.active .pic-pair { transform: var(--pair-t, none); }
.slide:not(.active) .pic-pair { opacity: 0; transform: translateX(-40px); transition: opacity .5s, transform .6s var(--ease); }
.crop { position: relative; width: 100%; aspect-ratio: 821 / 384; overflow: hidden; }
.crop img { position: absolute; left: 13.61%; top: 7.45%; width: 66.61%; height: 83.03%; max-width: none; } /* görsel saydam kenarlarından kırpıldı (842x491); masaüstü yerleşimi öncekiyle aynı */

.pic-temp { justify-self: center; width: 404px; max-height: 80vh; }   /* 475 px'in %85'i (istek) */
.pic-temp img { width: 100%; max-height: 80vh; object-fit: contain; object-position: bottom; }
.pic-flow { justify-self: center; width: 308px; } /* görsel kırpıldı (308x414); eski 492 px kutudaki boyutla aynı */
.pic-flow img { width: 100%; max-height: 80vh; object-fit: contain; }

/* Adım 4 */
.slide-navy .slide-inner { grid-template-columns: 408px 1fr; padding-left: 109px; padding-right: 0; gap: 68px; }
.txt.center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.soft { font: 600 32px/64px 'Inter', sans-serif; color: #fff0e6; }
.aqua-line { font: 400 18px/29.25px 'Inter', sans-serif; letter-spacing: -.18px; color: #fff; opacity: 0; transform: translateY(8px); transition: opacity .8s, transform .8s var(--ease); }
.aqua-line.show { opacity: 1; transform: none; }
.aqua-pill { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 4px 8px 4px 6px; margin-right: 4px; border-radius: 24px; vertical-align: middle; isolation: isolate; text-decoration: none; }
.aqua-pill::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1;
  background: conic-gradient(from var(--a, 0deg), var(--blue) 0%, rgba(55,182,255,.08) 30%, rgba(255,255,255,.9) 50%, rgba(55,182,255,.08) 70%, var(--blue) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 3.2s linear infinite; }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }
.aqua-pill .ai { height: 23px; width: auto; }
.aqua-pill .at { height: 16px; width: auto; }
.btn-ghost { margin-top: 29px; font: 600 15px/1 'Manrope', sans-serif; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.33); border-radius: 999px; padding: 15px 26px; transition: background .25s, border-color .25s; opacity: 0; }
.aqua-line.show ~ .btn-ghost { opacity: 1; transition: opacity .8s .2s, background .25s, border-color .25s; }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }
.pic-map { justify-self: end; width: min(782px, 62vw); margin-right: -90px; border-radius: 12px; overflow: hidden; box-shadow: 0 18px 60px rgba(0,0,0,.35); }
.pic-map img { width: 100%; }

/* Sayfa noktaları yalnızca üç debimetre slaytı için (istek): Aquatrix (lacivert) slaytında gizlenir. */
.dots { position: absolute; z-index: 6; right: 24px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; transition: opacity .35s var(--ease); }
.dots li { width: 8px; height: 8px; border-radius: 50%; background: rgba(28,60,100,.25); transition: background .3s, transform .3s; }
.stage.is-navy .dots { opacity: 0; }
.dots li.on { background: var(--blue); transform: scale(1.4); }

/* ---------- OCEAN ---------- */
/* Bölüm yüksekliği hizmetlerin ne kadar kaydırmada açılacağını belirler. 560vh → 330vh: kaydırma payı yarıya iner (istek: "burası hızlı aksın"). */
.ocean { position: relative; z-index: 2; height: 330vh; background: #0b182b; }
.ocean-stage { position: sticky; top: 0; height: 100vh; min-height: 640px; overflow: hidden; background: #0b182b; }
.ocean-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ocean-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,20,38,.55), rgba(8,20,38,.35) 40%, rgba(8,20,38,.6)); transition: background .6s; }
.ocean.form-on .ocean-shade { background: rgba(8,20,38,.62); }
.ocean-content { position: relative; z-index: 2; width: min(1280px, 100%); height: 100%; min-height: 0; margin: 0 auto; padding: clamp(36px, 8vh, 100px) 24px clamp(16px, 4vh, 40px); display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity .6s, filter .6s; }
.ocean.form-on .ocean-content { opacity: .25; filter: blur(2px); }
.ocean-title { font: 400 48px/60px 'Inter', sans-serif; letter-spacing: .5px; color: #fff; text-align: center; min-height: 120px; }
.ocean-title .grad { font-weight: 800; background: linear-gradient(90deg, var(--green), #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Safari (iPhone, iPad, Mac) ortak background-clip:text maskesinde iki hata yapıyor:
   - inline-block alt öğelerin yazısını maskeye katmıyor (orijinalde satır hiç görünmüyordu);
   - inline harflerde visibility:hidden'ı yok sayıyor (satır harf harf yazılmak yerine baştan görünüyordu).
   Çözüm: gradyan her harfe kendi dilimi olarak verilir (JS --gs/--gp oranlarını hesaplar, .tw-grad ekler); harf
   gizliyken dilimi de gizli kalır. Görünüm ortak gradyanla aynı. JS çalışmazsa yukarıdaki ortak gradyan geçerli. */
.ocean-title .grad .tw-w { display: inline; }
.ocean-title .grad.tw-grad { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #fff; }
.ocean-title .grad.tw-grad .tw-c { background: linear-gradient(90deg, var(--green), #fff) no-repeat; background-size: var(--gs, 100%) 100%; background-position: var(--gp, 0%) 0;
  -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Masaüstü/tablet: liste içeriği kadar yer kaplar (satırlar ekranı doldurmak için uzamaz) ve başlıkla birlikte dikeyde
   ortalanır; böylece başlıkla liste arasında nefes payı kalır. Başlık ve açıklama 5'er sütun: 1280 px ve üstünde tek satır. */
.services { list-style: none; position: relative; margin: clamp(28px, 7vh, 96px) 0 0; padding: 1px 0 0; width: 100%; display: flex; flex-direction: column; flex: 0 1 auto; min-height: 0; }
.svc { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px; align-items: center; flex: 0 1 auto; min-height: 0; padding: clamp(10px, 2vh, 22px) 0; opacity: var(--o, 0); transform: translateY(calc((1 - var(--o, 0)) * 26px)); }
/* Ayırıcı çizgiler ekranın iki kenarına kadar uzanır (istek). Taşan kısım .ocean-stage'in overflow:hidden'ıyla kırpılır. */
.services::before, .svc::after { content: ''; position: absolute; left: 50%; width: 100vw; height: 1px; margin-left: -50vw; background: rgba(255,255,255,.7); pointer-events: none; }
.services::before { top: 0; }
.svc::after { bottom: 0; }
.svc h3 { grid-column: 2 / span 5; font: 600 28px/36.4px 'Inter', sans-serif; letter-spacing: -.7px; color: #fff; padding-right: 24px; }
.svc p { grid-column: 7 / span 5; font: 400 18px/29.25px 'Inter', sans-serif; letter-spacing: -.18px; color: #fff; }
/* Formu açan düğme: listenin altında akışta (üstüne binmez), son hizmetten sonra kaydırmayla belirir. */
.reopen { position: relative; z-index: 4; flex: none; align-self: center; margin-top: clamp(12px, 3vh, 32px); font: 600 15px/1 'Manrope', sans-serif; color: #000; background: #fff; border: 0; border-radius: 999px; padding: 15px 26px; box-shadow: 0 8px 30px rgba(0,0,0,.35);
  opacity: var(--o, 0); transform: translateY(calc((1 - var(--o, 0)) * 16px)); transition: box-shadow .25s; }
.reopen:hover { box-shadow: 0 8px 30px rgba(55,182,255,.45); }
.reopen.off { visibility: hidden; }

/* ---------- FOOTER ---------- */
.foot { position: relative; z-index: 3; background: #fff; min-height: 600px; padding: 64px 24px; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 48px; }
/* Figma 1:1251: soluk penguen çok büyük (içerik genişliğinin %122,6'sı), sol -%72,2 / üst -%59,3 → yalnızca sağ kanat yayı görünür */
.foot-mark { position: absolute; left: calc(156px - 72.22%); top: -216px; width: calc(122.6% - 157px); max-width: none; opacity: .2; transform: rotate(-2deg); pointer-events: none; }
.foot-tag { position: relative; font: 400 14px/24px 'Inter', sans-serif; color: var(--deep); text-align: center; }
.foot-logo { position: relative; width: min(598px, 90%); height: auto; aspect-ratio: 598 / 240; }
.foot-bar { position: relative; width: min(1200px, 100%); padding: 0 20px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; margin-top: auto; }
.copy, .mail { font: 400 16px/25.6px 'Poppins', sans-serif; color: var(--deep); opacity: .8; text-decoration: none; }
.social { display: flex; gap: 20px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; }
.social img { width: 20px; height: 20px; }
.links { display: flex; gap: 24px; align-items: center; }
.links a { font: 500 14px/22.4px 'Montserrat', sans-serif; letter-spacing: .5px; color: var(--deep); text-decoration: none; }
.links a.cur { font-weight: 700; font-size: 16px; color: var(--link); }

/* ---------- OVERLAYS ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; overflow-y: auto; background: rgba(6,16,32,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.glass { position: relative; width: min(1090px, 100%); margin: auto; padding: 32px 62px; border-radius: 50px; color: #fff;
  background-image: linear-gradient(150.9deg, rgba(248,248,248,.12) 12%, rgba(55,182,255,.12) 64%), linear-gradient(rgba(11,24,43,.78), rgba(11,24,43,.78));
  border: 1px solid rgba(255,255,255,.12); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); animation: pop .5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.x { position: absolute; top: 22px; right: 26px; width: 32px; height: 32px; padding: 0; border: 0; background: none; }
.x img { width: 32px; height: 32px; filter: invert(1); }
.x.dark img { filter: none; }
.form { width: min(598px, 100%); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 48px; }
.form h2 { font: 700 48px/80px 'Inter', sans-serif; text-align: center; color: #fff; }
.grid { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label { font: 500 14px/14px 'Inter', sans-serif; color: #fff; }
.field input, .field select, .field textarea { width: 100%; font: 400 14px/24px 'Inter', sans-serif; color: #fff; background: transparent; border: 1px solid #fff; border-radius: 8px; padding: 7px 11px; outline: none; transition: border-color .2s, box-shadow .2s; }
.field input, .field select { height: 40px; }
.field textarea { height: 152px; padding: 12px; resize: vertical; border-color: #e2e2e2; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(55,182,255,.2); }
.field input:-webkit-autofill { -webkit-text-fill-color: #fff; transition: background-color 9999s; }
.field .bad { border-color: #ff8a8a !important; }
.select { position: relative; }
.select::after { content: ''; position: absolute; right: 12px; top: 14px; width: 10px; height: 11px; background: url(../img/select-chevron.svg) center/contain no-repeat; pointer-events: none; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 32px; border-color: #e3e4eb; cursor: pointer; }
.select select:invalid { color: rgba(255,255,255,.7); }
.select option { color: #111; }
.meet { width: 100%; background: #000; border-radius: 12px; padding: 12px 24px; display: flex; flex-direction: column; gap: 12px; }
.meet-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.meet-logo { width: 96px; height: auto; }
.meet-date { font: 500 16px/26px 'Inter', sans-serif; color: var(--blue); text-align: right; }
.meet-check, .kvkk-check { position: relative; display: flex; align-items: flex-start; cursor: pointer; }
.meet-check { gap: 10px; }
.kvkk-check { width: 100%; gap: 12px; font: 300 14px/24px 'Inter', sans-serif; color: #fff; }
.meet-check input, .kvkk-check input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; }
.box { flex: none; width: 24px; height: 24px; border-radius: 4px; display: grid; place-items: center; transition: background .2s, box-shadow .2s; }
.box.blue { background: var(--blue); }
.box.white { background: #fff; border: 1px solid #fff; }
.box::after { content: ''; width: 24px; height: 24px; background: url(../img/checkbox-check.svg) center/contain no-repeat; opacity: 0; transition: opacity .15s; }
.box.white::after { filter: invert(1) brightness(.2); }
.meet-check input:checked + .box::after, .kvkk-check input:checked + .box::after { opacity: 1; }
.meet-check input:not(:checked) + .box.blue { background: transparent; box-shadow: inset 0 0 0 1px var(--blue); }
.meet-check input:focus-visible + .box, .kvkk-check input:focus-visible + .box { outline: 2px solid var(--blue); outline-offset: 2px; }
.kvkk-check.bad .box { box-shadow: 0 0 0 2px #ff8a8a; }
.meet-text { display: flex; flex-direction: column; gap: 4px; color: #fff; }
.meet-text strong { font: 500 18px/24px 'Inter', sans-serif; }
.meet-text small { font: 300 14px/20px 'Inter', sans-serif; }
.link-inline { padding: 0; border: 0; background: none; color: var(--blue); font: inherit; text-decoration: underline; text-underline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 20px; margin-top: -24px; font: 500 14px/20px 'Inter', sans-serif; color: #ff9a9a; text-align: center; }
.btn-white { font: 600 15px/normal 'Manrope', sans-serif; color: #000; background: #fff; border: 1px solid #fff; border-radius: 999px; padding: 15px 26px; transition: transform .2s, box-shadow .2s, opacity .2s; }
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(55,182,255,.35); }
.btn-white:disabled { opacity: .6; cursor: progress; transform: none; box-shadow: none; }

.thanks { min-height: 366px; width: min(598px, 100%); margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 48px; text-align: center; }
.thanks p { font: 400 24px/40px 'Inter', sans-serif; max-width: 398px; }
.thanks a { font: 500 16px/25.6px 'Inter', sans-serif; color: #fff; text-decoration: none; }

.kvkk { position: relative; width: min(1090px, 100%); margin: auto; background: #fff; color: #000; border-radius: 24px; padding: 32px 62px; }
.kvkk h2 { font: 700 18px/26px 'Inter', sans-serif; margin: 0 40px 16px 0; }
.kvkk-pdf { display: block; width: 100%; height: min(78vh, 900px); border: 1px solid #dfe3e8; border-radius: 8px; background: #f4f6f8; }
.kvkk-note { display: none; margin-top: 8px; font: 400 14px/22px 'Inter', sans-serif; color: #444; }
.kvkk-open { display: inline-block; margin-top: 12px; font: 600 14px/20px 'Inter', sans-serif; color: var(--deep); text-underline-offset: 2px; }
.kvkk.no-pdf .kvkk-pdf { display: none; }
.kvkk.no-pdf .kvkk-note { display: block; }
.kvkk.no-pdf .kvkk-open { padding: 14px 22px; border-radius: 999px; background: var(--deep); color: #fff; text-decoration: none; }
.kvkk .x { top: 16px; right: 20px; }

/* ---------- TABLET / MOBİL ---------- */
/* 1101-1280 px (ör. iPad yatay): ikili debimetre sağ kenardan taşmasın. */
@media (min-width: 1101px) and (max-width: 1280px) {
  .pic-pair { width: min(821px, 52vw); }
}
@media (max-width: 1100px) {
  .slide-inner { padding: 0 48px; grid-template-columns: 1fr 1fr; gap: 24px; }
  .big { font-size: 38px; line-height: 56px; }
  .slide-navy .slide-inner { padding-left: 48px; grid-template-columns: 1fr 1fr; }
  /* Tablet (ör. iPad dikey): görseller sağ kenardan kesilmesin. İkili görsel sağ boşluğa taşabilir ama ekrana sığar. */
  .pic-pair { width: calc(100% + 90px); margin-right: -90px; }
  .pic-temp { width: min(404px, 100%); }
}
@media (max-width: 760px) {
  .hero { height: max(660px, 100vh); height: max(660px, 100svh); }
  .top { top: 28px; width: calc(100% - 40px); }
  .top-logo img { width: 112px; }
  .top-cop { width: 96px; }
  .hero-bg { top: -30px; min-height: calc(100% + 30px); object-position: 76% 0; }
  .hero-title { top: 20%; font-size: 28px; line-height: 48px; width: calc(100% - 40px); }
  .hero-meet { top: 71%; flex-direction: column; gap: 2px; }
  .hero-meet img { width: 120px; }
  .hero-meet p { font-size: 24px; line-height: 40px; letter-spacing: -1px; }
  .hero-arrow { top: 85%; width: 44px; height: 44px; margin-left: -22px; }

  .story { height: 440vh; }
  .stage { min-height: 520px; }
  /* iOS/Android'de 100vh, araç çubuğu kapalıyken ki (en büyük) yüksekliktir; çubuk açıkken sahnenin altı çubuğun
     arkasında kalır. İçerik bu yüzden her zaman görünen alana (100svh) yerleştirilir. */
  .slide-inner { max-height: 100svh; }
  .slide-inner, .slide-navy .slide-inner { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; justify-items: center; padding: 0 20px; gap: 12px; }
  .txt { text-align: left; width: 100%; }
  /* Adım 1-3 (tasarım): görsel ekranın tam ortasında, yazı en altta 30 px boşlukla.
     Izgara: [boşluk 1fr] [görsel] [yazı 1fr]. Yazı sığdığı sürece görsel tam ortada kalır; yazı uzun ya da ekran
     kısaysa görsel yukarı kayar, gerekirse küçülür (en az 150 px). Böylece görsel yazının üstüne hiç binmez. */
  .slide-light .slide-inner { display: grid; grid-template-rows: 1fr minmax(150px, 255px) 1fr; justify-items: stretch; align-content: stretch; gap: 16px; padding: 30px 20px; }
  .slide-light .txt { grid-row: 3; align-self: end; position: relative; width: 100%; }
  .slide-light .pic { grid-row: 2; position: relative; width: 100%; height: 100%; min-height: 0; margin: 0; }
  .eyebrow { font-size: 18px; line-height: 40px; }
  .big { font-size: 30px; line-height: 44px; }
  /* Üç debimetre görseli de en fazla 255 px yüksekliğinde, genişlik orana göre; kırpma yok. */
  .pic-pair, .pic-temp, .pic-flow { width: 100%; min-width: 0; height: 100%; max-height: none; margin: 0; display: flex; justify-content: center; align-items: center; }
  .pic-pair { will-change: auto; }   /* telefonda debimetre JS ile taşınmıyor */
  .pic-pair .crop { position: static; width: 100%; height: 100%; aspect-ratio: auto; overflow: visible; display: flex; justify-content: center; align-items: center; }
  .pic-pair img, .pic-temp img, .pic-flow img { position: static; top: auto; left: auto; width: auto; max-width: 100%; height: 100%; max-height: 255px; object-fit: contain; }
  .pic-pair img { height: 85%; max-height: 217px; max-width: 85vw; }   /* ikili görsel %15 daha küçük (istek) */
  /* Adım 4, Figma mobil (1:1922): harita üstte (374x187, köşe 12), altında başlık 24/40, açıklama 18/29.25 (262 px)
     ve düğme. Eskiden yazı bloğu ekranın %57'sinden başladığı için iPhone'larda düğme ekranın altından taşıyordu;
     şimdi harita + yazı bir grup olarak dikeyde ortalanır ve aralıklar kısa ekranda daralır. */
  .slide-navy .slide-inner { display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: clamp(20px, 5svh, 48px); padding: 20px; }
  .slide-navy .pic-map { order: -1; position: relative; width: auto; height: clamp(140px, 24svh, 187px); margin: 0 -10px; flex: none; border-radius: 12px; box-shadow: none; }
  .slide-navy .pic-map img { width: 100%; height: 100%; object-fit: cover; }
  .slide-navy .txt { position: relative; width: auto; flex: none; }
  .soft { font-size: 24px; line-height: 40px; max-width: 310px; }
  .txt.center { text-align: center; align-items: center; gap: clamp(14px, 3svh, 24px); }
  .aqua-line { font-size: 18px; line-height: 29.25px; width: 262px; }
  .aqua-pill { height: auto; padding: 0; margin-right: 4px; border-radius: 0; }
  .aqua-pill::before { display: none; }
  .aqua-pill .at { height: 18px; }
  .btn-ghost { margin-top: clamp(4px, 2svh, 29px); height: 52px; }
  .dots { right: 8px; }
  .bg-navy::before { left: 87px; top: -23px; width: 423px; height: 709px; }   /* Figma: damla sağ kenardan taşar */

  .ocean { height: 240vh; }   /* mobilde form bölgesi yok: hizmetler açıldıktan sonra sayfa forma iner. 380vh → 240vh: kaydırma payı yarıya iner */
  /* Figma mobil (1:1955): başlık 24/40 px, liste altında, satırlar en fazla 140 px, içerik ortalı, satır altında beyaz
     çizgi. Eskiden satırlar sabit yükseklikteydi (108 px): başlık iki satıra inince yazılar çizgiye biniyor, 5. satır
     ekranın dışında kalıyordu. Şimdi satırlar içerik kadar küçülebilir ve tüm liste görünen alana (100svh) sığar. */
  .ocean-stage { min-height: 0; }
  /* Tek arka plan: okyanus videosu ve karartması mobilde ekrana sabitlenir (z-index 0). Hizmetler ve altındaki form
     aynı videonun üstünden kayar; iki bölüm arasında dikiş olmaz. Hero, hikâye ve alt bilgi daha yüksek katmanda ve
     opak olduğu için videoyu yalnızca okyanus + form bölümünde görürsünüz. Yükseklik 100lvh: iOS araç çubuğu açılıp
     kapanırken video yeniden boyutlanıp "zıplamasın". */
  .ocean { z-index: auto; background: transparent; }
  .ocean-stage { background: transparent; }
  .ocean-video, .ocean-shade { position: fixed; inset: auto; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; }
  .ocean-content { max-height: 100svh; padding: clamp(24px, 8svh, 88px) 20px clamp(12px, 3svh, 28px); justify-content: flex-start; }
  .ocean-title { font-size: 24px; line-height: 36px; min-height: 72px; letter-spacing: .5px; flex: none; }
  /* Izgara: satır en az içeriği kadar, en fazla 140 px; kalan yer satırlara eşit dağılır (Safari ve Chrome'da aynı). */
  .services { margin-top: clamp(12px, 4svh, 90px); padding: 0; flex: 1 1 auto; display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(min-content, 140px); align-content: start; }
  .services::before { display: none; }   /* mobilde listenin üstünde çizgi yok (Figma) */
  .svc { flex: none; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: clamp(4px, 1.2svh, 16px) 12px; text-align: center; }
  .svc::after { background: #fff; }
  .svc h3 { font-size: 20px; line-height: 28px; letter-spacing: -.7px; padding: 0; }
  .svc p { font-size: 14px; line-height: 20px; letter-spacing: -.18px; max-width: 281px; }
  .reopen { display: none; }   /* mobilde "Size COP31'de ulaşalım" düğmesi gösterilmez (istek); form sayfanın içinde */

  .foot { padding: 48px 16px 32px; gap: 32px; }
  .foot-bar { flex-direction: column; gap: 14px; padding: 0; }
  .links { flex-wrap: wrap; justify-content: center; gap: 16px; }

  .overlay { padding: 12px; }
  /* Figma mobil (1:1955): form bir pencere değil, hizmetlerin altında sayfa içi bir kart (353 px, köşe 32, üstte 46 / altta 61 px boşluk).
     Zemin: şeffaf. Arkada okyanus bölümünün ekrana sabitlenmiş videosu görünür (yukarıya bakın), yani hizmetlerle
     form aynı arka planı paylaşır. JS mobilde formu açık tutar ve kaydırarak gösterir. */
  #formOverlay { position: relative; display: block; z-index: auto; padding: 46px 20px 61px; overflow: visible; animation: none;
    background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  #formOverlay[hidden] { display: none; }
  .glass { z-index: 1; max-width: 353px; margin: 0 auto; padding: 24px 26px; border-radius: 32px; }
  .glass .x { display: none; }
  .form { gap: 32px; }
  .form h2 { font-size: 24px; line-height: 40px; }
  .grid { grid-template-columns: 1fr; gap: 24px; }
  .meet { padding: 12px 16px; }
  .meet-top { flex-wrap: wrap; }
  .meet-date { font-size: 14px; }
  .form-msg { margin-top: -12px; }
  .thanks { gap: 32px; }
  .thanks p { font-size: 20px; line-height: 32px; }
  .kvkk { padding: 40px 20px 20px; border-radius: 20px; }
  .kvkk-pdf { height: 70vh; }
}
/* Kısa telefon ekranları (iPhone SE, küçük Android'ler): hizmet listesi ve yazılar sığacak kadar küçülür. */
@media (max-width: 760px) and (max-height: 600px) {
  .big { font-size: 26px; line-height: 38px; }
  .eyebrow { line-height: 32px; }
  .ocean-title { font-size: 22px; line-height: 32px; min-height: 64px; }
  .svc { gap: 2px; }
  .svc h3 { font-size: 18px; line-height: 24px; }
  .svc p { font-size: 13px; line-height: 18px; }
}
@media (max-width: 374px) {
  .svc h3 { font-size: 18px; line-height: 24px; }
}

@media (max-height: 980px) and (min-width: 761px) {
  .glass { padding: 24px 62px; }
  .form { gap: 28px; }
  .form h2 { font-size: 40px; line-height: 56px; }
  .grid { gap: 22px; }
  .field textarea { height: 104px; }
  .form-msg { margin-top: -12px; }
}
/* Kısa masaüstü ekranları (ör. 1920x1080 ekranda Windows %125 ölçek → ~730 px): form penceresi ekrana sığar. */
@media (max-height: 800px) and (min-width: 761px) {
  .overlay { padding: 16px 24px; }
  .glass { padding: 20px 56px; border-radius: 40px; }
  .x { top: 18px; right: 22px; }
  .form { gap: 18px; }
  .form h2 { font-size: 32px; line-height: 44px; }
  .grid { gap: 16px 24px; }
  .field textarea { height: 80px; }
  .form-msg { margin-top: -8px; min-height: 16px; }
}
@media (max-height: 760px) and (min-width: 761px) {
  .ocean-title { font-size: 40px; line-height: 50px; min-height: 100px; }
  .svc h3 { font-size: 24px; line-height: 30px; }
  .svc p { font-size: 16px; line-height: 24px; }
}
/* Çok kısa masaüstü ekranları (ör. %150 ölçek → ~585 px). */
@media (max-height: 640px) and (min-width: 761px) {
  .stage { min-height: 540px; }
  .ocean-stage { min-height: 520px; }
  .ocean-title { font-size: 32px; line-height: 40px; min-height: 80px; }
  .services { margin-top: clamp(16px, 4vh, 32px); }
  .svc { padding: 8px 0; }
  .svc h3 { font-size: 20px; line-height: 26px; }
  .svc p { font-size: 15px; line-height: 22px; }
}
/* Form penceresi: 1366x768 dizüstüler (~657 px) ve %150 ölçekli ekranlar (~585 px). */
@media (max-height: 700px) and (min-width: 761px) {
  .glass { padding: 16px 48px; }
  .form { gap: 12px; }
  .form h2 { font-size: 26px; line-height: 34px; }
  .grid { gap: 10px 20px; }
  .field { gap: 6px; }
  .field textarea { height: 56px; }
  .meet { padding: 8px 16px; gap: 6px; }
  .meet-logo { width: 80px; }
  .meet-text strong { font-size: 16px; line-height: 22px; }
  .kvkk-check { font-size: 13px; line-height: 19px; }
  .btn-white { padding: 12px 24px; }
}
/* Yan çevrilmiş telefonlar (genişlik > 760, yükseklik ≤ 500 px): her şey ekrana sığacak kadar sıkışır. */
@media (min-width: 761px) and (max-height: 500px) {
  .stage, .ocean-stage { min-height: 0; }
  .slide-inner { padding: 0 56px 0 40px; gap: 24px; grid-template-columns: 1fr 1fr; }
  .slide-navy .slide-inner { padding-left: 40px; grid-template-columns: 1fr 1fr; gap: 24px; }
  .eyebrow { font-size: 14px; line-height: 24px; }
  .big { font-size: 22px; line-height: 31px; }
  .pic-pair { width: 100%; margin-right: 0; }
  .pic-temp, .pic-flow { width: auto; max-height: 78vh; }
  .pic-temp img, .pic-flow img { max-height: 78vh; width: auto; margin: 0 auto; }
  .pic-map { width: 100%; margin-right: 0; }
  .txt.center { gap: 10px; }
  .soft { font-size: 20px; line-height: 30px; }
  .aqua-line { font-size: 14px; line-height: 22px; }
  .btn-ghost { margin-top: 4px; padding: 10px 20px; }
  .ocean-content { padding: 14px 24px 10px; }
  .ocean-title { font-size: 22px; line-height: 28px; min-height: 56px; }
  .services { margin-top: 8px; }
  .svc { padding: 2px 0; }
  .svc h3 { font-size: 16px; line-height: 20px; }
  .svc p { font-size: 13px; line-height: 18px; }
  .reopen { margin-top: 8px; padding: 10px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-arrow, .aqua-pill::before { animation: none; }
  .txt, .pic, .slide, .svc, .stage-bg { transition: none; }
}
