@font-face { font-family: Outfit; src: url(../assets/fonts/outfit-latin-ext.woff2) format('woff2'); font-weight: 300 800; font-display: swap;
  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; src: url(../assets/fonts/outfit-latin.woff2) format('woff2'); font-weight: 300 800; font-display: swap;
  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; }

:root {
  --paper: #f3eee4; --paper2: #ebe4d7; --ink: #23222b; --muted: rgba(35, 34, 43, .7); --faint: rgba(35, 34, 43, .48);
  --hair: rgba(35, 34, 43, .12); --turq: #2fb8b0; --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 Outfit, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* nav */
.nav { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 28px; padding: 18px clamp(16px, 4vw, 56px);
  background: linear-gradient(var(--paper), rgba(243, 238, 228, 0)); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand > img { width: 34px; height: 34px; }
.brand-text { display: grid; gap: 2px; }
.brand-text img { height: 15px; width: auto; }
.brand-text b { font-weight: 500; font-size: 9px; letter-spacing: .7em; color: var(--muted); }
.links { margin-left: auto; display: flex; gap: 30px; }
.links a { text-decoration: none; font-size: 14px; letter-spacing: .04em; color: var(--muted); transition: color .3s; }
.links a:hover { color: var(--ink); }

/* hero */
.hero { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 2vw; padding: 90px clamp(16px, 4vw, 56px) 40px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 11.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.kicker::before { content: ''; width: 18px; height: 1px; background: var(--turq); }
h1, h2 { margin: 0 0 14px; font-weight: 500; letter-spacing: -.02em; line-height: 1.06; }
h1 { font-size: clamp(40px, 5.2vw, 76px); }
h2 { font-size: clamp(28px, 3vw, 40px); }
.lead { font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); max-width: 30em; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 999px; font-weight: 500; font-size: 15px; text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(35, 34, 43, .5); }
.btn.link { padding: 6px; }
.btn.link::after { content: '→'; transition: transform .4s var(--ease); }
.btn.link:hover::after { transform: translateX(4px); }

/* the maquette pictures sit on the paper: a soft radial mask melts each picture's own ivory edge into the page */
.model { margin: 0; perspective: 1200px; }
.model img { width: 100%; height: auto; -webkit-mask-image: radial-gradient(farthest-side, #000 72%, transparent 100%); mask-image: radial-gradient(farthest-side, #000 72%, transparent 100%); transition: transform .9s var(--ease); will-change: transform; }

/* sections */
.studio { display: grid; place-items: center; padding: 8vh clamp(16px, 4vw, 56px); }
.row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 3vw; padding: 6vh clamp(16px, 4vw, 56px); max-width: 1400px; margin: 0 auto; }
.row.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.row.flip .model { order: 2; }
.card { width: min(440px, 100%); padding: 32px; border-radius: 22px; background: rgba(253, 251, 247, .8); border: 1px solid var(--hair);
  box-shadow: 0 24px 60px -30px rgba(60, 50, 40, .35); }
.row .card { justify-self: start; }
.row.flip .card { justify-self: end; }
.card.wide { width: min(600px, 100%); text-align: center; }
.card p { margin: 0 0 18px; color: var(--muted); }
.stats { list-style: none; margin: 24px 0 0; padding: 22px 0 0; border-top: 1px solid var(--hair); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stats b { display: block; font-size: 34px; font-weight: 400; line-height: 1; }
.stats span { display: block; margin-top: 8px; font-size: 12px; line-height: 1.35; color: var(--faint); }
.game-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.game-head img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 10px 24px -10px rgba(35, 34, 43, .45); flex: none; }
.game-head h2 { margin: 0; }
.game-head .kicker { margin-bottom: 6px; }
.sub { margin: 2px 0 0 !important; color: var(--faint) !important; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 14px; line-height: 1.1; }
.store small { display: block; font-size: 10px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin-bottom: 2px; }
.store.live { background: var(--ink); color: var(--paper); transition: transform .4s var(--ease); }
.store.live:hover { transform: translateY(-2px); }
.store.soon { color: var(--faint); border: 1px solid var(--hair); }
.ico { width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; }
.ico.apple { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.4 12.6c0-2.4 2-3.6 2.1-3.7-1.2-1.7-3-1.9-3.6-2-1.5-.2-3 .9-3.8.9-.8 0-2-.9-3.3-.9-1.7 0-3.3 1-4.2 2.6-1.8 3.1-.5 7.7 1.3 10.2.8 1.2 1.8 2.6 3.1 2.6 1.2 0 1.7-.8 3.2-.8s1.9.8 3.2.8c1.3 0 2.2-1.2 3-2.4.9-1.4 1.3-2.7 1.3-2.8-.1 0-2.5-1-2.3-4.5zM14 5.3c.7-.8 1.1-1.9 1-3-1 0-2.1.7-2.8 1.5-.6.7-1.2 1.8-1 2.9 1.1.1 2.1-.6 2.8-1.4z'/%3E%3C/svg%3E"); }
.ico.play { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2.6c-.3.3-.5.8-.5 1.4v16c0 .6.2 1.1.5 1.4L13.1 12 4 2.6zm10.3 10.6 2.6 2.6-11 6.3 8.4-8.9zm0-2.4L5.9 1.9l11 6.3-2.6 2.6zm3.9-1.8 3 1.7c.9.5.9 1.3 0 1.8l-3 1.7-2.8-2.6 2.8-2.6z'/%3E%3C/svg%3E"); }

.contact { display: grid; justify-items: center; gap: 28px; padding: 10vh clamp(16px, 4vw, 56px) 48px; }
.card p.support { margin: 6px 0 0; font-size: 14px; color: var(--faint); }
.legal { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hair); display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; font-size: 13px; }
.legal p { width: 100%; margin: 0 0 4px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.legal a { color: var(--muted); text-decoration: none; }
.legal a:hover { color: var(--ink); }
.legal a.all { flex-basis: 100%; margin-top: 6px; color: var(--ink); }
.foot { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; font-size: 12px; color: var(--faint); }
.foot span + span::before { content: '·'; margin-right: 18px; }

/* reveal: the model drops onto its plinth spot, the card follows */
.reveal { opacity: 0; translate: 0 26px; transition: opacity .8s var(--ease), translate 1s var(--ease); }
.in .reveal, .in.reveal { opacity: 1; translate: 0 0; transition-delay: .35s; }
.row .model, .hero-model { opacity: 0; translate: 0 -70px; scale: .96; transition: opacity .5s ease, translate .9s cubic-bezier(.34, 1.56, .64, 1), scale .9s cubic-bezier(.34, 1.56, .64, 1); }
.in .model, .in .hero-model { opacity: 1; translate: 0 0; scale: 1; transition-delay: .12s; }

@media (max-width: 860px) {
  .links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 84px; gap: 0; }
  .hero-model { order: -1; margin: 0 -8px; }
  .row, .row.flip { grid-template-columns: 1fr; gap: 0; padding: 4vh 16px; }
  .row.flip .model { order: 0; }
  .row .card, .row.flip .card { justify-self: stretch; width: 100%; margin-top: -4vw; padding: 24px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .model { opacity: 1; translate: none; scale: none; transition: none; }
}

/* ---------- torn-page scroll ---------- */
html.torn, html.torn body { overflow: hidden; height: 100%; overscroll-behavior: none; }
.stage { position: fixed; inset: 0; z-index: 1; overflow: hidden; background: #d9d1c3; }
.page { position: absolute; inset: 0; transform-origin: 50% 50%; will-change: transform; }
.half { position: absolute; inset: 0; background: var(--paper); will-change: transform, opacity; transform-origin: 50% 60%; }
.half.left { transform-origin: 0% 100%; }
.half.right { transform-origin: 100% 0%; }
.page.tearing .half { filter: drop-shadow(0 0 1.5px rgba(60, 50, 40, .35)) drop-shadow(0 20px 40px rgba(60, 50, 40, .25)); }
.shade { position: absolute; inset: 0; background: #2a241c; opacity: 0; pointer-events: none; }
html.torn .sheet > section { height: 100vh; min-height: 0; max-width: none; margin: 0; }
html.torn .sheet > .row { padding-top: 80px; padding-bottom: 4vh; }
html.torn .sheet > .row > * { max-width: 760px; }
html.torn .sheet > .row .model img { max-height: calc(100vh - 140px); width: auto; margin: 0 auto; }
html.torn .sheet > .studio, html.torn .sheet > .contact { align-content: center; }
@media (max-width: 860px) {
  html.torn .sheet > .row { padding-top: 70px; align-content: center; }
  html.torn .sheet > .row .model img { max-height: 44vh; }
  html.torn .sheet > .contact { padding-top: 70px; }
  html.torn .contact .card { padding: 20px; }
}
.page:not(.tearing) .half.left { clip-path: none !important; }   /* hide the seam until the tear starts */

/* paper: fibres show on the torn edge, faint grain on every sheet */
.stage { perspective: 1600px; }
.half { background: #fffdf8; }
.sheet { position: absolute; inset: 0; background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .22 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"); }
.page:not(.tearing) .half.left, .page:not(.tearing) .half.left .sheet { clip-path: none !important; }
.page.tearing .half { filter: drop-shadow(0 18px 30px rgba(60, 50, 40, .28)); }

/* splash on paper */
#splash { position: fixed; inset: 0; z-index: 50; background: var(--paper); display: grid; place-items: center; overflow: hidden;
  transition: opacity .8s ease, transform 1s cubic-bezier(.6, 0, .9, .4); }
#splash.out { opacity: 0; transform: scale(1.15) translateY(-3vh); pointer-events: none; }
.splash-inner { position: relative; display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); padding: 24px; }
.splash-logo { position: relative; width: clamp(130px, 20vmin, 210px); aspect-ratio: 1; filter: drop-shadow(0 16px 26px rgba(60, 50, 40, .25)); }
.part { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.p-ctrl { transform-origin: 50% 72%; animation: ctrlIn .75s cubic-bezier(.34, 1.56, .64, 1) .15s forwards; }
.p-left { transform-origin: 23% 45%; animation: leftIn .55s cubic-bezier(.34, 1.8, .64, 1) .55s forwards; }
.p-right { transform-origin: 77% 45%; animation: rightIn .55s cubic-bezier(.34, 1.8, .64, 1) .62s forwards; }
.p-center { transform-origin: 50% 31%; animation: centerIn .6s cubic-bezier(.34, 1.7, .64, 1) .78s forwards; }
@keyframes ctrlIn { from { opacity: 1; transform: translateY(120%) rotate(-20deg); } to { opacity: 1; transform: none; } }
@keyframes leftIn { from { opacity: 0; transform: translate(28%, 6%) scale(.2) rotate(-30deg); } to { opacity: 1; transform: none; } }
@keyframes rightIn { from { opacity: 0; transform: translate(-28%, 6%) scale(.2) rotate(30deg); } to { opacity: 1; transform: none; } }
@keyframes centerIn { from { opacity: 0; transform: translateY(-70%) scale(.4); } to { opacity: 1; transform: none; } }
.splash-word { display: grid; justify-items: center; gap: 10px; }
.splash-word img { width: clamp(180px, 32vw, 400px); opacity: 0; clip-path: inset(0 100% 0 0); animation: wordIn .6s cubic-bezier(.2, .8, .2, 1) 1.15s forwards; }
@keyframes wordIn { to { opacity: 1; clip-path: inset(0 0 0 0); } }
.games { display: flex; gap: clamp(14px, 3vw, 34px); font-weight: 700; font-size: clamp(16px, 2.2vw, 26px); color: var(--ink); }
.games span { opacity: 0; transform: translateY(-40px) rotate(-14deg); animation: letter .5s cubic-bezier(.34, 1.8, .64, 1) forwards; }
.games span:nth-child(1) { animation-delay: 1.45s; } .games span:nth-child(2) { animation-delay: 1.52s; }
.games span:nth-child(3) { animation-delay: 1.59s; } .games span:nth-child(4) { animation-delay: 1.66s; } .games span:nth-child(5) { animation-delay: 1.73s; }
@keyframes letter { to { opacity: 1; transform: none; } }

/* language toggle */
.lang { display: flex; gap: 2px; padding: 0; border: 0; background: none; cursor: pointer; font: 500 12px Outfit, sans-serif; letter-spacing: .12em; color: var(--faint); }
.lang span + span::before { content: '/'; margin: 0 8px; color: var(--faint); }
html[lang='tr'] .lang [data-l='tr'], html[lang='en'] .lang [data-l='en'] { color: var(--ink); }

/* hex rail + counter */
.rail { position: fixed; z-index: 20; right: clamp(14px, 2.2vw, 34px); top: 50%; translate: 0 -50%; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rail a { position: relative; display: block; width: 12px; height: 13px; background: var(--hair); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); transition: background .3s, transform .4s var(--ease); }
.rail a:hover { background: var(--faint); }
.rail a.on { background: var(--turq); transform: scale(1.35); }
.rail li { position: relative; display: flex; justify-content: flex-end; }
.counter { position: fixed; z-index: 20; right: clamp(16px, 2.6vw, 40px); bottom: max(22px, env(safe-area-inset-bottom)); font-size: 12px; letter-spacing: .14em; color: var(--faint); font-variant-numeric: tabular-nums; }
.counter b { font-weight: 500; color: var(--ink); margin-right: 6px; }
@media (max-width: 860px) { .rail { gap: 9px; right: 8px; } .rail a { width: 9px; height: 10px; } }
.half.left { z-index: 2; }
.more-link { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--hair); padding-bottom: 2px; transition: border-color .3s; }
.more-link:hover { border-color: var(--ink); }

/* ---------- living maquettes (js/maquette-fx.js) ---------- */
.mq { position: relative; display: block; width: fit-content; max-width: 100%; margin: 0 auto; transition: transform .9s var(--ease); will-change: transform; }
.mq > img { max-width: 100%; }
.fx { position: absolute; inset: 0; pointer-events: none; }
.fx i { position: absolute; display: block; translate: -50% -50%; }
/* chimney smoke / tea steam: three soft puffs rising in turn */
.fx-smoke, .fx-steam { width: 5%; aspect-ratio: 1; }
.fx-smoke.thin { width: 2.8%; }
.fx-smoke.thin b { background: radial-gradient(circle, rgba(150, 142, 134, .45), rgba(150, 142, 134, 0) 70%); }
.fx-steam { width: 1.6%; }
.fx-smoke b, .fx-steam b { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(110, 102, 95, .78), rgba(110, 102, 95, 0) 70%); opacity: 0;
  animation: puff 4.2s ease-out infinite; animation-delay: calc(var(--d) + var(--k, 0s)); }
.fx-steam b { background: radial-gradient(circle, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 70%); animation-duration: 3s; }
.fx-smoke b, .fx-steam b { filter: blur(2px); }
.fx-smoke b:nth-child(2), .fx-steam b:nth-child(2) { --k: .84s; }
.fx-smoke b:nth-child(3), .fx-steam b:nth-child(3) { --k: 1.68s; }
.fx-smoke b:nth-child(4), .fx-steam b:nth-child(4) { --k: 2.52s; }
.fx-smoke b:nth-child(5), .fx-steam b:nth-child(5) { --k: 3.36s; }
@keyframes puff { 0% { opacity: 0; transform: translate(0, 30%) scale(.3); } 5% { opacity: .9; transform: translate(0, 10%) scale(.4); } 100% { opacity: 0; transform: translate(70%, -300%) scale(2.4); } }
/* glints on water / sparkles */
.fx-glint { width: 1.8%; aspect-ratio: 1; opacity: 0; animation: glint 3.6s ease-in-out infinite var(--d);
  background: conic-gradient(from 45deg, transparent 0 10%, #fff 12% 13%, transparent 15% 35%, #fff 37% 38%, transparent 40% 60%, #fff 62% 63%, transparent 65% 85%, #fff 87% 88%, transparent 90%);
  -webkit-mask: radial-gradient(circle, #000 0 18%, rgba(0, 0, 0, .7) 30%, transparent 70%); mask: radial-gradient(circle, #000 0 18%, rgba(0, 0, 0, .7) 30%, transparent 70%); }
@keyframes glint { 0%, 70%, 100% { opacity: 0; scale: .3; rotate: 0deg; } 80% { opacity: 1; scale: 1; } 90% { opacity: 0; scale: .5; rotate: 40deg; } }
/* string-light bulbs, lamps, headlights */
.fx-bulb { width: 1.3%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff6c8, rgba(255, 206, 92, .6) 40%, rgba(255, 206, 92, 0) 72%); animation: bulb 2.4s ease-in-out infinite var(--d); }
@keyframes bulb { 50% { opacity: .35; scale: .8; } }
.fx-lamp { width: 4%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 236, 170, .9), rgba(255, 214, 120, .35) 35%, rgba(255, 214, 120, 0) 70%); animation: lamp 3.2s ease-in-out infinite var(--d); mix-blend-mode: screen; }
.fx-lamp.head { width: 2.6%; animation-duration: 1.8s; }
@keyframes lamp { 50% { opacity: .45; scale: .85; } }
/* electric sparks */
.fx-spark { width: 1.6%; aspect-ratio: 1; border-radius: 50%; opacity: 0; background: radial-gradient(circle, #fff, #ffe27a 30%, rgba(255, 210, 80, 0) 70%); animation: spark 2.8s steps(1) infinite var(--d); }
@keyframes spark { 0%, 100% { opacity: 0; } 4% { opacity: 1; scale: 1.4; } 7% { opacity: .2; } 10% { opacity: .9; scale: .9; } 14% { opacity: 0; } }
/* gulls drifting over the Bosphorus */
.fx-bird { width: 2.4%; height: 1%; animation: fly 16s linear infinite var(--d); }
.fx-bird::before, .fx-bird::after { content: ''; position: absolute; top: 0; width: 50%; height: 100%; border-top: 2px solid rgba(35, 34, 43, .55); border-radius: 50% 50% 0 0; animation: flap .5s ease-in-out infinite alternate; }
.fx-bird::before { left: 0; transform-origin: right bottom; } .fx-bird::after { right: 0; transform-origin: left bottom; }
@keyframes flap { to { transform: rotate(-14deg); } }
.fx-bird::after { animation-name: flap2; } @keyframes flap2 { to { transform: rotate(14deg); } }
@keyframes fly { 0% { transform: translate(-200%, 0); opacity: 0; } 8% { opacity: 1; } 50% { transform: translate(1400%, 120%); } 92% { opacity: 1; } 100% { transform: translate(3000%, -40%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fx { display: none; } }

/* ---------- smart store button ---------- */
.store.mine { box-shadow: 0 0 0 3px rgba(47, 184, 176, .35); animation: mine 2.6s ease-in-out 1.2s 2; }
@keyframes mine { 50% { box-shadow: 0 0 0 7px rgba(47, 184, 176, .12); } }
.dl-bar { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px;
  border-radius: 20px; background: rgba(253, 251, 247, .94); border: 1px solid var(--hair); box-shadow: 0 18px 40px -18px rgba(35, 34, 43, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  translate: 0 140%; transition: translate .5s var(--ease); }
.dl-bar.show { translate: 0 0; }
.dl-bar img { width: 40px; height: 40px; border-radius: 11px; }
.dl-bar b { flex: 1; font-weight: 500; font-size: 15px; line-height: 1.2; }
.dl-bar .store { animation: none; box-shadow: none; }
