/* ============ AIMA PRO — shared styles ============ */
:root {
  --bg: #0a0a0a;
  --bg-2: #121212;
  --text: #f2efe9;
  --muted: #9a958c;
  --line: rgba(255, 255, 255, 0.1);

  --films: #e0a458;      /* sıcak amber */
  --films-2: #b5452f;    /* sinema kırmızısı */
  --tech: #4d8dff;       /* elektrik mavisi */
  --tech-2: #c6ff4d;     /* lime */

  --serif: "Fraunces", Georgia, serif;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  mix-blend-mode: difference;
  transition: background .3s, padding .3s;
}
.nav.scrolled {
  mix-blend-mode: normal; padding-top: 14px; padding-bottom: 14px;
  background: rgba(10,10,10,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo { font-weight: 700; letter-spacing: 0.18em; font-size: 15px; }
.logo span { font-weight: 400; opacity: 0.6; }
.nav-links { display: flex; gap: 28px; font-size: 14px; }
.nav-links a { opacity: 0.75; transition: opacity .2s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.lang { font-family: var(--mono); font-size: 12px; opacity: .7; }
.menu-btn { display: none; font-size: 14px; letter-spacing: .1em; }

@media (max-width: 760px) {
  .nav-links, .lang { display: none; }
  .menu-btn { display: block; }
  .nav.open { mix-blend-mode: normal; background: var(--bg); flex-wrap: wrap; }
  .nav.open .nav-links { display: flex; flex-direction: column; width: 100%; gap: 16px; padding: 24px 0 8px; font-size: 22px; }
}

/* ---------- Home split ---------- */
.split {
  height: 100vh; height: 100svh;
  display: flex; position: relative; overflow: hidden;
}
.half {
  position: relative; flex: 1; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--gutter); padding-bottom: clamp(32px, 8vh, 80px);
  transition: flex .8s cubic-bezier(.7,0,.2,1);
}
.split:hover .half { flex: 0.7; }
.split .half:hover { flex: 1.6; }

.half .bg { position: absolute; inset: 0; z-index: 0; }
.half .content { position: relative; z-index: 2; max-width: 520px; }
.half .eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: .7; margin-bottom: 16px; }
.half h2 { font-size: clamp(44px, 7vw, 104px); line-height: .95; font-weight: 400; margin-bottom: 20px; }
.half p { color: rgba(242,239,233,.75); max-width: 380px; margin-bottom: 28px; }
.half .cta { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; letter-spacing: .08em; padding: 14px 22px; border: 1px solid currentColor; border-radius: 999px; transition: background .3s, color .3s; }

/* Films half */
.half.films h2 { font-family: var(--serif); font-style: italic; }
.half.films .cta:hover { background: var(--films); color: #111; border-color: var(--films); }
.films-bg {
  background:
    radial-gradient(ellipse at 30% 70%, rgba(224,164,88,.45), transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(181,69,47,.4), transparent 55%),
    #120c08;
  animation: drift 14s ease-in-out infinite alternate;
  background-size: 140% 140%;
}
@keyframes drift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
.grain::after {
  content: ""; position: absolute; inset: -50%; z-index: 1; pointer-events: none; opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 20% { transform: translate(-5%,3%); } 40% { transform: translate(4%,-6%); }
  60% { transform: translate(-3%,5%); } 80% { transform: translate(6%,2%); } 100% { transform: translate(0,0); }
}
.letterbox::before, .letterbox::after {
  content: ""; position: absolute; left: 0; right: 0; height: 6vh; background: #000; z-index: 1;
}
.letterbox::before { top: 0; } .letterbox::after { bottom: 0; }
.timecode { position: absolute; top: 90px; left: var(--gutter); z-index: 2; font-family: var(--mono); font-size: 12px; color: var(--films); letter-spacing: .1em; }
.timecode::before { content: "● REC "; color: #ff4b3e; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* Tech half */
.half.tech { background: #05070d; }
.half.tech h2 { font-family: var(--sans); font-weight: 600; letter-spacing: -.03em; }
.half.tech .eyebrow { color: var(--tech-2); opacity: 1; }
.half.tech .cta:hover { background: var(--tech-2); color: #111; border-color: var(--tech-2); }
#techCanvas { width: 100%; height: 100%; }
.tech-overlay { position: absolute; top: 90px; right: var(--gutter); z-index: 2; font-family: var(--mono); font-size: 11px; color: var(--tech); text-align: right; line-height: 1.8; opacity: .85; }

/* Center seam */
.seam {
  position: absolute; top: 50%; left: 50%; z-index: 5;
  transform: translate(-50%, -50%);
  width: 108px; height: 108px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center;
  background: rgba(10,10,10,.75); backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  font-weight: 700; letter-spacing: .2em; font-size: 12px; line-height: 1.4;
  pointer-events: none; transition: left .8s cubic-bezier(.7,0,.2,1);
}
.seam small { display: block; font-weight: 400; font-size: 9px; opacity: .5; letter-spacing: .25em; }
.split:has(.films:hover) .seam { left: 69.5%; }
.split:has(.tech:hover) .seam { left: 30.5%; }
.scroll-hint { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 5; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; opacity: .5; }

@media (max-width: 760px) {
  .split { flex-direction: column; }
  .split:hover .half, .split .half:hover { flex: 1; }
  .half { padding-bottom: 32px; }
  .half h2 { font-size: 48px; margin-bottom: 12px; }
  .half p { font-size: 14px; margin-bottom: 18px; }
  .seam, .split:has(.films:hover) .seam, .split:has(.tech:hover) .seam { left: 50%; width: 84px; height: 84px; font-size: 10px; }
  .timecode, .tech-overlay { top: 76px; }
  .tech-overlay { display: none; }
  .letterbox::before, .letterbox::after { height: 3vh; }
  .scroll-hint { display: none; }
}

/* ---------- Sections ---------- */
section.block { padding: clamp(80px, 12vw, 160px) var(--gutter); border-top: 1px solid var(--line); }
.wrap { max-width: 1200px; margin: 0 auto; }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.big { font-size: clamp(30px, 4.6vw, 64px); line-height: 1.1; font-weight: 400; letter-spacing: -.02em; max-width: 1000px; }
.big em { font-family: var(--serif); color: var(--films); }
.big b { font-weight: 600; color: var(--tech-2); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 64px; }
.two-col > a { background: var(--bg); padding: 40px; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; transition: background .4s; }
.two-col > a:hover { background: var(--bg-2); }
.two-col h3 { font-size: 32px; font-weight: 400; }
.two-col .f h3 { font-family: var(--serif); font-style: italic; color: var(--films); }
.two-col .t h3 { color: var(--tech); font-weight: 600; }
.two-col ul { list-style: none; color: var(--muted); font-size: 15px; display: grid; gap: 6px; margin-top: 20px; }
.arrow { font-size: 14px; margin-top: 24px; opacity: .7; }

.lab {
  position: relative; overflow: hidden;
  background: linear-gradient(110deg, #1a0f08 0%, #0a0a0a 45%, #050a14 100%);
}
.lab .big { max-width: 820px; }
.lab p { color: var(--muted); max-width: 560px; margin-top: 28px; font-size: 17px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.chip { font-family: var(--mono); font-size: 12px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
form { display: grid; gap: 16px; }
.choice { display: flex; gap: 10px; }
.choice label { flex: 1; cursor: pointer; }
.choice input { display: none; }
.choice span { display: block; text-align: center; padding: 14px; border: 1px solid var(--line); border-radius: 10px; transition: all .2s; font-size: 14px; }
.choice input:checked + span.f { border-color: var(--films); color: var(--films); background: rgba(224,164,88,.08); }
.choice input:checked + span.t { border-color: var(--tech); color: var(--tech); background: rgba(77,141,255,.08); }
.choice input:checked + span.b { border-color: var(--text); background: rgba(255,255,255,.06); }
input[type=text], input[type=email], textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 14px 0; color: var(--text); font: inherit; font-size: 16px; outline: none; transition: border-color .2s;
}
input:focus, textarea:focus { border-color: var(--text); }
textarea { resize: vertical; min-height: 100px; }
.btn { justify-self: start; padding: 14px 28px; border-radius: 999px; background: var(--text); color: #111; font-weight: 600; font-size: 14px; letter-spacing: .05em; transition: transform .2s; }
.btn:hover { transform: translateY(-2px); }
.form-ok { display: none; color: var(--tech-2); font-family: var(--mono); font-size: 14px; }
.contact-info { color: var(--muted); display: grid; gap: 8px; align-content: start; }
.contact-info a { color: var(--text); }

/* Footer */
footer { padding: 40px var(--gutter); border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); }
footer .socials { display: flex; gap: 20px; }

@media (max-width: 760px) {
  .two-col, .contact-grid { grid-template-columns: 1fr; }
  .contact-grid { gap: 40px; }
  .two-col > a { padding: 28px; min-height: 200px; }
}

/* ---------- Sub-page hero ---------- */
.page-hero { min-height: 88vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px var(--gutter) 64px; position: relative; overflow: hidden; }
.page-hero .bg { position: absolute; inset: 0; z-index: 0; }
.page-hero .wrap { position: relative; z-index: 2; width: 100%; }
.page-hero h1 { font-size: clamp(56px, 11vw, 180px); line-height: .9; font-weight: 400; letter-spacing: -.03em; }
.page-hero .sub { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.page-hero .sub p { max-width: 460px; color: rgba(242,239,233,.75); font-size: 17px; }

/* ---------- Films page ---------- */
body.films-page { --accent: var(--films); }
.films-page h1 { font-family: var(--serif); font-style: italic; }
.films-page h1 span { color: var(--films); }

.reel { position: relative; aspect-ratio: 16/9; border-radius: 4px; overflow: hidden; cursor: pointer; margin-top: 40px; }
.reel .bg { position: absolute; inset: 0; }
.reel .play { position: absolute; inset: 0; display: grid; place-items: center; z-index: 3; }
.reel .play span { width: 110px; height: 110px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); display: grid; place-items: center; font-size: 13px; letter-spacing: .2em; transition: transform .4s, background .4s; backdrop-filter: blur(6px); }
.reel:hover .play span { transform: scale(1.08); background: var(--films); color: #111; border-color: var(--films); }
.reel .meta { position: absolute; left: 24px; bottom: 20px; z-index: 3; font-family: var(--mono); font-size: 12px; opacity: .8; }

.cinema { position: fixed; inset: 0; z-index: 100; background: #000; display: none; place-items: center; padding: var(--gutter); opacity: 0; transition: opacity .6s; }
.cinema.on { display: grid; }
.cinema.show { opacity: 1; }
.cinema .screen { width: min(1200px, 100%); aspect-ratio: 16/9; position: relative; overflow: hidden; }
.cinema .screen video { width: 100%; height: 100%; display: block; background: #000; }
button.reel { display: block; width: 100%; padding: 0; text-align: left; }
.reel img.bg { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.reel:hover img.bg { transform: scale(1.04); }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), transparent 50%); z-index: 2; }

.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.films-bg:has(.bg-video)::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(10,8,6,.85), rgba(10,8,6,.2) 60%), linear-gradient(90deg, rgba(224,164,88,.18), rgba(181,69,47,.12)); }

button.proj { text-align: left; width: 100%; display: flex; flex-direction: column; }
.proj .thumb { flex: none; }
.projects:not(.filtered) .proj.wide + .proj .thumb { flex: 1 0 auto; }
.proj.wide .thumb { aspect-ratio: 16/9; height: auto; min-height: 0; }
.proj .thumb img.bg, .proj .thumb video.hover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.proj .thumb video.hover { opacity: 0; transition: opacity .4s; }
.proj .thumb video.hover.playing { opacity: 1; }
.proj .thumb::after { content: "▶"; position: absolute; right: 14px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.35); opacity: 0; transform: scale(.9); transition: all .3s; }
.proj:hover .thumb::after, .proj:focus-visible .thumb::after { opacity: 1; transform: none; }
.proj .info b { font-family: var(--serif); font-size: 18px; font-weight: 400; }
.proj:hover .info b { color: var(--films); }
.projects.filtered .proj { grid-column: span 4; }
.projects.filtered .proj.wide .thumb { flex: none; }
.proj.hidden { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.filter { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); transition: all .2s; }
.filter:hover { color: var(--text); }
.filter.on { color: #111; background: var(--films); border-color: var(--films); }

.chapters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 20px; }
.chapter { background: var(--bg); padding: 22px 24px; text-align: left; display: grid; gap: 4px; transition: background .3s; }
.chapter:hover { background: var(--bg-2); }
.chapter .tc { font-family: var(--mono); font-size: 12px; color: var(--films); }
.chapter b { font-family: var(--serif); font-weight: 400; font-size: 24px; }
.chapter span:last-child { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .chapters { grid-template-columns: 1fr; } }

.cinema .screen p { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; color: var(--muted); z-index: 3; text-align: center; padding: 16px; }
.cinema .close { position: absolute; top: 20px; right: var(--gutter); font-family: var(--mono); font-size: 13px; letter-spacing: .15em; }

.projects { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; margin-top: 48px; }
.proj { grid-column: span 4; cursor: pointer; }
.proj.wide { grid-column: span 8; }
.proj .thumb { aspect-ratio: 16/9; position: relative; overflow: hidden; border-radius: 3px; }
.proj .thumb .bg { position: absolute; inset: 0; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.proj:hover .thumb .bg { transform: scale(1.06); }
.proj .info { display: flex; justify-content: space-between; padding-top: 14px; font-size: 14px; }
.proj .info b { font-weight: 500; }
.proj .info span { color: var(--muted); font-family: var(--mono); font-size: 12px; }

.services { margin-top: 48px; border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); align-items: baseline; transition: padding .4s; }
.service:hover { padding-left: 16px; }
.service .n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.service h3 { font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); font-weight: 400; }
.service p { color: var(--muted); }
.films-page .service:hover h3 { color: var(--films); font-style: italic; }

@media (max-width: 760px) {
  .proj, .proj.wide { grid-column: span 12; }
  .proj.wide .thumb { min-height: 0; aspect-ratio: 16/9; flex: none; }
  .service { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Tech page ---------- */
.tech-page { background: #05070d; }
.tech-page h1 { font-weight: 600; letter-spacing: -.05em; }
.tech-page h1 span { color: var(--tech); }
.tech-page .label { color: var(--tech-2); }
.tech-page .page-hero .bg canvas { width: 100%; height: 100%; }
.terminal { font-family: var(--mono); font-size: 13px; color: var(--tech-2); background: rgba(0,0,0,.5); border: 1px solid rgba(77,141,255,.3); border-radius: 8px; padding: 16px 20px; min-width: 280px; }
.terminal div { color: var(--muted); }
.terminal .cursor { display: inline-block; width: 8px; height: 14px; background: var(--tech-2); vertical-align: middle; animation: blink 1s infinite; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(77,141,255,.18); border: 1px solid rgba(77,141,255,.18); margin-top: 48px; }
.card { background: #05070d; padding: 40px; min-height: 280px; display: flex; flex-direction: column; position: relative; overflow: hidden; transition: background .3s; }
.card::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(77,141,255,.25), transparent 70%); left: var(--x, -400px); top: var(--y, -400px); transform: translate(-50%, -50%); pointer-events: none; }
.card .tag { font-family: var(--mono); font-size: 11px; color: var(--tech); letter-spacing: .15em; }
.card h3 { font-size: 28px; font-weight: 600; margin: 48px 0 12px; letter-spacing: -.02em; }
.card p { color: var(--muted); max-width: 420px; }
.card ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 24px; }
.card li { font-family: var(--mono); font-size: 11px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; counter-reset: s; }
.step { border-top: 2px solid var(--line); padding-top: 24px; position: relative; }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--mono); font-size: 12px; color: var(--tech-2); }
.step h4 { font-size: 20px; font-weight: 600; margin: 12px 0 8px; }
.step p { color: var(--muted); font-size: 15px; }
.step:hover { border-color: var(--tech); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }
.stat b { display: block; font-size: clamp(44px, 6vw, 80px); font-weight: 600; letter-spacing: -.04em; color: var(--text); }
.stat span { color: var(--muted); font-size: 14px; }

@media (max-width: 760px) {
  .cards, .steps, .stats { grid-template-columns: 1fr; }
  .card { padding: 28px; min-height: 0; }
  .card h3 { margin-top: 28px; }
  .terminal { min-width: 0; width: 100%; }
}

/* ---------- Legal / support pages ---------- */
.legal { padding: 140px var(--gutter) 100px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 500; letter-spacing: -.03em; line-height: 1; margin-bottom: 16px; }
.legal .updated { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 48px; }
.legal h2 { font-size: 22px; font-weight: 600; margin: 48px 0 12px; scroll-margin-top: 100px; }
.legal h3 { font-size: 17px; font-weight: 600; margin: 28px 0 8px; }
.legal p, .legal li { color: rgba(242,239,233,.8); font-size: 16px; line-height: 1.7; }
.legal p + p { margin-top: 12px; }
.legal ul, .legal ol { padding-left: 22px; margin: 12px 0; display: grid; gap: 6px; }
.legal a { color: var(--tech); text-decoration: underline; text-underline-offset: 3px; }
.legal .toc { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.legal .toc a { text-decoration: none; font-family: var(--mono); font-size: 12px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); }
.legal .box { border: 1px solid var(--line); border-radius: 12px; padding: 24px; margin: 20px 0; background: var(--bg-2); }
.legal .box b { color: var(--text); }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 64px 0 0; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover, footer .socials a:hover { color: var(--text); }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
