/* ============================================================
   FUNEM LABS · site.css
   Renkler logodan: siyah, beyaz ve mercan → mor geçiş.
   Marka rengini değiştirmek için :root içindeki --coral ve
   --violet değerlerini güncellemek yeterli.
   ============================================================ */

/* ---------- Yazı tipleri (dosyalar assets/fonts içinde) ---------- */
@font-face {
  font-family: "League Spartan";
  font-style: normal; font-weight: 100 900; font-display: block;
  src: url("../fonts/league-spartan-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "League Spartan";
  font-style: normal; font-weight: 100 900; font-display: block;
  src: url("../fonts/league-spartan-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit";
  font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Değişkenler ---------- */
:root {
  --coral: #fc575d;            /* "labs" geçişinin başı */
  --violet: #9253f7;           /* "labs" geçişinin sonu */
  --coral-deep: #c23c44;       /* kutu sıvısı: üstündeki beyaz yazı okunur kalsın diye koyu */
  --violet-deep: #6c3bd0;
  --grad: linear-gradient(90deg, var(--coral), var(--violet));

  --white: #fff;
  --ash: #b7b7be;              /* ikincil metin */
  --smoke: #85858d;            /* üçüncül metin */
  --carbon: #111114;           /* yükseltilmiş yüzey */
  --carbon-2: #1b1b1f;
  --line: rgba(255, 255, 255, .15);
  --line-soft: rgba(255, 255, 255, .08);

  --font-d: "League Spartan", "Outfit", system-ui, sans-serif;
  --font-t: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1320px;
  --top-h: 72px;
  --tab-h: 64px;

  --spring: cubic-bezier(.3, 1.45, .5, 1);
  --out: cubic-bezier(.2, .8, .2, 1);

  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M0 0h120v6q-15 6-30 0t-30 0-30 0-30 0z'/%3E%3C/svg%3E");
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: #000; color: #fff;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--top-h) + 8px);
}
body {
  margin: 0;
  font: 400 17px/1.55 var(--font-t);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--violet); color: #fff; }

:focus { outline: none; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; z-index: 100; left: 12px; top: 12px;
  padding: 12px 18px; border-radius: 999px;
  background: #fff; color: #000; font-weight: 600; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- Logo (küçük) ---------- */
.logo {
  display: inline-flex;
  font: 700 26px/1 var(--font-d); letter-spacing: -.02em;
  /* League Spartan satır kutusunda biraz yukarıda durur */
  padding-top: .12em;
}
.logo__b, .wm__b {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* ---------- Düğmeler ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  font: 600 16px/1 var(--font-t); text-decoration: none; white-space: nowrap;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--spring), color .25s, box-shadow .25s;
}
.btn:active { transform: scale(.955); }
.btn:focus-visible { border-radius: 999px; }
.btn .ico { width: 18px; height: 18px; margin-left: -4px; }

.btn--primary { background: #fff; color: #000; }
/* Üstüne gelince düğme sıvıyla dolar */
.btn--primary::before {
  content: ""; position: absolute; z-index: -1;
  left: -12%; right: -12%; top: 0; height: 190%;
  border-radius: 50% 50% 0 0 / 26% 26% 0 0;
  background: var(--grad);
  transform: translateY(104%);
  transition: transform .55s var(--out);
}
@media (hover: hover) {
  .btn--primary:hover { color: #fff; }
  .btn--primary:hover::before { transform: translateY(-22%); }
}
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px var(--line); }
@media (hover: hover) {
  .btn--ghost:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
}
.btn--big { height: 64px; padding: 0 36px; font-size: 19px; }
.btn--big .ico { width: 22px; height: 22px; }
.btn[aria-disabled="true"] { color: var(--ash); cursor: default; box-shadow: inset 0 0 0 1px var(--line-soft); }
.btn[aria-disabled="true"]:active { transform: none; }

/* ---------- Üst çubuk ---------- */
.top {
  position: fixed; z-index: 50; inset: 0 0 auto 0;
  height: var(--top-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 var(--gutter);
  transition: background-color .3s, box-shadow .3s;
}
.top.is-stuck {
  background: rgba(0, 0, 0, .72);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line-soft);
}
.top__logo {
  text-decoration: none; margin-right: auto;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .35s, transform .45s var(--spring);
}
.top.has-logo .top__logo { opacity: 1; transform: none; pointer-events: auto; }
.top__nav { display: flex; gap: clamp(16px, 2.4vw, 34px); }
.top__nav a {
  position: relative; padding: 10px 0;
  color: var(--ash); text-decoration: none; font-weight: 500; font-size: 16px;
  transition: color .2s;
}
.top__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .4s var(--out);
}
.top__nav a:hover, .top__nav a[aria-current="true"] { color: #fff; }
.top__nav a[aria-current="true"]::after { transform: scaleX(1); }

.lang {
  display: flex; padding: 3px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.lang button {
  min-width: 38px; height: 30px; padding: 0 8px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ash);
  font: 600 13px/1 var(--font-t); letter-spacing: .02em; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.lang button[aria-pressed="true"] { background: #fff; color: #000; }
.lang button:focus-visible { border-radius: 999px; outline-offset: 2px; }

/* ---------- Giriş ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto;
  padding: calc(var(--top-h) + clamp(20px, 7vh, 84px)) var(--gutter) clamp(56px, 11vh, 128px);
  display: grid; grid-template-rows: auto auto 1fr auto;
}
.hero__copy { grid-row: 1; max-width: 46rem; }
.hero__statement {
  font: 700 clamp(34px, 5vw, 68px)/.98 var(--font-d);
  letter-spacing: -.03em; text-wrap: balance;
  max-width: 13em;
}
.hero__lede {
  margin-top: clamp(16px, 2vw, 24px);
  max-width: 33em;
  color: var(--ash); font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5;
}
.hero__cta {
  grid-row: 2; position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: clamp(24px, 3vw, 36px);
}
.hero__mark { grid-row: 4; position: relative; container-type: inline-size; margin-top: 40px; }
.hero__fx { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }

/* Büyük logo */
.wm {
  display: block; margin: 0;
  font: 700 calc((100vw - 2 * var(--gutter)) / 4.46)/.8 var(--font-d);
  letter-spacing: -.02em; white-space: nowrap;
  -webkit-user-select: none; user-select: none;
  -webkit-box-reflect: below -.31em linear-gradient(to bottom, transparent 0, transparent 38%, rgba(0, 0, 0, .2) 62%, rgba(0, 0, 0, .42) 100%);
}
@supports (width: 1cqi) {
  .wm { font-size: calc(100cqi / 4.4); }
}
.wm__a { color: #fff; }
.wm__b { position: relative; display: inline-block; }
/* Sıvı etkinken harfleri canvas çizer; gerçek metin şeffaf kalır */
.wm__b.is-liquid { background: none; }
.liquid { position: absolute; pointer-events: none; max-width: none; }

.hero__pops {
  position: absolute; z-index: 3; right: 0; bottom: calc(100% + 14px);
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 12px;
  color: var(--ash); font-size: 15px; font-variant-numeric: tabular-nums;
  text-align: right;
}
.hero__pops[hidden] { display: none; }
.hero__pops a { color: #fff; text-underline-offset: 4px; }

/* Baloncuklar */
.bubble {
  --s: 40px; --c: var(--violet);
  position: absolute; left: 0; top: 0;
  width: var(--s); height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border-radius: 50%;
  background:
    radial-gradient(circle at 31% 27%, rgba(255, 255, 255, .85) 0 6%, rgba(255, 255, 255, 0) 9%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0) 52%, rgba(255, 255, 255, .14) 100%);
  box-shadow: inset 0 0 0 1.5px var(--c), inset 0 -6px 14px -8px var(--c);
  pointer-events: auto; cursor: pointer; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  will-change: transform, opacity;
}
.bubble::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; }
.droplet {
  position: absolute; left: 0; top: 0; width: 6px; height: 6px; margin: -3px 0 0 -3px;
  border-radius: 50%; background: var(--c, #fff); pointer-events: none;
}

/* ---------- Bölümler ---------- */
.sec {
  --sec-pad: clamp(96px, 13vw, 190px);
  max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto;
  padding: var(--sec-pad) var(--gutter) 0;
  /* Menüden gelindiğinde başlık üst çubuğun hemen altına otursun */
  scroll-margin-top: calc(44px - var(--sec-pad));
}
.sec__head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 20px clamp(24px, 5vw, 80px); align-items: end;
  margin-bottom: clamp(32px, 4.6vw, 64px);
}
.sec__title {
  font: 700 clamp(38px, 7.2vw, 104px)/.92 var(--font-d);
  letter-spacing: -.035em; text-wrap: balance; overflow-wrap: break-word;
}
.sec__intro {
  max-width: 31em;
  color: var(--ash); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5;
  padding-bottom: .35em;
}

/* ---------- Kutular (oyun ve uygulama kapları) ---------- */
.rack {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.7vw, 24px);
}
.rack--wide { grid-template-columns: minmax(0, 1fr); }

.vessel {
  --l: .5; --level: 0; --bg: var(--carbon);
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto auto;
  width: 100%; aspect-ratio: 1; margin: 0;
  padding: clamp(14px, 9%, 26px);
  border: 0; border-radius: 17%;
  background: linear-gradient(90deg, var(--c1, var(--coral-deep)), var(--c2, var(--violet-deep)));
  color: #fff; text-align: left;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  outline: 1px solid var(--line); outline-offset: -1px;
  transition: transform .35s var(--spring), outline-color .25s;
}
.vessel:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 17%; }
.is-in .vessel, .vessel.is-in { --level: var(--l); }
@media (hover: hover) {
  .is-in .vessel:hover, .vessel.is-in:hover { --level: calc(var(--l) + .09); outline-color: rgba(255, 255, 255, .4); }
}
.vessel:active { transform: scale(.965); }

/* Kabın boş kısmı: yukarı kaydıkça sıvı ortaya çıkar. Altındaki iki şerit dalgayı çizer. */
.vessel__air {
  position: absolute; z-index: -1; inset: 0;
  background: var(--bg);
  transform: translateY(calc(var(--level) * -100%));
  transition: transform 1.2s var(--spring);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.vessel__air::before, .vessel__air::after {
  content: ""; position: absolute; left: 0; top: calc(100% - 1px);
  width: 200%; height: 12px;
  background: var(--bg);
  -webkit-mask: var(--wave) 0 0 / 50% 100% repeat-x; mask: var(--wave) 0 0 / 50% 100% repeat-x;
  animation: wave 3.4s linear infinite;
}
.vessel__air::after {
  height: 19px; opacity: .5;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  animation-duration: 5.6s; animation-direction: reverse;
}
@keyframes wave { to { transform: translateX(-50%); } }

.vessel__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 4px 8px; }
.vessel__sym { font: 700 clamp(34px, 4.6vw, 56px)/.8 var(--font-d); letter-spacing: -.04em; padding-top: .1em; }
.vessel__icon { width: clamp(42px, 24%, 64px); height: auto; aspect-ratio: 1; border-radius: 24%; }
.vessel__state { font-size: 13px; line-height: 1.2; color: var(--ash); padding-top: 3px; }
.vessel__play {
  display: inline-flex; align-items: center; gap: 5px;
  height: 28px; padding: 0 12px 0 9px; border-radius: 999px;
  background: #fff; color: #000; font-weight: 600; font-size: 13px; line-height: 1;
}
.vessel__play .ico { width: 13px; height: 13px; }
.vessel__name {
  grid-row: 3;
  font-weight: 600; font-size: clamp(16px, 1.5vw, 21px); line-height: 1.15;
  overflow-wrap: anywhere;
}
.vessel__meta { grid-row: 4; margin-top: 3px; font-size: clamp(13px, 1.1vw, 15px); line-height: 1.3; }

/* Sıradaki deney: boş kap */
.vessel--next {
  background: none; cursor: default;
  outline: 1.5px dashed rgba(255, 255, 255, .24); outline-offset: -1.5px;
}
.vessel--next .vessel__name { color: var(--ash); }
.vessel--next .vessel__meta { color: var(--smoke); }
.vessel--next:active { transform: none; }

/* Geniş kap (uygulamalar) */
.vessel--wide {
  aspect-ratio: auto; min-height: clamp(220px, 24vw, 300px);
  padding: clamp(20px, 3vw, 34px);
  border-radius: clamp(30px, 4vw, 48px);
}
.vessel--wide:focus-visible { border-radius: clamp(30px, 4vw, 48px); }
.vessel--wide .vessel__name { font: 700 clamp(30px, 3.4vw, 46px)/.95 var(--font-d); letter-spacing: -.03em; }
.vessel--wide .vessel__meta { margin-top: 8px; font-size: clamp(15px, 1.25vw, 18px); max-width: 30em; }

/* ---------- Oyna ---------- */
.console {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(22px, 4vw, 64px); align-items: center;
  padding: clamp(12px, 2vw, 26px);
  border-radius: clamp(30px, 4.4vw, 56px);
  background: var(--carbon);
}
/* Geçişli ince çerçeve */
.console::before {
  content: ""; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit;
  background: var(--grad); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.console__screen {
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 4; max-height: 78vh; width: 100%;
  border-radius: clamp(20px, 3vw, 34px);
  background: #000;
}
.console__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.console__poster { position: absolute; inset: 0; display: grid; place-items: center; }
.console.is-running .console__poster { display: none; }
.console__stop {
  position: absolute; z-index: 2; top: 12px; right: 12px;
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.console__stop[hidden] { display: none; }
.console__stop:focus-visible { border-radius: 50%; }
.console__panel { padding: 4px clamp(8px, 2vw, 28px) clamp(16px, 2vw, 28px); }
.console__name { font: 700 clamp(44px, 5.4vw, 84px)/.9 var(--font-d); letter-spacing: -.035em; }
.console__tag { margin-top: 12px; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.3; }
.console__howto { margin-top: 12px; color: var(--ash); max-width: 28em; }
.console__actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.console__pick { margin-top: 34px; }
.console__pick[hidden] { display: none; }
.console__pick-label { color: var(--smoke); font-size: 15px; }
.carts { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.carts button {
  height: 40px; padding: 0 16px; border: 0; border-radius: 12px;
  background: transparent; color: var(--ash); box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 500; font-size: 15px; cursor: pointer;
}
.carts button[aria-pressed="true"] { background: #fff; color: #000; box-shadow: none; }

/* Başlamadan önce ekranda dönen küçük sahne */
.poster { position: absolute; inset: 0; }
.poster__pipette {
  position: absolute; top: 17%; left: 12%; width: 18px; height: 16%; margin-left: -9px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .12) 0 36%, var(--violet) 36%);
  box-shadow: inset 0 0 0 2.5px #fff;
  animation: pip 4s linear infinite;
}
.poster__pipette::before {
  content: ""; position: absolute; left: 50%; bottom: 100%; width: 32px; height: 32px; margin: 0 0 -9px -16px;
  border-radius: 50%; background: #fff;
}
.poster__pipette::after {
  content: ""; position: absolute; left: 0; top: 100%; width: 0; height: 0;
  border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 17px solid #fff;
}
.poster__drop {
  position: absolute; left: 37.5%; top: 38%; width: 14px; height: 16px; margin-left: -7px;
  border-radius: 50% 50% 50% 50% / 38% 38% 62% 62%;
  background: var(--coral); opacity: 0;
  animation: drop 4s linear infinite;
}
.poster__tubes {
  position: absolute; left: 0; right: 0; bottom: 11%; height: 24%;
  display: grid; grid-template-columns: repeat(4, 1fr); justify-items: center;
}
.poster__tubes i {
  position: relative; overflow: hidden;
  width: clamp(28px, 34%, 46px); height: 100%;
  border-radius: 4px 4px 23px 23px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .34);
}
.poster__tubes i::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 100%;
  background: var(--grad); opacity: .9;
  transform: translateY(72%);
}
.poster__tubes i:nth-child(3)::after { transform: translateY(45%); }
.poster__tubes i.is-target { box-shadow: inset 0 0 0 2px #fff, 0 0 0 5px rgba(255, 255, 255, .13); }
.poster__tubes i.is-target::after { animation: fillup 4s linear infinite; }
.poster--plain { display: grid; place-items: center; padding-bottom: 34%; }
.poster--plain img { width: 34%; height: auto; border-radius: 24%; }
.poster__sym { font: 700 clamp(90px, 16vw, 180px)/.8 var(--font-d); letter-spacing: -.04em; }
.poster ~ .btn { position: relative; z-index: 1; }
@keyframes pip { 0%, 100% { left: 12%; } 50% { left: 88%; } }
@keyframes drop {
  0%, 16.6% { opacity: 0; top: 38%; }
  16.8% { opacity: 1; top: 38%; }
  25.5% { opacity: 1; top: 64%; }
  26%, 100% { opacity: 0; top: 64%; }
}
@keyframes fillup {
  0%, 25.5% { transform: translateY(72%); }
  30% { transform: translateY(38%); }
  34%, 92% { transform: translateY(45%); }
  100% { transform: translateY(72%); }
}

/* ---------- Laboratuvar ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 5vw, 72px);
}
.step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 2.4vw, 30px); align-items: end; }
.tube {
  --l: .5; --level: 0; --bg: #000;
  position: relative; isolation: isolate; overflow: hidden;
  width: clamp(48px, 5.4vw, 68px); height: clamp(150px, 17vw, 220px);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--c1, var(--coral)), var(--c2, var(--violet)));
  outline: 1px solid rgba(255, 255, 255, .26); outline-offset: -1px;
}
.is-in .tube, html:not(.js) .tube { --level: var(--l); }
.step:nth-child(2) .vessel__air { --i: 3; }
.step:nth-child(3) .vessel__air { --i: 6; }
.step__title { font: 700 clamp(44px, 5.6vw, 84px)/.86 var(--font-d); letter-spacing: -.035em; }
.step__body p { margin-top: 12px; color: var(--ash); max-width: 26em; }

/* ---------- Kariyer ---------- */
.careers { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.open-app { padding-top: 26px; border-top: 1px solid var(--line); max-width: 31em; }
.open-app__title { font: 700 clamp(26px, 3vw, 40px)/1 var(--font-d); letter-spacing: -.025em; text-wrap: balance; }
.open-app p { margin-top: 12px; color: var(--ash); }
.open-app .btn { margin-top: 22px; }

.jobs { border-bottom: 1px solid var(--line); }
.jobs__none { padding: 28px 0; border-top: 1px solid var(--line); color: var(--ash); }
.job { border-top: 1px solid var(--line); }
.job__h { margin: 0; font: inherit; }
.job__btn {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto;
  column-gap: 20px; align-items: center;
  padding: clamp(20px, 2.6vw, 30px) 0; border: 0; background: none; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.job__title { font: 700 clamp(26px, 3vw, 40px)/1 var(--font-d); letter-spacing: -.025em; }
.job__meta { grid-row: 2; margin-top: 6px; color: var(--ash); font-size: 15px; }
.job__ico {
  grid-column: 2; grid-row: 1 / span 2; width: 26px; height: 26px;
  transition: transform .45s var(--spring);
}
.job__btn[aria-expanded="true"] .job__ico { transform: rotate(135deg); }
.job__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--out); }
.job__panel.is-open { grid-template-rows: 1fr; }
.job__inner { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility .5s; }
.job__panel.is-open .job__inner { visibility: visible; }
.job__content { padding: 0 0 clamp(24px, 3vw, 34px); max-width: 36em; }
.job__content p { color: var(--ash); }
.job__wants { margin-top: 18px; font-weight: 600; color: #fff; }
.job__content ul { margin: 8px 0 0; padding: 0 0 0 1.1em; color: var(--ash); }
.job__content li { margin-top: 4px; }
.job__content .btn { margin-top: 24px; }

/* ---------- Alt bölüm ---------- */
.foot {
  max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto;
  padding: clamp(110px, 15vw, 220px) var(--gutter) 0;
}
.foot__top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px clamp(24px, 5vw, 80px); align-items: end; }
.foot__title { font: 700 clamp(32px, 4.6vw, 68px)/.98 var(--font-d); letter-spacing: -.03em; text-wrap: balance; max-width: 13em; }
.foot__mail {
  font-weight: 600; font-size: clamp(21px, 2.1vw, 28px); line-height: 1.2;
  text-decoration-thickness: 2px; text-underline-offset: 7px;
  overflow-wrap: anywhere;
}
.foot__social { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot__social a { color: var(--ash); text-underline-offset: 4px; }
.foot__social a:hover, .foot__mail:hover { color: #fff; text-decoration-color: var(--coral); }
.foot__mark { container-type: inline-size; margin-top: clamp(56px, 9vw, 130px); }
.wm--foot { -webkit-box-reflect: unset; }
.foot__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 28px;
  margin-top: clamp(20px, 3vw, 40px);
  padding: 22px 0 calc(26px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-soft);
  color: var(--smoke); font-size: 14px;
}
.foot__up { display: inline-flex; align-items: center; gap: 6px; color: var(--ash); text-decoration: none; }
.foot__up:hover { color: #fff; }
.foot__up .ico { width: 16px; height: 16px; }

/* ---------- Mobil sekme çubuğu ---------- */
.tabs {
  position: fixed; z-index: 40;
  left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
  height: var(--tab-h);
  display: none; grid-template-columns: repeat(5, minmax(0, 1fr));
  border-radius: 24px;
  background: rgba(22, 22, 26, .8);
  -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: inset 0 0 0 1px var(--line), 0 14px 44px rgba(0, 0, 0, .7);
}
.tabs a {
  position: relative; z-index: 1;
  display: grid; justify-items: center; align-content: center; gap: 6px;
  color: var(--ash); text-decoration: none;
  font: 500 11px/1 var(--font-t);
  -webkit-tap-highlight-color: transparent;
  transition: color .25s;
}
.tabs a .ico { width: 22px; height: 22px; transition: transform .35s var(--spring); }
.tabs a[aria-current="true"] { color: #fff; }
.tabs a:active .ico { transform: scale(.82); }
.tabs a:focus-visible { border-radius: 18px; outline-offset: -4px; }
/* Etkin sekmenin arkasında kayan sıvı damlası */
.tabs__blob {
  position: absolute; z-index: 0; left: 0; top: 7px; width: 20%; height: 30px;
  display: grid; place-items: center;
  opacity: 0; transform: translateX(calc(var(--at, 0) * 100%));
  transition: transform .55s var(--spring), opacity .3s;
}
.tabs__blob::before { content: ""; width: 54px; height: 30px; border-radius: 15px; background: var(--grad); }
.tabs.has-active .tabs__blob { opacity: 1; }

/* ---------- Büret (kaydırma göstergesi) ---------- */
.burette {
  --p: 0;
  position: fixed; z-index: 30;
  top: calc(var(--top-h) + 30px); bottom: 46px;
  right: calc(var(--gutter) / 2 - 5px); width: 10px;
  pointer-events: none;
}
.burette__glass {
  position: absolute; inset: 0 0 16px 0; overflow: hidden;
  border-radius: 5px 5px 4px 4px;
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
}
.burette__liq {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--coral), var(--violet));
  transform-origin: 50% 100%; transform: scaleY(calc(1 - var(--p)));
}
.burette__tip {
  position: absolute; left: 50%; bottom: 5px; width: 4px; height: 11px; margin-left: -2px;
  border-radius: 0 0 2px 2px; background: rgba(255, 255, 255, .3);
}
.burette__drop {
  position: absolute; left: 50%; bottom: -5px; width: 6px; height: 8px; margin-left: -3px;
  border-radius: 50% 50% 50% 50% / 38% 38% 62% 62%;
  background: var(--violet); opacity: 0;
}
.burette.is-dripping .burette__drop { animation: drip .75s ease-in; }
@keyframes drip {
  0% { opacity: 0; transform: translateY(-7px) scale(.4); }
  28% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(38px) scale(.85); }
}
.burette__marks { position: absolute; inset: 0 0 16px 0; }
.burette__marks i {
  position: absolute; right: 100%; margin-right: 4px; width: 7px; height: 1px;
  background: rgba(255, 255, 255, .34);
  transition: background-color .25s, width .35s var(--spring);
}
.burette__marks i.is-active { background: #fff; width: 13px; }

/* ---------- Ayrıntı paneli ---------- */
.sheet {
  width: min(960px, calc(100vw - 40px)); max-width: none;
  max-height: min(88vh, 780px); max-height: min(88dvh, 780px);
  padding: 0; border: 0; border-radius: 36px;
  background: var(--carbon); color: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 40px 120px rgba(0, 0, 0, .8);
  overflow: hidden;
}
.sheet::backdrop { background: rgba(0, 0, 0, .74); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sheet[open] { display: flex; flex-direction: column; animation: sheet-in .5s var(--out); }
.sheet[open]::backdrop { animation: fade-in .35s ease; }
.sheet.is-closing { animation: sheet-out .22s ease-in forwards; }
.sheet.is-closing::backdrop { animation: fade-out .22s ease forwards; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(26px) scale(.965); } }
@keyframes sheet-out { to { opacity: 0; transform: translateY(18px) scale(.975); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
/* Kutudan panele dönüşüm (View Transitions destekleyen tarayıcılarda) */
.sheet.is-morph[open], .sheet.is-morph[open]::backdrop { animation: none; }
::view-transition-group(vessel-open) { animation-duration: .52s; animation-timing-function: cubic-bezier(.22, .9, .26, 1); }
::view-transition-old(vessel-open), ::view-transition-new(vessel-open) { height: 100%; object-fit: cover; object-position: 50% 0; animation-duration: .3s; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
.sheet__grab { display: none; }
.sheet__close {
  position: absolute; z-index: 3; top: 16px; right: 16px;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--carbon-2); color: #fff; cursor: pointer;
  transition: transform .3s var(--spring), background-color .2s;
}
.sheet__close:hover { background: #2a2a30; transform: rotate(90deg); }
.sheet__close:focus-visible { border-radius: 50%; }
.sheet__body {
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  display: grid; grid-template-columns: minmax(0, 1fr);
  --sp: clamp(20px, 3vw, 34px);
}
.sheet__head { padding: var(--sp) var(--sp) 0; min-width: 0; }
.sheet__vis { padding: 22px var(--sp) 0; min-width: 0; }
.sheet__rest { padding: 20px var(--sp) var(--sp); min-width: 0; }
.sheet__vis .vessel { cursor: default; outline-color: var(--line); }
.sheet__vis .vessel:active { transform: none; }
.sheet__vis .vessel__sym { font-size: clamp(64px, 9vw, 108px); }
.shots {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(var(--sp) * -1); padding: 0 var(--sp); scroll-padding: 0 var(--sp);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.shots::-webkit-scrollbar { display: none; }
.shots:focus-visible { outline-offset: -2px; }
.shots img {
  flex: none; width: min(56vw, 230px); height: auto; aspect-ratio: 1 / 2;
  border-radius: 22px; scroll-snap-align: start; background: var(--carbon-2);
}
.sheet__headline { display: flex; align-items: center; gap: 16px; padding-right: 56px; min-height: 48px; }
.sheet__icon { width: 64px; height: 64px; border-radius: 24%; flex: none; }
.sheet__name { font: 700 clamp(38px, 5vw, 60px)/.92 var(--font-d); letter-spacing: -.035em; padding-top: .08em; overflow-wrap: anywhere; }
.sheet__tag { margin-top: 16px; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.3; }
.sheet__desc { color: var(--ash); }
.facts { margin: 22px 0 0; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ash); }
.facts dd { margin: 0; text-align: right; font-weight: 500; }
.sheet__actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; height: 52px; padding: 0 22px; border-radius: 999px;
  color: var(--ash); font-weight: 500; font-size: 16px; white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--line-soft);
}

/* ---------- Oynatıcı sayfası (play/) ---------- */
.player { height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr); background: #000; }
.player__bar {
  display: flex; align-items: center; gap: 14px;
  height: 56px; padding: 0 max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
  padding-top: env(safe-area-inset-top); box-sizing: content-box;
  border-bottom: 1px solid var(--line-soft);
}
.player__back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ash); font-size: 15px; }
.player__back:hover { color: #fff; }
.player__back .ico { transform: rotate(-90deg); width: 18px; height: 18px; }
.player__name { margin: 0 auto 0 4px; font: 700 24px/1 var(--font-d); letter-spacing: -.02em; padding-top: .12em; }
.player__btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--carbon-2); color: #fff; cursor: pointer;
}
.player__btn:focus-visible { border-radius: 50%; }
.player__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0; }
.player__stage iframe {
  width: 100%; height: 100%; border: 0; background: #000;
  max-width: min(100%, calc((100dvh - 57px) * .75));
}
.player__missing { max-width: 34rem; padding: 40px var(--gutter); }
.player__missing h1 { font: 700 clamp(40px, 7vw, 72px)/.95 var(--font-d); letter-spacing: -.03em; }
.player__missing p { margin-top: 16px; color: var(--ash); }
.player__missing ul { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }

/* ============================================================
   Ekran genişliğine göre düzen
   ============================================================ */
@media (min-width: 700px) {
  .rack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rack--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .sheet__body { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto 1fr; align-items: start; }
  .sheet__vis { grid-column: 1; grid-row: 1 / span 2; padding: var(--sp); padding-right: 0; align-self: stretch; }
  .sheet__vis .shots { margin: 0; padding: 0; scroll-padding: 0; border-radius: 22px; }
  .sheet__vis .shots img { width: min(100%, 250px); }
  .sheet__head { grid-column: 2; grid-row: 1; padding-top: calc(var(--sp) + 10px); }
  .sheet__rest { grid-column: 2; grid-row: 2; }
}
@media (min-width: 861px) {
  .console { grid-template-columns: auto minmax(0, 1fr); }
  .console__screen { height: clamp(440px, 66vh, 640px); width: auto; max-height: none; aspect-ratio: 4 / 5; }
  .careers { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .open-app { position: sticky; top: calc(var(--top-h) + 28px); }
  .foot__top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
@media (min-width: 1040px) {
  .rack { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rack--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --top-h: 60px; }
  .top__nav { display: none; }
  .tabs { display: grid; }
  .sec__head { grid-template-columns: minmax(0, 1fr); }
  .burette {
    top: calc(var(--top-h) + 16px); bottom: calc(var(--tab-h) + 30px + env(safe-area-inset-bottom));
    right: 6px; width: 5px;
  }
  .burette__glass { inset: 0; border-radius: 3px; }
  .burette__tip, .burette__drop, .burette__marks { display: none; }
  .foot__base { padding-bottom: calc(var(--tab-h) + 36px + env(safe-area-inset-bottom)); }
}

@media (max-width: 699px) {
  body { font-size: 16px; }
  /* Telefonda logo iki satır: harfler büyük kalsın */
  .hero { grid-template-rows: auto 1fr auto auto; padding-bottom: calc(var(--tab-h) + 44px + env(safe-area-inset-bottom)); }
  .hero__mark { grid-row: 3; margin-top: 56px; }
  .hero__cta { grid-row: 4; margin-top: 30px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .wm { font-size: calc((100vw - 2 * var(--gutter)) / 2.74); line-height: .84; -webkit-box-reflect: unset; }
  @supports (width: 1cqi) { .wm { font-size: calc(100cqi / 2.7); } }
  .wm__b { display: block; width: -moz-fit-content; width: fit-content; }
  .wm--foot { font-size: calc((100vw - 2 * var(--gutter)) / 4.46); line-height: .8; }
  @supports (width: 1cqi) { .wm--foot { font-size: calc(100cqi / 4.4); } }
  .wm--foot .wm__b { display: inline-block; }

  /* Ayrıntı paneli alttan açılır */
  .sheet {
    width: 100%; margin: auto 0 0; max-height: 92vh; max-height: 92dvh;
    border-radius: 30px 30px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .sheet[open] { animation: sheet-up .55s var(--out); }
  .sheet.is-closing { animation: sheet-down .25s ease-in forwards; }
  .sheet__grab { display: block; flex: none; width: 44px; height: 5px; margin: 10px auto 2px; border-radius: 3px; background: rgba(255, 255, 255, .28); }
  .sheet__close { top: 18px; right: 14px; }
  .sheet__head { padding-top: 14px; }
  .sheet__vis:has(> .vessel) { display: none; }
}
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes sheet-down { to { transform: translateY(100%); } }

/* ---------- Hareketi azalt ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
}
