/* =========================================================
   MU Mühendislik Mimarlık — v2 (scroll-driven 3D)
   ========================================================= */
:root {
  --ink: #0b0b0e;
  --ink-2: #131318;
  --ink-3: #1c1c23;
  --line: rgba(255, 255, 255, .1);
  --text: #f2f0ec;
  --muted: #a3a1ab;
  --paper: #f4f1ec;
  --paper-ink: #16151a;

  --yellow: #f5d96b;
  --pink: #ec74b5;
  --purple: #8b6cf6;
  --cyan: #6fd8e3;
  --grad: linear-gradient(100deg, var(--yellow), var(--pink) 35%, var(--purple) 68%, var(--cyan));

  --radius: 22px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -.025em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.serif { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-style: italic; letter-spacing: -.01em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(111, 216, 227, .18); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(111, 216, 227, 0); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 inherit; font-family: inherit; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, border-color .3s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--grad { background: var(--grad); color: #111; box-shadow: 0 10px 30px -10px rgba(236, 116, 181, .6); }
.btn--light { background: var(--text); color: var(--ink); }
.btn--ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.04); }
.btn--ghost:hover { border-color: rgba(255,255,255,.35); }
.btn--dark { background: var(--ink); color: var(--text); }
.btn--outline-dark { border-color: rgba(0,0,0,.25); color: var(--ink); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .4s, border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(11, 11, 14, .62); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.nav__inner { max-width: 1400px; margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.brand__mark { width: 38px; height: 38px; }
.brand__text strong { font-weight: 800; letter-spacing: .04em; }
.brand__text em { font-style: normal; color: var(--muted); }
.nav__links { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.nav__links > a:not(.btn) { opacity: .8; transition: opacity .2s; }
.nav__links > a:not(.btn):hover { opacity: 1; }
.lang { position: relative; z-index: 2; display: flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: rgba(11,11,14,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lang button { font: 700 12px/1 inherit; font-family: inherit; letter-spacing: .06em; color: var(--muted); background: none; border: 0; padding: 8px 10px; border-radius: 999px; cursor: pointer; transition: color .2s, background .2s; }
.lang button:hover { color: var(--text); }
.lang button.is-active { background: var(--text); color: var(--ink); }
.nav__inner > .nav__links { margin-left: auto; }
.scroll-cue i { font-style: normal; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(11,11,14,.5); cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); transition: transform .3s; }
.nav__toggle span:first-child { top: 17px; } .nav__toggle span:last-child { top: 25px; }
.nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- build (scroll-driven 3D) ---------- */
.build { position: relative; height: 620vh; background: #0c1222; }
.build__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.build__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.build__fallback { display: none; position: absolute; inset: 0; place-items: center; background: radial-gradient(circle at 70% 50%, #2a2350, #0c1222 70%); }
.build__fallback img { width: min(40vw, 320px); opacity: .9; }
.no-webgl .build__canvas { display: none; }
.no-webgl .build__fallback { display: grid; }
.build__vignette { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(8,8,12,.55) 0%, rgba(8,8,12,.15) 38%, transparent 60%),
              linear-gradient(0deg, rgba(8,8,12,.45) 0%, transparent 22%); }

.hero { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); max-width: 680px; z-index: 2; will-change: opacity, transform; }
.hero__title { font-size: clamp(44px, 7.2vw, 104px); font-weight: 700; letter-spacing: -.035em; line-height: .98; margin-bottom: 24px; }
.hero__title .serif { font-size: 1.06em; }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); color: rgba(242,240,236,.78); max-width: 460px; }
.scroll-cue { display: flex; align-items: center; gap: 14px; margin-top: 48px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.scroll-cue span { width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.35); border-radius: 20px; position: relative; }
.scroll-cue span::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--text); animation: wheel 1.8s infinite var(--ease); }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.stages { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); width: min(420px, 40vw); height: 0; z-index: 2; }
.stage {
  position: absolute; left: 0; top: 0; transform: translateY(-40%); width: 100%;
  padding: 30px 30px 28px; border-radius: var(--radius);
  background: rgba(12, 12, 18, .58); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
  opacity: 0; visibility: hidden; transform: translateY(calc(-40% + 40px));
  transition: opacity .6s var(--ease), transform .8s var(--ease), visibility 0s .6s;
}
.stage.is-active { opacity: 1; visibility: visible; transform: translateY(-50%); transition: opacity .6s var(--ease), transform .8s var(--ease), visibility 0s; }
.stage.is-past { transform: translateY(calc(-50% - 40px)); }
.stage__n { display: block; font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--cyan); margin-bottom: 14px; }
.stage h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 14px; }
.stage p { color: rgba(242,240,236,.8); font-size: 16px; }
.stage .chips { margin-top: 20px; }
.stage__actions { margin-top: 24px; }
.stage--final h2 { font-size: clamp(36px, 4vw, 56px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); }

.hud { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 26px; z-index: 2; max-width: 1400px; margin: 0 auto; transition: opacity .5s; }
.hud__row { display: flex; align-items: baseline; gap: 20px; margin-bottom: 12px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: rgba(242,240,236,.75); }
.hud__label { font-weight: 700; color: var(--text); }
.hud__pct { margin-left: auto; }
.hud__pct b { font-variant-numeric: tabular-nums; color: var(--text); }
.hud__pct { font-size: 13px; }
.hud__pct b { font-size: 22px; letter-spacing: -.02em; }
.hud__bar { position: relative; height: 3px; background: rgba(255,255,255,.18); border-radius: 3px; }
.hud__bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--grad); border-radius: 3px; }
.hud__bar span { position: absolute; top: -3px; width: 2px; height: 9px; background: rgba(255,255,255,.45); }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; background: var(--ink); }
.marquee__track { display: flex; gap: 34px; width: max-content; animation: marquee 38s linear infinite; font-size: clamp(18px, 2.2vw, 28px); font-weight: 600; letter-spacing: -.02em; }
.marquee__track i { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(60px, 7vw, 100px) 0; }
.section__title { font-size: clamp(30px, 3.8vw, 50px); max-width: 820px; margin-bottom: clamp(28px, 4vw, 48px); }

.big-quote { font-size: clamp(26px, 3.4vw, 46px); font-weight: 600; line-height: 1.12; letter-spacing: -.03em; max-width: 1100px; }
.big-quote .w { opacity: .16; transition: opacity .4s; }
.big-quote .w.on { opacity: 1; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: clamp(36px, 5vw, 60px); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--ink); padding: 24px 24px; }
.stat b { display: block; font-size: clamp(32px, 3.4vw, 46px); font-weight: 700; letter-spacing: -.04em; line-height: 1; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.stat > span { color: var(--muted); font-size: 15px; }

.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.vm__card { padding: 28px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); }
.vm__tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vm__card p { color: rgba(242,240,236,.82); }
.vm__card strong { color: var(--text); }

/* bento */
.services { position: relative; border-top: 1px solid var(--line);
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(139,108,246,.12), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(111,216,227,.08), transparent 70%),
    var(--ink); }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(200px, auto); gap: 16px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; padding: 28px; border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c) 9%, transparent), transparent 55%),
    linear-gradient(180deg, var(--ink-2), #0f0f13);
  border: 1px solid var(--line); color: var(--text);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--c) 18%, transparent), transparent 60%); }
.card::after { content: ""; position: absolute; left: 32px; top: 0; width: 56px; height: 2px; border-radius: 0 0 2px 2px; background: var(--c); box-shadow: 0 0 18px var(--c); }
.card:hover::before { opacity: 1; }
.card:hover { border-color: color-mix(in srgb, var(--c) 40%, transparent); box-shadow: 0 30px 70px -35px color-mix(in srgb, var(--c) 45%, transparent); transform: translateY(-4px); }
.card > * { position: relative; }
.card--xl { grid-row: span 2; }
.card--wide { grid-column: span 2; }
.card__num { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--c); }
.card__icon { position: absolute; top: 28px; right: 28px; width: 44px; height: 44px; fill: none; stroke: var(--c); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.card h3 { font-size: clamp(22px, 2vw, 28px); }
.card p { color: rgba(242,240,236,.72); }
.card .chips { margin-top: auto; padding-top: 10px; }
.card__art { margin-top: 16px; width: 100%; max-width: 260px; fill: none; stroke: var(--c); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 2.4s var(--ease) .3s; }
.card.is-visible .card__art { stroke-dashoffset: 0; }

/* CTA */
.cta { background: var(--grad); color: var(--ink); padding: clamp(44px, 5.5vw, 72px) 0; text-align: center; }
.cta h2 { font-size: clamp(28px, 3.6vw, 48px); letter-spacing: -.035em; margin-bottom: 12px; }
.cta p { font-size: 16px; max-width: 520px; margin: 0 auto 24px; opacity: .8; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* contact */
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact .section__title { margin-bottom: 28px; }
.info-list li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 1px solid var(--line); }
.info-list li > span:first-child { color: var(--muted); font-size: 14px; }
.info-list a:hover { color: var(--cyan); }
.open-badge { display: inline-block; margin-left: 8px; font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.open-badge.is-open { background: rgba(111,216,227,.15); color: var(--cyan); }
.open-badge.is-closed { background: rgba(236,116,181,.15); color: var(--pink); }
.socials { display: flex; gap: 22px; margin-top: 28px; font-weight: 600; }
.socials a:hover { color: var(--pink); }

.form { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); display: grid; gap: 16px; }
.form h3 { font-size: 24px; margin-bottom: 4px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.form input, .form select, .form textarea {
  font: inherit; color: var(--text); background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; width: 100%;
  transition: border-color .2s;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--purple); }
.form .is-invalid { border-color: var(--pink); }
.form__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form__note { font-size: 14px; color: var(--cyan); min-height: 1.4em; }
.form__note.is-error { color: var(--pink); }
.map { margin-top: 32px; }
.map iframe { width: 100%; height: 260px; border: 0; border-radius: var(--radius); filter: grayscale(1) invert(.92) contrast(.9); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 72px) 0 26px; }
.footer__big { font-size: clamp(30px, 4.4vw, 60px); font-weight: 700; letter-spacing: -.04em; line-height: 1.02; margin-bottom: 40px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); padding-top: 24px; border-top: 1px solid var(--line); }
.footer__bottom nav { display: flex; gap: 22px; }
.footer__bottom a:hover { color: var(--text); }

.fab { position: fixed; right: 20px; bottom: 90px; z-index: 40; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); transition: transform .3s var(--ease); }
.fab:hover { transform: scale(1.08); }
.fab svg { width: 28px; height: 28px; fill: currentColor; }

/* reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .card--xl { grid-row: auto; grid-column: span 2; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
  .nav__toggle { display: block; z-index: 2; }
  .lang { margin-left: auto; }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 28px; font-size: 22px;
    background: rgba(11,11,14,.96);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
  }
  /* backdrop-filter, sabit konumlu menüyü nav yüksekliğine hapsetmesin */
  .nav.is-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-color: transparent; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transition: opacity .3s; }
}
@media (max-width: 820px) {
  .build { height: 560vh; }
  .build__vignette { background: linear-gradient(0deg, rgba(8,8,12,.75) 0%, rgba(8,8,12,.2) 45%, transparent 65%), linear-gradient(180deg, rgba(8,8,12,.5), transparent 20%); }
  .hero { top: auto; bottom: 120px; transform: none; right: var(--gutter); }
  .scroll-cue { margin-top: 28px; }
  .stages { top: auto; bottom: 96px; transform: none; width: auto; right: var(--gutter); }
  .stage { top: auto; bottom: 0; transform: translateY(40px); padding: 22px 22px 20px; }
  .stage.is-active { transform: none; }
  .stage.is-past { transform: translateY(-30px); }
  .stage p { font-size: 15px; }
  .stage .chips { margin-top: 14px; }
  .hud { bottom: 18px; }
  .hud__label { margin-right: auto; }
  .contact__grid, .vm { grid-template-columns: 1fr; }
  .fab { bottom: 20px; }
  body.in-build .fab { opacity: 0; pointer-events: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand__text em { display: none; }
  .bento { grid-template-columns: 1fr; }
  .card--xl, .card--wide { grid-column: auto; }
  .form__row { grid-template-columns: 1fr; }
  .info-list li { grid-template-columns: 1fr; gap: 4px; }
  .stat { padding: 24px 18px; }
  .stage .chips li:nth-child(n+3) { display: none; }
  .footer__bottom nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track, .scroll-cue span::after, .eyebrow .dot { animation: none; }
}
.card__icon ~ h3 { padding-right: 52px; }
