/* Elessar Software — studio home */
:root {
  color-scheme: dark;
  --ink: #14100f;
  --ink-2: #1d1715;
  --ink-3: #2a2220;
  --paper: #f3ead8;
  --soft: #c9bba6;
  --mute: #8f8274;
  --gem: #3fcf8b;
  --gem-deep: #178049;
  --gem-glow: rgba(63, 207, 139, .35);
  --red: #d6402f;
  --gold: #f0b54a;
  --line: rgba(243, 234, 216, .14);
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; overflow-x: clip; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gem); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
html[data-lang="en"] [data-l="tr"], html[data-lang="tr"] [data-l="en"] { display: none !important; }

h1, h2, h3 { font-family: var(--display); font-variation-settings: "SOFT" 50; font-weight: 800; line-height: 1; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.kicker { margin: 0 0 14px; color: var(--gem); font-weight: 800; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }

/* header */
.top { position: fixed; inset: 0 0 auto; z-index: 20; padding-top: env(safe-area-inset-top, 0px); transition: background .3s, box-shadow .3s; }
.top.scrolled { background: rgba(20, 16, 15, .86); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
.brand .mark { width: 30px; height: 30px; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.brand:hover .mark { transform: rotate(45deg); }
.top nav { display: flex; align-items: center; gap: 24px; }
.top nav a { text-decoration: none; color: var(--soft); font-weight: 600; font-size: .95rem; }
.top nav a:hover { color: var(--paper); }
.lang { background: transparent; border: 2px solid var(--gem); color: var(--gem); font: 800 .8rem var(--body); padding: 3px 10px; border-radius: 999px; cursor: pointer; }
.lang:hover { background: var(--gem); color: var(--ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font: 800 1rem var(--body); text-decoration: none; transition: transform .15s, background .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--paper); color: var(--ink); }
.btn-solid:hover { background: var(--gem); }
.btn-line { border: 2px solid var(--line); color: var(--paper); }
.btn-line:hover { border-color: var(--paper); }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden;
  background:
    radial-gradient(ellipse 55% 55% at 78% 48%, rgba(63,207,139,.16), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(243,234,216,.07) 1px, transparent 1.5px) 0 0 / 26px 26px,
    var(--ink);
}
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(3rem, 7.4vw, 6.4rem); margin-bottom: 26px; }
.hero h1 .ln { display: block; overflow: hidden; padding: .04em .08em .16em 0; margin-bottom: -.12em; }
.hero h1 .ln > span { display: inline-block; transform: translateY(110%); animation: rise .9s cubic-bezier(.2,.8,.2,1) forwards; }
.hero h1 .ln:nth-child(2) > span { animation-delay: .1s; }
.hero h1 .ln:nth-child(3) > span { animation-delay: .2s; }
.hero h1 em { font-style: italic; font-weight: 700; color: var(--gem); }
@keyframes rise { to { transform: none; } }
.lede { max-width: 32em; color: var(--soft); font-size: 1.18rem; margin: 0 0 32px; opacity: 0; animation: fade .8s .45s forwards; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; opacity: 0; animation: fade .8s .6s forwards; }
@keyframes fade { to { opacity: 1; } }

.hero-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; perspective: 900px; }
.halo { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, var(--gem-glow), transparent 65%); filter: blur(10px); animation: breathe 5s ease-in-out infinite; }
.gem { position: relative; width: 78%; filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)); transform-style: preserve-3d; transition: transform .25s ease-out; animation: float 6s ease-in-out infinite; }
.gem .f { transition: filter .4s; }
.gem .glint { animation: glint 4s ease-in-out infinite; }
.hero-art::after { /* orbit ring */
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(63,207,139,.35); animation: spin 40s linear infinite; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .8; } }
@keyframes float { 50% { translate: 0 -10px; } }
@keyframes glint { 0%, 70%, 100% { opacity: .15; } 80% { opacity: .8; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* sections */
section { position: relative; }
.games { padding: 120px 0 100px; background: var(--ink-2); border-top: 1px solid var(--line); }
.sec-head { margin-bottom: 40px; }

.game-card { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; text-decoration: none; border-radius: 28px; overflow: hidden; background: #2b0d1f; border: 2px solid rgba(240,181,74,.45); box-shadow: 0 30px 70px -30px rgba(0,0,0,.8); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s; }
.game-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 40px 80px -30px rgba(214,64,47,.55); }
.game-card .shot { position: relative; overflow: hidden; min-height: 100%; }
.game-card .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.game-card:hover .shot img { transform: scale(1.05); }
.pill { position: absolute; left: 16px; top: 16px; background: var(--gold); color: #170810; font-weight: 800; font-size: .82rem; padding: 6px 12px; border-radius: 999px; }
.game-card .info { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 12px; min-width: 0; }
.game-card .meta { margin: 0; color: var(--gold); font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.game-card h3 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); color: #f6e3c2; font-variation-settings: "SOFT" 100; font-weight: 900; text-shadow: 3px 3px 0 #8e2318; }
.game-card p { margin: 0; color: #e7d3b6; }
.go { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; background: var(--red); color: #f6e3c2; font-weight: 800; padding: 12px 20px; border-radius: 999px; box-shadow: 0 4px 0 #8e2318; }
.go i { font-style: normal; transition: transform .25s; }
.game-card:hover .go i { transform: translateX(5px); }

.next-card { margin-top: 22px; display: flex; gap: 20px; align-items: center; padding: 26px 28px; border-radius: 22px; border: 2px dashed var(--line); color: var(--soft); }
.next-card h3 { font-size: 1.5rem; color: var(--paper); margin-bottom: 6px; }
.next-card p { margin: 0; }
.spark { flex: none; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--ink-3); color: var(--gem); font-size: 1.4rem; animation: spin 12s linear infinite; }

.studio { padding: 120px 0; }
.studio .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.studio-body p { margin: 6px 0 28px; color: var(--soft); font-size: 1.15rem; max-width: 34em; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts b { color: var(--mute); font-weight: 700; }

.contact { padding: 120px 0 130px; background: var(--ink-2); border-top: 1px solid var(--line); text-align: center; overflow: hidden; }
.contact h2 { font-size: clamp(3rem, 9vw, 7rem); }
.contact .who { color: var(--soft); margin: 18px auto 30px; max-width: 32em; }
.mail-row { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.mail { font-family: var(--display); font-weight: 800; font-size: clamp(1.3rem, 3.6vw, 2.2rem); color: var(--gem); text-decoration-thickness: 2px; text-underline-offset: 6px; word-break: break-all; }
.copy { background: var(--ink-3); color: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font: 700 .9rem var(--body); cursor: pointer; }
.copy:hover { border-color: var(--gem); }
.copy.done { border-color: var(--gem); color: var(--gem); }

.foot { padding: 28px 0 40px; color: var(--mute); font-size: .92rem; border-top: 1px solid var(--line); }
.foot .wrap { display: flex; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.foot .links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--soft); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .top nav a.hide-m { display: none; }
  .hero { padding-top: 100px; min-height: auto; }
  .hero .wrap { grid-template-columns: 1fr; gap: 10px; }
  .hero-art { order: -1; max-width: 220px; }
  .game-card { grid-template-columns: 1fr; }
  .game-card .shot { aspect-ratio: 16 / 9; }
  .studio .wrap { grid-template-columns: 1fr; gap: 24px; }
  .games, .studio, .contact { padding: 80px 0; }
  .next-card { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero h1 .ln > span { transform: none; }
  .lede, .actions, .reveal { opacity: 1; transform: none; }
}
